From 835903a532c1bf659f995e221fea8eeaba26ef8f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 6 Feb 2025 04:04:56 +0000 Subject: [PATCH] chore: update to C# GAPIC generator v1.4.33 PiperOrigin-RevId: 723710845 Source-Link: https://github.com/googleapis/googleapis/commit/fed8c2613ed7e9e49ad6a98101f585cf00f6657b Source-Link: https://github.com/googleapis/googleapis-gen/commit/a306f3a803c179563ac167c34fb0eb5c9f709696 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjcmV0TWFuYWdlci5WMS8uT3dsQm90LnlhbWwiLCJoIjoiYTMwNmYzYTgwM2MxNzk1NjNhYzE2N2MzNGZiMGViNWM5ZjcwOTY5NiJ9 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjcmV0TWFuYWdlci5WMUJldGExLy5Pd2xCb3QueWFtbCIsImgiOiJhMzA2ZjNhODAzYzE3OTU2M2FjMTY3YzM0ZmIwZWI1YzlmNzA5Njk2In0= Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjcmV0TWFuYWdlci5WMUJldGEyLy5Pd2xCb3QueWFtbCIsImgiOiJhMzA2ZjNhODAzYzE3OTU2M2FjMTY3YzM0ZmIwZWI1YzlmNzA5Njk2In0= Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJlU291cmNlTWFuYWdlci5WMS8uT3dsQm90LnlhbWwiLCJoIjoiYTMwNmYzYTgwM2MxNzk1NjNhYzE2N2MzNGZiMGViNWM5ZjcwOTY5NiJ9 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHkuUHJpdmF0ZUNBLlYxLy5Pd2xCb3QueWFtbCIsImgiOiJhMzA2ZjNhODAzYzE3OTU2M2FjMTY3YzM0ZmIwZWI1YzlmNzA5Njk2In0= Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHkuUHVibGljQ0EuVjEvLk93bEJvdC55YW1sIiwiaCI6ImEzMDZmM2E4MDNjMTc5NTYzYWMxNjdjMzRmYjBlYjVjOWY3MDk2OTYifQ== Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHkuUHVibGljQ0EuVjFCZXRhMS8uT3dsQm90LnlhbWwiLCJoIjoiYTMwNmYzYTgwM2MxNzk1NjNhYzE2N2MzNGZiMGViNWM5ZjcwOTY5NiJ9 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuU2V0dGluZ3MuVjFCZXRhMS8uT3dsQm90LnlhbWwiLCJoIjoiYTMwNmYzYTgwM2MxNzk1NjNhYzE2N2MzNGZiMGViNWM5ZjcwOTY5NiJ9 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuVjEvLk93bEJvdC55YW1sIiwiaCI6ImEzMDZmM2E4MDNjMTc5NTYzYWMxNjdjMzRmYjBlYjVjOWY3MDk2OTYifQ== Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuVjFQMUJldGExLy5Pd2xCb3QueWFtbCIsImgiOiJhMzA2ZjNhODAzYzE3OTU2M2FjMTY3YzM0ZmIwZWI1YzlmNzA5Njk2In0= Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuVjIvLk93bEJvdC55YW1sIiwiaCI6ImEzMDZmM2E4MDNjMTc5NTYzYWMxNjdjMzRmYjBlYjVjOWY3MDk2OTYifQ== Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXJNYW5hZ2VtZW50LlYxLy5Pd2xCb3QueWFtbCIsImgiOiJhMzA2ZjNhODAzYzE3OTU2M2FjMTY3YzM0ZmIwZWI1YzlmNzA5Njk2In0= Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VydmljZUNvbnRyb2wuVjEvLk93bEJvdC55YW1sIiwiaCI6ImEzMDZmM2E4MDNjMTc5NTYzYWMxNjdjMzRmYjBlYjVjOWY3MDk2OTYifQ== Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VydmljZURpcmVjdG9yeS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiYTMwNmYzYTgwM2MxNzk1NjNhYzE2N2MzNGZiMGViNWM5ZjcwOTY5NiJ9 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VydmljZURpcmVjdG9yeS5WMUJldGExLy5Pd2xCb3QueWFtbCIsImgiOiJhMzA2ZjNhODAzYzE3OTU2M2FjMTY3YzM0ZmIwZWI1YzlmNzA5Njk2In0= Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VydmljZUhlYWx0aC5WMS8uT3dsQm90LnlhbWwiLCJoIjoiYTMwNmYzYTgwM2MxNzk1NjNhYzE2N2MzNGZiMGViNWM5ZjcwOTY5NiJ9 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VydmljZU1hbmFnZW1lbnQuVjEvLk93bEJvdC55YW1sIiwiaCI6ImEzMDZmM2E4MDNjMTc5NTYzYWMxNjdjMzRmYjBlYjVjOWY3MDk2OTYifQ== Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VydmljZVVzYWdlLlYxLy5Pd2xCb3QueWFtbCIsImgiOiJhMzA2ZjNhODAzYzE3OTU2M2FjMTY3YzM0ZmIwZWI1YzlmNzA5Njk2In0= Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2hlbGwuVjEvLk93bEJvdC55YW1sIiwiaCI6ImEzMDZmM2E4MDNjMTc5NTYzYWMxNjdjMzRmYjBlYjVjOWY3MDk2OTYifQ== Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU3Bhbm5lci5BZG1pbi5EYXRhYmFzZS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiYTMwNmYzYTgwM2MxNzk1NjNhYzE2N2MzNGZiMGViNWM5ZjcwOTY5NiJ9 --- ....SecretManager.V1.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 + ...etadata_google.cloud.secretmanager.v1.json | 3993 +++ ...gle.Cloud.SecretManager.V1.Snippets.csproj | 15 + .../SecretManagerServiceClientSnippets.g.cs | 1688 ++ .../Google.Cloud.SecretManager.V1.csproj | 49 + .../PackageApiMetadata.g.cs | 53 + .../Resources.g.cs | 4668 +++ .../ResourcesResourceNames.g.cs | 874 + .../SecretManagerServiceClient.g.cs | 3238 ++ .../Service.g.cs | 4018 +++ .../ServiceCollectionExtensions.g.cs | 67 + .../ServiceGrpc.g.cs | 1430 + .../ServiceResourceNames.g.cs | 229 + .../gapic_metadata.json | 108 + ...etManager.V1Beta1.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 + ...CreateSecretResourceNamesAsyncSnippet.g.cs | 47 + ...ient.CreateSecretResourceNamesSnippet.g.cs | 46 + ...agerServiceClient.CreateSecretSnippet.g.cs | 45 + ...erviceClient.DeleteSecretAsyncSnippet.g.cs | 44 + ...DeleteSecretRequestObjectAsyncSnippet.g.cs | 47 + ...ient.DeleteSecretRequestObjectSnippet.g.cs | 46 + ...DeleteSecretResourceNamesAsyncSnippet.g.cs | 44 + ...ient.DeleteSecretResourceNamesSnippet.g.cs | 43 + ...agerServiceClient.DeleteSecretSnippet.g.cs | 43 + ...ient.DestroySecretVersionAsyncSnippet.g.cs | 44 + ...ecretVersionRequestObjectAsyncSnippet.g.cs | 47 + ...troySecretVersionRequestObjectSnippet.g.cs | 46 + ...ecretVersionResourceNamesAsyncSnippet.g.cs | 44 + ...troySecretVersionResourceNamesSnippet.g.cs | 43 + ...iceClient.DestroySecretVersionSnippet.g.cs | 43 + ...ient.DisableSecretVersionAsyncSnippet.g.cs | 44 + ...ecretVersionRequestObjectAsyncSnippet.g.cs | 47 + ...ableSecretVersionRequestObjectSnippet.g.cs | 46 + ...ecretVersionResourceNamesAsyncSnippet.g.cs | 44 + ...ableSecretVersionResourceNamesSnippet.g.cs | 43 + ...iceClient.DisableSecretVersionSnippet.g.cs | 43 + ...lient.EnableSecretVersionAsyncSnippet.g.cs | 44 + ...ecretVersionRequestObjectAsyncSnippet.g.cs | 47 + ...ableSecretVersionRequestObjectSnippet.g.cs | 46 + ...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 | 82 + ...istSecretVersionsRequestObjectSnippet.g.cs | 80 + ...cretVersionsResourceNamesAsyncSnippet.g.cs | 79 + ...istSecretVersionsResourceNamesSnippet.g.cs | 77 + ...rviceClient.ListSecretVersionsSnippet.g.cs | 77 + ...ServiceClient.ListSecretsAsyncSnippet.g.cs | 79 + ....ListSecretsRequestObjectAsyncSnippet.g.cs | 83 + ...lient.ListSecretsRequestObjectSnippet.g.cs | 81 + ....ListSecretsResourceNamesAsyncSnippet.g.cs | 80 + ...lient.ListSecretsResourceNamesSnippet.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 + ...metadata_google.cloud.secrets.v1beta1.json | 3771 +++ ...loud.SecretManager.V1Beta1.Snippets.csproj | 15 + .../SecretManagerServiceClientSnippets.g.cs | 1555 + .../Google.Cloud.SecretManager.V1Beta1.csproj | 48 + .../PackageApiMetadata.g.cs | 37 + .../Resources.g.cs | 1842 ++ .../ResourcesResourceNames.g.cs | 528 + .../SecretManagerServiceClient.g.cs | 2791 ++ .../Service.g.cs | 3683 +++ .../ServiceCollectionExtensions.g.cs | 65 + .../ServiceGrpc.g.cs | 1380 + .../ServiceResourceNames.g.cs | 162 + .../gapic_metadata.json | 108 + ...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 + ...eSourceManager.V1.GeneratedSnippets.csproj | 15 + ...erClient.CreateBranchRuleAsyncSnippet.g.cs | 63 + ...teBranchRuleRequestObjectAsyncSnippet.g.cs | 66 + ....CreateBranchRuleRequestObjectSnippet.g.cs | 65 + ...teBranchRuleResourceNamesAsyncSnippet.g.cs | 63 + ....CreateBranchRuleResourceNamesSnippet.g.cs | 62 + ...ManagerClient.CreateBranchRuleSnippet.g.cs | 62 + ...agerClient.CreateInstanceAsyncSnippet.g.cs | 63 + ...eateInstanceRequestObjectAsyncSnippet.g.cs | 68 + ...nt.CreateInstanceRequestObjectSnippet.g.cs | 67 + ...eateInstanceResourceNamesAsyncSnippet.g.cs | 64 + ...nt.CreateInstanceResourceNamesSnippet.g.cs | 63 + ...ceManagerClient.CreateInstanceSnippet.g.cs | 62 + ...erClient.CreateRepositoryAsyncSnippet.g.cs | 63 + ...teRepositoryRequestObjectAsyncSnippet.g.cs | 67 + ....CreateRepositoryRequestObjectSnippet.g.cs | 66 + ...teRepositoryResourceNamesAsyncSnippet.g.cs | 64 + ....CreateRepositoryResourceNamesSnippet.g.cs | 63 + ...ManagerClient.CreateRepositorySnippet.g.cs | 62 + ...erClient.DeleteBranchRuleAsyncSnippet.g.cs | 62 + ...teBranchRuleRequestObjectAsyncSnippet.g.cs | 66 + ....DeleteBranchRuleRequestObjectSnippet.g.cs | 65 + ...teBranchRuleResourceNamesAsyncSnippet.g.cs | 62 + ....DeleteBranchRuleResourceNamesSnippet.g.cs | 61 + ...ManagerClient.DeleteBranchRuleSnippet.g.cs | 61 + ...agerClient.DeleteInstanceAsyncSnippet.g.cs | 62 + ...leteInstanceRequestObjectAsyncSnippet.g.cs | 66 + ...nt.DeleteInstanceRequestObjectSnippet.g.cs | 65 + ...leteInstanceResourceNamesAsyncSnippet.g.cs | 62 + ...nt.DeleteInstanceResourceNamesSnippet.g.cs | 61 + ...ceManagerClient.DeleteInstanceSnippet.g.cs | 61 + ...erClient.DeleteRepositoryAsyncSnippet.g.cs | 62 + ...teRepositoryRequestObjectAsyncSnippet.g.cs | 66 + ....DeleteRepositoryRequestObjectSnippet.g.cs | 65 + ...teRepositoryResourceNamesAsyncSnippet.g.cs | 62 + ....DeleteRepositoryResourceNamesSnippet.g.cs | 61 + ...ManagerClient.DeleteRepositorySnippet.g.cs | 61 + ...nagerClient.GetBranchRuleAsyncSnippet.g.cs | 44 + ...etBranchRuleRequestObjectAsyncSnippet.g.cs | 47 + ...ent.GetBranchRuleRequestObjectSnippet.g.cs | 46 + ...etBranchRuleResourceNamesAsyncSnippet.g.cs | 44 + ...ent.GetBranchRuleResourceNamesSnippet.g.cs | 43 + ...rceManagerClient.GetBranchRuleSnippet.g.cs | 43 + ...erClient.GetIamPolicyRepoAsyncSnippet.g.cs | 45 + ...amPolicyRepoRequestObjectAsyncSnippet.g.cs | 50 + ....GetIamPolicyRepoRequestObjectSnippet.g.cs | 49 + ...amPolicyRepoResourceNamesAsyncSnippet.g.cs | 46 + ....GetIamPolicyRepoResourceNamesSnippet.g.cs | 45 + ...ManagerClient.GetIamPolicyRepoSnippet.g.cs | 44 + ...ManagerClient.GetInstanceAsyncSnippet.g.cs | 44 + ....GetInstanceRequestObjectAsyncSnippet.g.cs | 47 + ...lient.GetInstanceRequestObjectSnippet.g.cs | 46 + ....GetInstanceResourceNamesAsyncSnippet.g.cs | 44 + ...lient.GetInstanceResourceNamesSnippet.g.cs | 43 + ...ourceManagerClient.GetInstanceSnippet.g.cs | 43 + ...nagerClient.GetRepositoryAsyncSnippet.g.cs | 44 + ...etRepositoryRequestObjectAsyncSnippet.g.cs | 47 + ...ent.GetRepositoryRequestObjectSnippet.g.cs | 46 + ...etRepositoryResourceNamesAsyncSnippet.g.cs | 44 + ...ent.GetRepositoryResourceNamesSnippet.g.cs | 43 + ...rceManagerClient.GetRepositorySnippet.g.cs | 43 + ...gerClient.ListBranchRulesAsyncSnippet.g.cs | 79 + ...tBranchRulesRequestObjectAsyncSnippet.g.cs | 82 + ...t.ListBranchRulesRequestObjectSnippet.g.cs | 80 + ...tBranchRulesResourceNamesAsyncSnippet.g.cs | 79 + ...t.ListBranchRulesResourceNamesSnippet.g.cs | 77 + ...eManagerClient.ListBranchRulesSnippet.g.cs | 77 + ...nagerClient.ListInstancesAsyncSnippet.g.cs | 79 + ...istInstancesRequestObjectAsyncSnippet.g.cs | 85 + ...ent.ListInstancesRequestObjectSnippet.g.cs | 83 + ...istInstancesResourceNamesAsyncSnippet.g.cs | 80 + ...ent.ListInstancesResourceNamesSnippet.g.cs | 78 + ...rceManagerClient.ListInstancesSnippet.g.cs | 77 + ...erClient.ListRepositoriesAsyncSnippet.g.cs | 79 + ...RepositoriesRequestObjectAsyncSnippet.g.cs | 85 + ....ListRepositoriesRequestObjectSnippet.g.cs | 83 + ...RepositoriesResourceNamesAsyncSnippet.g.cs | 80 + ....ListRepositoriesResourceNamesSnippet.g.cs | 78 + ...ManagerClient.ListRepositoriesSnippet.g.cs | 77 + ...erClient.SetIamPolicyRepoAsyncSnippet.g.cs | 45 + ...amPolicyRepoRequestObjectAsyncSnippet.g.cs | 52 + ....SetIamPolicyRepoRequestObjectSnippet.g.cs | 51 + ...amPolicyRepoResourceNamesAsyncSnippet.g.cs | 46 + ....SetIamPolicyRepoResourceNamesSnippet.g.cs | 45 + ...ManagerClient.SetIamPolicyRepoSnippet.g.cs | 44 + ...nt.TestIamPermissionsRepoAsyncSnippet.g.cs | 45 + ...missionsRepoRequestObjectAsyncSnippet.g.cs | 50 + ...amPermissionsRepoRequestObjectSnippet.g.cs | 49 + ...missionsRepoResourceNamesAsyncSnippet.g.cs | 46 + ...amPermissionsRepoResourceNamesSnippet.g.cs | 45 + ...rClient.TestIamPermissionsRepoSnippet.g.cs | 44 + ...erClient.UpdateBranchRuleAsyncSnippet.g.cs | 63 + ...teBranchRuleRequestObjectAsyncSnippet.g.cs | 67 + ....UpdateBranchRuleRequestObjectSnippet.g.cs | 66 + ...ManagerClient.UpdateBranchRuleSnippet.g.cs | 62 + ...a_google.cloud.securesourcemanager.v1.json | 4711 +++ ...oud.SecureSourceManager.V1.Snippets.csproj | 15 + .../SecureSourceManagerClientSnippets.g.cs | 2670 ++ ...Google.Cloud.SecureSourceManager.V1.csproj | 50 + .../PackageApiMetadata.g.cs | 93 + .../SecureSourceManager.g.cs | 8471 ++++++ .../SecureSourceManagerClient.g.cs | 3558 +++ .../SecureSourceManagerGrpc.g.cs | 1367 + .../SecureSourceManagerResourceNames.g.cs | 1802 ++ .../ServiceCollectionExtensions.g.cs | 69 + .../gapic_metadata.json | 114 + ...ivateCertificateAuthorityAsyncSnippet.g.cs | 61 + ...ateAuthorityRequestObjectAsyncSnippet.g.cs | 67 + ...tificateAuthorityRequestObjectSnippet.g.cs | 66 + ...ateAuthorityResourceNamesAsyncSnippet.g.cs | 61 + ...tificateAuthorityResourceNamesSnippet.g.cs | 60 + ...t.ActivateCertificateAuthoritySnippet.g.cs | 60 + ...erviceClient.CreateCaPoolAsyncSnippet.g.cs | 63 + ...CreateCaPoolRequestObjectAsyncSnippet.g.cs | 68 + ...ient.CreateCaPoolRequestObjectSnippet.g.cs | 67 + ...CreateCaPoolResourceNamesAsyncSnippet.g.cs | 64 + ...ient.CreateCaPoolResourceNamesSnippet.g.cs | 63 + ...rityServiceClient.CreateCaPoolSnippet.g.cs | 62 + ...eClient.CreateCertificateAsyncSnippet.g.cs | 46 + ...reateCertificateAuthorityAsyncSnippet.g.cs | 63 + ...ateAuthorityRequestObjectAsyncSnippet.g.cs | 67 + ...tificateAuthorityRequestObjectSnippet.g.cs | 66 + ...ateAuthorityResourceNamesAsyncSnippet.g.cs | 63 + ...tificateAuthorityResourceNamesSnippet.g.cs | 62 + ...ent.CreateCertificateAuthoritySnippet.g.cs | 62 + ...eCertificateRequestObjectAsyncSnippet.g.cs | 52 + ...CreateCertificateRequestObjectSnippet.g.cs | 51 + ...eCertificateResourceNamesAsyncSnippet.g.cs | 46 + ...CreateCertificateResourceNamesSnippet.g.cs | 45 + ...erviceClient.CreateCertificateSnippet.g.cs | 45 + ...CreateCertificateTemplateAsyncSnippet.g.cs | 63 + ...cateTemplateRequestObjectAsyncSnippet.g.cs | 68 + ...rtificateTemplateRequestObjectSnippet.g.cs | 67 + ...cateTemplateResourceNamesAsyncSnippet.g.cs | 64 + ...rtificateTemplateResourceNamesSnippet.g.cs | 63 + ...ient.CreateCertificateTemplateSnippet.g.cs | 62 + ...erviceClient.DeleteCaPoolAsyncSnippet.g.cs | 62 + ...DeleteCaPoolRequestObjectAsyncSnippet.g.cs | 67 + ...ient.DeleteCaPoolRequestObjectSnippet.g.cs | 66 + ...DeleteCaPoolResourceNamesAsyncSnippet.g.cs | 62 + ...ient.DeleteCaPoolResourceNamesSnippet.g.cs | 61 + ...rityServiceClient.DeleteCaPoolSnippet.g.cs | 61 + ...eleteCertificateAuthorityAsyncSnippet.g.cs | 61 + ...ateAuthorityRequestObjectAsyncSnippet.g.cs | 68 + ...tificateAuthorityRequestObjectSnippet.g.cs | 67 + ...ateAuthorityResourceNamesAsyncSnippet.g.cs | 61 + ...tificateAuthorityResourceNamesSnippet.g.cs | 60 + ...ent.DeleteCertificateAuthoritySnippet.g.cs | 60 + ...DeleteCertificateTemplateAsyncSnippet.g.cs | 62 + ...cateTemplateRequestObjectAsyncSnippet.g.cs | 66 + ...rtificateTemplateRequestObjectSnippet.g.cs | 65 + ...cateTemplateResourceNamesAsyncSnippet.g.cs | 62 + ...rtificateTemplateResourceNamesSnippet.g.cs | 61 + ...ient.DeleteCertificateTemplateSnippet.g.cs | 61 + ...sableCertificateAuthorityAsyncSnippet.g.cs | 61 + ...ateAuthorityRequestObjectAsyncSnippet.g.cs | 66 + ...tificateAuthorityRequestObjectSnippet.g.cs | 65 + ...ateAuthorityResourceNamesAsyncSnippet.g.cs | 61 + ...tificateAuthorityResourceNamesSnippet.g.cs | 60 + ...nt.DisableCertificateAuthoritySnippet.g.cs | 60 + ...nableCertificateAuthorityAsyncSnippet.g.cs | 61 + ...ateAuthorityRequestObjectAsyncSnippet.g.cs | 65 + ...tificateAuthorityRequestObjectSnippet.g.cs | 64 + ...ateAuthorityResourceNamesAsyncSnippet.g.cs | 61 + ...tificateAuthorityResourceNamesSnippet.g.cs | 60 + ...ent.EnableCertificateAuthoritySnippet.g.cs | 60 + ...erviceClient.FetchCaCertsAsyncSnippet.g.cs | 44 + ...FetchCaCertsRequestObjectAsyncSnippet.g.cs | 48 + ...ient.FetchCaCertsRequestObjectSnippet.g.cs | 47 + ...FetchCaCertsResourceNamesAsyncSnippet.g.cs | 44 + ...ient.FetchCaCertsResourceNamesSnippet.g.cs | 43 + ...rityServiceClient.FetchCaCertsSnippet.g.cs | 43 + ...chCertificateAuthorityCsrAsyncSnippet.g.cs | 44 + ...AuthorityCsrRequestObjectAsyncSnippet.g.cs | 47 + ...icateAuthorityCsrRequestObjectSnippet.g.cs | 46 + ...AuthorityCsrResourceNamesAsyncSnippet.g.cs | 44 + ...icateAuthorityCsrResourceNamesSnippet.g.cs | 43 + ...t.FetchCertificateAuthorityCsrSnippet.g.cs | 43 + ...tyServiceClient.GetCaPoolAsyncSnippet.g.cs | 44 + ...nt.GetCaPoolRequestObjectAsyncSnippet.g.cs | 47 + ...eClient.GetCaPoolRequestObjectSnippet.g.cs | 46 + ...nt.GetCaPoolResourceNamesAsyncSnippet.g.cs | 44 + ...eClient.GetCaPoolResourceNamesSnippet.g.cs | 43 + ...thorityServiceClient.GetCaPoolSnippet.g.cs | 43 + ...viceClient.GetCertificateAsyncSnippet.g.cs | 44 + ...t.GetCertificateAuthorityAsyncSnippet.g.cs | 44 + ...ateAuthorityRequestObjectAsyncSnippet.g.cs | 47 + ...tificateAuthorityRequestObjectSnippet.g.cs | 46 + ...ateAuthorityResourceNamesAsyncSnippet.g.cs | 44 + ...tificateAuthorityResourceNamesSnippet.g.cs | 43 + ...Client.GetCertificateAuthoritySnippet.g.cs | 43 + ...tCertificateRequestObjectAsyncSnippet.g.cs | 47 + ...nt.GetCertificateRequestObjectSnippet.g.cs | 46 + ...tCertificateResourceNamesAsyncSnippet.g.cs | 44 + ...nt.GetCertificateResourceNamesSnippet.g.cs | 43 + ...CertificateRevocationListAsyncSnippet.g.cs | 44 + ...vocationListRequestObjectAsyncSnippet.g.cs | 47 + ...ateRevocationListRequestObjectSnippet.g.cs | 46 + ...vocationListResourceNamesAsyncSnippet.g.cs | 44 + ...ateRevocationListResourceNamesSnippet.g.cs | 43 + ...t.GetCertificateRevocationListSnippet.g.cs | 43 + ...tyServiceClient.GetCertificateSnippet.g.cs | 43 + ...nt.GetCertificateTemplateAsyncSnippet.g.cs | 44 + ...cateTemplateRequestObjectAsyncSnippet.g.cs | 47 + ...rtificateTemplateRequestObjectSnippet.g.cs | 46 + ...cateTemplateResourceNamesAsyncSnippet.g.cs | 44 + ...rtificateTemplateResourceNamesSnippet.g.cs | 43 + ...eClient.GetCertificateTemplateSnippet.g.cs | 43 + ...ServiceClient.ListCaPoolsAsyncSnippet.g.cs | 79 + ....ListCaPoolsRequestObjectAsyncSnippet.g.cs | 85 + ...lient.ListCaPoolsRequestObjectSnippet.g.cs | 83 + ....ListCaPoolsResourceNamesAsyncSnippet.g.cs | 80 + ...lient.ListCaPoolsResourceNamesSnippet.g.cs | 78 + ...orityServiceClient.ListCaPoolsSnippet.g.cs | 77 + ...istCertificateAuthoritiesAsyncSnippet.g.cs | 79 + ...eAuthoritiesRequestObjectAsyncSnippet.g.cs | 84 + ...ficateAuthoritiesRequestObjectSnippet.g.cs | 82 + ...eAuthoritiesResourceNamesAsyncSnippet.g.cs | 79 + ...ficateAuthoritiesResourceNamesSnippet.g.cs | 77 + ...ent.ListCertificateAuthoritiesSnippet.g.cs | 77 + ...ertificateRevocationListsAsyncSnippet.g.cs | 79 + ...ocationListsRequestObjectAsyncSnippet.g.cs | 84 + ...teRevocationListsRequestObjectSnippet.g.cs | 82 + ...ocationListsResourceNamesAsyncSnippet.g.cs | 79 + ...teRevocationListsResourceNamesSnippet.g.cs | 77 + ...ListCertificateRevocationListsSnippet.g.cs | 77 + ....ListCertificateTemplatesAsyncSnippet.g.cs | 79 + ...ateTemplatesRequestObjectAsyncSnippet.g.cs | 85 + ...tificateTemplatesRequestObjectSnippet.g.cs | 83 + ...ateTemplatesResourceNamesAsyncSnippet.g.cs | 80 + ...tificateTemplatesResourceNamesSnippet.g.cs | 78 + ...lient.ListCertificateTemplatesSnippet.g.cs | 77 + ...ceClient.ListCertificatesAsyncSnippet.g.cs | 79 + ...CertificatesRequestObjectAsyncSnippet.g.cs | 84 + ....ListCertificatesRequestObjectSnippet.g.cs | 82 + ...CertificatesResourceNamesAsyncSnippet.g.cs | 79 + ....ListCertificatesResourceNamesSnippet.g.cs | 77 + ...ServiceClient.ListCertificatesSnippet.g.cs | 77 + ...eClient.RevokeCertificateAsyncSnippet.g.cs | 44 + ...eCertificateRequestObjectAsyncSnippet.g.cs | 49 + ...RevokeCertificateRequestObjectSnippet.g.cs | 48 + ...eCertificateResourceNamesAsyncSnippet.g.cs | 44 + ...RevokeCertificateResourceNamesSnippet.g.cs | 43 + ...erviceClient.RevokeCertificateSnippet.g.cs | 43 + ...eleteCertificateAuthorityAsyncSnippet.g.cs | 61 + ...ateAuthorityRequestObjectAsyncSnippet.g.cs | 65 + ...tificateAuthorityRequestObjectSnippet.g.cs | 64 + ...ateAuthorityResourceNamesAsyncSnippet.g.cs | 61 + ...tificateAuthorityResourceNamesSnippet.g.cs | 60 + ...t.UndeleteCertificateAuthoritySnippet.g.cs | 60 + ...erviceClient.UpdateCaPoolAsyncSnippet.g.cs | 63 + ...UpdateCaPoolRequestObjectAsyncSnippet.g.cs | 67 + ...ient.UpdateCaPoolRequestObjectSnippet.g.cs | 66 + ...rityServiceClient.UpdateCaPoolSnippet.g.cs | 62 + ...eClient.UpdateCertificateAsyncSnippet.g.cs | 46 + ...pdateCertificateAuthorityAsyncSnippet.g.cs | 63 + ...ateAuthorityRequestObjectAsyncSnippet.g.cs | 67 + ...tificateAuthorityRequestObjectSnippet.g.cs | 66 + ...ent.UpdateCertificateAuthoritySnippet.g.cs | 62 + ...eCertificateRequestObjectAsyncSnippet.g.cs | 50 + ...UpdateCertificateRequestObjectSnippet.g.cs | 49 + ...CertificateRevocationListAsyncSnippet.g.cs | 63 + ...vocationListRequestObjectAsyncSnippet.g.cs | 67 + ...ateRevocationListRequestObjectSnippet.g.cs | 66 + ...pdateCertificateRevocationListSnippet.g.cs | 62 + ...erviceClient.UpdateCertificateSnippet.g.cs | 45 + ...UpdateCertificateTemplateAsyncSnippet.g.cs | 63 + ...cateTemplateRequestObjectAsyncSnippet.g.cs | 67 + ...rtificateTemplateRequestObjectSnippet.g.cs | 66 + ...ient.UpdateCertificateTemplateSnippet.g.cs | 62 + ...rity.PrivateCA.V1.GeneratedSnippets.csproj | 15 + ...ta_google.cloud.security.privateca.v1.json | 8190 +++++ ...ificateAuthorityServiceClientSnippets.g.cs | 4724 +++ ...loud.Security.PrivateCA.V1.Snippets.csproj | 15 + .../CertificateAuthorityServiceClient.g.cs | 6875 +++++ .../Google.Cloud.Security.PrivateCA.V1.csproj | 50 + .../PackageApiMetadata.g.cs | 94 + .../Resources.g.cs | 14105 +++++++++ .../ResourcesResourceNames.g.cs | 1548 + .../Service.g.cs | 11386 +++++++ .../ServiceCollectionExtensions.g.cs | 69 + .../ServiceGrpc.g.cs | 2474 ++ .../ServiceResourceNames.g.cs | 301 + .../gapic_metadata.json | 192 + ...urity.PublicCA.V1.GeneratedSnippets.csproj | 15 + ....CreateExternalAccountKeyAsyncSnippet.g.cs | 45 + ...alAccountKeyRequestObjectAsyncSnippet.g.cs | 49 + ...xternalAccountKeyRequestObjectSnippet.g.cs | 48 + ...alAccountKeyResourceNamesAsyncSnippet.g.cs | 46 + ...xternalAccountKeyResourceNamesSnippet.g.cs | 45 + ...lient.CreateExternalAccountKeySnippet.g.cs | 44 + ...ata_google.cloud.security.publicca.v1.json | 317 + ...Cloud.Security.PublicCA.V1.Snippets.csproj | 15 + ...ificateAuthorityServiceClientSnippets.g.cs | 119 + .../Google.Cloud.Security.PublicCA.V1.csproj | 47 + .../PackageApiMetadata.g.cs | 37 + ...blicCertificateAuthorityServiceClient.g.cs | 474 + .../Resources.g.cs | 337 + .../ResourcesResourceNames.g.cs | 306 + .../Service.g.cs | 317 + .../ServiceCollectionExtensions.g.cs | 67 + .../ServiceGrpc.g.cs | 219 + .../ServiceResourceNames.g.cs | 33 + .../gapic_metadata.json | 24 + ....PublicCA.V1Beta1.GeneratedSnippets.csproj | 15 + ....CreateExternalAccountKeyAsyncSnippet.g.cs | 45 + ...alAccountKeyRequestObjectAsyncSnippet.g.cs | 49 + ...xternalAccountKeyRequestObjectSnippet.g.cs | 48 + ...alAccountKeyResourceNamesAsyncSnippet.g.cs | 46 + ...xternalAccountKeyResourceNamesSnippet.g.cs | 45 + ...lient.CreateExternalAccountKeySnippet.g.cs | 44 + ...oogle.cloud.security.publicca.v1beta1.json | 317 + ....Security.PublicCA.V1Beta1.Snippets.csproj | 15 + ...ificateAuthorityServiceClientSnippets.g.cs | 119 + ...gle.Cloud.Security.PublicCA.V1Beta1.csproj | 47 + .../PackageApiMetadata.g.cs | 37 + ...blicCertificateAuthorityServiceClient.g.cs | 452 + .../Resources.g.cs | 338 + .../ResourcesResourceNames.g.cs | 306 + .../Service.g.cs | 317 + .../ServiceCollectionExtensions.g.cs | 67 + .../ServiceGrpc.g.cs | 209 + .../ServiceResourceNames.g.cs | 33 + .../gapic_metadata.json | 24 + ....Settings.V1Beta1.GeneratedSnippets.csproj | 15 + ...tiveSettingsRequestObjectAsyncSnippet.g.cs | 52 + ...EffectiveSettingsRequestObjectSnippet.g.cs | 51 + ...hGetSettingsRequestObjectAsyncSnippet.g.cs | 49 + ....BatchGetSettingsRequestObjectSnippet.g.cs | 48 + ...ffectiveComponentSettingsAsyncSnippet.g.cs | 44 + ...nentSettingsRequestObjectAsyncSnippet.g.cs | 47 + ...ComponentSettingsRequestObjectSnippet.g.cs | 46 + ...nentSettingsResourceNamesAsyncSnippet.g.cs | 44 + ...ComponentSettingsResourceNamesSnippet.g.cs | 43 + ...lateEffectiveComponentSettingsSnippet.g.cs | 43 + ...alculateEffectiveSettingsAsyncSnippet.g.cs | 44 + ...tiveSettingsRequestObjectAsyncSnippet.g.cs | 47 + ...EffectiveSettingsRequestObjectSnippet.g.cs | 46 + ...tiveSettingsResourceNamesAsyncSnippet.g.cs | 44 + ...EffectiveSettingsResourceNamesSnippet.g.cs | 43 + ...ent.CalculateEffectiveSettingsSnippet.g.cs | 43 + ...ient.GetComponentSettingsAsyncSnippet.g.cs | 44 + ...nentSettingsRequestObjectAsyncSnippet.g.cs | 47 + ...ComponentSettingsRequestObjectSnippet.g.cs | 46 + ...nentSettingsResourceNamesAsyncSnippet.g.cs | 44 + ...ComponentSettingsResourceNamesSnippet.g.cs | 43 + ...iceClient.GetComponentSettingsSnippet.g.cs | 43 + ...eClient.GetServiceAccountAsyncSnippet.g.cs | 44 + ...rviceAccountRequestObjectAsyncSnippet.g.cs | 47 + ...GetServiceAccountRequestObjectSnippet.g.cs | 46 + ...rviceAccountResourceNamesAsyncSnippet.g.cs | 44 + ...GetServiceAccountResourceNamesSnippet.g.cs | 43 + ...erviceClient.GetServiceAccountSnippet.g.cs | 43 + ...ServiceClient.GetSettingsAsyncSnippet.g.cs | 44 + ....GetSettingsRequestObjectAsyncSnippet.g.cs | 47 + ...lient.GetSettingsRequestObjectSnippet.g.cs | 46 + ....GetSettingsResourceNamesAsyncSnippet.g.cs | 44 + ...lient.GetSettingsResourceNamesSnippet.g.cs | 43 + ...tingsServiceClient.GetSettingsSnippet.g.cs | 43 + ...viceClient.ListComponentsAsyncSnippet.g.cs | 79 + ...stComponentsRequestObjectAsyncSnippet.g.cs | 83 + ...nt.ListComponentsRequestObjectSnippet.g.cs | 81 + ...stComponentsResourceNamesAsyncSnippet.g.cs | 80 + ...nt.ListComponentsResourceNamesSnippet.g.cs | 78 + ...gsServiceClient.ListComponentsSnippet.g.cs | 77 + ...rviceClient.ListDetectorsAsyncSnippet.g.cs | 79 + ...istDetectorsRequestObjectAsyncSnippet.g.cs | 84 + ...ent.ListDetectorsRequestObjectSnippet.g.cs | 82 + ...istDetectorsResourceNamesAsyncSnippet.g.cs | 80 + ...ent.ListDetectorsResourceNamesSnippet.g.cs | 78 + ...ngsServiceClient.ListDetectorsSnippet.g.cs | 77 + ...nentSettingsRequestObjectAsyncSnippet.g.cs | 48 + ...ComponentSettingsRequestObjectSnippet.g.cs | 47 + ...esetSettingsRequestObjectAsyncSnippet.g.cs | 48 + ...ent.ResetSettingsRequestObjectSnippet.g.cs | 47 + ...t.UpdateComponentSettingsAsyncSnippet.g.cs | 46 + ...nentSettingsRequestObjectAsyncSnippet.g.cs | 49 + ...ComponentSettingsRequestObjectSnippet.g.cs | 48 + ...Client.UpdateComponentSettingsSnippet.g.cs | 45 + ...viceClient.UpdateSettingsAsyncSnippet.g.cs | 46 + ...dateSettingsRequestObjectAsyncSnippet.g.cs | 49 + ...nt.UpdateSettingsRequestObjectSnippet.g.cs | 48 + ...gsServiceClient.UpdateSettingsSnippet.g.cs | 45 + ...cloud.securitycenter.settings.v1beta1.json | 2873 ++ ...ityCenter.Settings.V1Beta1.Snippets.csproj | 15 + ...tyCenterSettingsServiceClientSnippets.g.cs | 1293 + .../BillingSettings.g.cs | 444 + .../ComponentSettings.g.cs | 2119 ++ .../ComponentSettingsResourceNames.g.cs | 568 + .../Detector.g.cs | 374 + ...oud.SecurityCenter.Settings.V1Beta1.csproj | 47 + .../PackageApiMetadata.g.cs | 40 + .../SecurityCenterSettingsServiceClient.g.cs | 2622 ++ .../SecuritycenterSettingsService.g.cs | 4446 +++ .../SecuritycenterSettingsServiceGrpc.g.cs | 1250 + ...itycenterSettingsServiceResourceNames.g.cs | 391 + .../ServiceCollectionExtensions.g.cs | 65 + .../Settings.g.cs | 868 + .../SettingsResourceNames.g.cs | 497 + .../SinkSettings.g.cs | 252 + .../gapic_metadata.json | 96 + ...SecurityCenter.V1.GeneratedSnippets.csproj | 15 + ...reateResourceValueConfigsAsyncSnippet.g.cs | 49 + ...ValueConfigsRequestObjectAsyncSnippet.g.cs | 52 + ...ourceValueConfigsRequestObjectSnippet.g.cs | 51 + ...ValueConfigsResourceNamesAsyncSnippet.g.cs | 50 + ...ourceValueConfigsResourceNamesSnippet.g.cs | 49 + ...atchCreateResourceValueConfigsSnippet.g.cs | 48 + ...erClient.BulkMuteFindingsAsyncSnippet.g.cs | 62 + ...MuteFindingsRequestObjectAsyncSnippet.g.cs | 68 + ....BulkMuteFindingsRequestObjectSnippet.g.cs | 67 + ...MuteFindingsResourceNamesAsyncSnippet.g.cs | 63 + ....BulkMuteFindingsResourceNamesSnippet.g.cs | 62 + ...yCenterClient.BulkMuteFindingsSnippet.g.cs | 61 + ...ient.CreateBigQueryExportAsyncSnippet.g.cs | 46 + ...gQueryExportRequestObjectAsyncSnippet.g.cs | 50 + ...ateBigQueryExportRequestObjectSnippet.g.cs | 49 + ...QueryExportResourceNames1AsyncSnippet.g.cs | 47 + ...teBigQueryExportResourceNames1Snippet.g.cs | 46 + ...QueryExportResourceNames2AsyncSnippet.g.cs | 47 + ...teBigQueryExportResourceNames2Snippet.g.cs | 46 + ...QueryExportResourceNames3AsyncSnippet.g.cs | 47 + ...teBigQueryExportResourceNames3Snippet.g.cs | 46 + ...terClient.CreateBigQueryExportSnippet.g.cs | 45 + ...reatDetectionCustomModuleAsyncSnippet.g.cs | 45 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 48 + ...ctionCustomModuleRequestObjectSnippet.g.cs | 47 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 45 + ...ctionCustomModuleResourceNamesSnippet.g.cs | 44 + ...entThreatDetectionCustomModuleSnippet.g.cs | 44 + ...enterClient.CreateFindingAsyncSnippet.g.cs | 46 + ...reateFindingRequestObjectAsyncSnippet.g.cs | 49 + ...ent.CreateFindingRequestObjectSnippet.g.cs | 48 + ...reateFindingResourceNamesAsyncSnippet.g.cs | 46 + ...ent.CreateFindingResourceNamesSnippet.g.cs | 45 + ...rityCenterClient.CreateFindingSnippet.g.cs | 45 + ...rClient.CreateMuteConfig1AsyncSnippet.g.cs | 45 + ...MuteConfig1ResourceNames1AsyncSnippet.g.cs | 46 + ...reateMuteConfig1ResourceNames1Snippet.g.cs | 45 + ...MuteConfig1ResourceNames2AsyncSnippet.g.cs | 46 + ...reateMuteConfig1ResourceNames2Snippet.g.cs | 45 + ...MuteConfig1ResourceNames3AsyncSnippet.g.cs | 46 + ...reateMuteConfig1ResourceNames3Snippet.g.cs | 45 + ...MuteConfig1ResourceNames4AsyncSnippet.g.cs | 45 + ...reateMuteConfig1ResourceNames4Snippet.g.cs | 44 + ...MuteConfig1ResourceNames5AsyncSnippet.g.cs | 45 + ...reateMuteConfig1ResourceNames5Snippet.g.cs | 44 + ...MuteConfig1ResourceNames6AsyncSnippet.g.cs | 46 + ...reateMuteConfig1ResourceNames6Snippet.g.cs | 45 + ...CenterClient.CreateMuteConfig1Snippet.g.cs | 44 + ...rClient.CreateMuteConfig2AsyncSnippet.g.cs | 46 + ...MuteConfig2ResourceNames1AsyncSnippet.g.cs | 47 + ...reateMuteConfig2ResourceNames1Snippet.g.cs | 46 + ...MuteConfig2ResourceNames2AsyncSnippet.g.cs | 47 + ...reateMuteConfig2ResourceNames2Snippet.g.cs | 46 + ...MuteConfig2ResourceNames3AsyncSnippet.g.cs | 47 + ...reateMuteConfig2ResourceNames3Snippet.g.cs | 46 + ...MuteConfig2ResourceNames4AsyncSnippet.g.cs | 46 + ...reateMuteConfig2ResourceNames4Snippet.g.cs | 45 + ...MuteConfig2ResourceNames5AsyncSnippet.g.cs | 46 + ...reateMuteConfig2ResourceNames5Snippet.g.cs | 45 + ...MuteConfig2ResourceNames6AsyncSnippet.g.cs | 47 + ...reateMuteConfig2ResourceNames6Snippet.g.cs | 46 + ...CenterClient.CreateMuteConfig2Snippet.g.cs | 45 + ...teMuteConfigRequestObjectAsyncSnippet.g.cs | 50 + ....CreateMuteConfigRequestObjectSnippet.g.cs | 49 + ...CreateNotificationConfig1AsyncSnippet.g.cs | 46 + ...tionConfig1ResourceNames1AsyncSnippet.g.cs | 47 + ...ificationConfig1ResourceNames1Snippet.g.cs | 46 + ...tionConfig1ResourceNames2AsyncSnippet.g.cs | 47 + ...ificationConfig1ResourceNames2Snippet.g.cs | 46 + ...tionConfig1ResourceNames3AsyncSnippet.g.cs | 47 + ...ificationConfig1ResourceNames3Snippet.g.cs | 46 + ...ient.CreateNotificationConfig1Snippet.g.cs | 45 + ...CreateNotificationConfig2AsyncSnippet.g.cs | 45 + ...tionConfig2ResourceNames1AsyncSnippet.g.cs | 46 + ...ificationConfig2ResourceNames1Snippet.g.cs | 45 + ...tionConfig2ResourceNames2AsyncSnippet.g.cs | 46 + ...ificationConfig2ResourceNames2Snippet.g.cs | 45 + ...tionConfig2ResourceNames3AsyncSnippet.g.cs | 46 + ...ificationConfig2ResourceNames3Snippet.g.cs | 45 + ...ient.CreateNotificationConfig2Snippet.g.cs | 44 + ...cationConfigRequestObjectAsyncSnippet.g.cs | 50 + ...otificationConfigRequestObjectSnippet.g.cs | 49 + ...althAnalyticsCustomModuleAsyncSnippet.g.cs | 45 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 48 + ...yticsCustomModuleRequestObjectSnippet.g.cs | 47 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 45 + ...yticsCustomModuleResourceNamesSnippet.g.cs | 44 + ...ityHealthAnalyticsCustomModuleSnippet.g.cs | 44 + ...CenterClient.CreateSourceAsyncSnippet.g.cs | 45 + ...CreateSourceRequestObjectAsyncSnippet.g.cs | 49 + ...ient.CreateSourceRequestObjectSnippet.g.cs | 48 + ...CreateSourceResourceNamesAsyncSnippet.g.cs | 46 + ...ient.CreateSourceResourceNamesSnippet.g.cs | 45 + ...urityCenterClient.CreateSourceSnippet.g.cs | 44 + ...ient.DeleteBigQueryExportAsyncSnippet.g.cs | 44 + ...gQueryExportRequestObjectAsyncSnippet.g.cs | 47 + ...eteBigQueryExportRequestObjectSnippet.g.cs | 46 + ...gQueryExportResourceNamesAsyncSnippet.g.cs | 44 + ...eteBigQueryExportResourceNamesSnippet.g.cs | 43 + ...terClient.DeleteBigQueryExportSnippet.g.cs | 43 + ...reatDetectionCustomModuleAsyncSnippet.g.cs | 44 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 47 + ...ctionCustomModuleRequestObjectSnippet.g.cs | 46 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 44 + ...ctionCustomModuleResourceNamesSnippet.g.cs | 43 + ...entThreatDetectionCustomModuleSnippet.g.cs | 43 + ...erClient.DeleteMuteConfigAsyncSnippet.g.cs | 44 + ...teMuteConfigRequestObjectAsyncSnippet.g.cs | 47 + ....DeleteMuteConfigRequestObjectSnippet.g.cs | 46 + ...teMuteConfigResourceNamesAsyncSnippet.g.cs | 44 + ....DeleteMuteConfigResourceNamesSnippet.g.cs | 43 + ...yCenterClient.DeleteMuteConfigSnippet.g.cs | 43 + ....DeleteNotificationConfigAsyncSnippet.g.cs | 44 + ...cationConfigRequestObjectAsyncSnippet.g.cs | 47 + ...otificationConfigRequestObjectSnippet.g.cs | 46 + ...cationConfigResourceNamesAsyncSnippet.g.cs | 44 + ...otificationConfigResourceNamesSnippet.g.cs | 43 + ...lient.DeleteNotificationConfigSnippet.g.cs | 43 + ...DeleteResourceValueConfigAsyncSnippet.g.cs | 44 + ...eValueConfigRequestObjectAsyncSnippet.g.cs | 47 + ...sourceValueConfigRequestObjectSnippet.g.cs | 46 + ...eValueConfigResourceNamesAsyncSnippet.g.cs | 44 + ...sourceValueConfigResourceNamesSnippet.g.cs | 43 + ...ient.DeleteResourceValueConfigSnippet.g.cs | 43 + ...althAnalyticsCustomModuleAsyncSnippet.g.cs | 44 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 47 + ...yticsCustomModuleRequestObjectSnippet.g.cs | 46 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 44 + ...yticsCustomModuleResourceNamesSnippet.g.cs | 43 + ...ityHealthAnalyticsCustomModuleSnippet.g.cs | 43 + ...rClient.GetBigQueryExportAsyncSnippet.g.cs | 44 + ...gQueryExportRequestObjectAsyncSnippet.g.cs | 47 + ...GetBigQueryExportRequestObjectSnippet.g.cs | 46 + ...gQueryExportResourceNamesAsyncSnippet.g.cs | 44 + ...GetBigQueryExportResourceNamesSnippet.g.cs | 43 + ...CenterClient.GetBigQueryExportSnippet.g.cs | 43 + ...reatDetectionCustomModuleAsyncSnippet.g.cs | 44 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 47 + ...ctionCustomModuleRequestObjectSnippet.g.cs | 46 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 44 + ...ctionCustomModuleResourceNamesSnippet.g.cs | 43 + ...entThreatDetectionCustomModuleSnippet.g.cs | 43 + ...althAnalyticsCustomModuleAsyncSnippet.g.cs | 44 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 47 + ...yticsCustomModuleRequestObjectSnippet.g.cs | 46 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 44 + ...yticsCustomModuleResourceNamesSnippet.g.cs | 43 + ...ityHealthAnalyticsCustomModuleSnippet.g.cs | 43 + ...reatDetectionCustomModuleAsyncSnippet.g.cs | 44 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 47 + ...ctionCustomModuleRequestObjectSnippet.g.cs | 46 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 44 + ...ctionCustomModuleResourceNamesSnippet.g.cs | 43 + ...entThreatDetectionCustomModuleSnippet.g.cs | 43 + ...CenterClient.GetIamPolicyAsyncSnippet.g.cs | 45 + ...GetIamPolicyRequestObjectAsyncSnippet.g.cs | 50 + ...ient.GetIamPolicyRequestObjectSnippet.g.cs | 49 + ...GetIamPolicyResourceNamesAsyncSnippet.g.cs | 46 + ...ient.GetIamPolicyResourceNamesSnippet.g.cs | 45 + ...urityCenterClient.GetIamPolicySnippet.g.cs | 44 + ...enterClient.GetMuteConfigAsyncSnippet.g.cs | 44 + ...etMuteConfigRequestObjectAsyncSnippet.g.cs | 47 + ...ent.GetMuteConfigRequestObjectSnippet.g.cs | 46 + ...etMuteConfigResourceNamesAsyncSnippet.g.cs | 44 + ...ent.GetMuteConfigResourceNamesSnippet.g.cs | 43 + ...rityCenterClient.GetMuteConfigSnippet.g.cs | 43 + ...ent.GetNotificationConfigAsyncSnippet.g.cs | 44 + ...cationConfigRequestObjectAsyncSnippet.g.cs | 47 + ...otificationConfigRequestObjectSnippet.g.cs | 46 + ...cationConfigResourceNamesAsyncSnippet.g.cs | 44 + ...otificationConfigResourceNamesSnippet.g.cs | 43 + ...erClient.GetNotificationConfigSnippet.g.cs | 43 + ...t.GetOrganizationSettingsAsyncSnippet.g.cs | 44 + ...tionSettingsRequestObjectAsyncSnippet.g.cs | 47 + ...anizationSettingsRequestObjectSnippet.g.cs | 46 + ...tionSettingsResourceNamesAsyncSnippet.g.cs | 44 + ...anizationSettingsResourceNamesSnippet.g.cs | 43 + ...Client.GetOrganizationSettingsSnippet.g.cs | 43 + ...nt.GetResourceValueConfigAsyncSnippet.g.cs | 44 + ...eValueConfigRequestObjectAsyncSnippet.g.cs | 47 + ...sourceValueConfigRequestObjectSnippet.g.cs | 46 + ...eValueConfigResourceNamesAsyncSnippet.g.cs | 44 + ...sourceValueConfigResourceNamesSnippet.g.cs | 43 + ...rClient.GetResourceValueConfigSnippet.g.cs | 43 + ...althAnalyticsCustomModuleAsyncSnippet.g.cs | 44 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 47 + ...yticsCustomModuleRequestObjectSnippet.g.cs | 46 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 44 + ...yticsCustomModuleResourceNamesSnippet.g.cs | 43 + ...ityHealthAnalyticsCustomModuleSnippet.g.cs | 43 + ...enterClient.GetSimulationAsyncSnippet.g.cs | 44 + ...etSimulationRequestObjectAsyncSnippet.g.cs | 47 + ...ent.GetSimulationRequestObjectSnippet.g.cs | 46 + ...etSimulationResourceNamesAsyncSnippet.g.cs | 44 + ...ent.GetSimulationResourceNamesSnippet.g.cs | 43 + ...rityCenterClient.GetSimulationSnippet.g.cs | 43 + ...ityCenterClient.GetSourceAsyncSnippet.g.cs | 44 + ...nt.GetSourceRequestObjectAsyncSnippet.g.cs | 47 + ...rClient.GetSourceRequestObjectSnippet.g.cs | 46 + ...nt.GetSourceResourceNamesAsyncSnippet.g.cs | 44 + ...rClient.GetSourceResourceNamesSnippet.g.cs | 43 + ...SecurityCenterClient.GetSourceSnippet.g.cs | 43 + ...rClient.GetValuedResourceAsyncSnippet.g.cs | 44 + ...luedResourceRequestObjectAsyncSnippet.g.cs | 47 + ...GetValuedResourceRequestObjectSnippet.g.cs | 46 + ...luedResourceResourceNamesAsyncSnippet.g.cs | 44 + ...GetValuedResourceResourceNamesSnippet.g.cs | 43 + ...CenterClient.GetValuedResourceSnippet.g.cs | 43 + ....GroupAssetsRequestObjectAsyncSnippet.g.cs | 90 + ...lient.GroupAssetsRequestObjectSnippet.g.cs | 88 + ...enterClient.GroupFindingsAsyncSnippet.g.cs | 80 + ...roupFindingsRequestObjectAsyncSnippet.g.cs | 87 + ...ent.GroupFindingsRequestObjectSnippet.g.cs | 85 + ...roupFindingsResourceNamesAsyncSnippet.g.cs | 80 + ...ent.GroupFindingsResourceNamesSnippet.g.cs | 78 + ...rityCenterClient.GroupFindingsSnippet.g.cs | 78 + ...t.ListAssetsRequestObjectAsyncSnippet.g.cs | 91 + ...Client.ListAssetsRequestObjectSnippet.g.cs | 89 + ...terClient.ListAttackPathsAsyncSnippet.g.cs | 79 + ...tAttackPathsRequestObjectAsyncSnippet.g.cs | 83 + ...t.ListAttackPathsRequestObjectSnippet.g.cs | 81 + ...tAttackPathsResourceNamesAsyncSnippet.g.cs | 79 + ...t.ListAttackPathsResourceNamesSnippet.g.cs | 77 + ...tyCenterClient.ListAttackPathsSnippet.g.cs | 77 + ...lient.ListBigQueryExportsAsyncSnippet.g.cs | 79 + ...QueryExportsRequestObjectAsyncSnippet.g.cs | 83 + ...stBigQueryExportsRequestObjectSnippet.g.cs | 81 + ...ueryExportsResourceNames1AsyncSnippet.g.cs | 80 + ...tBigQueryExportsResourceNames1Snippet.g.cs | 78 + ...ueryExportsResourceNames2AsyncSnippet.g.cs | 80 + ...tBigQueryExportsResourceNames2Snippet.g.cs | 78 + ...ueryExportsResourceNames3AsyncSnippet.g.cs | 80 + ...tBigQueryExportsResourceNames3Snippet.g.cs | 78 + ...nterClient.ListBigQueryExportsSnippet.g.cs | 77 + ...eatDetectionCustomModulesAsyncSnippet.g.cs | 79 + ...ustomModulesRequestObjectAsyncSnippet.g.cs | 82 + ...tionCustomModulesRequestObjectSnippet.g.cs | 80 + ...ustomModulesResourceNamesAsyncSnippet.g.cs | 79 + ...tionCustomModulesResourceNamesSnippet.g.cs | 77 + ...ntThreatDetectionCustomModulesSnippet.g.cs | 77 + ...lthAnalyticsCustomModulesAsyncSnippet.g.cs | 79 + ...ustomModulesRequestObjectAsyncSnippet.g.cs | 82 + ...ticsCustomModulesRequestObjectSnippet.g.cs | 80 + ...ustomModulesResourceNamesAsyncSnippet.g.cs | 79 + ...ticsCustomModulesResourceNamesSnippet.g.cs | 77 + ...tyHealthAnalyticsCustomModulesSnippet.g.cs | 77 + ...eatDetectionCustomModulesAsyncSnippet.g.cs | 79 + ...ustomModulesRequestObjectAsyncSnippet.g.cs | 82 + ...tionCustomModulesRequestObjectSnippet.g.cs | 80 + ...ustomModulesResourceNamesAsyncSnippet.g.cs | 79 + ...tionCustomModulesResourceNamesSnippet.g.cs | 77 + ...ntThreatDetectionCustomModulesSnippet.g.cs | 77 + ...lthAnalyticsCustomModulesAsyncSnippet.g.cs | 79 + ...ustomModulesRequestObjectAsyncSnippet.g.cs | 82 + ...ticsCustomModulesRequestObjectSnippet.g.cs | 80 + ...ustomModulesResourceNamesAsyncSnippet.g.cs | 79 + ...ticsCustomModulesResourceNamesSnippet.g.cs | 77 + ...tyHealthAnalyticsCustomModulesSnippet.g.cs | 77 + ...eatDetectionCustomModulesAsyncSnippet.g.cs | 79 + ...ustomModulesRequestObjectAsyncSnippet.g.cs | 82 + ...tionCustomModulesRequestObjectSnippet.g.cs | 80 + ...ustomModulesResourceNamesAsyncSnippet.g.cs | 79 + ...tionCustomModulesResourceNamesSnippet.g.cs | 77 + ...ntThreatDetectionCustomModulesSnippet.g.cs | 77 + ...ListFindingsRequestObjectAsyncSnippet.g.cs | 88 + ...ient.ListFindingsRequestObjectSnippet.g.cs | 86 + ...terClient.ListMuteConfigsAsyncSnippet.g.cs | 79 + ...tMuteConfigsRequestObjectAsyncSnippet.g.cs | 83 + ...t.ListMuteConfigsRequestObjectSnippet.g.cs | 81 + ...MuteConfigsResourceNames1AsyncSnippet.g.cs | 80 + ....ListMuteConfigsResourceNames1Snippet.g.cs | 78 + ...MuteConfigsResourceNames2AsyncSnippet.g.cs | 80 + ....ListMuteConfigsResourceNames2Snippet.g.cs | 78 + ...MuteConfigsResourceNames3AsyncSnippet.g.cs | 80 + ....ListMuteConfigsResourceNames3Snippet.g.cs | 78 + ...MuteConfigsResourceNames4AsyncSnippet.g.cs | 79 + ....ListMuteConfigsResourceNames4Snippet.g.cs | 77 + ...MuteConfigsResourceNames5AsyncSnippet.g.cs | 79 + ....ListMuteConfigsResourceNames5Snippet.g.cs | 77 + ...MuteConfigsResourceNames6AsyncSnippet.g.cs | 80 + ....ListMuteConfigsResourceNames6Snippet.g.cs | 78 + ...tyCenterClient.ListMuteConfigsSnippet.g.cs | 77 + ...t.ListNotificationConfigsAsyncSnippet.g.cs | 79 + ...ationConfigsRequestObjectAsyncSnippet.g.cs | 83 + ...tificationConfigsRequestObjectSnippet.g.cs | 81 + ...tionConfigsResourceNames1AsyncSnippet.g.cs | 80 + ...ificationConfigsResourceNames1Snippet.g.cs | 78 + ...tionConfigsResourceNames2AsyncSnippet.g.cs | 80 + ...ificationConfigsResourceNames2Snippet.g.cs | 78 + ...tionConfigsResourceNames3AsyncSnippet.g.cs | 80 + ...ificationConfigsResourceNames3Snippet.g.cs | 78 + ...Client.ListNotificationConfigsSnippet.g.cs | 77 + ....ListResourceValueConfigsAsyncSnippet.g.cs | 79 + ...ValueConfigsRequestObjectAsyncSnippet.g.cs | 83 + ...ourceValueConfigsRequestObjectSnippet.g.cs | 81 + ...ValueConfigsResourceNamesAsyncSnippet.g.cs | 80 + ...ourceValueConfigsResourceNamesSnippet.g.cs | 78 + ...lient.ListResourceValueConfigsSnippet.g.cs | 77 + ...lthAnalyticsCustomModulesAsyncSnippet.g.cs | 79 + ...ustomModulesRequestObjectAsyncSnippet.g.cs | 82 + ...ticsCustomModulesRequestObjectSnippet.g.cs | 80 + ...ustomModulesResourceNamesAsyncSnippet.g.cs | 79 + ...ticsCustomModulesResourceNamesSnippet.g.cs | 77 + ...tyHealthAnalyticsCustomModulesSnippet.g.cs | 77 + ...yCenterClient.ListSourcesAsyncSnippet.g.cs | 79 + ....ListSourcesRequestObjectAsyncSnippet.g.cs | 83 + ...lient.ListSourcesRequestObjectSnippet.g.cs | 81 + ...ListSourcesResourceNames1AsyncSnippet.g.cs | 80 + ...ient.ListSourcesResourceNames1Snippet.g.cs | 78 + ...ListSourcesResourceNames2AsyncSnippet.g.cs | 80 + ...ient.ListSourcesResourceNames2Snippet.g.cs | 78 + ...ListSourcesResourceNames3AsyncSnippet.g.cs | 80 + ...ient.ListSourcesResourceNames3Snippet.g.cs | 78 + ...curityCenterClient.ListSourcesSnippet.g.cs | 77 + ...lient.ListValuedResourcesAsyncSnippet.g.cs | 79 + ...uedResourcesRequestObjectAsyncSnippet.g.cs | 84 + ...stValuedResourcesRequestObjectSnippet.g.cs | 82 + ...edResourcesResourceNames1AsyncSnippet.g.cs | 79 + ...tValuedResourcesResourceNames1Snippet.g.cs | 77 + ...edResourcesResourceNames2AsyncSnippet.g.cs | 79 + ...tValuedResourcesResourceNames2Snippet.g.cs | 77 + ...nterClient.ListValuedResourcesSnippet.g.cs | 77 + ...rClient.RunAssetDiscoveryAsyncSnippet.g.cs | 66 + ...setDiscoveryRequestObjectAsyncSnippet.g.cs | 70 + ...RunAssetDiscoveryRequestObjectSnippet.g.cs | 69 + ...setDiscoveryResourceNamesAsyncSnippet.g.cs | 67 + ...RunAssetDiscoveryResourceNamesSnippet.g.cs | 66 + ...CenterClient.RunAssetDiscoverySnippet.g.cs | 65 + ...terClient.SetFindingStateAsyncSnippet.g.cs | 47 + ...FindingStateRequestObjectAsyncSnippet.g.cs | 50 + ...t.SetFindingStateRequestObjectSnippet.g.cs | 49 + ...FindingStateResourceNamesAsyncSnippet.g.cs | 47 + ...t.SetFindingStateResourceNamesSnippet.g.cs | 46 + ...tyCenterClient.SetFindingStateSnippet.g.cs | 46 + ...CenterClient.SetIamPolicyAsyncSnippet.g.cs | 46 + ...SetIamPolicyRequestObjectAsyncSnippet.g.cs | 52 + ...ient.SetIamPolicyRequestObjectSnippet.g.cs | 51 + ...SetIamPolicyResourceNamesAsyncSnippet.g.cs | 47 + ...ient.SetIamPolicyResourceNamesSnippet.g.cs | 46 + ...urityCenterClient.SetIamPolicySnippet.g.cs | 45 + ...urityCenterClient.SetMuteAsyncSnippet.g.cs | 45 + ...ient.SetMuteRequestObjectAsyncSnippet.g.cs | 48 + ...terClient.SetMuteRequestObjectSnippet.g.cs | 47 + ...ient.SetMuteResourceNamesAsyncSnippet.g.cs | 45 + ...terClient.SetMuteResourceNamesSnippet.g.cs | 44 + .../SecurityCenterClient.SetMuteSnippet.g.cs | 44 + ...althAnalyticsCustomModuleAsyncSnippet.g.cs | 46 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 49 + ...yticsCustomModuleRequestObjectSnippet.g.cs | 48 + ...ityHealthAnalyticsCustomModuleSnippet.g.cs | 45 + ...Client.TestIamPermissionsAsyncSnippet.g.cs | 47 + ...mPermissionsRequestObjectAsyncSnippet.g.cs | 50 + ...estIamPermissionsRequestObjectSnippet.g.cs | 49 + ...mPermissionsResourceNamesAsyncSnippet.g.cs | 48 + ...estIamPermissionsResourceNamesSnippet.g.cs | 47 + ...enterClient.TestIamPermissionsSnippet.g.cs | 46 + ...ient.UpdateBigQueryExportAsyncSnippet.g.cs | 46 + ...gQueryExportRequestObjectAsyncSnippet.g.cs | 49 + ...ateBigQueryExportRequestObjectSnippet.g.cs | 48 + ...terClient.UpdateBigQueryExportSnippet.g.cs | 45 + ...reatDetectionCustomModuleAsyncSnippet.g.cs | 46 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 49 + ...ctionCustomModuleRequestObjectSnippet.g.cs | 48 + ...entThreatDetectionCustomModuleSnippet.g.cs | 45 + ...ient.UpdateExternalSystemAsyncSnippet.g.cs | 46 + ...ternalSystemRequestObjectAsyncSnippet.g.cs | 49 + ...ateExternalSystemRequestObjectSnippet.g.cs | 48 + ...terClient.UpdateExternalSystemSnippet.g.cs | 45 + ...enterClient.UpdateFindingAsyncSnippet.g.cs | 44 + ...pdateFindingRequestObjectAsyncSnippet.g.cs | 49 + ...ent.UpdateFindingRequestObjectSnippet.g.cs | 48 + ...rityCenterClient.UpdateFindingSnippet.g.cs | 43 + ...erClient.UpdateMuteConfigAsyncSnippet.g.cs | 46 + ...teMuteConfigRequestObjectAsyncSnippet.g.cs | 49 + ....UpdateMuteConfigRequestObjectSnippet.g.cs | 48 + ...yCenterClient.UpdateMuteConfigSnippet.g.cs | 45 + ...UpdateNotificationConfig1AsyncSnippet.g.cs | 44 + ...ient.UpdateNotificationConfig1Snippet.g.cs | 43 + ...UpdateNotificationConfig2AsyncSnippet.g.cs | 46 + ...ient.UpdateNotificationConfig2Snippet.g.cs | 45 + ...cationConfigRequestObjectAsyncSnippet.g.cs | 49 + ...otificationConfigRequestObjectSnippet.g.cs | 48 + ...pdateOrganizationSettingsAsyncSnippet.g.cs | 44 + ...tionSettingsRequestObjectAsyncSnippet.g.cs | 49 + ...anizationSettingsRequestObjectSnippet.g.cs | 48 + ...ent.UpdateOrganizationSettingsSnippet.g.cs | 43 + ...UpdateResourceValueConfigAsyncSnippet.g.cs | 46 + ...eValueConfigRequestObjectAsyncSnippet.g.cs | 49 + ...sourceValueConfigRequestObjectSnippet.g.cs | 48 + ...ient.UpdateResourceValueConfigSnippet.g.cs | 45 + ...althAnalyticsCustomModuleAsyncSnippet.g.cs | 46 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 49 + ...yticsCustomModuleRequestObjectSnippet.g.cs | 48 + ...ityHealthAnalyticsCustomModuleSnippet.g.cs | 45 + ...lient.UpdateSecurityMarksAsyncSnippet.g.cs | 44 + ...ecurityMarksRequestObjectAsyncSnippet.g.cs | 50 + ...dateSecurityMarksRequestObjectSnippet.g.cs | 49 + ...nterClient.UpdateSecurityMarksSnippet.g.cs | 43 + ...CenterClient.UpdateSourceAsyncSnippet.g.cs | 44 + ...UpdateSourceRequestObjectAsyncSnippet.g.cs | 49 + ...ient.UpdateSourceRequestObjectSnippet.g.cs | 48 + ...urityCenterClient.UpdateSourceSnippet.g.cs | 43 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 49 + ...ctionCustomModuleRequestObjectSnippet.g.cs | 48 + ...tadata_google.cloud.securitycenter.v1.json | 20544 +++++++++++++ ...le.Cloud.SecurityCenter.V1.Snippets.csproj | 15 + .../SecurityCenterClientSnippets.g.cs | 9962 ++++++ .../Access.g.cs | 1122 + .../Application.g.cs | 288 + .../Google.Cloud.SecurityCenter.V1/Asset.g.cs | 1320 + .../AssetResourceNames.g.cs | 349 + .../AttackExposure.g.cs | 537 + .../AttackPath.g.cs | 1613 + .../AttackPathResourceNames.g.cs | 324 + .../BackupDisasterRecovery.g.cs | 616 + .../BigqueryExport.g.cs | 592 + .../BigqueryExportResourceNames.g.cs | 359 + .../CloudArmor.g.cs | 1594 + .../CloudDlpDataProfile.g.cs | 323 + .../CloudDlpDataProfileResourceNames.g.cs | 325 + .../CloudDlpInspection.g.cs | 378 + .../CloudDlpInspectionResourceNames.g.cs | 309 + .../Compliance.g.cs | 317 + .../Connection.g.cs | 450 + .../ContactDetails.g.cs | 433 + .../Container.g.cs | 410 + .../Database.g.cs | 453 + ...ctiveEventThreatDetectionCustomModule.g.cs | 514 + ...eatDetectionCustomModuleResourceNames.g.cs | 445 + ...veSecurityHealthAnalyticsCustomModule.g.cs | 438 + ...lthAnalyticsCustomModuleResourceNames.g.cs | 487 + .../EventThreatDetectionCustomModule.g.cs | 649 + ...eatDetectionCustomModuleResourceNames.g.cs | 430 + ...DetectionCustomModuleValidationErrors.g.cs | 814 + .../Exfiltration.g.cs | 545 + .../ExternalSystem.g.cs | 1123 + .../ExternalSystemResourceNames.g.cs | 444 + .../Google.Cloud.SecurityCenter.V1/File.g.cs | 750 + .../Finding.g.cs | 3375 +++ .../FindingResourceNames.g.cs | 381 + .../Folder.g.cs | 288 + .../Google.Cloud.SecurityCenter.V1.csproj | 49 + .../GroupMembership.g.cs | 312 + .../IamBinding.g.cs | 357 + .../Indicator.g.cs | 1383 + .../KernelRootkit.g.cs | 580 + .../Kubernetes.g.cs | 2903 ++ .../Google.Cloud.SecurityCenter.V1/Label.g.cs | 288 + .../LoadBalancer.g.cs | 246 + .../LogEntry.g.cs | 625 + .../MitreAttack.g.cs | 783 + .../MuteConfig.g.cs | 684 + .../MuteConfigResourceNames.g.cs | 521 + .../Notebook.g.cs | 379 + .../NotificationConfig.g.cs | 699 + .../NotificationConfigResourceNames.g.cs | 617 + .../NotificationMessage.g.cs | 384 + .../OrgPolicy.g.cs | 252 + .../OrgPolicyResourceNames.g.cs | 354 + .../OrganizationSettings.g.cs | 653 + .../OrganizationSettingsResourceNames.g.cs | 265 + .../PackageApiMetadata.g.cs | 114 + .../Process.g.cs | 842 + .../Resource.g.cs | 3448 +++ .../ResourceValueConfig.g.cs | 974 + .../ResourceValueConfigResourceNames.g.cs | 293 + .../RunAssetDiscoveryResponse.g.cs | 331 + .../SecurityCenterClient.g.cs | 14450 +++++++++ .../SecurityHealthAnalyticsCustomConfig.g.cs | 1160 + .../SecurityHealthAnalyticsCustomModule.g.cs | 584 + ...lthAnalyticsCustomModuleResourceNames.g.cs | 782 + .../SecurityMarks.g.cs | 348 + .../SecurityMarksResourceNames.g.cs | 530 + .../SecurityPosture.g.cs | 818 + .../SecuritycenterService.g.cs | 25180 ++++++++++++++++ .../SecuritycenterServiceGrpc.g.cs | 5047 ++++ .../SecuritycenterServiceResourceNames.g.cs | 2188 ++ .../ServiceCollectionExtensions.g.cs | 63 + .../Simulation.g.cs | 378 + .../SimulationResourceNames.g.cs | 269 + .../Source.g.cs | 392 + .../SourceResourceNames.g.cs | 350 + .../ToxicCombination.g.cs | 283 + .../ValuedResource.g.cs | 725 + .../ValuedResourceResourceNames.g.cs | 299 + .../Vulnerability.g.cs | 2593 ++ .../gapic_metadata.json | 396 + ...yCenter.V1P1Beta1.GeneratedSnippets.csproj | 15 + ...nterClient.CreateFinding1AsyncSnippet.g.cs | 46 + ...eateFinding1ResourceNamesAsyncSnippet.g.cs | 46 + ...nt.CreateFinding1ResourceNamesSnippet.g.cs | 45 + ...ityCenterClient.CreateFinding1Snippet.g.cs | 45 + ...nterClient.CreateFinding2AsyncSnippet.g.cs | 46 + ...eateFinding2ResourceNamesAsyncSnippet.g.cs | 46 + ...nt.CreateFinding2ResourceNamesSnippet.g.cs | 45 + ...ityCenterClient.CreateFinding2Snippet.g.cs | 45 + ...reateFindingRequestObjectAsyncSnippet.g.cs | 49 + ...ent.CreateFindingRequestObjectSnippet.g.cs | 48 + ...CreateNotificationConfig1AsyncSnippet.g.cs | 46 + ...ationConfig1ResourceNamesAsyncSnippet.g.cs | 47 + ...tificationConfig1ResourceNamesSnippet.g.cs | 46 + ...ient.CreateNotificationConfig1Snippet.g.cs | 45 + ...CreateNotificationConfig2AsyncSnippet.g.cs | 45 + ...ationConfig2ResourceNamesAsyncSnippet.g.cs | 46 + ...tificationConfig2ResourceNamesSnippet.g.cs | 45 + ...ient.CreateNotificationConfig2Snippet.g.cs | 44 + ...cationConfigRequestObjectAsyncSnippet.g.cs | 50 + ...otificationConfigRequestObjectSnippet.g.cs | 49 + ...CenterClient.CreateSourceAsyncSnippet.g.cs | 45 + ...CreateSourceRequestObjectAsyncSnippet.g.cs | 49 + ...ient.CreateSourceRequestObjectSnippet.g.cs | 48 + ...CreateSourceResourceNamesAsyncSnippet.g.cs | 46 + ...ient.CreateSourceResourceNamesSnippet.g.cs | 45 + ...urityCenterClient.CreateSourceSnippet.g.cs | 44 + ....DeleteNotificationConfigAsyncSnippet.g.cs | 44 + ...cationConfigRequestObjectAsyncSnippet.g.cs | 47 + ...otificationConfigRequestObjectSnippet.g.cs | 46 + ...cationConfigResourceNamesAsyncSnippet.g.cs | 44 + ...otificationConfigResourceNamesSnippet.g.cs | 43 + ...lient.DeleteNotificationConfigSnippet.g.cs | 43 + ...CenterClient.GetIamPolicyAsyncSnippet.g.cs | 45 + ...GetIamPolicyRequestObjectAsyncSnippet.g.cs | 50 + ...ient.GetIamPolicyRequestObjectSnippet.g.cs | 49 + ...GetIamPolicyResourceNamesAsyncSnippet.g.cs | 46 + ...ient.GetIamPolicyResourceNamesSnippet.g.cs | 45 + ...urityCenterClient.GetIamPolicySnippet.g.cs | 44 + ...ent.GetNotificationConfigAsyncSnippet.g.cs | 44 + ...cationConfigRequestObjectAsyncSnippet.g.cs | 47 + ...otificationConfigRequestObjectSnippet.g.cs | 46 + ...cationConfigResourceNamesAsyncSnippet.g.cs | 44 + ...otificationConfigResourceNamesSnippet.g.cs | 43 + ...erClient.GetNotificationConfigSnippet.g.cs | 43 + ...t.GetOrganizationSettingsAsyncSnippet.g.cs | 44 + ...tionSettingsRequestObjectAsyncSnippet.g.cs | 47 + ...anizationSettingsRequestObjectSnippet.g.cs | 46 + ...tionSettingsResourceNamesAsyncSnippet.g.cs | 44 + ...anizationSettingsResourceNamesSnippet.g.cs | 43 + ...Client.GetOrganizationSettingsSnippet.g.cs | 43 + ...ityCenterClient.GetSourceAsyncSnippet.g.cs | 44 + ...nt.GetSourceRequestObjectAsyncSnippet.g.cs | 47 + ...rClient.GetSourceRequestObjectSnippet.g.cs | 46 + ...nt.GetSourceResourceNamesAsyncSnippet.g.cs | 44 + ...rClient.GetSourceResourceNamesSnippet.g.cs | 43 + ...SecurityCenterClient.GetSourceSnippet.g.cs | 43 + ....GroupAssetsRequestObjectAsyncSnippet.g.cs | 88 + ...lient.GroupAssetsRequestObjectSnippet.g.cs | 86 + ...enterClient.GroupFindingsAsyncSnippet.g.cs | 80 + ...roupFindingsRequestObjectAsyncSnippet.g.cs | 87 + ...ent.GroupFindingsRequestObjectSnippet.g.cs | 85 + ...roupFindingsResourceNamesAsyncSnippet.g.cs | 80 + ...ent.GroupFindingsResourceNamesSnippet.g.cs | 78 + ...rityCenterClient.GroupFindingsSnippet.g.cs | 78 + ...tyCenterClient.ListAssetsAsyncSnippet.g.cs | 79 + ...t.ListAssetsRequestObjectAsyncSnippet.g.cs | 89 + ...Client.ListAssetsRequestObjectSnippet.g.cs | 87 + ....ListAssetsResourceNames1AsyncSnippet.g.cs | 80 + ...lient.ListAssetsResourceNames1Snippet.g.cs | 78 + ....ListAssetsResourceNames2AsyncSnippet.g.cs | 80 + ...lient.ListAssetsResourceNames2Snippet.g.cs | 78 + ....ListAssetsResourceNames3AsyncSnippet.g.cs | 80 + ...lient.ListAssetsResourceNames3Snippet.g.cs | 78 + ...ecurityCenterClient.ListAssetsSnippet.g.cs | 77 + ...CenterClient.ListFindingsAsyncSnippet.g.cs | 79 + ...ListFindingsRequestObjectAsyncSnippet.g.cs | 88 + ...ient.ListFindingsRequestObjectSnippet.g.cs | 86 + ...ListFindingsResourceNamesAsyncSnippet.g.cs | 79 + ...ient.ListFindingsResourceNamesSnippet.g.cs | 77 + ...urityCenterClient.ListFindingsSnippet.g.cs | 77 + ...t.ListNotificationConfigsAsyncSnippet.g.cs | 79 + ...ationConfigsRequestObjectAsyncSnippet.g.cs | 83 + ...tificationConfigsRequestObjectSnippet.g.cs | 81 + ...ationConfigsResourceNamesAsyncSnippet.g.cs | 80 + ...tificationConfigsResourceNamesSnippet.g.cs | 78 + ...Client.ListNotificationConfigsSnippet.g.cs | 77 + ...yCenterClient.ListSourcesAsyncSnippet.g.cs | 79 + ....ListSourcesRequestObjectAsyncSnippet.g.cs | 83 + ...lient.ListSourcesRequestObjectSnippet.g.cs | 81 + ...ListSourcesResourceNames1AsyncSnippet.g.cs | 80 + ...ient.ListSourcesResourceNames1Snippet.g.cs | 78 + ...ListSourcesResourceNames2AsyncSnippet.g.cs | 80 + ...ient.ListSourcesResourceNames2Snippet.g.cs | 78 + ...ListSourcesResourceNames3AsyncSnippet.g.cs | 80 + ...ient.ListSourcesResourceNames3Snippet.g.cs | 78 + ...curityCenterClient.ListSourcesSnippet.g.cs | 77 + ...rClient.RunAssetDiscoveryAsyncSnippet.g.cs | 62 + ...setDiscoveryRequestObjectAsyncSnippet.g.cs | 66 + ...RunAssetDiscoveryRequestObjectSnippet.g.cs | 65 + ...setDiscoveryResourceNamesAsyncSnippet.g.cs | 63 + ...RunAssetDiscoveryResourceNamesSnippet.g.cs | 62 + ...CenterClient.RunAssetDiscoverySnippet.g.cs | 61 + ...terClient.SetFindingStateAsyncSnippet.g.cs | 47 + ...FindingStateRequestObjectAsyncSnippet.g.cs | 50 + ...t.SetFindingStateRequestObjectSnippet.g.cs | 49 + ...FindingStateResourceNamesAsyncSnippet.g.cs | 47 + ...t.SetFindingStateResourceNamesSnippet.g.cs | 46 + ...tyCenterClient.SetFindingStateSnippet.g.cs | 46 + ...CenterClient.SetIamPolicyAsyncSnippet.g.cs | 46 + ...SetIamPolicyRequestObjectAsyncSnippet.g.cs | 52 + ...ient.SetIamPolicyRequestObjectSnippet.g.cs | 51 + ...SetIamPolicyResourceNamesAsyncSnippet.g.cs | 47 + ...ient.SetIamPolicyResourceNamesSnippet.g.cs | 46 + ...urityCenterClient.SetIamPolicySnippet.g.cs | 45 + ...Client.TestIamPermissionsAsyncSnippet.g.cs | 47 + ...mPermissionsRequestObjectAsyncSnippet.g.cs | 50 + ...estIamPermissionsRequestObjectSnippet.g.cs | 49 + ...mPermissionsResourceNamesAsyncSnippet.g.cs | 48 + ...estIamPermissionsResourceNamesSnippet.g.cs | 47 + ...enterClient.TestIamPermissionsSnippet.g.cs | 46 + ...nterClient.UpdateFinding1AsyncSnippet.g.cs | 44 + ...ityCenterClient.UpdateFinding1Snippet.g.cs | 43 + ...nterClient.UpdateFinding2AsyncSnippet.g.cs | 46 + ...ityCenterClient.UpdateFinding2Snippet.g.cs | 45 + ...pdateFindingRequestObjectAsyncSnippet.g.cs | 49 + ...ent.UpdateFindingRequestObjectSnippet.g.cs | 48 + ...UpdateNotificationConfig1AsyncSnippet.g.cs | 44 + ...ient.UpdateNotificationConfig1Snippet.g.cs | 43 + ...UpdateNotificationConfig2AsyncSnippet.g.cs | 46 + ...ient.UpdateNotificationConfig2Snippet.g.cs | 45 + ...cationConfigRequestObjectAsyncSnippet.g.cs | 49 + ...otificationConfigRequestObjectSnippet.g.cs | 48 + ...pdateOrganizationSettingsAsyncSnippet.g.cs | 44 + ...tionSettingsRequestObjectAsyncSnippet.g.cs | 49 + ...anizationSettingsRequestObjectSnippet.g.cs | 48 + ...ent.UpdateOrganizationSettingsSnippet.g.cs | 43 + ...ient.UpdateSecurityMarks1AsyncSnippet.g.cs | 44 + ...terClient.UpdateSecurityMarks1Snippet.g.cs | 43 + ...ient.UpdateSecurityMarks2AsyncSnippet.g.cs | 46 + ...terClient.UpdateSecurityMarks2Snippet.g.cs | 45 + ...ecurityMarksRequestObjectAsyncSnippet.g.cs | 50 + ...dateSecurityMarksRequestObjectSnippet.g.cs | 49 + ...enterClient.UpdateSource1AsyncSnippet.g.cs | 44 + ...rityCenterClient.UpdateSource1Snippet.g.cs | 43 + ...enterClient.UpdateSource2AsyncSnippet.g.cs | 46 + ...rityCenterClient.UpdateSource2Snippet.g.cs | 45 + ...UpdateSourceRequestObjectAsyncSnippet.g.cs | 49 + ...ient.UpdateSourceRequestObjectSnippet.g.cs | 48 + ...google.cloud.securitycenter.v1p1beta1.json | 7551 +++++ ...d.SecurityCenter.V1P1Beta1.Snippets.csproj | 15 + .../SecurityCenterClientSnippets.g.cs | 3655 +++ .../Asset.g.cs | 1322 + .../AssetResourceNames.g.cs | 349 + .../Finding.g.cs | 819 + .../FindingResourceNames.g.cs | 381 + .../Folder.g.cs | 289 + ...ogle.Cloud.SecurityCenter.V1P1Beta1.csproj | 49 + .../NotificationConfig.g.cs | 752 + .../NotificationConfigResourceNames.g.cs | 517 + .../NotificationMessage.g.cs | 385 + .../OrganizationSettings.g.cs | 654 + .../OrganizationSettingsResourceNames.g.cs | 265 + .../PackageApiMetadata.g.cs | 72 + .../Resource.g.cs | 444 + .../RunAssetDiscoveryResponse.g.cs | 332 + .../SecurityCenterClient.g.cs | 5384 ++++ .../SecurityMarks.g.cs | 350 + .../SecurityMarksResourceNames.g.cs | 530 + .../SecuritycenterService.g.cs | 9687 ++++++ .../SecuritycenterServiceGrpc.g.cs | 1909 ++ .../SecuritycenterServiceResourceNames.g.cs | 335 + .../ServiceCollectionExtensions.g.cs | 63 + .../Source.g.cs | 392 + .../SourceResourceNames.g.cs | 350 + .../gapic_metadata.json | 156 + ...SecurityCenter.V2.GeneratedSnippets.csproj | 15 + ...reateResourceValueConfigsAsyncSnippet.g.cs | 49 + ...ValueConfigsRequestObjectAsyncSnippet.g.cs | 52 + ...ourceValueConfigsRequestObjectSnippet.g.cs | 51 + ...alueConfigsResourceNames1AsyncSnippet.g.cs | 50 + ...urceValueConfigsResourceNames1Snippet.g.cs | 49 + ...alueConfigsResourceNames2AsyncSnippet.g.cs | 49 + ...urceValueConfigsResourceNames2Snippet.g.cs | 48 + ...atchCreateResourceValueConfigsSnippet.g.cs | 48 + ...erClient.BulkMuteFindingsAsyncSnippet.g.cs | 62 + ...MuteFindingsRequestObjectAsyncSnippet.g.cs | 68 + ....BulkMuteFindingsRequestObjectSnippet.g.cs | 67 + ...MuteFindingsResourceNamesAsyncSnippet.g.cs | 63 + ....BulkMuteFindingsResourceNamesSnippet.g.cs | 62 + ...yCenterClient.BulkMuteFindingsSnippet.g.cs | 61 + ...ient.CreateBigQueryExportAsyncSnippet.g.cs | 46 + ...gQueryExportRequestObjectAsyncSnippet.g.cs | 49 + ...ateBigQueryExportRequestObjectSnippet.g.cs | 48 + ...QueryExportResourceNames1AsyncSnippet.g.cs | 46 + ...teBigQueryExportResourceNames1Snippet.g.cs | 45 + ...QueryExportResourceNames2AsyncSnippet.g.cs | 46 + ...teBigQueryExportResourceNames2Snippet.g.cs | 45 + ...QueryExportResourceNames3AsyncSnippet.g.cs | 47 + ...teBigQueryExportResourceNames3Snippet.g.cs | 46 + ...terClient.CreateBigQueryExportSnippet.g.cs | 45 + ...enterClient.CreateFindingAsyncSnippet.g.cs | 46 + ...reateFindingRequestObjectAsyncSnippet.g.cs | 49 + ...ent.CreateFindingRequestObjectSnippet.g.cs | 48 + ...reateFindingResourceNamesAsyncSnippet.g.cs | 46 + ...ent.CreateFindingResourceNamesSnippet.g.cs | 45 + ...rityCenterClient.CreateFindingSnippet.g.cs | 45 + ...erClient.CreateMuteConfigAsyncSnippet.g.cs | 46 + ...teMuteConfigRequestObjectAsyncSnippet.g.cs | 50 + ....CreateMuteConfigRequestObjectSnippet.g.cs | 49 + ...eMuteConfigResourceNames1AsyncSnippet.g.cs | 47 + ...CreateMuteConfigResourceNames1Snippet.g.cs | 46 + ...eMuteConfigResourceNames2AsyncSnippet.g.cs | 46 + ...CreateMuteConfigResourceNames2Snippet.g.cs | 45 + ...eMuteConfigResourceNames3AsyncSnippet.g.cs | 47 + ...CreateMuteConfigResourceNames3Snippet.g.cs | 46 + ...eMuteConfigResourceNames4AsyncSnippet.g.cs | 46 + ...CreateMuteConfigResourceNames4Snippet.g.cs | 45 + ...eMuteConfigResourceNames5AsyncSnippet.g.cs | 47 + ...CreateMuteConfigResourceNames5Snippet.g.cs | 46 + ...eMuteConfigResourceNames6AsyncSnippet.g.cs | 47 + ...CreateMuteConfigResourceNames6Snippet.g.cs | 46 + ...yCenterClient.CreateMuteConfigSnippet.g.cs | 45 + ....CreateNotificationConfigAsyncSnippet.g.cs | 46 + ...cationConfigRequestObjectAsyncSnippet.g.cs | 49 + ...otificationConfigRequestObjectSnippet.g.cs | 48 + ...ationConfigResourceNames1AsyncSnippet.g.cs | 46 + ...tificationConfigResourceNames1Snippet.g.cs | 45 + ...ationConfigResourceNames2AsyncSnippet.g.cs | 46 + ...tificationConfigResourceNames2Snippet.g.cs | 45 + ...ationConfigResourceNames3AsyncSnippet.g.cs | 47 + ...tificationConfigResourceNames3Snippet.g.cs | 46 + ...lient.CreateNotificationConfigSnippet.g.cs | 45 + ...CenterClient.CreateSourceAsyncSnippet.g.cs | 45 + ...CreateSourceRequestObjectAsyncSnippet.g.cs | 49 + ...ient.CreateSourceRequestObjectSnippet.g.cs | 48 + ...CreateSourceResourceNamesAsyncSnippet.g.cs | 46 + ...ient.CreateSourceResourceNamesSnippet.g.cs | 45 + ...urityCenterClient.CreateSourceSnippet.g.cs | 44 + ...ient.DeleteBigQueryExportAsyncSnippet.g.cs | 44 + ...gQueryExportRequestObjectAsyncSnippet.g.cs | 47 + ...eteBigQueryExportRequestObjectSnippet.g.cs | 46 + ...gQueryExportResourceNamesAsyncSnippet.g.cs | 44 + ...eteBigQueryExportResourceNamesSnippet.g.cs | 43 + ...terClient.DeleteBigQueryExportSnippet.g.cs | 43 + ...erClient.DeleteMuteConfigAsyncSnippet.g.cs | 44 + ...teMuteConfigRequestObjectAsyncSnippet.g.cs | 47 + ....DeleteMuteConfigRequestObjectSnippet.g.cs | 46 + ...teMuteConfigResourceNamesAsyncSnippet.g.cs | 44 + ....DeleteMuteConfigResourceNamesSnippet.g.cs | 43 + ...yCenterClient.DeleteMuteConfigSnippet.g.cs | 43 + ....DeleteNotificationConfigAsyncSnippet.g.cs | 44 + ...cationConfigRequestObjectAsyncSnippet.g.cs | 47 + ...otificationConfigRequestObjectSnippet.g.cs | 46 + ...cationConfigResourceNamesAsyncSnippet.g.cs | 44 + ...otificationConfigResourceNamesSnippet.g.cs | 43 + ...lient.DeleteNotificationConfigSnippet.g.cs | 43 + ...DeleteResourceValueConfigAsyncSnippet.g.cs | 44 + ...eValueConfigRequestObjectAsyncSnippet.g.cs | 47 + ...sourceValueConfigRequestObjectSnippet.g.cs | 46 + ...eValueConfigResourceNamesAsyncSnippet.g.cs | 44 + ...sourceValueConfigResourceNamesSnippet.g.cs | 43 + ...ient.DeleteResourceValueConfigSnippet.g.cs | 43 + ...rClient.GetBigQueryExportAsyncSnippet.g.cs | 44 + ...gQueryExportRequestObjectAsyncSnippet.g.cs | 47 + ...GetBigQueryExportRequestObjectSnippet.g.cs | 46 + ...gQueryExportResourceNamesAsyncSnippet.g.cs | 44 + ...GetBigQueryExportResourceNamesSnippet.g.cs | 43 + ...CenterClient.GetBigQueryExportSnippet.g.cs | 43 + ...CenterClient.GetIamPolicyAsyncSnippet.g.cs | 45 + ...GetIamPolicyRequestObjectAsyncSnippet.g.cs | 50 + ...ient.GetIamPolicyRequestObjectSnippet.g.cs | 49 + ...GetIamPolicyResourceNamesAsyncSnippet.g.cs | 46 + ...ient.GetIamPolicyResourceNamesSnippet.g.cs | 45 + ...urityCenterClient.GetIamPolicySnippet.g.cs | 44 + ...enterClient.GetMuteConfigAsyncSnippet.g.cs | 44 + ...etMuteConfigRequestObjectAsyncSnippet.g.cs | 47 + ...ent.GetMuteConfigRequestObjectSnippet.g.cs | 46 + ...etMuteConfigResourceNamesAsyncSnippet.g.cs | 44 + ...ent.GetMuteConfigResourceNamesSnippet.g.cs | 43 + ...rityCenterClient.GetMuteConfigSnippet.g.cs | 43 + ...ent.GetNotificationConfigAsyncSnippet.g.cs | 44 + ...cationConfigRequestObjectAsyncSnippet.g.cs | 47 + ...otificationConfigRequestObjectSnippet.g.cs | 46 + ...cationConfigResourceNamesAsyncSnippet.g.cs | 44 + ...otificationConfigResourceNamesSnippet.g.cs | 43 + ...erClient.GetNotificationConfigSnippet.g.cs | 43 + ...nt.GetResourceValueConfigAsyncSnippet.g.cs | 44 + ...eValueConfigRequestObjectAsyncSnippet.g.cs | 47 + ...sourceValueConfigRequestObjectSnippet.g.cs | 46 + ...eValueConfigResourceNamesAsyncSnippet.g.cs | 44 + ...sourceValueConfigResourceNamesSnippet.g.cs | 43 + ...rClient.GetResourceValueConfigSnippet.g.cs | 43 + ...enterClient.GetSimulationAsyncSnippet.g.cs | 44 + ...etSimulationRequestObjectAsyncSnippet.g.cs | 47 + ...ent.GetSimulationRequestObjectSnippet.g.cs | 46 + ...etSimulationResourceNamesAsyncSnippet.g.cs | 44 + ...ent.GetSimulationResourceNamesSnippet.g.cs | 43 + ...rityCenterClient.GetSimulationSnippet.g.cs | 43 + ...ityCenterClient.GetSourceAsyncSnippet.g.cs | 44 + ...nt.GetSourceRequestObjectAsyncSnippet.g.cs | 47 + ...rClient.GetSourceRequestObjectSnippet.g.cs | 46 + ...nt.GetSourceResourceNamesAsyncSnippet.g.cs | 44 + ...rClient.GetSourceResourceNamesSnippet.g.cs | 43 + ...SecurityCenterClient.GetSourceSnippet.g.cs | 43 + ...rClient.GetValuedResourceAsyncSnippet.g.cs | 44 + ...luedResourceRequestObjectAsyncSnippet.g.cs | 47 + ...GetValuedResourceRequestObjectSnippet.g.cs | 46 + ...luedResourceResourceNamesAsyncSnippet.g.cs | 44 + ...GetValuedResourceResourceNamesSnippet.g.cs | 43 + ...CenterClient.GetValuedResourceSnippet.g.cs | 43 + ...enterClient.GroupFindingsAsyncSnippet.g.cs | 80 + ...roupFindingsRequestObjectAsyncSnippet.g.cs | 84 + ...ent.GroupFindingsRequestObjectSnippet.g.cs | 82 + ...roupFindingsResourceNamesAsyncSnippet.g.cs | 80 + ...ent.GroupFindingsResourceNamesSnippet.g.cs | 78 + ...rityCenterClient.GroupFindingsSnippet.g.cs | 78 + ...terClient.ListAttackPathsAsyncSnippet.g.cs | 79 + ...tAttackPathsRequestObjectAsyncSnippet.g.cs | 83 + ...t.ListAttackPathsRequestObjectSnippet.g.cs | 81 + ...AttackPathsResourceNames1AsyncSnippet.g.cs | 79 + ....ListAttackPathsResourceNames1Snippet.g.cs | 77 + ...AttackPathsResourceNames2AsyncSnippet.g.cs | 79 + ....ListAttackPathsResourceNames2Snippet.g.cs | 77 + ...tyCenterClient.ListAttackPathsSnippet.g.cs | 77 + ...lient.ListBigQueryExportsAsyncSnippet.g.cs | 79 + ...QueryExportsRequestObjectAsyncSnippet.g.cs | 82 + ...stBigQueryExportsRequestObjectSnippet.g.cs | 80 + ...ueryExportsResourceNames1AsyncSnippet.g.cs | 79 + ...tBigQueryExportsResourceNames1Snippet.g.cs | 77 + ...ueryExportsResourceNames2AsyncSnippet.g.cs | 79 + ...tBigQueryExportsResourceNames2Snippet.g.cs | 77 + ...ueryExportsResourceNames3AsyncSnippet.g.cs | 80 + ...tBigQueryExportsResourceNames3Snippet.g.cs | 78 + ...nterClient.ListBigQueryExportsSnippet.g.cs | 77 + ...CenterClient.ListFindingsAsyncSnippet.g.cs | 79 + ...ListFindingsRequestObjectAsyncSnippet.g.cs | 86 + ...ient.ListFindingsRequestObjectSnippet.g.cs | 84 + ...ListFindingsResourceNamesAsyncSnippet.g.cs | 79 + ...ient.ListFindingsResourceNamesSnippet.g.cs | 77 + ...urityCenterClient.ListFindingsSnippet.g.cs | 77 + ...terClient.ListMuteConfigsAsyncSnippet.g.cs | 79 + ...tMuteConfigsRequestObjectAsyncSnippet.g.cs | 83 + ...t.ListMuteConfigsRequestObjectSnippet.g.cs | 81 + ...MuteConfigsResourceNames1AsyncSnippet.g.cs | 80 + ....ListMuteConfigsResourceNames1Snippet.g.cs | 78 + ...MuteConfigsResourceNames2AsyncSnippet.g.cs | 79 + ....ListMuteConfigsResourceNames2Snippet.g.cs | 77 + ...MuteConfigsResourceNames3AsyncSnippet.g.cs | 80 + ....ListMuteConfigsResourceNames3Snippet.g.cs | 78 + ...MuteConfigsResourceNames4AsyncSnippet.g.cs | 79 + ....ListMuteConfigsResourceNames4Snippet.g.cs | 77 + ...MuteConfigsResourceNames5AsyncSnippet.g.cs | 80 + ....ListMuteConfigsResourceNames5Snippet.g.cs | 78 + ...MuteConfigsResourceNames6AsyncSnippet.g.cs | 80 + ....ListMuteConfigsResourceNames6Snippet.g.cs | 78 + ...tyCenterClient.ListMuteConfigsSnippet.g.cs | 77 + ...t.ListNotificationConfigsAsyncSnippet.g.cs | 79 + ...ationConfigsRequestObjectAsyncSnippet.g.cs | 82 + ...tificationConfigsRequestObjectSnippet.g.cs | 80 + ...tionConfigsResourceNames1AsyncSnippet.g.cs | 79 + ...ificationConfigsResourceNames1Snippet.g.cs | 77 + ...tionConfigsResourceNames2AsyncSnippet.g.cs | 79 + ...ificationConfigsResourceNames2Snippet.g.cs | 77 + ...tionConfigsResourceNames3AsyncSnippet.g.cs | 80 + ...ificationConfigsResourceNames3Snippet.g.cs | 78 + ...Client.ListNotificationConfigsSnippet.g.cs | 77 + ....ListResourceValueConfigsAsyncSnippet.g.cs | 79 + ...ValueConfigsRequestObjectAsyncSnippet.g.cs | 83 + ...ourceValueConfigsRequestObjectSnippet.g.cs | 81 + ...alueConfigsResourceNames1AsyncSnippet.g.cs | 80 + ...urceValueConfigsResourceNames1Snippet.g.cs | 78 + ...alueConfigsResourceNames2AsyncSnippet.g.cs | 79 + ...urceValueConfigsResourceNames2Snippet.g.cs | 77 + ...lient.ListResourceValueConfigsSnippet.g.cs | 77 + ...yCenterClient.ListSourcesAsyncSnippet.g.cs | 79 + ....ListSourcesRequestObjectAsyncSnippet.g.cs | 83 + ...lient.ListSourcesRequestObjectSnippet.g.cs | 81 + ...ListSourcesResourceNames1AsyncSnippet.g.cs | 80 + ...ient.ListSourcesResourceNames1Snippet.g.cs | 78 + ...ListSourcesResourceNames2AsyncSnippet.g.cs | 80 + ...ient.ListSourcesResourceNames2Snippet.g.cs | 78 + ...ListSourcesResourceNames3AsyncSnippet.g.cs | 80 + ...ient.ListSourcesResourceNames3Snippet.g.cs | 78 + ...curityCenterClient.ListSourcesSnippet.g.cs | 77 + ...lient.ListValuedResourcesAsyncSnippet.g.cs | 79 + ...uedResourcesRequestObjectAsyncSnippet.g.cs | 84 + ...stValuedResourcesRequestObjectSnippet.g.cs | 82 + ...uedResourcesResourceNamesAsyncSnippet.g.cs | 79 + ...stValuedResourcesResourceNamesSnippet.g.cs | 77 + ...nterClient.ListValuedResourcesSnippet.g.cs | 77 + ...terClient.SetFindingStateAsyncSnippet.g.cs | 45 + ...FindingStateRequestObjectAsyncSnippet.g.cs | 48 + ...t.SetFindingStateRequestObjectSnippet.g.cs | 47 + ...FindingStateResourceNamesAsyncSnippet.g.cs | 45 + ...t.SetFindingStateResourceNamesSnippet.g.cs | 44 + ...tyCenterClient.SetFindingStateSnippet.g.cs | 44 + ...CenterClient.SetIamPolicyAsyncSnippet.g.cs | 46 + ...SetIamPolicyRequestObjectAsyncSnippet.g.cs | 52 + ...ient.SetIamPolicyRequestObjectSnippet.g.cs | 51 + ...SetIamPolicyResourceNamesAsyncSnippet.g.cs | 47 + ...ient.SetIamPolicyResourceNamesSnippet.g.cs | 46 + ...urityCenterClient.SetIamPolicySnippet.g.cs | 45 + ...urityCenterClient.SetMuteAsyncSnippet.g.cs | 45 + ...ient.SetMuteRequestObjectAsyncSnippet.g.cs | 48 + ...terClient.SetMuteRequestObjectSnippet.g.cs | 47 + ...ient.SetMuteResourceNamesAsyncSnippet.g.cs | 45 + ...terClient.SetMuteResourceNamesSnippet.g.cs | 44 + .../SecurityCenterClient.SetMuteSnippet.g.cs | 44 + ...Client.TestIamPermissionsAsyncSnippet.g.cs | 47 + ...mPermissionsRequestObjectAsyncSnippet.g.cs | 50 + ...estIamPermissionsRequestObjectSnippet.g.cs | 49 + ...mPermissionsResourceNamesAsyncSnippet.g.cs | 48 + ...estIamPermissionsResourceNamesSnippet.g.cs | 47 + ...enterClient.TestIamPermissionsSnippet.g.cs | 46 + ...ient.UpdateBigQueryExportAsyncSnippet.g.cs | 46 + ...gQueryExportRequestObjectAsyncSnippet.g.cs | 49 + ...ateBigQueryExportRequestObjectSnippet.g.cs | 48 + ...terClient.UpdateBigQueryExportSnippet.g.cs | 45 + ...ient.UpdateExternalSystemAsyncSnippet.g.cs | 46 + ...ternalSystemRequestObjectAsyncSnippet.g.cs | 49 + ...ateExternalSystemRequestObjectSnippet.g.cs | 48 + ...terClient.UpdateExternalSystemSnippet.g.cs | 45 + ...enterClient.UpdateFindingAsyncSnippet.g.cs | 46 + ...pdateFindingRequestObjectAsyncSnippet.g.cs | 49 + ...ent.UpdateFindingRequestObjectSnippet.g.cs | 48 + ...rityCenterClient.UpdateFindingSnippet.g.cs | 45 + ...erClient.UpdateMuteConfigAsyncSnippet.g.cs | 46 + ...teMuteConfigRequestObjectAsyncSnippet.g.cs | 49 + ....UpdateMuteConfigRequestObjectSnippet.g.cs | 48 + ...yCenterClient.UpdateMuteConfigSnippet.g.cs | 45 + ....UpdateNotificationConfigAsyncSnippet.g.cs | 46 + ...cationConfigRequestObjectAsyncSnippet.g.cs | 49 + ...otificationConfigRequestObjectSnippet.g.cs | 48 + ...lient.UpdateNotificationConfigSnippet.g.cs | 45 + ...UpdateResourceValueConfigAsyncSnippet.g.cs | 46 + ...eValueConfigRequestObjectAsyncSnippet.g.cs | 49 + ...sourceValueConfigRequestObjectSnippet.g.cs | 48 + ...ient.UpdateResourceValueConfigSnippet.g.cs | 45 + ...lient.UpdateSecurityMarksAsyncSnippet.g.cs | 46 + ...ecurityMarksRequestObjectAsyncSnippet.g.cs | 49 + ...dateSecurityMarksRequestObjectSnippet.g.cs | 48 + ...nterClient.UpdateSecurityMarksSnippet.g.cs | 45 + ...CenterClient.UpdateSourceAsyncSnippet.g.cs | 46 + ...UpdateSourceRequestObjectAsyncSnippet.g.cs | 49 + ...ient.UpdateSourceRequestObjectSnippet.g.cs | 48 + ...urityCenterClient.UpdateSourceSnippet.g.cs | 45 + ...tadata_google.cloud.securitycenter.v2.json | 13859 +++++++++ ...le.Cloud.SecurityCenter.V2.Snippets.csproj | 15 + .../SecurityCenterClientSnippets.g.cs | 6740 +++++ .../Access.g.cs | 1122 + .../Application.g.cs | 288 + .../AttackExposure.g.cs | 538 + .../AttackPath.g.cs | 1616 + .../AttackPathResourceNames.g.cs | 407 + .../BackupDisasterRecovery.g.cs | 616 + .../BigqueryExport.g.cs | 597 + .../BigqueryExportResourceNames.g.cs | 410 + .../CloudArmor.g.cs | 1594 + .../CloudDlpDataProfile.g.cs | 323 + .../CloudDlpDataProfileResourceNames.g.cs | 325 + .../CloudDlpInspection.g.cs | 378 + .../CloudDlpInspectionResourceNames.g.cs | 309 + .../Compliance.g.cs | 317 + .../Connection.g.cs | 450 + .../ContactDetails.g.cs | 433 + .../Container.g.cs | 410 + .../Database.g.cs | 453 + .../Exfiltration.g.cs | 545 + .../ExternalSystem.g.cs | 1138 + .../ExternalSystemResourceNames.g.cs | 675 + .../Google.Cloud.SecurityCenter.V2/File.g.cs | 750 + .../Finding.g.cs | 3406 +++ .../FindingResourceNames.g.cs | 562 + .../Folder.g.cs | 288 + .../Google.Cloud.SecurityCenter.V2.csproj | 49 + .../GroupMembership.g.cs | 312 + .../IamBinding.g.cs | 357 + .../Indicator.g.cs | 1383 + .../KernelRootkit.g.cs | 580 + .../Kubernetes.g.cs | 2903 ++ .../Google.Cloud.SecurityCenter.V2/Label.g.cs | 288 + .../LoadBalancer.g.cs | 246 + .../LogEntry.g.cs | 625 + .../MitreAttack.g.cs | 783 + .../MuteConfig.g.cs | 644 + .../MuteConfigResourceNames.g.cs | 521 + .../Notebook.g.cs | 379 + .../NotificationConfig.g.cs | 703 + .../NotificationConfigResourceNames.g.cs | 673 + .../NotificationMessage.g.cs | 384 + .../OrgPolicy.g.cs | 252 + .../OrgPolicyResourceNames.g.cs | 354 + .../PackageApiMetadata.g.cs | 105 + .../Process.g.cs | 842 + .../Resource.g.cs | 3661 +++ .../ResourceValueConfig.g.cs | 977 + .../ResourceValueConfigResourceNames.g.cs | 364 + .../SecurityCenterClient.g.cs | 10308 +++++++ .../SecurityMarks.g.cs | 368 + .../SecurityMarksResourceNames.g.cs | 720 + .../SecurityPosture.g.cs | 818 + .../SecuritycenterService.g.cs | 14411 +++++++++ .../SecuritycenterServiceGrpc.g.cs | 3281 ++ .../SecuritycenterServiceResourceNames.g.cs | 1693 ++ .../ServiceCollectionExtensions.g.cs | 63 + .../Simulation.g.cs | 379 + .../SimulationResourceNames.g.cs | 342 + .../Source.g.cs | 392 + .../SourceResourceNames.g.cs | 350 + .../ToxicCombination.g.cs | 284 + .../ValuedResource.g.cs | 727 + .../ValuedResourceResourceNames.g.cs | 386 + .../Vulnerability.g.cs | 2593 ++ .../gapic_metadata.json | 258 + ...nterManagement.V1.GeneratedSnippets.csproj | 15 + ...reatDetectionCustomModuleAsyncSnippet.g.cs | 45 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 49 + ...ctionCustomModuleRequestObjectSnippet.g.cs | 48 + ...ustomModuleResourceNames1AsyncSnippet.g.cs | 45 + ...tionCustomModuleResourceNames1Snippet.g.cs | 44 + ...ustomModuleResourceNames2AsyncSnippet.g.cs | 46 + ...tionCustomModuleResourceNames2Snippet.g.cs | 45 + ...ustomModuleResourceNames3AsyncSnippet.g.cs | 45 + ...tionCustomModuleResourceNames3Snippet.g.cs | 44 + ...entThreatDetectionCustomModuleSnippet.g.cs | 44 + ...althAnalyticsCustomModuleAsyncSnippet.g.cs | 45 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 49 + ...yticsCustomModuleRequestObjectSnippet.g.cs | 48 + ...ustomModuleResourceNames1AsyncSnippet.g.cs | 45 + ...ticsCustomModuleResourceNames1Snippet.g.cs | 44 + ...ustomModuleResourceNames2AsyncSnippet.g.cs | 46 + ...ticsCustomModuleResourceNames2Snippet.g.cs | 45 + ...ustomModuleResourceNames3AsyncSnippet.g.cs | 45 + ...ticsCustomModuleResourceNames3Snippet.g.cs | 44 + ...ityHealthAnalyticsCustomModuleSnippet.g.cs | 44 + ...reatDetectionCustomModuleAsyncSnippet.g.cs | 44 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 48 + ...ctionCustomModuleRequestObjectSnippet.g.cs | 47 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 44 + ...ctionCustomModuleResourceNamesSnippet.g.cs | 43 + ...entThreatDetectionCustomModuleSnippet.g.cs | 43 + ...althAnalyticsCustomModuleAsyncSnippet.g.cs | 44 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 48 + ...yticsCustomModuleRequestObjectSnippet.g.cs | 47 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 44 + ...yticsCustomModuleResourceNamesSnippet.g.cs | 43 + ...ityHealthAnalyticsCustomModuleSnippet.g.cs | 43 + ...reatDetectionCustomModuleAsyncSnippet.g.cs | 44 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 47 + ...ctionCustomModuleRequestObjectSnippet.g.cs | 46 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 44 + ...ctionCustomModuleResourceNamesSnippet.g.cs | 43 + ...entThreatDetectionCustomModuleSnippet.g.cs | 43 + ...althAnalyticsCustomModuleAsyncSnippet.g.cs | 44 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 47 + ...yticsCustomModuleRequestObjectSnippet.g.cs | 46 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 44 + ...yticsCustomModuleResourceNamesSnippet.g.cs | 43 + ...ityHealthAnalyticsCustomModuleSnippet.g.cs | 43 + ...reatDetectionCustomModuleAsyncSnippet.g.cs | 44 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 47 + ...ctionCustomModuleRequestObjectSnippet.g.cs | 46 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 44 + ...ctionCustomModuleResourceNamesSnippet.g.cs | 43 + ...entThreatDetectionCustomModuleSnippet.g.cs | 43 + ....GetSecurityCenterServiceAsyncSnippet.g.cs | 44 + ...enterServiceRequestObjectAsyncSnippet.g.cs | 48 + ...rityCenterServiceRequestObjectSnippet.g.cs | 47 + ...enterServiceResourceNamesAsyncSnippet.g.cs | 44 + ...rityCenterServiceResourceNamesSnippet.g.cs | 43 + ...lient.GetSecurityCenterServiceSnippet.g.cs | 43 + ...althAnalyticsCustomModuleAsyncSnippet.g.cs | 44 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 47 + ...yticsCustomModuleRequestObjectSnippet.g.cs | 46 + ...CustomModuleResourceNamesAsyncSnippet.g.cs | 44 + ...yticsCustomModuleResourceNamesSnippet.g.cs | 43 + ...ityHealthAnalyticsCustomModuleSnippet.g.cs | 43 + ...eatDetectionCustomModulesAsyncSnippet.g.cs | 79 + ...ustomModulesRequestObjectAsyncSnippet.g.cs | 82 + ...tionCustomModulesRequestObjectSnippet.g.cs | 80 + ...stomModulesResourceNames1AsyncSnippet.g.cs | 79 + ...ionCustomModulesResourceNames1Snippet.g.cs | 77 + ...stomModulesResourceNames2AsyncSnippet.g.cs | 80 + ...ionCustomModulesResourceNames2Snippet.g.cs | 78 + ...stomModulesResourceNames3AsyncSnippet.g.cs | 79 + ...ionCustomModulesResourceNames3Snippet.g.cs | 77 + ...ntThreatDetectionCustomModulesSnippet.g.cs | 77 + ...lthAnalyticsCustomModulesAsyncSnippet.g.cs | 79 + ...ustomModulesRequestObjectAsyncSnippet.g.cs | 82 + ...ticsCustomModulesRequestObjectSnippet.g.cs | 80 + ...stomModulesResourceNames1AsyncSnippet.g.cs | 79 + ...icsCustomModulesResourceNames1Snippet.g.cs | 77 + ...stomModulesResourceNames2AsyncSnippet.g.cs | 80 + ...icsCustomModulesResourceNames2Snippet.g.cs | 78 + ...stomModulesResourceNames3AsyncSnippet.g.cs | 79 + ...icsCustomModulesResourceNames3Snippet.g.cs | 77 + ...tyHealthAnalyticsCustomModulesSnippet.g.cs | 77 + ...eatDetectionCustomModulesAsyncSnippet.g.cs | 79 + ...ustomModulesRequestObjectAsyncSnippet.g.cs | 82 + ...tionCustomModulesRequestObjectSnippet.g.cs | 80 + ...stomModulesResourceNames1AsyncSnippet.g.cs | 79 + ...ionCustomModulesResourceNames1Snippet.g.cs | 77 + ...stomModulesResourceNames2AsyncSnippet.g.cs | 80 + ...ionCustomModulesResourceNames2Snippet.g.cs | 78 + ...stomModulesResourceNames3AsyncSnippet.g.cs | 79 + ...ionCustomModulesResourceNames3Snippet.g.cs | 77 + ...ntThreatDetectionCustomModulesSnippet.g.cs | 77 + ...lthAnalyticsCustomModulesAsyncSnippet.g.cs | 79 + ...ustomModulesRequestObjectAsyncSnippet.g.cs | 82 + ...ticsCustomModulesRequestObjectSnippet.g.cs | 80 + ...stomModulesResourceNames1AsyncSnippet.g.cs | 79 + ...icsCustomModulesResourceNames1Snippet.g.cs | 77 + ...stomModulesResourceNames2AsyncSnippet.g.cs | 80 + ...icsCustomModulesResourceNames2Snippet.g.cs | 78 + ...stomModulesResourceNames3AsyncSnippet.g.cs | 79 + ...icsCustomModulesResourceNames3Snippet.g.cs | 77 + ...tyHealthAnalyticsCustomModulesSnippet.g.cs | 77 + ...eatDetectionCustomModulesAsyncSnippet.g.cs | 79 + ...ustomModulesRequestObjectAsyncSnippet.g.cs | 82 + ...tionCustomModulesRequestObjectSnippet.g.cs | 80 + ...stomModulesResourceNames1AsyncSnippet.g.cs | 79 + ...ionCustomModulesResourceNames1Snippet.g.cs | 77 + ...stomModulesResourceNames2AsyncSnippet.g.cs | 80 + ...ionCustomModulesResourceNames2Snippet.g.cs | 78 + ...stomModulesResourceNames3AsyncSnippet.g.cs | 79 + ...ionCustomModulesResourceNames3Snippet.g.cs | 77 + ...ntThreatDetectionCustomModulesSnippet.g.cs | 77 + ...istSecurityCenterServicesAsyncSnippet.g.cs | 79 + ...nterServicesRequestObjectAsyncSnippet.g.cs | 84 + ...ityCenterServicesRequestObjectSnippet.g.cs | 82 + ...terServicesResourceNames1AsyncSnippet.g.cs | 80 + ...tyCenterServicesResourceNames1Snippet.g.cs | 78 + ...terServicesResourceNames2AsyncSnippet.g.cs | 79 + ...tyCenterServicesResourceNames2Snippet.g.cs | 77 + ...terServicesResourceNames3AsyncSnippet.g.cs | 79 + ...tyCenterServicesResourceNames3Snippet.g.cs | 77 + ...ent.ListSecurityCenterServicesSnippet.g.cs | 77 + ...lthAnalyticsCustomModulesAsyncSnippet.g.cs | 79 + ...ustomModulesRequestObjectAsyncSnippet.g.cs | 82 + ...ticsCustomModulesRequestObjectSnippet.g.cs | 80 + ...stomModulesResourceNames1AsyncSnippet.g.cs | 79 + ...icsCustomModulesResourceNames1Snippet.g.cs | 77 + ...stomModulesResourceNames2AsyncSnippet.g.cs | 80 + ...icsCustomModulesResourceNames2Snippet.g.cs | 78 + ...stomModulesResourceNames3AsyncSnippet.g.cs | 79 + ...icsCustomModulesResourceNames3Snippet.g.cs | 77 + ...tyHealthAnalyticsCustomModulesSnippet.g.cs | 77 + ...althAnalyticsCustomModuleAsyncSnippet.g.cs | 46 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 49 + ...yticsCustomModuleRequestObjectSnippet.g.cs | 48 + ...ityHealthAnalyticsCustomModuleSnippet.g.cs | 45 + ...reatDetectionCustomModuleAsyncSnippet.g.cs | 46 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 50 + ...ctionCustomModuleRequestObjectSnippet.g.cs | 49 + ...entThreatDetectionCustomModuleSnippet.g.cs | 45 + ...dateSecurityCenterServiceAsyncSnippet.g.cs | 46 + ...enterServiceRequestObjectAsyncSnippet.g.cs | 50 + ...rityCenterServiceRequestObjectSnippet.g.cs | 49 + ...nt.UpdateSecurityCenterServiceSnippet.g.cs | 45 + ...althAnalyticsCustomModuleAsyncSnippet.g.cs | 46 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 50 + ...yticsCustomModuleRequestObjectSnippet.g.cs | 49 + ...ityHealthAnalyticsCustomModuleSnippet.g.cs | 45 + ...CustomModuleRequestObjectAsyncSnippet.g.cs | 49 + ...ctionCustomModuleRequestObjectSnippet.g.cs | 48 + ...gle.cloud.securitycentermanagement.v1.json | 7727 +++++ ...ecurityCenterManagement.V1.Snippets.csproj | 15 + ...ecurityCenterManagementClientSnippets.g.cs | 4448 +++ ...e.Cloud.SecurityCenterManagement.V1.csproj | 49 + .../PackageApiMetadata.g.cs | 52 + .../SecurityCenterManagement.g.cs | 14009 +++++++++ .../SecurityCenterManagementClient.g.cs | 6374 ++++ .../SecurityCenterManagementGrpc.g.cs | 1955 ++ ...SecurityCenterManagementResourceNames.g.cs | 3917 +++ .../ServiceCollectionExtensions.g.cs | 67 + .../gapic_metadata.json | 144 + ...ServiceControl.V1.GeneratedSnippets.csproj | 15 + ...llocateQuotaRequestObjectAsyncSnippet.g.cs | 49 + ...ent.AllocateQuotaRequestObjectSnippet.g.cs | 48 + ...Client.CheckRequestObjectAsyncSnippet.g.cs | 49 + ...ollerClient.CheckRequestObjectSnippet.g.cs | 48 + ...lient.ReportRequestObjectAsyncSnippet.g.cs | 49 + ...llerClient.ReportRequestObjectSnippet.g.cs | 48 + ...metadata_google.api.servicecontrol.v1.json | 305 + ...le.Cloud.ServiceControl.V1.Snippets.csproj | 15 + .../QuotaControllerClientSnippets.g.cs | 62 + .../ServiceControllerClientSnippets.g.cs | 99 + .../CheckError.g.cs | 503 + .../Distribution.g.cs | 1474 + .../Google.Cloud.ServiceControl.V1.csproj | 47 + .../HttpRequest.g.cs | 841 + .../LogEntry.g.cs | 1427 + .../MetricValue.g.cs | 893 + .../Operation.g.cs | 667 + .../PackageApiMetadata.g.cs | 43 + .../QuotaController.g.cs | 1520 + .../QuotaControllerClient.g.cs | 356 + .../QuotaControllerGrpc.g.cs | 260 + .../ServiceCollectionExtensions.g.cs | 101 + .../ServiceController.g.cs | 2171 ++ .../ServiceControllerClient.g.cs | 535 + .../ServiceControllerGrpc.g.cs | 434 + .../gapic_metadata.json | 45 + ...rviceDirectory.V1.GeneratedSnippets.csproj | 15 + ...solveServiceRequestObjectAsyncSnippet.g.cs | 49 + ...nt.ResolveServiceRequestObjectSnippet.g.cs | 48 + ...viceClient.CreateEndpointAsyncSnippet.g.cs | 46 + ...eateEndpointRequestObjectAsyncSnippet.g.cs | 49 + ...nt.CreateEndpointRequestObjectSnippet.g.cs | 48 + ...eateEndpointResourceNamesAsyncSnippet.g.cs | 46 + ...nt.CreateEndpointResourceNamesSnippet.g.cs | 45 + ...onServiceClient.CreateEndpointSnippet.g.cs | 45 + ...iceClient.CreateNamespaceAsyncSnippet.g.cs | 46 + ...ateNamespaceRequestObjectAsyncSnippet.g.cs | 50 + ...t.CreateNamespaceRequestObjectSnippet.g.cs | 49 + ...ateNamespaceResourceNamesAsyncSnippet.g.cs | 47 + ...t.CreateNamespaceResourceNamesSnippet.g.cs | 46 + ...nServiceClient.CreateNamespaceSnippet.g.cs | 45 + ...rviceClient.CreateServiceAsyncSnippet.g.cs | 46 + ...reateServiceRequestObjectAsyncSnippet.g.cs | 49 + ...ent.CreateServiceRequestObjectSnippet.g.cs | 48 + ...reateServiceResourceNamesAsyncSnippet.g.cs | 46 + ...ent.CreateServiceResourceNamesSnippet.g.cs | 45 + ...ionServiceClient.CreateServiceSnippet.g.cs | 45 + ...viceClient.DeleteEndpointAsyncSnippet.g.cs | 44 + ...leteEndpointRequestObjectAsyncSnippet.g.cs | 47 + ...nt.DeleteEndpointRequestObjectSnippet.g.cs | 46 + ...leteEndpointResourceNamesAsyncSnippet.g.cs | 44 + ...nt.DeleteEndpointResourceNamesSnippet.g.cs | 43 + ...onServiceClient.DeleteEndpointSnippet.g.cs | 43 + ...iceClient.DeleteNamespaceAsyncSnippet.g.cs | 44 + ...eteNamespaceRequestObjectAsyncSnippet.g.cs | 47 + ...t.DeleteNamespaceRequestObjectSnippet.g.cs | 46 + ...eteNamespaceResourceNamesAsyncSnippet.g.cs | 44 + ...t.DeleteNamespaceResourceNamesSnippet.g.cs | 43 + ...nServiceClient.DeleteNamespaceSnippet.g.cs | 43 + ...rviceClient.DeleteServiceAsyncSnippet.g.cs | 44 + ...eleteServiceRequestObjectAsyncSnippet.g.cs | 47 + ...ent.DeleteServiceRequestObjectSnippet.g.cs | 46 + ...eleteServiceResourceNamesAsyncSnippet.g.cs | 44 + ...ent.DeleteServiceResourceNamesSnippet.g.cs | 43 + ...ionServiceClient.DeleteServiceSnippet.g.cs | 43 + ...ServiceClient.GetEndpointAsyncSnippet.g.cs | 44 + ....GetEndpointRequestObjectAsyncSnippet.g.cs | 47 + ...lient.GetEndpointRequestObjectSnippet.g.cs | 46 + ....GetEndpointResourceNamesAsyncSnippet.g.cs | 44 + ...lient.GetEndpointResourceNamesSnippet.g.cs | 43 + ...ationServiceClient.GetEndpointSnippet.g.cs | 43 + ...GetIamPolicyRequestObjectAsyncSnippet.g.cs | 50 + ...ient.GetIamPolicyRequestObjectSnippet.g.cs | 49 + ...erviceClient.GetNamespaceAsyncSnippet.g.cs | 44 + ...GetNamespaceRequestObjectAsyncSnippet.g.cs | 47 + ...ient.GetNamespaceRequestObjectSnippet.g.cs | 46 + ...GetNamespaceResourceNamesAsyncSnippet.g.cs | 44 + ...ient.GetNamespaceResourceNamesSnippet.g.cs | 43 + ...tionServiceClient.GetNamespaceSnippet.g.cs | 43 + ...nServiceClient.GetServiceAsyncSnippet.g.cs | 44 + ...t.GetServiceRequestObjectAsyncSnippet.g.cs | 47 + ...Client.GetServiceRequestObjectSnippet.g.cs | 46 + ...t.GetServiceResourceNamesAsyncSnippet.g.cs | 44 + ...Client.GetServiceResourceNamesSnippet.g.cs | 43 + ...rationServiceClient.GetServiceSnippet.g.cs | 43 + ...rviceClient.ListEndpointsAsyncSnippet.g.cs | 79 + ...istEndpointsRequestObjectAsyncSnippet.g.cs | 84 + ...ent.ListEndpointsRequestObjectSnippet.g.cs | 82 + ...istEndpointsResourceNamesAsyncSnippet.g.cs | 79 + ...ent.ListEndpointsResourceNamesSnippet.g.cs | 77 + ...ionServiceClient.ListEndpointsSnippet.g.cs | 77 + ...viceClient.ListNamespacesAsyncSnippet.g.cs | 79 + ...stNamespacesRequestObjectAsyncSnippet.g.cs | 85 + ...nt.ListNamespacesRequestObjectSnippet.g.cs | 83 + ...stNamespacesResourceNamesAsyncSnippet.g.cs | 80 + ...nt.ListNamespacesResourceNamesSnippet.g.cs | 78 + ...onServiceClient.ListNamespacesSnippet.g.cs | 77 + ...erviceClient.ListServicesAsyncSnippet.g.cs | 79 + ...ListServicesRequestObjectAsyncSnippet.g.cs | 84 + ...ient.ListServicesRequestObjectSnippet.g.cs | 82 + ...ListServicesResourceNamesAsyncSnippet.g.cs | 79 + ...ient.ListServicesResourceNamesSnippet.g.cs | 77 + ...tionServiceClient.ListServicesSnippet.g.cs | 77 + ...SetIamPolicyRequestObjectAsyncSnippet.g.cs | 52 + ...ient.SetIamPolicyRequestObjectSnippet.g.cs | 51 + ...mPermissionsRequestObjectAsyncSnippet.g.cs | 50 + ...estIamPermissionsRequestObjectSnippet.g.cs | 49 + ...viceClient.UpdateEndpointAsyncSnippet.g.cs | 46 + ...dateEndpointRequestObjectAsyncSnippet.g.cs | 49 + ...nt.UpdateEndpointRequestObjectSnippet.g.cs | 48 + ...onServiceClient.UpdateEndpointSnippet.g.cs | 45 + ...iceClient.UpdateNamespaceAsyncSnippet.g.cs | 46 + ...ateNamespaceRequestObjectAsyncSnippet.g.cs | 49 + ...t.UpdateNamespaceRequestObjectSnippet.g.cs | 48 + ...nServiceClient.UpdateNamespaceSnippet.g.cs | 45 + ...rviceClient.UpdateServiceAsyncSnippet.g.cs | 46 + ...pdateServiceRequestObjectAsyncSnippet.g.cs | 49 + ...ent.UpdateServiceRequestObjectSnippet.g.cs | 48 + ...ionServiceClient.UpdateServiceSnippet.g.cs | 45 + ...data_google.cloud.servicedirectory.v1.json | 4629 +++ ....Cloud.ServiceDirectory.V1.Snippets.csproj | 15 + .../LookupServiceClientSnippets.g.cs | 62 + .../RegistrationServiceClientSnippets.g.cs | 1989 ++ .../Endpoint.g.cs | 486 + .../EndpointResourceNames.g.cs | 560 + .../Google.Cloud.ServiceDirectory.V1.csproj | 49 + .../LookupService.g.cs | 584 + .../LookupServiceClient.g.cs | 347 + .../LookupServiceGrpc.g.cs | 217 + .../LookupServiceResourceNames.g.cs | 33 + .../Namespace.g.cs | 328 + .../NamespaceResourceNames.g.cs | 285 + .../PackageApiMetadata.g.cs | 56 + .../RegistrationService.g.cs | 4917 +++ .../RegistrationServiceClient.g.cs | 3305 ++ .../RegistrationServiceGrpc.g.cs | 1471 + .../RegistrationServiceResourceNames.g.cs | 166 + .../Service.g.cs | 381 + .../ServiceCollectionExtensions.g.cs | 99 + .../ServiceResourceNames.g.cs | 303 + .../gapic_metadata.json | 141 + ...Directory.V1Beta1.GeneratedSnippets.csproj | 15 + ...solveServiceRequestObjectAsyncSnippet.g.cs | 49 + ...nt.ResolveServiceRequestObjectSnippet.g.cs | 48 + ...viceClient.CreateEndpointAsyncSnippet.g.cs | 46 + ...eateEndpointRequestObjectAsyncSnippet.g.cs | 49 + ...nt.CreateEndpointRequestObjectSnippet.g.cs | 48 + ...eateEndpointResourceNamesAsyncSnippet.g.cs | 46 + ...nt.CreateEndpointResourceNamesSnippet.g.cs | 45 + ...onServiceClient.CreateEndpointSnippet.g.cs | 45 + ...iceClient.CreateNamespaceAsyncSnippet.g.cs | 46 + ...ateNamespaceRequestObjectAsyncSnippet.g.cs | 50 + ...t.CreateNamespaceRequestObjectSnippet.g.cs | 49 + ...ateNamespaceResourceNamesAsyncSnippet.g.cs | 47 + ...t.CreateNamespaceResourceNamesSnippet.g.cs | 46 + ...nServiceClient.CreateNamespaceSnippet.g.cs | 45 + ...rviceClient.CreateServiceAsyncSnippet.g.cs | 46 + ...reateServiceRequestObjectAsyncSnippet.g.cs | 49 + ...ent.CreateServiceRequestObjectSnippet.g.cs | 48 + ...reateServiceResourceNamesAsyncSnippet.g.cs | 46 + ...ent.CreateServiceResourceNamesSnippet.g.cs | 45 + ...ionServiceClient.CreateServiceSnippet.g.cs | 45 + ...viceClient.DeleteEndpointAsyncSnippet.g.cs | 44 + ...leteEndpointRequestObjectAsyncSnippet.g.cs | 47 + ...nt.DeleteEndpointRequestObjectSnippet.g.cs | 46 + ...leteEndpointResourceNamesAsyncSnippet.g.cs | 44 + ...nt.DeleteEndpointResourceNamesSnippet.g.cs | 43 + ...onServiceClient.DeleteEndpointSnippet.g.cs | 43 + ...iceClient.DeleteNamespaceAsyncSnippet.g.cs | 44 + ...eteNamespaceRequestObjectAsyncSnippet.g.cs | 47 + ...t.DeleteNamespaceRequestObjectSnippet.g.cs | 46 + ...eteNamespaceResourceNamesAsyncSnippet.g.cs | 44 + ...t.DeleteNamespaceResourceNamesSnippet.g.cs | 43 + ...nServiceClient.DeleteNamespaceSnippet.g.cs | 43 + ...rviceClient.DeleteServiceAsyncSnippet.g.cs | 44 + ...eleteServiceRequestObjectAsyncSnippet.g.cs | 47 + ...ent.DeleteServiceRequestObjectSnippet.g.cs | 46 + ...eleteServiceResourceNamesAsyncSnippet.g.cs | 44 + ...ent.DeleteServiceResourceNamesSnippet.g.cs | 43 + ...ionServiceClient.DeleteServiceSnippet.g.cs | 43 + ...ServiceClient.GetEndpointAsyncSnippet.g.cs | 44 + ....GetEndpointRequestObjectAsyncSnippet.g.cs | 47 + ...lient.GetEndpointRequestObjectSnippet.g.cs | 46 + ....GetEndpointResourceNamesAsyncSnippet.g.cs | 44 + ...lient.GetEndpointResourceNamesSnippet.g.cs | 43 + ...ationServiceClient.GetEndpointSnippet.g.cs | 43 + ...GetIamPolicyRequestObjectAsyncSnippet.g.cs | 50 + ...ient.GetIamPolicyRequestObjectSnippet.g.cs | 49 + ...erviceClient.GetNamespaceAsyncSnippet.g.cs | 44 + ...GetNamespaceRequestObjectAsyncSnippet.g.cs | 47 + ...ient.GetNamespaceRequestObjectSnippet.g.cs | 46 + ...GetNamespaceResourceNamesAsyncSnippet.g.cs | 44 + ...ient.GetNamespaceResourceNamesSnippet.g.cs | 43 + ...tionServiceClient.GetNamespaceSnippet.g.cs | 43 + ...nServiceClient.GetServiceAsyncSnippet.g.cs | 44 + ...t.GetServiceRequestObjectAsyncSnippet.g.cs | 47 + ...Client.GetServiceRequestObjectSnippet.g.cs | 46 + ...t.GetServiceResourceNamesAsyncSnippet.g.cs | 44 + ...Client.GetServiceResourceNamesSnippet.g.cs | 43 + ...rationServiceClient.GetServiceSnippet.g.cs | 43 + ...rviceClient.ListEndpointsAsyncSnippet.g.cs | 79 + ...istEndpointsRequestObjectAsyncSnippet.g.cs | 84 + ...ent.ListEndpointsRequestObjectSnippet.g.cs | 82 + ...istEndpointsResourceNamesAsyncSnippet.g.cs | 79 + ...ent.ListEndpointsResourceNamesSnippet.g.cs | 77 + ...ionServiceClient.ListEndpointsSnippet.g.cs | 77 + ...viceClient.ListNamespacesAsyncSnippet.g.cs | 79 + ...stNamespacesRequestObjectAsyncSnippet.g.cs | 85 + ...nt.ListNamespacesRequestObjectSnippet.g.cs | 83 + ...stNamespacesResourceNamesAsyncSnippet.g.cs | 80 + ...nt.ListNamespacesResourceNamesSnippet.g.cs | 78 + ...onServiceClient.ListNamespacesSnippet.g.cs | 77 + ...erviceClient.ListServicesAsyncSnippet.g.cs | 79 + ...ListServicesRequestObjectAsyncSnippet.g.cs | 84 + ...ient.ListServicesRequestObjectSnippet.g.cs | 82 + ...ListServicesResourceNamesAsyncSnippet.g.cs | 79 + ...ient.ListServicesResourceNamesSnippet.g.cs | 77 + ...tionServiceClient.ListServicesSnippet.g.cs | 77 + ...SetIamPolicyRequestObjectAsyncSnippet.g.cs | 52 + ...ient.SetIamPolicyRequestObjectSnippet.g.cs | 51 + ...mPermissionsRequestObjectAsyncSnippet.g.cs | 50 + ...estIamPermissionsRequestObjectSnippet.g.cs | 49 + ...viceClient.UpdateEndpointAsyncSnippet.g.cs | 46 + ...dateEndpointRequestObjectAsyncSnippet.g.cs | 49 + ...nt.UpdateEndpointRequestObjectSnippet.g.cs | 48 + ...onServiceClient.UpdateEndpointSnippet.g.cs | 45 + ...iceClient.UpdateNamespaceAsyncSnippet.g.cs | 46 + ...ateNamespaceRequestObjectAsyncSnippet.g.cs | 49 + ...t.UpdateNamespaceRequestObjectSnippet.g.cs | 48 + ...nServiceClient.UpdateNamespaceSnippet.g.cs | 45 + ...rviceClient.UpdateServiceAsyncSnippet.g.cs | 46 + ...pdateServiceRequestObjectAsyncSnippet.g.cs | 49 + ...ent.UpdateServiceRequestObjectSnippet.g.cs | 48 + ...ionServiceClient.UpdateServiceSnippet.g.cs | 45 + ...google.cloud.servicedirectory.v1beta1.json | 4629 +++ ...d.ServiceDirectory.V1Beta1.Snippets.csproj | 15 + .../LookupServiceClientSnippets.g.cs | 62 + .../RegistrationServiceClientSnippets.g.cs | 1989 ++ .../Endpoint.g.cs | 587 + .../EndpointResourceNames.g.cs | 560 + ...ogle.Cloud.ServiceDirectory.V1Beta1.csproj | 49 + .../LookupService.g.cs | 585 + .../LookupServiceClient.g.cs | 347 + .../LookupServiceGrpc.g.cs | 217 + .../LookupServiceResourceNames.g.cs | 33 + .../Namespace.g.cs | 430 + .../NamespaceResourceNames.g.cs | 285 + .../PackageApiMetadata.g.cs | 56 + .../RegistrationService.g.cs | 4937 +++ .../RegistrationServiceClient.g.cs | 3310 ++ .../RegistrationServiceGrpc.g.cs | 1476 + .../RegistrationServiceResourceNames.g.cs | 166 + .../Service.g.cs | 485 + .../ServiceCollectionExtensions.g.cs | 99 + .../ServiceResourceNames.g.cs | 303 + .../gapic_metadata.json | 141 + ....ServiceHealth.V1.GeneratedSnippets.csproj | 15 + ...viceHealthClient.GetEventAsyncSnippet.g.cs | 44 + ...ent.GetEventRequestObjectAsyncSnippet.g.cs | 47 + ...thClient.GetEventRequestObjectSnippet.g.cs | 46 + ...ent.GetEventResourceNamesAsyncSnippet.g.cs | 44 + ...thClient.GetEventResourceNamesSnippet.g.cs | 43 + .../ServiceHealthClient.GetEventSnippet.g.cs | 43 + ...ient.GetOrganizationEventAsyncSnippet.g.cs | 44 + ...izationEventRequestObjectAsyncSnippet.g.cs | 47 + ...OrganizationEventRequestObjectSnippet.g.cs | 46 + ...izationEventResourceNamesAsyncSnippet.g.cs | 44 + ...OrganizationEventResourceNamesSnippet.g.cs | 43 + ...lthClient.GetOrganizationEventSnippet.g.cs | 43 + ...ent.GetOrganizationImpactAsyncSnippet.g.cs | 44 + ...zationImpactRequestObjectAsyncSnippet.g.cs | 47 + ...rganizationImpactRequestObjectSnippet.g.cs | 46 + ...zationImpactResourceNamesAsyncSnippet.g.cs | 44 + ...rganizationImpactResourceNamesSnippet.g.cs | 43 + ...thClient.GetOrganizationImpactSnippet.g.cs | 43 + ...ceHealthClient.ListEventsAsyncSnippet.g.cs | 79 + ...t.ListEventsRequestObjectAsyncSnippet.g.cs | 85 + ...Client.ListEventsRequestObjectSnippet.g.cs | 83 + ...t.ListEventsResourceNamesAsyncSnippet.g.cs | 80 + ...Client.ListEventsResourceNamesSnippet.g.cs | 78 + ...ServiceHealthClient.ListEventsSnippet.g.cs | 77 + ...nt.ListOrganizationEventsAsyncSnippet.g.cs | 79 + ...zationEventsRequestObjectAsyncSnippet.g.cs | 84 + ...rganizationEventsRequestObjectSnippet.g.cs | 82 + ...zationEventsResourceNamesAsyncSnippet.g.cs | 79 + ...rganizationEventsResourceNamesSnippet.g.cs | 77 + ...hClient.ListOrganizationEventsSnippet.g.cs | 77 + ...t.ListOrganizationImpactsAsyncSnippet.g.cs | 79 + ...ationImpactsRequestObjectAsyncSnippet.g.cs | 83 + ...ganizationImpactsRequestObjectSnippet.g.cs | 81 + ...ationImpactsResourceNamesAsyncSnippet.g.cs | 79 + ...ganizationImpactsResourceNamesSnippet.g.cs | 77 + ...Client.ListOrganizationImpactsSnippet.g.cs | 77 + ...etadata_google.cloud.servicehealth.v1.json | 1832 ++ ...gle.Cloud.ServiceHealth.V1.Snippets.csproj | 15 + .../ServiceHealthClientSnippets.g.cs | 1128 + .../EventResources.g.cs | 6145 ++++ .../EventResourcesResourceNames.g.cs | 1155 + .../EventService.g.cs | 75 + .../EventServiceGrpc.g.cs | 592 + .../Google.Cloud.ServiceHealth.V1.csproj | 48 + .../PackageApiMetadata.g.cs | 53 + .../ServiceCollectionExtensions.g.cs | 63 + .../ServiceHealthClient.g.cs | 1622 + .../gapic_metadata.json | 54 + ...viceManagement.V1.GeneratedSnippets.csproj | 15 + ...nagerClient.CreateServiceAsyncSnippet.g.cs | 61 + ...lient.CreateServiceConfigAsyncSnippet.g.cs | 46 + ...erviceConfigRequestObjectAsyncSnippet.g.cs | 49 + ...eateServiceConfigRequestObjectSnippet.g.cs | 48 + ...agerClient.CreateServiceConfigSnippet.g.cs | 45 + ...reateServiceRequestObjectAsyncSnippet.g.cs | 64 + ...ent.CreateServiceRequestObjectSnippet.g.cs | 63 + ...ient.CreateServiceRolloutAsyncSnippet.g.cs | 62 + ...rviceRolloutRequestObjectAsyncSnippet.g.cs | 65 + ...ateServiceRolloutRequestObjectSnippet.g.cs | 64 + ...gerClient.CreateServiceRolloutSnippet.g.cs | 61 + ...iceManagerClient.CreateServiceSnippet.g.cs | 60 + ...nagerClient.DeleteServiceAsyncSnippet.g.cs | 62 + ...eleteServiceRequestObjectAsyncSnippet.g.cs | 62 + ...ent.DeleteServiceRequestObjectSnippet.g.cs | 61 + ...iceManagerClient.DeleteServiceSnippet.g.cs | 61 + ...ient.GenerateConfigReportAsyncSnippet.g.cs | 46 + ...ConfigReportRequestObjectAsyncSnippet.g.cs | 49 + ...erateConfigReportRequestObjectSnippet.g.cs | 48 + ...gerClient.GenerateConfigReportSnippet.g.cs | 45 + ...eManagerClient.GetServiceAsyncSnippet.g.cs | 44 + ...erClient.GetServiceConfigAsyncSnippet.g.cs | 47 + ...erviceConfigRequestObjectAsyncSnippet.g.cs | 50 + ....GetServiceConfigRequestObjectSnippet.g.cs | 49 + ...ManagerClient.GetServiceConfigSnippet.g.cs | 46 + ...t.GetServiceRequestObjectAsyncSnippet.g.cs | 44 + ...Client.GetServiceRequestObjectSnippet.g.cs | 43 + ...rClient.GetServiceRolloutAsyncSnippet.g.cs | 45 + ...rviceRolloutRequestObjectAsyncSnippet.g.cs | 48 + ...GetServiceRolloutRequestObjectSnippet.g.cs | 47 + ...anagerClient.GetServiceRolloutSnippet.g.cs | 44 + ...erviceManagerClient.GetServiceSnippet.g.cs | 43 + ...Client.ListServiceConfigsAsyncSnippet.g.cs | 80 + ...rviceConfigsRequestObjectAsyncSnippet.g.cs | 80 + ...istServiceConfigsRequestObjectSnippet.g.cs | 78 + ...nagerClient.ListServiceConfigsSnippet.g.cs | 78 + ...lient.ListServiceRolloutsAsyncSnippet.g.cs | 80 + ...viceRolloutsRequestObjectAsyncSnippet.g.cs | 83 + ...stServiceRolloutsRequestObjectSnippet.g.cs | 81 + ...agerClient.ListServiceRolloutsSnippet.g.cs | 78 + ...anagerClient.ListServicesAsyncSnippet.g.cs | 82 + ...ListServicesRequestObjectAsyncSnippet.g.cs | 82 + ...ient.ListServicesRequestObjectSnippet.g.cs | 80 + ...viceManagerClient.ListServicesSnippet.g.cs | 80 + ...Client.SubmitConfigSourceAsyncSnippet.g.cs | 63 + ...ConfigSourceRequestObjectAsyncSnippet.g.cs | 66 + ...ubmitConfigSourceRequestObjectSnippet.g.cs | 65 + ...nagerClient.SubmitConfigSourceSnippet.g.cs | 62 + ...gerClient.UndeleteServiceAsyncSnippet.g.cs | 61 + ...eleteServiceRequestObjectAsyncSnippet.g.cs | 61 + ...t.UndeleteServiceRequestObjectSnippet.g.cs | 60 + ...eManagerClient.UndeleteServiceSnippet.g.cs | 60 + ...adata_google.api.servicemanagement.v1.json | 2638 ++ ...Cloud.ServiceManagement.V1.Snippets.csproj | 15 + .../ServiceManagerClientSnippets.g.cs | 1527 + .../Google.Cloud.ServiceManagement.V1.csproj | 49 + .../PackageApiMetadata.g.cs | 67 + .../Resources.g.cs | 3090 ++ .../ServiceCollectionExtensions.g.cs | 64 + .../ServiceManagerClient.g.cs | 2873 ++ .../Servicemanager.g.cs | 5048 ++++ .../ServicemanagerGrpc.g.cs | 1451 + .../gapic_metadata.json | 96 + ...d.ServiceUsage.V1.GeneratedSnippets.csproj | 15 + ...ableServicesRequestObjectAsyncSnippet.g.cs | 65 + ...tchEnableServicesRequestObjectSnippet.g.cs | 64 + ...hGetServicesRequestObjectAsyncSnippet.g.cs | 48 + ....BatchGetServicesRequestObjectSnippet.g.cs | 47 + ...sableServiceRequestObjectAsyncSnippet.g.cs | 66 + ...nt.DisableServiceRequestObjectSnippet.g.cs | 65 + ...nableServiceRequestObjectAsyncSnippet.g.cs | 61 + ...ent.EnableServiceRequestObjectSnippet.g.cs | 60 + ...t.GetServiceRequestObjectAsyncSnippet.g.cs | 44 + ...Client.GetServiceRequestObjectSnippet.g.cs | 43 + ...ListServicesRequestObjectAsyncSnippet.g.cs | 83 + ...ient.ListServicesRequestObjectSnippet.g.cs | 81 + ...t_metadata_google.api.serviceusage.v1.json | 596 + ...ogle.Cloud.ServiceUsage.V1.Snippets.csproj | 15 + .../ServiceUsageClientSnippets.g.cs | 384 + .../Google.Cloud.ServiceUsage.V1.csproj | 48 + .../PackageApiMetadata.g.cs | 53 + .../Resources.g.cs | 1195 + .../ResourcesResourceNames.g.cs | 349 + .../ServiceCollectionExtensions.g.cs | 63 + .../ServiceUsageClient.g.cs | 934 + .../Serviceusage.g.cs | 2919 ++ .../ServiceusageGrpc.g.cs | 682 + .../gapic_metadata.json | 54 + ...AddPublicKeyRequestObjectAsyncSnippet.g.cs | 65 + ...ient.AddPublicKeyRequestObjectSnippet.g.cs | 64 + ...eEnvironmentRequestObjectAsyncSnippet.g.cs | 68 + ...horizeEnvironmentRequestObjectSnippet.g.cs | 67 + ...viceClient.GetEnvironmentAsyncSnippet.g.cs | 44 + ...tEnvironmentRequestObjectAsyncSnippet.g.cs | 47 + ...nt.GetEnvironmentRequestObjectSnippet.g.cs | 46 + ...tEnvironmentResourceNamesAsyncSnippet.g.cs | 44 + ...nt.GetEnvironmentResourceNamesSnippet.g.cs | 43 + ...llServiceClient.GetEnvironmentSnippet.g.cs | 43 + ...ovePublicKeyRequestObjectAsyncSnippet.g.cs | 65 + ...t.RemovePublicKeyRequestObjectSnippet.g.cs | 64 + ...tEnvironmentRequestObjectAsyncSnippet.g.cs | 66 + ....StartEnvironmentRequestObjectSnippet.g.cs | 65 + ...le.Cloud.Shell.V1.GeneratedSnippets.csproj | 15 + ...nippet_metadata_google.cloud.shell.v1.json | 689 + .../CloudShellServiceClientSnippets.g.cs | 388 + .../Google.Cloud.Shell.V1.Snippets.csproj | 15 + .../CloudShellServiceClient.g.cs | 973 + .../Google.Cloud.Shell.V1/Cloudshell.g.cs | 3952 +++ .../Google.Cloud.Shell.V1/CloudshellGrpc.g.cs | 568 + .../CloudshellResourceNames.g.cs | 276 + .../Google.Cloud.Shell.V1.csproj | 48 + .../PackageApiMetadata.g.cs | 38 + .../ServiceCollectionExtensions.g.cs | 66 + .../Google.Cloud.Shell.V1/gapic_metadata.json | 48 + ...dminClient.AddSplitPointsAsyncSnippet.g.cs | 46 + ...dSplitPointsRequestObjectAsyncSnippet.g.cs | 49 + ...nt.AddSplitPointsRequestObjectSnippet.g.cs | 48 + ...dSplitPointsResourceNamesAsyncSnippet.g.cs | 46 + ...nt.AddSplitPointsResourceNamesSnippet.g.cs | 45 + ...baseAdminClient.AddSplitPointsSnippet.g.cs | 45 + ...aseAdminClient.CopyBackupAsyncSnippet.g.cs | 65 + ...t.CopyBackupRequestObjectAsyncSnippet.g.cs | 69 + ...Client.CopyBackupRequestObjectSnippet.g.cs | 68 + ...t.CopyBackupResourceNamesAsyncSnippet.g.cs | 65 + ...Client.CopyBackupResourceNamesSnippet.g.cs | 64 + ...DatabaseAdminClient.CopyBackupSnippet.g.cs | 64 + ...eAdminClient.CreateBackupAsyncSnippet.g.cs | 63 + ...CreateBackupRequestObjectAsyncSnippet.g.cs | 67 + ...ient.CreateBackupRequestObjectSnippet.g.cs | 66 + ...CreateBackupResourceNamesAsyncSnippet.g.cs | 63 + ...ient.CreateBackupResourceNamesSnippet.g.cs | 62 + ...ient.CreateBackupScheduleAsyncSnippet.g.cs | 46 + ...ckupScheduleRequestObjectAsyncSnippet.g.cs | 49 + ...ateBackupScheduleRequestObjectSnippet.g.cs | 48 + ...ckupScheduleResourceNamesAsyncSnippet.g.cs | 46 + ...ateBackupScheduleResourceNamesSnippet.g.cs | 45 + ...minClient.CreateBackupScheduleSnippet.g.cs | 45 + ...tabaseAdminClient.CreateBackupSnippet.g.cs | 62 + ...dminClient.CreateDatabaseAsyncSnippet.g.cs | 62 + ...eateDatabaseRequestObjectAsyncSnippet.g.cs | 70 + ...nt.CreateDatabaseRequestObjectSnippet.g.cs | 69 + ...eateDatabaseResourceNamesAsyncSnippet.g.cs | 62 + ...nt.CreateDatabaseResourceNamesSnippet.g.cs | 61 + ...baseAdminClient.CreateDatabaseSnippet.g.cs | 61 + ...eAdminClient.DeleteBackupAsyncSnippet.g.cs | 44 + ...DeleteBackupRequestObjectAsyncSnippet.g.cs | 47 + ...ient.DeleteBackupRequestObjectSnippet.g.cs | 46 + ...DeleteBackupResourceNamesAsyncSnippet.g.cs | 44 + ...ient.DeleteBackupResourceNamesSnippet.g.cs | 43 + ...ient.DeleteBackupScheduleAsyncSnippet.g.cs | 44 + ...ckupScheduleRequestObjectAsyncSnippet.g.cs | 47 + ...eteBackupScheduleRequestObjectSnippet.g.cs | 46 + ...ckupScheduleResourceNamesAsyncSnippet.g.cs | 44 + ...eteBackupScheduleResourceNamesSnippet.g.cs | 43 + ...minClient.DeleteBackupScheduleSnippet.g.cs | 43 + ...tabaseAdminClient.DeleteBackupSnippet.g.cs | 43 + ...eAdminClient.DropDatabaseAsyncSnippet.g.cs | 44 + ...DropDatabaseRequestObjectAsyncSnippet.g.cs | 47 + ...ient.DropDatabaseRequestObjectSnippet.g.cs | 46 + ...DropDatabaseResourceNamesAsyncSnippet.g.cs | 44 + ...ient.DropDatabaseResourceNamesSnippet.g.cs | 43 + ...tabaseAdminClient.DropDatabaseSnippet.g.cs | 43 + ...baseAdminClient.GetBackupAsyncSnippet.g.cs | 44 + ...nt.GetBackupRequestObjectAsyncSnippet.g.cs | 47 + ...nClient.GetBackupRequestObjectSnippet.g.cs | 46 + ...nt.GetBackupResourceNamesAsyncSnippet.g.cs | 44 + ...nClient.GetBackupResourceNamesSnippet.g.cs | 43 + ...nClient.GetBackupScheduleAsyncSnippet.g.cs | 44 + ...ckupScheduleRequestObjectAsyncSnippet.g.cs | 47 + ...GetBackupScheduleRequestObjectSnippet.g.cs | 46 + ...ckupScheduleResourceNamesAsyncSnippet.g.cs | 44 + ...GetBackupScheduleResourceNamesSnippet.g.cs | 43 + ...eAdminClient.GetBackupScheduleSnippet.g.cs | 43 + .../DatabaseAdminClient.GetBackupSnippet.g.cs | 43 + ...seAdminClient.GetDatabaseAsyncSnippet.g.cs | 44 + ...dminClient.GetDatabaseDdlAsyncSnippet.g.cs | 44 + ...tDatabaseDdlRequestObjectAsyncSnippet.g.cs | 47 + ...nt.GetDatabaseDdlRequestObjectSnippet.g.cs | 46 + ...tDatabaseDdlResourceNamesAsyncSnippet.g.cs | 44 + ...nt.GetDatabaseDdlResourceNamesSnippet.g.cs | 43 + ...baseAdminClient.GetDatabaseDdlSnippet.g.cs | 43 + ....GetDatabaseRequestObjectAsyncSnippet.g.cs | 47 + ...lient.GetDatabaseRequestObjectSnippet.g.cs | 46 + ....GetDatabaseResourceNamesAsyncSnippet.g.cs | 44 + ...lient.GetDatabaseResourceNamesSnippet.g.cs | 43 + ...atabaseAdminClient.GetDatabaseSnippet.g.cs | 43 + ...eAdminClient.GetIamPolicyAsyncSnippet.g.cs | 45 + ...GetIamPolicyRequestObjectAsyncSnippet.g.cs | 50 + ...ient.GetIamPolicyRequestObjectSnippet.g.cs | 49 + ...GetIamPolicyResourceNamesAsyncSnippet.g.cs | 46 + ...ient.GetIamPolicyResourceNamesSnippet.g.cs | 45 + ...tabaseAdminClient.GetIamPolicySnippet.g.cs | 44 + ...ient.ListBackupOperationsAsyncSnippet.g.cs | 80 + ...upOperationsRequestObjectAsyncSnippet.g.cs | 84 + ...tBackupOperationsRequestObjectSnippet.g.cs | 82 + ...upOperationsResourceNamesAsyncSnippet.g.cs | 80 + ...tBackupOperationsResourceNamesSnippet.g.cs | 78 + ...minClient.ListBackupOperationsSnippet.g.cs | 78 + ...lient.ListBackupSchedulesAsyncSnippet.g.cs | 79 + ...kupSchedulesRequestObjectAsyncSnippet.g.cs | 82 + ...stBackupSchedulesRequestObjectSnippet.g.cs | 80 + ...kupSchedulesResourceNamesAsyncSnippet.g.cs | 79 + ...stBackupSchedulesResourceNamesSnippet.g.cs | 77 + ...dminClient.ListBackupSchedulesSnippet.g.cs | 77 + ...seAdminClient.ListBackupsAsyncSnippet.g.cs | 79 + ....ListBackupsRequestObjectAsyncSnippet.g.cs | 83 + ...lient.ListBackupsRequestObjectSnippet.g.cs | 81 + ....ListBackupsResourceNamesAsyncSnippet.g.cs | 79 + ...lient.ListBackupsResourceNamesSnippet.g.cs | 77 + ...atabaseAdminClient.ListBackupsSnippet.g.cs | 77 + ...nt.ListDatabaseOperationsAsyncSnippet.g.cs | 80 + ...seOperationsRequestObjectAsyncSnippet.g.cs | 84 + ...atabaseOperationsRequestObjectSnippet.g.cs | 82 + ...seOperationsResourceNamesAsyncSnippet.g.cs | 80 + ...atabaseOperationsResourceNamesSnippet.g.cs | 78 + ...nClient.ListDatabaseOperationsSnippet.g.cs | 78 + ...nClient.ListDatabaseRolesAsyncSnippet.g.cs | 79 + ...atabaseRolesRequestObjectAsyncSnippet.g.cs | 82 + ...ListDatabaseRolesRequestObjectSnippet.g.cs | 80 + ...atabaseRolesResourceNamesAsyncSnippet.g.cs | 79 + ...ListDatabaseRolesResourceNamesSnippet.g.cs | 77 + ...eAdminClient.ListDatabaseRolesSnippet.g.cs | 77 + ...AdminClient.ListDatabasesAsyncSnippet.g.cs | 79 + ...istDatabasesRequestObjectAsyncSnippet.g.cs | 82 + ...ent.ListDatabasesRequestObjectSnippet.g.cs | 80 + ...istDatabasesResourceNamesAsyncSnippet.g.cs | 79 + ...ent.ListDatabasesResourceNamesSnippet.g.cs | 77 + ...abaseAdminClient.ListDatabasesSnippet.g.cs | 77 + ...minClient.RestoreDatabaseAsyncSnippet.g.cs | 63 + ...toreDatabaseRequestObjectAsyncSnippet.g.cs | 67 + ...t.RestoreDatabaseRequestObjectSnippet.g.cs | 66 + ...toreDatabaseResourceNamesAsyncSnippet.g.cs | 63 + ...t.RestoreDatabaseResourceNamesSnippet.g.cs | 62 + ...aseAdminClient.RestoreDatabaseSnippet.g.cs | 62 + ...eAdminClient.SetIamPolicyAsyncSnippet.g.cs | 46 + ...SetIamPolicyRequestObjectAsyncSnippet.g.cs | 52 + ...ient.SetIamPolicyRequestObjectSnippet.g.cs | 51 + ...SetIamPolicyResourceNamesAsyncSnippet.g.cs | 47 + ...ient.SetIamPolicyResourceNamesSnippet.g.cs | 46 + ...tabaseAdminClient.SetIamPolicySnippet.g.cs | 45 + ...Client.TestIamPermissionsAsyncSnippet.g.cs | 47 + ...mPermissionsRequestObjectAsyncSnippet.g.cs | 50 + ...estIamPermissionsRequestObjectSnippet.g.cs | 49 + ...mPermissionsResourceNamesAsyncSnippet.g.cs | 48 + ...estIamPermissionsResourceNamesSnippet.g.cs | 47 + ...AdminClient.TestIamPermissionsSnippet.g.cs | 46 + ...eAdminClient.UpdateBackupAsyncSnippet.g.cs | 46 + ...UpdateBackupRequestObjectAsyncSnippet.g.cs | 49 + ...ient.UpdateBackupRequestObjectSnippet.g.cs | 48 + ...ient.UpdateBackupScheduleAsyncSnippet.g.cs | 46 + ...ckupScheduleRequestObjectAsyncSnippet.g.cs | 49 + ...ateBackupScheduleRequestObjectSnippet.g.cs | 48 + ...minClient.UpdateBackupScheduleSnippet.g.cs | 45 + ...tabaseAdminClient.UpdateBackupSnippet.g.cs | 45 + ...dminClient.UpdateDatabaseAsyncSnippet.g.cs | 63 + ...nClient.UpdateDatabaseDdlAsyncSnippet.g.cs | 64 + ...eDatabaseDdlRequestObjectAsyncSnippet.g.cs | 69 + ...UpdateDatabaseDdlRequestObjectSnippet.g.cs | 68 + ...eDatabaseDdlResourceNamesAsyncSnippet.g.cs | 64 + ...UpdateDatabaseDdlResourceNamesSnippet.g.cs | 63 + ...eAdminClient.UpdateDatabaseDdlSnippet.g.cs | 63 + ...dateDatabaseRequestObjectAsyncSnippet.g.cs | 66 + ...nt.UpdateDatabaseRequestObjectSnippet.g.cs | 65 + ...baseAdminClient.UpdateDatabaseSnippet.g.cs | 62 + ...Admin.Database.V1.GeneratedSnippets.csproj | 15 + ...data_google.spanner.admin.database.v1.json | 7622 +++++ .../DatabaseAdminClientSnippets.g.cs | 4018 +++ ....Spanner.Admin.Database.V1.Snippets.csproj | 15 + .../Backup.g.cs | 5771 ++++ .../BackupResourceNames.g.cs | 492 + .../BackupSchedule.g.cs | 2650 ++ .../BackupScheduleResourceNames.g.cs | 355 + .../Common.g.cs | 954 + .../CommonResourceNames.g.cs | 623 + .../DatabaseAdminClient.g.cs | 7022 +++++ ...gle.Cloud.Spanner.Admin.Database.V1.csproj | 49 + .../PackageApiMetadata.g.cs | 65 + .../ServiceCollectionExtensions.g.cs | 67 + .../SpannerDatabaseAdmin.g.cs | 8588 ++++++ .../SpannerDatabaseAdminGrpc.g.cs | 2726 ++ .../SpannerDatabaseAdminResourceNames.g.cs | 982 + .../gapic_metadata.json | 174 + 2433 files changed, 701863 insertions(+) create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/Google.Cloud.SecretManager.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/snippet_metadata_google.cloud.secretmanager.v1.json create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.Snippets/Google.Cloud.SecretManager.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.Snippets/SecretManagerServiceClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Resources.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ResourcesResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/SecretManagerServiceClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Service.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.secrets.v1beta1.json create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.Snippets/Google.Cloud.SecretManager.V1Beta1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.Snippets/SecretManagerServiceClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/Resources.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ResourcesResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/SecretManagerServiceClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/Service.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/gapic_metadata.json 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 create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositorySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositorySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositorySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/snippet_metadata_google.cloud.securesourcemanager.v1.json create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.Snippets/Google.Cloud.SecureSourceManager.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.Snippets/SecureSourceManagerClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManager.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManagerClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManagerGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManagerResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecureSourceManager.V1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthoritySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthoritySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthoritySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthoritySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthoritySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthoritySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthoritySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthorityAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthorityRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthorityRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthoritySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/snippet_metadata_google.cloud.security.privateca.v1.json create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.Snippets/CertificateAuthorityServiceClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.Snippets/Google.Cloud.Security.PrivateCA.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/CertificateAuthorityServiceClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/Resources.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ResourcesResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/Service.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/snippet_metadata_google.cloud.security.publicca.v1.json create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.Snippets/Google.Cloud.Security.PublicCA.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.Snippets/PublicCertificateAuthorityServiceClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/PublicCertificateAuthorityServiceClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/Resources.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ResourcesResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/Service.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.security.publicca.v1beta1.json create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.Snippets/Google.Cloud.Security.PublicCA.V1Beta1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.Snippets/PublicCertificateAuthorityServiceClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.csproj create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/PublicCertificateAuthorityServiceClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/Resources.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ResourcesResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/Service.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchGetSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchGetSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetComponentSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetComponentSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.securitycenter.settings.v1beta1.json create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.Snippets/Google.Cloud.SecurityCenter.Settings.V1Beta1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.Snippets/SecurityCenterSettingsServiceClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/BillingSettings.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/ComponentSettings.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/ComponentSettingsResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/Detector.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecurityCenterSettingsServiceClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecuritycenterSettingsService.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecuritycenterSettingsServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecuritycenterSettingsServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/Settings.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SettingsResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SinkSettings.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/Google.Cloud.SecurityCenter.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames4AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames4Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames5AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames5Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames6AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames6Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames4AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames4Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames5AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames5Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames6AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames6Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupAssetsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupAssetsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAssetsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAssetsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListFindingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListFindingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames4AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames4Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames5AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames5Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames6AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames6Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoverySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ValidateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ValidateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/snippet_metadata_google.cloud.securitycenter.v1.json create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.Snippets/Google.Cloud.SecurityCenter.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.Snippets/SecurityCenterClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Access.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Application.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Asset.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AssetResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AttackExposure.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AttackPath.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AttackPathResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/BackupDisasterRecovery.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/BigqueryExport.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/BigqueryExportResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudArmor.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpDataProfile.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpDataProfileResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpInspection.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpInspectionResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Compliance.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Connection.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ContactDetails.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Container.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Database.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveEventThreatDetectionCustomModule.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveEventThreatDetectionCustomModuleResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveSecurityHealthAnalyticsCustomModule.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveSecurityHealthAnalyticsCustomModuleResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EventThreatDetectionCustomModule.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EventThreatDetectionCustomModuleResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EventThreatDetectionCustomModuleValidationErrors.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Exfiltration.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ExternalSystem.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ExternalSystemResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/File.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Finding.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/FindingResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Folder.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/GroupMembership.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/IamBinding.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Indicator.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/KernelRootkit.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Kubernetes.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Label.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/LoadBalancer.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/LogEntry.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/MitreAttack.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/MuteConfig.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/MuteConfigResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Notebook.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/NotificationConfig.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/NotificationConfigResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/NotificationMessage.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/OrgPolicy.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/OrgPolicyResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/OrganizationSettings.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/OrganizationSettingsResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Process.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Resource.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ResourceValueConfig.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ResourceValueConfigResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/RunAssetDiscoveryResponse.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecurityCenterClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecurityHealthAnalyticsCustomConfig.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecurityHealthAnalyticsCustomModule.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecurityHealthAnalyticsCustomModuleResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecurityMarks.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecurityMarksResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecurityPosture.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecuritycenterService.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecuritycenterServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecuritycenterServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Simulation.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SimulationResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Source.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SourceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ToxicCombination.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ValuedResource.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ValuedResourceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Vulnerability.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateFinding1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateFinding1ResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateFinding1ResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateFinding1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateFinding2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateFinding2ResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateFinding2ResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateFinding2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateFindingRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateFindingRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateSourceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateSourceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateSourceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateSourceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateSourceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.CreateSourceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetIamPolicySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetSourceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetSourceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetSourceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetSourceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetSourceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GetSourceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GroupAssetsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GroupAssetsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GroupFindingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GroupFindingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GroupFindingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GroupFindingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GroupFindingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.GroupFindingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListAssetsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListAssetsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListAssetsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListAssetsResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListAssetsResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListAssetsResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListAssetsResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListAssetsResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListAssetsResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListAssetsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListFindingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListFindingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListFindingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListFindingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListFindingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListFindingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListSourcesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListSourcesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListSourcesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListSourcesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoverySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.SetFindingStateAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.SetFindingStateRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.SetFindingStateRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.SetFindingStateResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.SetFindingStateResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.SetFindingStateSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.SetIamPolicySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateFinding1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateFinding1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateFinding2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateFinding2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateFindingRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateFindingRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarks1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarks1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarks2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarks2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateSource1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateSource1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateSource2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateSource2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateSourceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.UpdateSourceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.securitycenter.v1p1beta1.json create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.Snippets/Google.Cloud.SecurityCenter.V1P1Beta1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.Snippets/SecurityCenterClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/Asset.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/AssetResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/Finding.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/FindingResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/Folder.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/NotificationConfig.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/NotificationConfigResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/NotificationMessage.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/OrganizationSettings.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/OrganizationSettingsResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/Resource.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/RunAssetDiscoveryResponse.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/SecurityCenterClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/SecurityMarks.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/SecurityMarksResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/SecuritycenterService.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/SecuritycenterServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/SecuritycenterServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/Source.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1/SourceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V1P1Beta1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/Google.Cloud.SecurityCenter.V2.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateFindingAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateFindingRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateFindingRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateFindingResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateFindingResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateFindingSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigResourceNames4AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigResourceNames4Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigResourceNames5AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigResourceNames5Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigResourceNames6AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigResourceNames6Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateSourceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateSourceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateSourceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateSourceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateSourceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.CreateSourceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetIamPolicyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetIamPolicyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetIamPolicySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetMuteConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetMuteConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetMuteConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetMuteConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetMuteConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetMuteConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetSimulationAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetSimulationRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetSimulationRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetSimulationResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetSimulationResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetSimulationSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetSourceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetSourceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetSourceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetSourceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetSourceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetSourceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetValuedResourceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetValuedResourceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetValuedResourceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetValuedResourceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetValuedResourceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GetValuedResourceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GroupFindingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GroupFindingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GroupFindingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GroupFindingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GroupFindingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.GroupFindingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListAttackPathsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListAttackPathsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListAttackPathsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListAttackPathsResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListAttackPathsResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListAttackPathsResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListAttackPathsResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListAttackPathsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListFindingsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListFindingsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListFindingsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListFindingsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListFindingsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListFindingsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames4AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames4Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames5AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames5Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames6AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames6Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListSourcesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListSourcesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListSourcesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListSourcesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetFindingStateAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetFindingStateRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetFindingStateRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetFindingStateResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetFindingStateResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetFindingStateSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetIamPolicyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetIamPolicyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetIamPolicySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetMuteAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetMuteRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetMuteRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetMuteResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetMuteResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.SetMuteSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateFindingAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateFindingRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateFindingRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateFindingSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateSourceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateSourceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateSourceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/SecurityCenterClient.UpdateSourceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.GeneratedSnippets/snippet_metadata_google.cloud.securitycenter.v2.json create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.Snippets/Google.Cloud.SecurityCenter.V2.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.Snippets/SecurityCenterClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Access.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Application.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/AttackExposure.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/AttackPath.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/AttackPathResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/BackupDisasterRecovery.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/BigqueryExport.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/BigqueryExportResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/CloudArmor.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/CloudDlpDataProfile.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/CloudDlpDataProfileResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/CloudDlpInspection.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/CloudDlpInspectionResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Compliance.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Connection.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/ContactDetails.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Container.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Database.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Exfiltration.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/ExternalSystem.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/ExternalSystemResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/File.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Finding.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/FindingResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Folder.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/GroupMembership.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/IamBinding.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Indicator.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/KernelRootkit.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Kubernetes.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Label.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/LoadBalancer.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/LogEntry.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/MitreAttack.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/MuteConfig.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/MuteConfigResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Notebook.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/NotificationConfig.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/NotificationConfigResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/NotificationMessage.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/OrgPolicy.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/OrgPolicyResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Process.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Resource.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/ResourceValueConfig.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/ResourceValueConfigResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/SecurityCenterClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/SecurityMarks.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/SecurityMarksResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/SecurityPosture.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/SecuritycenterService.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/SecuritycenterServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/SecuritycenterServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Simulation.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/SimulationResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Source.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/SourceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/ToxicCombination.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/ValuedResource.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/ValuedResourceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/Google.Cloud.SecurityCenter.V2/Vulnerability.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenter.V2/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateEventThreatDetectionCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateEventThreatDetectionCustomModuleResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateEventThreatDetectionCustomModuleResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateEventThreatDetectionCustomModuleResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateEventThreatDetectionCustomModuleResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateEventThreatDetectionCustomModuleResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateEventThreatDetectionCustomModuleResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateEventThreatDetectionCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateSecurityHealthAnalyticsCustomModuleResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateSecurityHealthAnalyticsCustomModuleResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateSecurityHealthAnalyticsCustomModuleResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateSecurityHealthAnalyticsCustomModuleResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateSecurityHealthAnalyticsCustomModuleResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateSecurityHealthAnalyticsCustomModuleResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.CreateSecurityHealthAnalyticsCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.DeleteEventThreatDetectionCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.DeleteEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.DeleteEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.DeleteEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.DeleteEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.DeleteEventThreatDetectionCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.DeleteSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.DeleteSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.DeleteSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.DeleteSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.DeleteSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.DeleteSecurityHealthAnalyticsCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEffectiveEventThreatDetectionCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEffectiveEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEffectiveEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEffectiveEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEffectiveEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEffectiveEventThreatDetectionCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEffectiveSecurityHealthAnalyticsCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEventThreatDetectionCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetEventThreatDetectionCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetSecurityCenterServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetSecurityCenterServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetSecurityCenterServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetSecurityCenterServiceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetSecurityCenterServiceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetSecurityCenterServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.GetSecurityHealthAnalyticsCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityCenterServicesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityCenterServicesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityCenterServicesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityCenterServicesResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityCenterServicesResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityCenterServicesResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityCenterServicesResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityCenterServicesResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityCenterServicesResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityCenterServicesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesResourceNames3AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesResourceNames3Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.SimulateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.SimulateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.SimulateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.SimulateSecurityHealthAnalyticsCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.UpdateEventThreatDetectionCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.UpdateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.UpdateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.UpdateEventThreatDetectionCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.UpdateSecurityCenterServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.UpdateSecurityCenterServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.UpdateSecurityCenterServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.UpdateSecurityCenterServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.UpdateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.UpdateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.UpdateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.UpdateSecurityHealthAnalyticsCustomModuleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ValidateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/SecurityCenterManagementClient.ValidateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.GeneratedSnippets/snippet_metadata_google.cloud.securitycentermanagement.v1.json create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.Snippets/Google.Cloud.SecurityCenterManagement.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.Snippets/SecurityCenterManagementClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1/SecurityCenterManagement.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1/SecurityCenterManagementClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1/SecurityCenterManagementGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1/SecurityCenterManagementResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/Google.Cloud.SecurityCenterManagement.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecurityCenterManagement.V1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1.GeneratedSnippets/Google.Cloud.ServiceControl.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1.GeneratedSnippets/QuotaControllerClient.AllocateQuotaRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1.GeneratedSnippets/QuotaControllerClient.AllocateQuotaRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1.GeneratedSnippets/ServiceControllerClient.CheckRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1.GeneratedSnippets/ServiceControllerClient.CheckRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1.GeneratedSnippets/ServiceControllerClient.ReportRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1.GeneratedSnippets/ServiceControllerClient.ReportRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1.GeneratedSnippets/snippet_metadata_google.api.servicecontrol.v1.json create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1.Snippets/Google.Cloud.ServiceControl.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1.Snippets/QuotaControllerClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1.Snippets/ServiceControllerClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/CheckError.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/Distribution.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/HttpRequest.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/LogEntry.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/MetricValue.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/Operation.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/QuotaController.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/QuotaControllerClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/QuotaControllerGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/ServiceController.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/ServiceControllerClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/Google.Cloud.ServiceControl.V1/ServiceControllerGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceControl.V1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/LookupServiceClient.ResolveServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/LookupServiceClient.ResolveServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateEndpointAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateEndpointRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateEndpointRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateEndpointResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateEndpointResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateEndpointSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateNamespaceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateNamespaceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateNamespaceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateNamespaceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateNamespaceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateNamespaceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateServiceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateServiceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.CreateServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteEndpointAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteEndpointRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteEndpointRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteEndpointResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteEndpointResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteEndpointSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteNamespaceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteNamespaceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteNamespaceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteNamespaceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteNamespaceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteNamespaceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteServiceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteServiceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.DeleteServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetEndpointAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetEndpointRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetEndpointRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetEndpointResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetEndpointResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetEndpointSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetNamespaceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetNamespaceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetNamespaceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetNamespaceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetNamespaceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetNamespaceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetServiceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetServiceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.GetServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListEndpointsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListEndpointsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListEndpointsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListEndpointsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListEndpointsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListEndpointsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListNamespacesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListNamespacesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListNamespacesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListNamespacesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListNamespacesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListNamespacesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListServicesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListServicesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListServicesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListServicesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListServicesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.ListServicesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.SetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.UpdateEndpointAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.UpdateEndpointRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.UpdateEndpointRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.UpdateEndpointSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.UpdateNamespaceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.UpdateNamespaceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.UpdateNamespaceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.UpdateNamespaceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.UpdateServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.UpdateServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.UpdateServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/RegistrationServiceClient.UpdateServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.GeneratedSnippets/snippet_metadata_google.cloud.servicedirectory.v1.json create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.Snippets/Google.Cloud.ServiceDirectory.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.Snippets/LookupServiceClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.Snippets/RegistrationServiceClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/Endpoint.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/EndpointResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/LookupService.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/LookupServiceClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/LookupServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/LookupServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/Namespace.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/NamespaceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/RegistrationService.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/RegistrationServiceClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/RegistrationServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/RegistrationServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/Service.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/Google.Cloud.ServiceDirectory.V1/ServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/LookupServiceClient.ResolveServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/LookupServiceClient.ResolveServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateEndpointAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateEndpointRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateEndpointRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateEndpointResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateEndpointResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateEndpointSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateNamespaceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateNamespaceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateNamespaceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateNamespaceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateNamespaceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateNamespaceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateServiceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateServiceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.CreateServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteEndpointAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteEndpointRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteEndpointRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteEndpointResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteEndpointResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteEndpointSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteNamespaceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteNamespaceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteNamespaceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteNamespaceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteNamespaceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteNamespaceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteServiceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteServiceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.DeleteServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetEndpointAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetEndpointRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetEndpointRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetEndpointResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetEndpointResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetEndpointSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetNamespaceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetNamespaceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetNamespaceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetNamespaceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetNamespaceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetNamespaceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetServiceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetServiceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.GetServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListEndpointsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListEndpointsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListEndpointsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListEndpointsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListEndpointsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListEndpointsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListNamespacesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListNamespacesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListNamespacesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListNamespacesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListNamespacesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListNamespacesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListServicesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListServicesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListServicesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListServicesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListServicesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.ListServicesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.SetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.UpdateEndpointAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.UpdateEndpointRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.UpdateEndpointRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.UpdateEndpointSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.UpdateNamespaceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.UpdateNamespaceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.UpdateNamespaceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.UpdateNamespaceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.UpdateServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.UpdateServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.UpdateServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/RegistrationServiceClient.UpdateServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.servicedirectory.v1beta1.json create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.Snippets/Google.Cloud.ServiceDirectory.V1Beta1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.Snippets/LookupServiceClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.Snippets/RegistrationServiceClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/Endpoint.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/EndpointResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/LookupService.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/LookupServiceClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/LookupServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/LookupServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/Namespace.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/NamespaceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/RegistrationService.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/RegistrationServiceClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/RegistrationServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/RegistrationServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/Service.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1/ServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceDirectory.V1Beta1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/Google.Cloud.ServiceHealth.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetEventAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetEventRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetEventRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetEventResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetEventResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetEventSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetOrganizationEventAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetOrganizationEventRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetOrganizationEventRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetOrganizationEventResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetOrganizationEventResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetOrganizationEventSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetOrganizationImpactAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetOrganizationImpactRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetOrganizationImpactRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetOrganizationImpactResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetOrganizationImpactResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.GetOrganizationImpactSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListEventsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListEventsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListEventsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListEventsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListEventsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListEventsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListOrganizationEventsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListOrganizationEventsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListOrganizationEventsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListOrganizationEventsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListOrganizationEventsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListOrganizationEventsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListOrganizationImpactsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListOrganizationImpactsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListOrganizationImpactsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListOrganizationImpactsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListOrganizationImpactsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/ServiceHealthClient.ListOrganizationImpactsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.GeneratedSnippets/snippet_metadata_google.cloud.servicehealth.v1.json create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.Snippets/Google.Cloud.ServiceHealth.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.Snippets/ServiceHealthClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1/EventResources.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1/EventResourcesResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1/EventService.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1/EventServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/Google.Cloud.ServiceHealth.V1/ServiceHealthClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceHealth.V1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/Google.Cloud.ServiceManagement.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.CreateServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.CreateServiceConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.CreateServiceConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.CreateServiceConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.CreateServiceConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.CreateServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.CreateServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.CreateServiceRolloutAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.CreateServiceRolloutRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.CreateServiceRolloutRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.CreateServiceRolloutSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.CreateServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.DeleteServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.DeleteServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.DeleteServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.DeleteServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GenerateConfigReportAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GenerateConfigReportRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GenerateConfigReportRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GenerateConfigReportSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GetServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GetServiceConfigAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GetServiceConfigRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GetServiceConfigRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GetServiceConfigSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GetServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GetServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GetServiceRolloutAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GetServiceRolloutRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GetServiceRolloutRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GetServiceRolloutSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.GetServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.ListServiceConfigsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.ListServiceConfigsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.ListServiceConfigsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.ListServiceConfigsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.ListServiceRolloutsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.ListServiceRolloutsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.ListServiceRolloutsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.ListServiceRolloutsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.ListServicesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.ListServicesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.ListServicesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.ListServicesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.SubmitConfigSourceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.SubmitConfigSourceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.SubmitConfigSourceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.SubmitConfigSourceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.UndeleteServiceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.UndeleteServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.UndeleteServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/ServiceManagerClient.UndeleteServiceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.GeneratedSnippets/snippet_metadata_google.api.servicemanagement.v1.json create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.Snippets/Google.Cloud.ServiceManagement.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.Snippets/ServiceManagerClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1/Resources.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1/ServiceManagerClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1/Servicemanager.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/Google.Cloud.ServiceManagement.V1/ServicemanagerGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceManagement.V1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/Google.Cloud.ServiceUsage.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/ServiceUsageClient.BatchEnableServicesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/ServiceUsageClient.BatchEnableServicesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/ServiceUsageClient.BatchGetServicesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/ServiceUsageClient.BatchGetServicesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/ServiceUsageClient.DisableServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/ServiceUsageClient.DisableServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/ServiceUsageClient.EnableServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/ServiceUsageClient.EnableServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/ServiceUsageClient.GetServiceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/ServiceUsageClient.GetServiceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/ServiceUsageClient.ListServicesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/ServiceUsageClient.ListServicesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.GeneratedSnippets/snippet_metadata_google.api.serviceusage.v1.json create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.Snippets/Google.Cloud.ServiceUsage.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.Snippets/ServiceUsageClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1/Resources.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1/ResourcesResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1/ServiceUsageClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1/Serviceusage.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/Google.Cloud.ServiceUsage.V1/ServiceusageGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.ServiceUsage.V1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.AddPublicKeyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.AddPublicKeyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.AuthorizeEnvironmentRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.AuthorizeEnvironmentRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.GetEnvironmentAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.GetEnvironmentRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.GetEnvironmentRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.GetEnvironmentResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.GetEnvironmentResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.GetEnvironmentSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.RemovePublicKeyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.RemovePublicKeyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.StartEnvironmentRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/CloudShellServiceClient.StartEnvironmentRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/Google.Cloud.Shell.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.GeneratedSnippets/snippet_metadata_google.cloud.shell.v1.json create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.Snippets/CloudShellServiceClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.Snippets/Google.Cloud.Shell.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1/CloudShellServiceClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1/Cloudshell.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1/CloudshellGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1/CloudshellResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/Google.Cloud.Shell.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Shell.V1/gapic_metadata.json create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.AddSplitPointsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.AddSplitPointsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.AddSplitPointsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.AddSplitPointsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.AddSplitPointsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.AddSplitPointsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CopyBackupAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CopyBackupRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CopyBackupRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CopyBackupResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CopyBackupResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CopyBackupSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateBackupAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateBackupRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateBackupRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateBackupResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateBackupResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateBackupScheduleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateBackupScheduleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateBackupScheduleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateBackupScheduleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateBackupScheduleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateBackupScheduleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateBackupSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateDatabaseAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateDatabaseRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateDatabaseRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateDatabaseResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateDatabaseResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.CreateDatabaseSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DeleteBackupAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DeleteBackupRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DeleteBackupRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DeleteBackupResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DeleteBackupResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DeleteBackupScheduleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DeleteBackupScheduleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DeleteBackupScheduleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DeleteBackupScheduleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DeleteBackupScheduleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DeleteBackupScheduleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DeleteBackupSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DropDatabaseAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DropDatabaseRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DropDatabaseRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DropDatabaseResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DropDatabaseResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.DropDatabaseSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetBackupAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetBackupRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetBackupRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetBackupResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetBackupResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetBackupScheduleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetBackupScheduleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetBackupScheduleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetBackupScheduleResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetBackupScheduleResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetBackupScheduleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetBackupSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetDatabaseAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetDatabaseDdlAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetDatabaseDdlRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetDatabaseDdlRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetDatabaseDdlResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetDatabaseDdlResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetDatabaseDdlSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetDatabaseRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetDatabaseRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetDatabaseResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetDatabaseResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetDatabaseSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetIamPolicyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetIamPolicyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.GetIamPolicySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupOperationsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupOperationsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupOperationsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupOperationsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupOperationsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupOperationsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupSchedulesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupSchedulesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupSchedulesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupSchedulesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupSchedulesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupSchedulesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListBackupsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabaseOperationsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabaseOperationsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabaseOperationsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabaseOperationsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabaseOperationsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabaseOperationsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabaseRolesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabaseRolesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabaseRolesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabaseRolesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabaseRolesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabaseRolesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabasesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabasesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabasesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabasesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabasesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.ListDatabasesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.RestoreDatabaseAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.RestoreDatabaseRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.RestoreDatabaseRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.RestoreDatabaseResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.RestoreDatabaseResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.RestoreDatabaseSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.SetIamPolicyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.SetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.SetIamPolicyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.SetIamPolicySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.TestIamPermissionsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.TestIamPermissionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.TestIamPermissionsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.TestIamPermissionsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateBackupAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateBackupRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateBackupRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateBackupScheduleAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateBackupScheduleRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateBackupScheduleRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateBackupScheduleSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateBackupSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateDatabaseAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateDatabaseDdlAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateDatabaseDdlRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateDatabaseDdlRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateDatabaseDdlResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateDatabaseDdlResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateDatabaseDdlSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateDatabaseRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateDatabaseRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/DatabaseAdminClient.UpdateDatabaseSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.GeneratedSnippets/snippet_metadata_google.spanner.admin.database.v1.json create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.Snippets/DatabaseAdminClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.Snippets/Google.Cloud.Spanner.Admin.Database.V1.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/Backup.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/BackupResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/BackupSchedule.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/BackupScheduleResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/Common.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/CommonResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/DatabaseAdminClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1.csproj create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/SpannerDatabaseAdmin.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/SpannerDatabaseAdminGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/SpannerDatabaseAdminResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Spanner.Admin.Database.V1/gapic_metadata.json diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/Google.Cloud.SecretManager.V1.GeneratedSnippets.csproj b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/Google.Cloud.SecretManager.V1.GeneratedSnippets.csproj new file mode 100755 index 000000000000..1d201b6eeaba --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/Google.Cloud.SecretManager.V1.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.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..512151fb4ae6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_AccessSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_AccessSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..f2181617584c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_AccessSecretVersion_async] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_AccessSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..2153ef1d93b4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_AccessSecretVersion_sync] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_AccessSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..1189e4f8590d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_AccessSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_AccessSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..2911501c318d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_AccessSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_AccessSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..05390569c3a0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_AccessSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_AccessSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..956e11889a96 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_AddSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_AddSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..aa83f3972b24 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_AddSecretVersion_async] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_AddSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..758ed3ef77a1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_AddSecretVersion_sync] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_AddSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..6e9c5d623009 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_AddSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_AddSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..ed2ac70de396 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_AddSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_AddSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..69565522a94a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_AddSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_AddSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretAsyncSnippet.g.cs new file mode 100755 index 000000000000..4005f66ead11 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_CreateSecret_async_flattened] + using Google.Cloud.SecretManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for CreateSecretAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task 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_v1_generated_SecretManagerService_CreateSecret_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..3c2e67909a05 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_CreateSecret_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for CreateSecretAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task 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_v1_generated_SecretManagerService_CreateSecret_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..b2dedc5d4bd8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_CreateSecret_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for CreateSecret + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void 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_v1_generated_SecretManagerService_CreateSecret_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..02df6a351347 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for CreateSecretAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task 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_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..faf49553ee1e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for CreateSecret + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void 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_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..d1f38ae763c0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for CreateSecretAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateSecretResourceNames2Async() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = await secretManagerServiceClient.CreateSecretAsync(parent, secretId, secret); + } + } + // [END secretmanager_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..6e767bc09f3f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for CreateSecret + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateSecretResourceNames2() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = secretManagerServiceClient.CreateSecret(parent, secretId, secret); + } + } + // [END secretmanager_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretSnippet.g.cs new file mode 100755 index 000000000000..73310be0c347 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_CreateSecret_sync_flattened] + using Google.Cloud.SecretManager.V1; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for CreateSecret + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void 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_v1_generated_SecretManagerService_CreateSecret_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretAsyncSnippet.g.cs new file mode 100755 index 000000000000..ada520dc380a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DeleteSecret_async_flattened] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_DeleteSecret_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..4f84e8f09b4f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DeleteSecret_async] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_DeleteSecret_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..bca26a7f65cc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DeleteSecret_sync] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_DeleteSecret_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..bcccefa1573d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DeleteSecret_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_DeleteSecret_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..98d6cfc606fc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DeleteSecret_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_DeleteSecret_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretSnippet.g.cs new file mode 100755 index 000000000000..ee6975acc509 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DeleteSecret_sync_flattened] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_DeleteSecret_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..658e710a5aea --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DestroySecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_DestroySecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..8649e4ff67cb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DestroySecretVersion_async] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_DestroySecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..8cc2e6b86a37 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DestroySecretVersion_sync] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_DestroySecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..2a106b68e337 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DestroySecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_DestroySecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..986f29f4b996 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DestroySecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_DestroySecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionSnippet.g.cs new file mode 100755 index 000000000000..05415197e42b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DestroySecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_DestroySecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..1238a7fea285 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DisableSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_DisableSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..40518b28968c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DisableSecretVersion_async] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_DisableSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..9e157683cd32 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DisableSecretVersion_sync] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_DisableSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..9295aaf968a1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DisableSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_DisableSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..42fc6805f464 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DisableSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_DisableSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..4d9da57320c2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_DisableSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_DisableSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..cafdb0cbc2ec --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_EnableSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_EnableSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..df16dde71505 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_EnableSecretVersion_async] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_EnableSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..3c41277641d4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_EnableSecretVersion_sync] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_EnableSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..186759b2fccb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_EnableSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_EnableSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..0799c62075f9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_EnableSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_EnableSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..cc799f80c087 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_EnableSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_EnableSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..519f5cb42601 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetIamPolicy_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_GetIamPolicy_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..610dbc83fc67 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetIamPolicy_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_GetIamPolicy_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretAsyncSnippet.g.cs new file mode 100755 index 000000000000..34729e4b07d4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetSecret_async_flattened] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_GetSecret_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..db8125a01e94 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetSecret_async] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_GetSecret_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..824eb635ab44 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetSecret_sync] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_GetSecret_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..7fd612771d75 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetSecret_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_GetSecret_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..b85f50510b57 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetSecret_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_GetSecret_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretSnippet.g.cs new file mode 100755 index 000000000000..dc8a07c9707d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetSecret_sync_flattened] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_GetSecret_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..9e66882fbe4a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_GetSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..fefc0fd7e6d6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetSecretVersion_async] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_GetSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..5b13a5d04824 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetSecretVersion_sync] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_GetSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..82a849f2f9ec --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_GetSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..9d240eb30aa2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_GetSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..13c037d286f7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_GetSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_GetSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsAsyncSnippet.g.cs new file mode 100755 index 000000000000..17d6e52623a2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecretVersions_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_ListSecretVersions_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..8301c7c4088e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecretVersions_async] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_ListSecretVersions_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c9847459a170 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecretVersions_sync] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_ListSecretVersions_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..00e3fcc51970 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecretVersions_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_ListSecretVersions_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..576ecb5d2e5f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecretVersions_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_ListSecretVersions_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsSnippet.g.cs new file mode 100755 index 000000000000..028c04875e79 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecretVersions_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_ListSecretVersions_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsAsyncSnippet.g.cs new file mode 100755 index 000000000000..b1e496486c86 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecrets_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecretsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task 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_v1_generated_SecretManagerService_ListSecrets_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..9cc60ef4458c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecrets_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecretsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task 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_v1_generated_SecretManagerService_ListSecrets_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..ada7fbb11fe4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecrets_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + using System; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecrets + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void 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_v1_generated_SecretManagerService_ListSecrets_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..0f019084bf1b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecretsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task 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_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..46aa681c9cd5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + using System; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecrets + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void 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_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..673308ad5ba7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecretsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListSecretsResourceNames2Async() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = secretManagerServiceClient.ListSecretsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Secret item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListSecretsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Secret item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Secret item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END secretmanager_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..b47d0e0abdca --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + using System; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecrets + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListSecretsResourceNames2() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = secretManagerServiceClient.ListSecrets(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Secret item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListSecretsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Secret item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Secret item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END secretmanager_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsSnippet.g.cs new file mode 100755 index 000000000000..4c74fc1de4e5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_ListSecrets_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1; + using System; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecrets + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void 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_v1_generated_SecretManagerService_ListSecrets_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..1f7aca3b468c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_SetIamPolicy_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_SetIamPolicy_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..39acda4857e4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_SetIamPolicy_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_SetIamPolicy_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..bd95d41f7e69 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_TestIamPermissions_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_TestIamPermissions_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c75a7c947255 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_TestIamPermissions_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1; + + 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_v1_generated_SecretManagerService_TestIamPermissions_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretAsyncSnippet.g.cs new file mode 100755 index 000000000000..c39feef579ce --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_UpdateSecret_async_flattened] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_UpdateSecret_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..14fa3c46b214 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_UpdateSecret_async] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_UpdateSecret_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..fbb9258efd6f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_UpdateSecret_sync] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_UpdateSecret_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretSnippet.g.cs new file mode 100755 index 000000000000..5cfac4638bb8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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_v1_generated_SecretManagerService_UpdateSecret_sync_flattened] + using Google.Cloud.SecretManager.V1; + 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_v1_generated_SecretManagerService_UpdateSecret_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/snippet_metadata_google.cloud.secretmanager.v1.json b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/snippet_metadata_google.cloud.secretmanager.v1.json new file mode 100755 index 000000000000..def77e85ea28 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/snippet_metadata_google.cloud.secretmanager.v1.json @@ -0,0 +1,3993 @@ +{ + "clientLibrary": { + "name": "Google.Cloud.SecretManager.V1", + "language": "C_SHARP", + "apis": [ + { + "id": "google.cloud.secretmanager.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.ListSecrets", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.ListSecretsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 37, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.ListSecretsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.ListSecretsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 82, + "type": "FULL" + }, + { + "start": 39, + "end": 80, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames1", + "title": "ListSecretsResourceNames1Async", + "description": "Snippet for ListSecretsAsync", + "file": "SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretsAsync", + "fullName": "Google.Cloud.SecretManager.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames2", + "title": "ListSecretsResourceNames2", + "description": "Snippet for ListSecrets", + "file": "SecretManagerServiceClient.ListSecretsResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecrets", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient.ListSecrets", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames2", + "title": "ListSecretsResourceNames2Async", + "description": "Snippet for ListSecretsAsync", + "file": "SecretManagerServiceClient.ListSecretsResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretsAsync", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient.ListSecretsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_generated_SecretManagerService_CreateSecret_sync", + "title": "CreateSecretRequestObject", + "description": "Snippet for CreateSecret", + "file": "SecretManagerServiceClient.CreateSecretRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecret", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient.CreateSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.CreateSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.CreateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.CreateSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 36, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.CreateSecret", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.CreateSecretAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.CreateSecret", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames1", + "title": "CreateSecretResourceNames1Async", + "description": "Snippet for CreateSecretAsync", + "file": "SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient.CreateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames2", + "title": "CreateSecretResourceNames2", + "description": "Snippet for CreateSecret", + "file": "SecretManagerServiceClient.CreateSecretResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecret", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient.CreateSecret", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames2", + "title": "CreateSecretResourceNames2Async", + "description": "Snippet for CreateSecretAsync", + "file": "SecretManagerServiceClient.CreateSecretResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient.CreateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_generated_SecretManagerService_AddSecretVersion_sync", + "title": "AddSecretVersionRequestObject", + "description": "Snippet for AddSecretVersion", + "file": "SecretManagerServiceClient.AddSecretVersionRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AddSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient.AddSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.AddSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.AddSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.AddSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.AddSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecretManager.V1.SecretPayload", + "name": "payload" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.AddSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecretManager.V1.SecretPayload", + "name": "payload" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.AddSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecretManager.V1.SecretPayload", + "name": "payload" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.AddSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecretManager.V1.SecretPayload", + "name": "payload" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.GetSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.GetSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.GetSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.GetSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.GetSecret", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.GetSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.GetSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.UpdateSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.UpdateSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "UpdateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.UpdateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.UpdateSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "UpdateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.UpdateSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.Secret", + "name": "secret" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "UpdateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.UpdateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "UpdateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DeleteSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.DeleteSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DeleteSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.DeleteSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DeleteSecret", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DeleteSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DeleteSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.ListSecretVersions", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.ListSecretVersionsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 36, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.ListSecretVersionsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.ListSecretVersionsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 38, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.ListSecretVersions", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.ListSecretVersionsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.GetSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.GetSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.GetSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.GetSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.GetSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.GetSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.GetSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.AccessSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.AccessSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.AccessSecretVersionResponse", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.AccessSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.AccessSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.AccessSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.AccessSecretVersionResponse", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.AccessSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.AccessSecretVersionResponse", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.AccessSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DisableSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.DisableSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DisableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.DisableSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DisableSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DisableSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DisableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.EnableSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.EnableSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.EnableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.EnableSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.EnableSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.EnableSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.EnableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DestroySecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.DestroySecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DestroySecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.DestroySecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DestroySecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DestroySecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.SecretManagerServiceClient.DestroySecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.SetIamPolicy", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 37, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.SetIamPolicy", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 38, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetIamPolicy", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetIamPolicy", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.TestIamPermissions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_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.V1.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.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.TestIamPermissions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.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.V1/Google.Cloud.SecretManager.V1.Snippets/Google.Cloud.SecretManager.V1.Snippets.csproj b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.Snippets/Google.Cloud.SecretManager.V1.Snippets.csproj new file mode 100755 index 000000000000..1d201b6eeaba --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.Snippets/Google.Cloud.SecretManager.V1.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.V1/Google.Cloud.SecretManager.V1.Snippets/SecretManagerServiceClientSnippets.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.Snippets/SecretManagerServiceClientSnippets.g.cs new file mode 100755 index 000000000000..7cdcb6fb33fb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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.V1; + 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.V1/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.csproj b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.csproj new file mode 100755 index 000000000000..8bb5d6acefb8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.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.V1/Google.Cloud.SecretManager.V1/PackageApiMetadata.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/PackageApiMetadata.g.cs new file mode 100755 index 000000000000..5d9488b2812c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/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.V1 +{ + /// 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.V1", GetFileDescriptors) + .WithRequestNumericEnumJsonEncoding(true) + .WithHttpRuleOverrides(new scg::Dictionary + { + { + "google.cloud.location.Locations.GetLocation", + // { "get": "/v1/{name=projects/*/locations/*}" } + proto::ByteString.FromBase64("EiEvdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKn0=") + }, + { + "google.cloud.location.Locations.ListLocations", + // { "get": "/v1/{name=projects/*}/locations" } + proto::ByteString.FromBase64("Eh8vdjEve25hbWU9cHJvamVjdHMvKn0vbG9jYXRpb25z") + }, + }); + + private static scg::IEnumerable GetFileDescriptors() + { + yield return gcl::LocationsReflection.Descriptor; + yield return ResourcesReflection.Descriptor; + yield return ServiceReflection.Descriptor; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Resources.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Resources.g.cs new file mode 100755 index 000000000000..b3b508dcbb9c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Resources.g.cs @@ -0,0 +1,4668 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1/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.V1 { + + /// Holder for reflection information generated from google/cloud/secretmanager/v1/resources.proto + public static partial class ResourcesReflection { + + #region Descriptor + /// File descriptor for google/cloud/secretmanager/v1/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( + "Ci1nb29nbGUvY2xvdWQvc2VjcmV0bWFuYWdlci92MS9yZXNvdXJjZXMucHJv", + "dG8SHWdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxGh9nb29nbGUvYXBp", + "L2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnBy", + "b3RvGh5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8aH2dvb2dsZS9w", + "cm90b2J1Zi90aW1lc3RhbXAucHJvdG8i4ggKBlNlY3JldBIRCgRuYW1lGAEg", + "ASgJQgPgQQMSRwoLcmVwbGljYXRpb24YAiABKAsyKi5nb29nbGUuY2xvdWQu", + "c2VjcmV0bWFuYWdlci52MS5SZXBsaWNhdGlvbkIG4EEF4EEBEjQKC2NyZWF0", + "ZV90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EED", + "EkEKBmxhYmVscxgEIAMoCzIxLmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2Vy", + "LnYxLlNlY3JldC5MYWJlbHNFbnRyeRI5CgZ0b3BpY3MYBSADKAsyJC5nb29n", + "bGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5Ub3BpY0ID4EEBEjYKC2V4cGly", + "ZV90aW1lGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEB", + "SAASLQoDdHRsGAcgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uQgPg", + "QQRIABIRCgRldGFnGAggASgJQgPgQQESPgoIcm90YXRpb24YCSABKAsyJy5n", + "b29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5Sb3RhdGlvbkID4EEBElcK", + "D3ZlcnNpb25fYWxpYXNlcxgLIAMoCzI5Lmdvb2dsZS5jbG91ZC5zZWNyZXRt", + "YW5hZ2VyLnYxLlNlY3JldC5WZXJzaW9uQWxpYXNlc0VudHJ5QgPgQQESUAoL", + "YW5ub3RhdGlvbnMYDSADKAsyNi5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdl", + "ci52MS5TZWNyZXQuQW5ub3RhdGlvbnNFbnRyeUID4EEBEjsKE3ZlcnNpb25f", + "ZGVzdHJveV90dGwYDiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25C", + "A+BBARJiChtjdXN0b21lcl9tYW5hZ2VkX2VuY3J5cHRpb24YDyABKAsyOC5n", + "b29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5DdXN0b21lck1hbmFnZWRF", + "bmNyeXB0aW9uQgPgQQEaLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0K", + "BXZhbHVlGAIgASgJOgI4ARo1ChNWZXJzaW9uQWxpYXNlc0VudHJ5EgsKA2tl", + "eRgBIAEoCRINCgV2YWx1ZRgCIAEoAzoCOAEaMgoQQW5ub3RhdGlvbnNFbnRy", + "eRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBOpkB6kGVAQojc2Vj", + "cmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9TZWNyZXQSI3Byb2plY3RzL3tw", + "cm9qZWN0fS9zZWNyZXRzL3tzZWNyZXR9Ejhwcm9qZWN0cy97cHJvamVjdH0v", + "bG9jYXRpb25zL3tsb2NhdGlvbn0vc2VjcmV0cy97c2VjcmV0fSoHc2VjcmV0", + "czIGc2VjcmV0QgwKCmV4cGlyYXRpb24iwgYKDVNlY3JldFZlcnNpb24SEQoE", + "bmFtZRgBIAEoCUID4EEDEjQKC2NyZWF0ZV90aW1lGAIgASgLMhouZ29vZ2xl", + "LnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEjUKDGRlc3Ryb3lfdGltZRgDIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxJGCgVzdGF0ZRgE", + "IAEoDjIyLmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxLlNlY3JldFZl", + "cnNpb24uU3RhdGVCA+BBAxJMChJyZXBsaWNhdGlvbl9zdGF0dXMYBSABKAsy", + "MC5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5SZXBsaWNhdGlvblN0", + "YXR1cxIRCgRldGFnGAYgASgJQgPgQQMSLgohY2xpZW50X3NwZWNpZmllZF9w", + "YXlsb2FkX2NoZWNrc3VtGAcgASgIQgPgQQMSPwoWc2NoZWR1bGVkX2Rlc3Ry", + "b3lfdGltZRgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BB", + "AxJoChtjdXN0b21lcl9tYW5hZ2VkX2VuY3J5cHRpb24YCSABKAsyPi5nb29n", + "bGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5DdXN0b21lck1hbmFnZWRFbmNy", + "eXB0aW9uU3RhdHVzQgPgQQMiSAoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJ", + "RUQQABILCgdFTkFCTEVEEAESDAoIRElTQUJMRUQQAhINCglERVNUUk9ZRUQQ", + "AzriAepB3gEKKnNlY3JldG1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vU2VjcmV0", + "VmVyc2lvbhI9cHJvamVjdHMve3Byb2plY3R9L3NlY3JldHMve3NlY3JldH0v", + "dmVyc2lvbnMve3NlY3JldF92ZXJzaW9ufRJScHJvamVjdHMve3Byb2plY3R9", + "L2xvY2F0aW9ucy97bG9jYXRpb259L3NlY3JldHMve3NlY3JldH0vdmVyc2lv", + "bnMve3NlY3JldF92ZXJzaW9ufSoOc2VjcmV0VmVyc2lvbnMyDXNlY3JldFZl", + "cnNpb24ikAQKC1JlcGxpY2F0aW9uEkkKCWF1dG9tYXRpYxgBIAEoCzI0Lmdv", + "b2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxLlJlcGxpY2F0aW9uLkF1dG9t", + "YXRpY0gAEk4KDHVzZXJfbWFuYWdlZBgCIAEoCzI2Lmdvb2dsZS5jbG91ZC5z", + "ZWNyZXRtYW5hZ2VyLnYxLlJlcGxpY2F0aW9uLlVzZXJNYW5hZ2VkSAAabwoJ", + "QXV0b21hdGljEmIKG2N1c3RvbWVyX21hbmFnZWRfZW5jcnlwdGlvbhgBIAEo", + "CzI4Lmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxLkN1c3RvbWVyTWFu", + "YWdlZEVuY3J5cHRpb25CA+BBARrlAQoLVXNlck1hbmFnZWQSVQoIcmVwbGlj", + "YXMYASADKAsyPi5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5SZXBs", + "aWNhdGlvbi5Vc2VyTWFuYWdlZC5SZXBsaWNhQgPgQQIafwoHUmVwbGljYRIQ", + "Cghsb2NhdGlvbhgBIAEoCRJiChtjdXN0b21lcl9tYW5hZ2VkX2VuY3J5cHRp", + "b24YAiABKAsyOC5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5DdXN0", + "b21lck1hbmFnZWRFbmNyeXB0aW9uQgPgQQFCDQoLcmVwbGljYXRpb24iNgoZ", + "Q3VzdG9tZXJNYW5hZ2VkRW5jcnlwdGlvbhIZCgxrbXNfa2V5X25hbWUYASAB", + "KAlCA+BBAiLrBAoRUmVwbGljYXRpb25TdGF0dXMSVQoJYXV0b21hdGljGAEg", + "ASgLMkAuZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjEuUmVwbGljYXRp", + "b25TdGF0dXMuQXV0b21hdGljU3RhdHVzSAASWgoMdXNlcl9tYW5hZ2VkGAIg", + "ASgLMkIuZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjEuUmVwbGljYXRp", + "b25TdGF0dXMuVXNlck1hbmFnZWRTdGF0dXNIABp7Cg9BdXRvbWF0aWNTdGF0", + "dXMSaAobY3VzdG9tZXJfbWFuYWdlZF9lbmNyeXB0aW9uGAEgASgLMj4uZ29v", + "Z2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjEuQ3VzdG9tZXJNYW5hZ2VkRW5j", + "cnlwdGlvblN0YXR1c0ID4EEDGo8CChFVc2VyTWFuYWdlZFN0YXR1cxJnCghy", + "ZXBsaWNhcxgBIAMoCzJQLmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYx", + "LlJlcGxpY2F0aW9uU3RhdHVzLlVzZXJNYW5hZ2VkU3RhdHVzLlJlcGxpY2FT", + "dGF0dXNCA+BBAxqQAQoNUmVwbGljYVN0YXR1cxIVCghsb2NhdGlvbhgBIAEo", + "CUID4EEDEmgKG2N1c3RvbWVyX21hbmFnZWRfZW5jcnlwdGlvbhgCIAEoCzI+", + "Lmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxLkN1c3RvbWVyTWFuYWdl", + "ZEVuY3J5cHRpb25TdGF0dXNCA+BBA0IUChJyZXBsaWNhdGlvbl9zdGF0dXMi", + "RAofQ3VzdG9tZXJNYW5hZ2VkRW5jcnlwdGlvblN0YXR1cxIhChRrbXNfa2V5", + "X3ZlcnNpb25fbmFtZRgBIAEoCUID4EECIl8KBVRvcGljEhEKBG5hbWUYASAB", + "KAlCA+BBCDpD6kFAChtwdWJzdWIuZ29vZ2xlYXBpcy5jb20vVG9waWMSIXBy", + "b2plY3RzL3twcm9qZWN0fS90b3BpY3Mve3RvcGljfSKAAQoIUm90YXRpb24S", + "OwoSbmV4dF9yb3RhdGlvbl90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LlRpbWVzdGFtcEID4EEBEjcKD3JvdGF0aW9uX3BlcmlvZBgCIAEoCzIZLmdv", + "b2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID4EEEIkwKDVNlY3JldFBheWxvYWQS", + "DAoEZGF0YRgBIAEoDBIdCgtkYXRhX2NyYzMyYxgCIAEoA0ID4EEBSACIAQFC", + "DgoMX2RhdGFfY3JjMzJjQucBCiFjb20uZ29vZ2xlLmNsb3VkLnNlY3JldG1h", + "bmFnZXIudjFCDlJlc291cmNlc1Byb3RvUAFaR2Nsb3VkLmdvb2dsZS5jb20v", + "Z28vc2VjcmV0bWFuYWdlci9hcGl2MS9zZWNyZXRtYW5hZ2VycGI7c2VjcmV0", + "bWFuYWdlcnBiogIDR1NNqgIdR29vZ2xlLkNsb3VkLlNlY3JldE1hbmFnZXIu", + "VjHKAh1Hb29nbGVcQ2xvdWRcU2VjcmV0TWFuYWdlclxWMeoCIEdvb2dsZTo6", + "Q2xvdWQ6OlNlY3JldE1hbmFnZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Secret), global::Google.Cloud.SecretManager.V1.Secret.Parser, new[]{ "Name", "Replication", "CreateTime", "Labels", "Topics", "ExpireTime", "Ttl", "Etag", "Rotation", "VersionAliases", "Annotations", "VersionDestroyTtl", "CustomerManagedEncryption" }, new[]{ "Expiration" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.SecretVersion), global::Google.Cloud.SecretManager.V1.SecretVersion.Parser, new[]{ "Name", "CreateTime", "DestroyTime", "State", "ReplicationStatus", "Etag", "ClientSpecifiedPayloadChecksum", "ScheduledDestroyTime", "CustomerManagedEncryption" }, null, new[]{ typeof(global::Google.Cloud.SecretManager.V1.SecretVersion.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Replication), global::Google.Cloud.SecretManager.V1.Replication.Parser, new[]{ "Automatic", "UserManaged" }, new[]{ "Replication" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Replication.Types.Automatic), global::Google.Cloud.SecretManager.V1.Replication.Types.Automatic.Parser, new[]{ "CustomerManagedEncryption" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Replication.Types.UserManaged), global::Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Parser, new[]{ "Replicas" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica), global::Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica.Parser, new[]{ "Location", "CustomerManagedEncryption" }, null, null, null, null)})}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.CustomerManagedEncryption), global::Google.Cloud.SecretManager.V1.CustomerManagedEncryption.Parser, new[]{ "KmsKeyName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.ReplicationStatus), global::Google.Cloud.SecretManager.V1.ReplicationStatus.Parser, new[]{ "Automatic", "UserManaged" }, new[]{ "ReplicationStatus" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.ReplicationStatus.Types.AutomaticStatus), global::Google.Cloud.SecretManager.V1.ReplicationStatus.Types.AutomaticStatus.Parser, new[]{ "CustomerManagedEncryption" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.ReplicationStatus.Types.UserManagedStatus), global::Google.Cloud.SecretManager.V1.ReplicationStatus.Types.UserManagedStatus.Parser, new[]{ "Replicas" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.ReplicationStatus.Types.UserManagedStatus.Types.ReplicaStatus), global::Google.Cloud.SecretManager.V1.ReplicationStatus.Types.UserManagedStatus.Types.ReplicaStatus.Parser, new[]{ "Location", "CustomerManagedEncryption" }, null, null, null, null)})}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.CustomerManagedEncryptionStatus), global::Google.Cloud.SecretManager.V1.CustomerManagedEncryptionStatus.Parser, new[]{ "KmsKeyVersionName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Topic), global::Google.Cloud.SecretManager.V1.Topic.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Rotation), global::Google.Cloud.SecretManager.V1.Rotation.Parser, new[]{ "NextRotationTime", "RotationPeriod" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.SecretPayload), global::Google.Cloud.SecretManager.V1.SecretPayload.Parser, new[]{ "Data", "DataCrc32C" }, new[]{ "DataCrc32C" }, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A [Secret][google.cloud.secretmanager.v1.Secret] is a logical secret whose + /// value and versions can be accessed. + /// + /// A [Secret][google.cloud.secretmanager.v1.Secret] is made up of zero or more + /// [SecretVersions][google.cloud.secretmanager.v1.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.V1.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.v1.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.V1.Replication replication_; + /// + /// Optional. Immutable. The replication policy of the secret data attached to + /// the [Secret][google.cloud.secretmanager.v1.Secret]. + /// + /// The replication policy cannot be changed after the Secret has been created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.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.v1.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.V1.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.v1.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.v1.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.v1.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.V1.Rotation rotation_; + /// + /// Optional. Rotation policy attached to the + /// [Secret][google.cloud.secretmanager.v1.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.V1.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 be supported on + /// 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.V1.CustomerManagedEncryption customerManagedEncryption_; + /// + /// Optional. The customer-managed encryption configuration of the regionalized + /// secrets. If no configuration is provided, Google-managed default encryption + /// is used. + /// + /// Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption + /// configuration only apply to + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added + /// afterwards. They do not apply retroactively to existing + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.CustomerManagedEncryption CustomerManagedEncryption { + get { return customerManagedEncryption_; } + set { + customerManagedEncryption_ = value; + } + } + + private object expiration_; + /// Enum of possible cases for the "expiration" oneof. + public enum ExpirationOneofCase { + 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.V1.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.V1.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.V1.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.V1.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.V1.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.V1.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.V1.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.V1.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.V1.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.V1.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.v1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] IDs in a + /// [Secret][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion] was destroyed. + /// Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] + /// is + /// [DESTROYED][google.cloud.secretmanager.v1.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.V1.SecretVersion.Types.State state_ = global::Google.Cloud.SecretManager.V1.SecretVersion.Types.State.Unspecified; + /// + /// Output only. The current state of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.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.V1.ReplicationStatus replicationStatus_; + /// + /// The replication status of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.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.v1.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.v1.SecretPayload] object has + /// been received by + /// [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] + /// on + /// [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.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.V1.CustomerManagedEncryptionStatus customerManagedEncryption_; + /// + /// Output only. The customer-managed encryption status of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only + /// populated if customer-managed encryption is used and + /// [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.CustomerManagedEncryptionStatus CustomerManagedEncryption { + get { return customerManagedEncryption_; } + set { + customerManagedEncryption_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + 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.V1.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.V1.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.V1.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.V1.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.V1.SecretVersion.Types.State.Unspecified) { + State = other.State; + } + if (other.replicationStatus_ != null) { + if (replicationStatus_ == null) { + ReplicationStatus = new global::Google.Cloud.SecretManager.V1.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.V1.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.V1.SecretVersion.Types.State) input.ReadEnum(); + break; + } + case 42: { + if (replicationStatus_ == null) { + ReplicationStatus = new global::Google.Cloud.SecretManager.V1.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.V1.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.V1.SecretVersion.Types.State) input.ReadEnum(); + break; + } + case 42: { + if (replicationStatus_ == null) { + ReplicationStatus = new global::Google.Cloud.SecretManager.V1.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.V1.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.v1.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.v1.SecretVersion] may be + /// accessed. + /// + [pbr::OriginalName("ENABLED")] Enabled = 1, + /// + /// The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may not + /// be accessed, but the secret data is still available and can be placed + /// back into the + /// [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED] + /// state. + /// + [pbr::OriginalName("DISABLED")] Disabled = 2, + /// + /// The [SecretVersion][google.cloud.secretmanager.v1.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.V1.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.v1.Secret] will automatically be + /// replicated without any restrictions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.Replication.Types.Automatic Automatic { + get { return replicationCase_ == ReplicationOneofCase.Automatic ? (global::Google.Cloud.SecretManager.V1.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.v1.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.V1.Replication.Types.UserManaged UserManaged { + get { return replicationCase_ == ReplicationOneofCase.UserManaged ? (global::Google.Cloud.SecretManager.V1.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.V1.Replication.Types.Automatic(); + } + Automatic.MergeFrom(other.Automatic); + break; + case ReplicationOneofCase.UserManaged: + if (UserManaged == null) { + UserManaged = new global::Google.Cloud.SecretManager.V1.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.V1.Replication.Types.Automatic subBuilder = new global::Google.Cloud.SecretManager.V1.Replication.Types.Automatic(); + if (replicationCase_ == ReplicationOneofCase.Automatic) { + subBuilder.MergeFrom(Automatic); + } + input.ReadMessage(subBuilder); + Automatic = subBuilder; + break; + } + case 18: { + global::Google.Cloud.SecretManager.V1.Replication.Types.UserManaged subBuilder = new global::Google.Cloud.SecretManager.V1.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.V1.Replication.Types.Automatic subBuilder = new global::Google.Cloud.SecretManager.V1.Replication.Types.Automatic(); + if (replicationCase_ == ReplicationOneofCase.Automatic) { + subBuilder.MergeFrom(Automatic); + } + input.ReadMessage(subBuilder); + Automatic = subBuilder; + break; + } + case 18: { + global::Google.Cloud.SecretManager.V1.Replication.Types.UserManaged subBuilder = new global::Google.Cloud.SecretManager.V1.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.v1.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.V1.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.V1.CustomerManagedEncryption customerManagedEncryption_; + /// + /// Optional. The customer-managed encryption configuration of the + /// [Secret][google.cloud.secretmanager.v1.Secret]. If no configuration is + /// provided, Google-managed default encryption is used. + /// + /// Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption + /// configuration only apply to + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added + /// afterwards. They do not apply retroactively to existing + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.CustomerManagedEncryption CustomerManagedEncryption { + get { return customerManagedEncryption_; } + set { + customerManagedEncryption_ = value; + } + } + + [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.V1.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.V1.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.V1.CustomerManagedEncryption(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + } + #endif + + } + + /// + /// A replication policy that replicates the + /// [Secret][google.cloud.secretmanager.v1.Secret] payload into the locations + /// specified in + /// [Replication.UserManaged.replicas][google.cloud.secretmanager.v1.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.V1.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.V1.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.v1.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.v1.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.V1.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.V1.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.v1.Secret] + /// encryption configuration only apply to + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added + /// afterwards. They do not apply retroactively to existing + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.CustomerManagedEncryption CustomerManagedEncryption { + get { return customerManagedEncryption_; } + set { + customerManagedEncryption_ = value; + } + } + + [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.V1.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.V1.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.V1.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.V1.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.v1.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.v1.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.v1.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.V1.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.v1.SecretVersion] with + /// automatic replication. + /// + /// Only populated if the parent + /// [Secret][google.cloud.secretmanager.v1.Secret] has an automatic + /// replication policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.ReplicationStatus.Types.AutomaticStatus Automatic { + get { return replicationStatusCase_ == ReplicationStatusOneofCase.Automatic ? (global::Google.Cloud.SecretManager.V1.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.v1.SecretVersion] with + /// user-managed replication. + /// + /// Only populated if the parent + /// [Secret][google.cloud.secretmanager.v1.Secret] has a user-managed + /// replication policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.ReplicationStatus.Types.UserManagedStatus UserManaged { + get { return replicationStatusCase_ == ReplicationStatusOneofCase.UserManaged ? (global::Google.Cloud.SecretManager.V1.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.V1.ReplicationStatus.Types.AutomaticStatus(); + } + Automatic.MergeFrom(other.Automatic); + break; + case ReplicationStatusOneofCase.UserManaged: + if (UserManaged == null) { + UserManaged = new global::Google.Cloud.SecretManager.V1.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.V1.ReplicationStatus.Types.AutomaticStatus subBuilder = new global::Google.Cloud.SecretManager.V1.ReplicationStatus.Types.AutomaticStatus(); + if (replicationStatusCase_ == ReplicationStatusOneofCase.Automatic) { + subBuilder.MergeFrom(Automatic); + } + input.ReadMessage(subBuilder); + Automatic = subBuilder; + break; + } + case 18: { + global::Google.Cloud.SecretManager.V1.ReplicationStatus.Types.UserManagedStatus subBuilder = new global::Google.Cloud.SecretManager.V1.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.V1.ReplicationStatus.Types.AutomaticStatus subBuilder = new global::Google.Cloud.SecretManager.V1.ReplicationStatus.Types.AutomaticStatus(); + if (replicationStatusCase_ == ReplicationStatusOneofCase.Automatic) { + subBuilder.MergeFrom(Automatic); + } + input.ReadMessage(subBuilder); + Automatic = subBuilder; + break; + } + case 18: { + global::Google.Cloud.SecretManager.V1.ReplicationStatus.Types.UserManagedStatus subBuilder = new global::Google.Cloud.SecretManager.V1.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.v1.SecretVersion] using + /// automatic replication. + /// + /// Only populated if the parent [Secret][google.cloud.secretmanager.v1.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.V1.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.V1.CustomerManagedEncryptionStatus customerManagedEncryption_; + /// + /// Output only. The customer-managed encryption status of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only + /// populated if customer-managed encryption is used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.CustomerManagedEncryptionStatus CustomerManagedEncryption { + get { return customerManagedEncryption_; } + set { + customerManagedEncryption_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + 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.V1.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.V1.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.V1.CustomerManagedEncryptionStatus(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + } + #endif + + } + + /// + /// The replication status of a + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] using + /// user-managed replication. + /// + /// Only populated if the parent [Secret][google.cloud.secretmanager.v1.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.V1.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.V1.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.v1.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.v1.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.V1.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.V1.CustomerManagedEncryptionStatus customerManagedEncryption_; + /// + /// Output only. The customer-managed encryption status of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only + /// populated if customer-managed encryption is used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.CustomerManagedEncryptionStatus CustomerManagedEncryption { + get { return customerManagedEncryption_; } + set { + customerManagedEncryption_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + 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.V1.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.V1.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.V1.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.V1.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.V1.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_ = ""; + /// + /// Identifier. 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.v1.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.v1.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.V1.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.v1.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.v1.Rotation.next_rotation_time] + /// MUST be set if + /// [rotation_period][google.cloud.secretmanager.v1.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.v1.Rotation.rotation_period] + /// is set, + /// [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] + /// must be set. + /// [next_rotation_time][google.cloud.secretmanager.v1.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.v1.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.V1.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.v1.SecretManagerService] + /// will verify the integrity of the received + /// [data][google.cloud.secretmanager.v1.SecretPayload.data] on + /// [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] + /// calls using the crc32c checksum and store it to include in future + /// [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion] + /// responses. If a checksum is not provided in the + /// [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] + /// request, the + /// [SecretManagerService][google.cloud.secretmanager.v1.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.V1/Google.Cloud.SecretManager.V1/ResourcesResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ResourcesResourceNames.g.cs new file mode 100755 index 000000000000..10ee591eccce --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/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.V1; +using sys = System; + +namespace Google.Cloud.SecretManager.V1 +{ + /// 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.V1/Google.Cloud.SecretManager.V1/SecretManagerServiceClient.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/SecretManagerServiceClient.g.cs new file mode 100755 index 000000000000..46b087bea929 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/SecretManagerServiceClient.g.cs @@ -0,0 +1,3238 @@ +// 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.V1 +{ + /// 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.v1.Secret] + /// * [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListSecrets(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.v1.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListSecretsAsync(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.v1.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListSecrets(gagr::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.v1.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListSecretsAsync(gagr::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.v1.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListSecrets(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + 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.v1.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListSecretsAsync(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + 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.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.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.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.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.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.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.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. + /// + /// + /// Required. This must be unique within the project. + /// + /// A secret ID is a string with a maximum length of 255 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and + /// underscore (`_`) characters. + /// + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Secret CreateSecret(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.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. + /// + /// + /// Required. This must be unique within the project. + /// + /// A secret ID is a string with a maximum length of 255 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and + /// underscore (`_`) characters. + /// + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateSecretAsync(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.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. + /// + /// + /// Required. This must be unique within the project. + /// + /// A secret ID is a string with a maximum length of 255 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and + /// underscore (`_`) characters. + /// + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateSecretAsync(string parent, string secretId, Secret secret, st::CancellationToken cancellationToken) => + CreateSecretAsync(parent, secretId, secret, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. + /// + /// + /// Required. This must be unique within the project. + /// + /// A secret ID is a string with a maximum length of 255 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and + /// underscore (`_`) characters. + /// + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Secret CreateSecret(gagr::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.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. + /// + /// + /// Required. This must be unique within the project. + /// + /// A secret ID is a string with a maximum length of 255 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and + /// underscore (`_`) characters. + /// + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateSecretAsync(gagr::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.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. + /// + /// + /// Required. This must be unique within the project. + /// + /// A secret ID is a string with a maximum length of 255 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and + /// underscore (`_`) characters. + /// + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateSecretAsync(gagr::ProjectName parent, string secretId, Secret secret, st::CancellationToken cancellationToken) => + CreateSecretAsync(parent, secretId, secret, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. + /// + /// + /// Required. This must be unique within the project. + /// + /// A secret ID is a string with a maximum length of 255 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and + /// underscore (`_`) characters. + /// + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Secret CreateSecret(gagr::LocationName parent, string secretId, Secret secret, gaxgrpc::CallSettings callSettings = null) => + CreateSecret(new CreateSecretRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + SecretId = gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)), + Secret = gax::GaxPreconditions.CheckNotNull(secret, nameof(secret)), + }, callSettings); + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. + /// + /// + /// Required. This must be unique within the project. + /// + /// A secret ID is a string with a maximum length of 255 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and + /// underscore (`_`) characters. + /// + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateSecretAsync(gagr::LocationName parent, string secretId, Secret secret, gaxgrpc::CallSettings callSettings = null) => + CreateSecretAsync(new CreateSecretRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + SecretId = gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)), + Secret = gax::GaxPreconditions.CheckNotNull(secret, nameof(secret)), + }, callSettings); + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. + /// + /// + /// Required. This must be unique within the project. + /// + /// A secret ID is a string with a maximum length of 255 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and + /// underscore (`_`) characters. + /// + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateSecretAsync(gagr::LocationName parent, string secretId, Secret secret, st::CancellationToken cancellationToken) => + CreateSecretAsync(parent, secretId, secret, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.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.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.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.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.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.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.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.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.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.v1.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.v1.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.v1.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.v1.Secret]. + /// + /// + /// Required. [Secret][google.cloud.secretmanager.v1.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.v1.Secret]. + /// + /// + /// Required. [Secret][google.cloud.secretmanager.v1.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.v1.Secret]. + /// + /// + /// Required. [Secret][google.cloud.secretmanager.v1.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.v1.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.v1.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.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.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.v1.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.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.v1.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.v1.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.v1.SecretVersion]. This + /// call does not return secret data. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.Secret] associated with the + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in + /// the format `projects/*/secrets/*` 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.v1.SecretVersion]. This + /// call does not return secret data. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.Secret] associated with the + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in + /// the format `projects/*/secrets/*` 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.v1.SecretVersion]. This + /// call does not return secret data. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.Secret] associated with the + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in + /// the format `projects/*/secrets/*` 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.v1.SecretVersion]. This + /// call does not return secret data. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1.Secret] associated with the + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in + /// the format `projects/*/secrets/*` 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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion] are enforced + /// according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1.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.v1.SecretVersion] are enforced + /// according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1.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.v1.SecretVersion] are enforced + /// according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1.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.v1.Secret] + /// * [SecretVersion][google.cloud.secretmanager.v1.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.v1.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.v1.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.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.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.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.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.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.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.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.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.v1.SecretVersion] are enforced + /// according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1.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.v1.SecretVersion] are enforced + /// according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1.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.V1/Google.Cloud.SecretManager.V1/Service.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Service.g.cs new file mode 100755 index 000000000000..190ac8c2c09e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Service.g.cs @@ -0,0 +1,4018 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1/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.V1 { + + /// Holder for reflection information generated from google/cloud/secretmanager/v1/service.proto + public static partial class ServiceReflection { + + #region Descriptor + /// File descriptor for google/cloud/secretmanager/v1/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( + "Citnb29nbGUvY2xvdWQvc2VjcmV0bWFuYWdlci92MS9zZXJ2aWNlLnByb3Rv", + "Eh1nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MRocZ29vZ2xlL2FwaS9h", + "bm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dv", + "b2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVz", + "b3VyY2UucHJvdG8aLWdvb2dsZS9jbG91ZC9zZWNyZXRtYW5hZ2VyL3YxL3Jl", + "c291cmNlcy5wcm90bxoeZ29vZ2xlL2lhbS92MS9pYW1fcG9saWN5LnByb3Rv", + "Ghpnb29nbGUvaWFtL3YxL3BvbGljeS5wcm90bxobZ29vZ2xlL3Byb3RvYnVm", + "L2VtcHR5LnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90", + "byKXAQoSTGlzdFNlY3JldHNSZXF1ZXN0EjsKBnBhcmVudBgBIAEoCUIr4EEC", + "+kElEiNzZWNyZXRtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1NlY3JldBIWCglw", + "YWdlX3NpemUYAiABKAVCA+BBARIXCgpwYWdlX3Rva2VuGAMgASgJQgPgQQES", + "EwoGZmlsdGVyGAQgASgJQgPgQQEiegoTTGlzdFNlY3JldHNSZXNwb25zZRI2", + "CgdzZWNyZXRzGAEgAygLMiUuZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIu", + "djEuU2VjcmV0EhcKD25leHRfcGFnZV90b2tlbhgCIAEoCRISCgp0b3RhbF9z", + "aXplGAMgASgFIqYBChNDcmVhdGVTZWNyZXRSZXF1ZXN0EjsKBnBhcmVudBgB", + "IAEoCUIr4EEC+kElEiNzZWNyZXRtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1Nl", + "Y3JldBIWCglzZWNyZXRfaWQYAiABKAlCA+BBAhI6CgZzZWNyZXQYAyABKAsy", + "JS5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5TZWNyZXRCA+BBAiKa", + "AQoXQWRkU2VjcmV0VmVyc2lvblJlcXVlc3QSOwoGcGFyZW50GAEgASgJQivg", + "QQL6QSUKI3NlY3JldG1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vU2VjcmV0EkIK", + "B3BheWxvYWQYAiABKAsyLC5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52", + "MS5TZWNyZXRQYXlsb2FkQgPgQQIiTQoQR2V0U2VjcmV0UmVxdWVzdBI5CgRu", + "YW1lGAEgASgJQivgQQL6QSUKI3NlY3JldG1hbmFnZXIuZ29vZ2xlYXBpcy5j", + "b20vU2VjcmV0Ip4BChlMaXN0U2VjcmV0VmVyc2lvbnNSZXF1ZXN0EjsKBnBh", + "cmVudBgBIAEoCUIr4EEC+kElCiNzZWNyZXRtYW5hZ2VyLmdvb2dsZWFwaXMu", + "Y29tL1NlY3JldBIWCglwYWdlX3NpemUYAiABKAVCA+BBARIXCgpwYWdlX3Rv", + "a2VuGAMgASgJQgPgQQESEwoGZmlsdGVyGAQgASgJQgPgQQEiiQEKGkxpc3RT", + "ZWNyZXRWZXJzaW9uc1Jlc3BvbnNlEj4KCHZlcnNpb25zGAEgAygLMiwuZ29v", + "Z2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjEuU2VjcmV0VmVyc2lvbhIXCg9u", + "ZXh0X3BhZ2VfdG9rZW4YAiABKAkSEgoKdG90YWxfc2l6ZRgDIAEoBSJbChdH", + "ZXRTZWNyZXRWZXJzaW9uUmVxdWVzdBJACgRuYW1lGAEgASgJQjLgQQL6QSwK", + "KnNlY3JldG1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vU2VjcmV0VmVyc2lvbiKH", + "AQoTVXBkYXRlU2VjcmV0UmVxdWVzdBI6CgZzZWNyZXQYASABKAsyJS5nb29n", + "bGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5TZWNyZXRCA+BBAhI0Cgt1cGRh", + "dGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BB", + "AiJeChpBY2Nlc3NTZWNyZXRWZXJzaW9uUmVxdWVzdBJACgRuYW1lGAEgASgJ", + "QjLgQQL6QSwKKnNlY3JldG1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vU2VjcmV0", + "VmVyc2lvbiKbAQobQWNjZXNzU2VjcmV0VmVyc2lvblJlc3BvbnNlEj0KBG5h", + "bWUYASABKAlCL/pBLAoqc2VjcmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9T", + "ZWNyZXRWZXJzaW9uEj0KB3BheWxvYWQYAiABKAsyLC5nb29nbGUuY2xvdWQu", + "c2VjcmV0bWFuYWdlci52MS5TZWNyZXRQYXlsb2FkImMKE0RlbGV0ZVNlY3Jl", + "dFJlcXVlc3QSOQoEbmFtZRgBIAEoCUIr4EEC+kElCiNzZWNyZXRtYW5hZ2Vy", + "Lmdvb2dsZWFwaXMuY29tL1NlY3JldBIRCgRldGFnGAIgASgJQgPgQQEicgob", + "RGlzYWJsZVNlY3JldFZlcnNpb25SZXF1ZXN0EkAKBG5hbWUYASABKAlCMuBB", + "AvpBLAoqc2VjcmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9TZWNyZXRWZXJz", + "aW9uEhEKBGV0YWcYAiABKAlCA+BBASJxChpFbmFibGVTZWNyZXRWZXJzaW9u", + "UmVxdWVzdBJACgRuYW1lGAEgASgJQjLgQQL6QSwKKnNlY3JldG1hbmFnZXIu", + "Z29vZ2xlYXBpcy5jb20vU2VjcmV0VmVyc2lvbhIRCgRldGFnGAIgASgJQgPg", + "QQEicgobRGVzdHJveVNlY3JldFZlcnNpb25SZXF1ZXN0EkAKBG5hbWUYASAB", + "KAlCMuBBAvpBLAoqc2VjcmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9TZWNy", + "ZXRWZXJzaW9uEhEKBGV0YWcYAiABKAlCA+BBATLoHAoUU2VjcmV0TWFuYWdl", + "clNlcnZpY2US1QEKC0xpc3RTZWNyZXRzEjEuZ29vZ2xlLmNsb3VkLnNlY3Jl", + "dG1hbmFnZXIudjEuTGlzdFNlY3JldHNSZXF1ZXN0GjIuZ29vZ2xlLmNsb3Vk", + "LnNlY3JldG1hbmFnZXIudjEuTGlzdFNlY3JldHNSZXNwb25zZSJf2kEGcGFy", + "ZW50gtPkkwJQEh8vdjEve3BhcmVudD1wcm9qZWN0cy8qfS9zZWNyZXRzWi0S", + "Ky92MS97cGFyZW50PXByb2plY3RzLyovbG9jYXRpb25zLyp9L3NlY3JldHMS", + "7AEKDENyZWF0ZVNlY3JldBIyLmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2Vy", + "LnYxLkNyZWF0ZVNlY3JldFJlcXVlc3QaJS5nb29nbGUuY2xvdWQuc2VjcmV0", + "bWFuYWdlci52MS5TZWNyZXQigAHaQRdwYXJlbnQsc2VjcmV0X2lkLHNlY3Jl", + "dILT5JMCYCIfL3YxL3twYXJlbnQ9cHJvamVjdHMvKn0vc2VjcmV0czoGc2Vj", + "cmV0WjUiKy92MS97cGFyZW50PXByb2plY3RzLyovbG9jYXRpb25zLyp9L3Nl", + "Y3JldHM6BnNlY3JldBKCAgoQQWRkU2VjcmV0VmVyc2lvbhI2Lmdvb2dsZS5j", + "bG91ZC5zZWNyZXRtYW5hZ2VyLnYxLkFkZFNlY3JldFZlcnNpb25SZXF1ZXN0", + "GiwuZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjEuU2VjcmV0VmVyc2lv", + "biKHAdpBDnBhcmVudCxwYXlsb2FkgtPkkwJwIiwvdjEve3BhcmVudD1wcm9q", + "ZWN0cy8qL3NlY3JldHMvKn06YWRkVmVyc2lvbjoBKlo9IjgvdjEve3BhcmVu", + "dD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlY3JldHMvKn06YWRkVmVyc2lv", + "bjoBKhLCAQoJR2V0U2VjcmV0Ei8uZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFn", + "ZXIudjEuR2V0U2VjcmV0UmVxdWVzdBolLmdvb2dsZS5jbG91ZC5zZWNyZXRt", + "YW5hZ2VyLnYxLlNlY3JldCJd2kEEbmFtZYLT5JMCUBIfL3YxL3tuYW1lPXBy", + "b2plY3RzLyovc2VjcmV0cy8qfVotEisvdjEve25hbWU9cHJvamVjdHMvKi9s", + "b2NhdGlvbnMvKi9zZWNyZXRzLyp9EvUBCgxVcGRhdGVTZWNyZXQSMi5nb29n", + "bGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5VcGRhdGVTZWNyZXRSZXF1ZXN0", + "GiUuZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjEuU2VjcmV0IokB2kES", + "c2VjcmV0LHVwZGF0ZV9tYXNrgtPkkwJuMiYvdjEve3NlY3JldC5uYW1lPXBy", + "b2plY3RzLyovc2VjcmV0cy8qfToGc2VjcmV0WjwyMi92MS97c2VjcmV0Lm5h", + "bWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZWNyZXRzLyp9OgZzZWNyZXQS", + "uQEKDERlbGV0ZVNlY3JldBIyLmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2Vy", + "LnYxLkRlbGV0ZVNlY3JldFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1w", + "dHkiXdpBBG5hbWWC0+STAlAqHy92MS97bmFtZT1wcm9qZWN0cy8qL3NlY3Jl", + "dHMvKn1aLSorL3YxL3tuYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovc2Vj", + "cmV0cy8qfRKAAgoSTGlzdFNlY3JldFZlcnNpb25zEjguZ29vZ2xlLmNsb3Vk", + "LnNlY3JldG1hbmFnZXIudjEuTGlzdFNlY3JldFZlcnNpb25zUmVxdWVzdBo5", + "Lmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxLkxpc3RTZWNyZXRWZXJz", + "aW9uc1Jlc3BvbnNlInXaQQZwYXJlbnSC0+STAmYSKi92MS97cGFyZW50PXBy", + "b2plY3RzLyovc2VjcmV0cy8qfS92ZXJzaW9uc1o4EjYvdjEve3BhcmVudD1w", + "cm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlY3JldHMvKn0vdmVyc2lvbnMS7QEK", + "EEdldFNlY3JldFZlcnNpb24SNi5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdl", + "ci52MS5HZXRTZWNyZXRWZXJzaW9uUmVxdWVzdBosLmdvb2dsZS5jbG91ZC5z", + "ZWNyZXRtYW5hZ2VyLnYxLlNlY3JldFZlcnNpb24ic9pBBG5hbWWC0+STAmYS", + "Ki92MS97bmFtZT1wcm9qZWN0cy8qL3NlY3JldHMvKi92ZXJzaW9ucy8qfVo4", + "EjYvdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZWNyZXRzLyov", + "dmVyc2lvbnMvKn0SkAIKE0FjY2Vzc1NlY3JldFZlcnNpb24SOS5nb29nbGUu", + "Y2xvdWQuc2VjcmV0bWFuYWdlci52MS5BY2Nlc3NTZWNyZXRWZXJzaW9uUmVx", + "dWVzdBo6Lmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxLkFjY2Vzc1Nl", + "Y3JldFZlcnNpb25SZXNwb25zZSKBAdpBBG5hbWWC0+STAnQSMS92MS97bmFt", + "ZT1wcm9qZWN0cy8qL3NlY3JldHMvKi92ZXJzaW9ucy8qfTphY2Nlc3NaPxI9", + "L3YxL3tuYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovc2VjcmV0cy8qL3Zl", + "cnNpb25zLyp9OmFjY2VzcxKMAgoURGlzYWJsZVNlY3JldFZlcnNpb24SOi5n", + "b29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5EaXNhYmxlU2VjcmV0VmVy", + "c2lvblJlcXVlc3QaLC5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5T", + "ZWNyZXRWZXJzaW9uIokB2kEEbmFtZYLT5JMCfCIyL3YxL3tuYW1lPXByb2pl", + "Y3RzLyovc2VjcmV0cy8qL3ZlcnNpb25zLyp9OmRpc2FibGU6ASpaQyI+L3Yx", + "L3tuYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovc2VjcmV0cy8qL3ZlcnNp", + "b25zLyp9OmRpc2FibGU6ASoSiAIKE0VuYWJsZVNlY3JldFZlcnNpb24SOS5n", + "b29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MS5FbmFibGVTZWNyZXRWZXJz", + "aW9uUmVxdWVzdBosLmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxLlNl", + "Y3JldFZlcnNpb24ihwHaQQRuYW1lgtPkkwJ6IjEvdjEve25hbWU9cHJvamVj", + "dHMvKi9zZWNyZXRzLyovdmVyc2lvbnMvKn06ZW5hYmxlOgEqWkIiPS92MS97", + "bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlY3JldHMvKi92ZXJzaW9u", + "cy8qfTplbmFibGU6ASoSjAIKFERlc3Ryb3lTZWNyZXRWZXJzaW9uEjouZ29v", + "Z2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjEuRGVzdHJveVNlY3JldFZlcnNp", + "b25SZXF1ZXN0GiwuZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjEuU2Vj", + "cmV0VmVyc2lvbiKJAdpBBG5hbWWC0+STAnwiMi92MS97bmFtZT1wcm9qZWN0", + "cy8qL3NlY3JldHMvKi92ZXJzaW9ucy8qfTpkZXN0cm95OgEqWkMiPi92MS97", + "bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlY3JldHMvKi92ZXJzaW9u", + "cy8qfTpkZXN0cm95OgEqEskBCgxTZXRJYW1Qb2xpY3kSIi5nb29nbGUuaWFt", + "LnYxLlNldElhbVBvbGljeVJlcXVlc3QaFS5nb29nbGUuaWFtLnYxLlBvbGlj", + "eSJ+gtPkkwJ4IjAvdjEve3Jlc291cmNlPXByb2plY3RzLyovc2VjcmV0cy8q", + "fTpzZXRJYW1Qb2xpY3k6ASpaQSI8L3YxL3tyZXNvdXJjZT1wcm9qZWN0cy8q", + "L2xvY2F0aW9ucy8qL3NlY3JldHMvKn06c2V0SWFtUG9saWN5OgEqEsMBCgxH", + "ZXRJYW1Qb2xpY3kSIi5nb29nbGUuaWFtLnYxLkdldElhbVBvbGljeVJlcXVl", + "c3QaFS5nb29nbGUuaWFtLnYxLlBvbGljeSJ4gtPkkwJyEjAvdjEve3Jlc291", + "cmNlPXByb2plY3RzLyovc2VjcmV0cy8qfTpnZXRJYW1Qb2xpY3laPhI8L3Yx", + "L3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlY3JldHMvKn06", + "Z2V0SWFtUG9saWN5EvcBChJUZXN0SWFtUGVybWlzc2lvbnMSKC5nb29nbGUu", + "aWFtLnYxLlRlc3RJYW1QZXJtaXNzaW9uc1JlcXVlc3QaKS5nb29nbGUuaWFt", + "LnYxLlRlc3RJYW1QZXJtaXNzaW9uc1Jlc3BvbnNlIosBgtPkkwKEASI2L3Yx", + "L3tyZXNvdXJjZT1wcm9qZWN0cy8qL3NlY3JldHMvKn06dGVzdElhbVBlcm1p", + "c3Npb25zOgEqWkciQi92MS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlv", + "bnMvKi9zZWNyZXRzLyp9OnRlc3RJYW1QZXJtaXNzaW9uczoBKhpQykEcc2Vj", + "cmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbdJBLmh0dHBzOi8vd3d3Lmdvb2ds", + "ZWFwaXMuY29tL2F1dGgvY2xvdWQtcGxhdGZvcm1C5QEKIWNvbS5nb29nbGUu", + "Y2xvdWQuc2VjcmV0bWFuYWdlci52MUIMU2VydmljZVByb3RvUAFaR2Nsb3Vk", + "Lmdvb2dsZS5jb20vZ28vc2VjcmV0bWFuYWdlci9hcGl2MS9zZWNyZXRtYW5h", + "Z2VycGI7c2VjcmV0bWFuYWdlcnBiogIDR1NNqgIdR29vZ2xlLkNsb3VkLlNl", + "Y3JldE1hbmFnZXIuVjHKAh1Hb29nbGVcQ2xvdWRcU2VjcmV0TWFuYWdlclxW", + "MeoCIEdvb2dsZTo6Q2xvdWQ6OlNlY3JldE1hbmFnZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.SecretManager.V1.ResourcesReflection.Descriptor, global::Google.Cloud.Iam.V1.IamPolicyReflection.Descriptor, global::Google.Cloud.Iam.V1.PolicyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.ListSecretsRequest), global::Google.Cloud.SecretManager.V1.ListSecretsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.ListSecretsResponse), global::Google.Cloud.SecretManager.V1.ListSecretsResponse.Parser, new[]{ "Secrets", "NextPageToken", "TotalSize" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.CreateSecretRequest), global::Google.Cloud.SecretManager.V1.CreateSecretRequest.Parser, new[]{ "Parent", "SecretId", "Secret" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.AddSecretVersionRequest), global::Google.Cloud.SecretManager.V1.AddSecretVersionRequest.Parser, new[]{ "Parent", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.GetSecretRequest), global::Google.Cloud.SecretManager.V1.GetSecretRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.ListSecretVersionsRequest), global::Google.Cloud.SecretManager.V1.ListSecretVersionsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.ListSecretVersionsResponse), global::Google.Cloud.SecretManager.V1.ListSecretVersionsResponse.Parser, new[]{ "Versions", "NextPageToken", "TotalSize" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.GetSecretVersionRequest), global::Google.Cloud.SecretManager.V1.GetSecretVersionRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.UpdateSecretRequest), global::Google.Cloud.SecretManager.V1.UpdateSecretRequest.Parser, new[]{ "Secret", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.AccessSecretVersionRequest), global::Google.Cloud.SecretManager.V1.AccessSecretVersionRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.AccessSecretVersionResponse), global::Google.Cloud.SecretManager.V1.AccessSecretVersionResponse.Parser, new[]{ "Name", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.DeleteSecretRequest), global::Google.Cloud.SecretManager.V1.DeleteSecretRequest.Parser, new[]{ "Name", "Etag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.DisableSecretVersionRequest), global::Google.Cloud.SecretManager.V1.DisableSecretVersionRequest.Parser, new[]{ "Name", "Etag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.EnableSecretVersionRequest), global::Google.Cloud.SecretManager.V1.EnableSecretVersionRequest.Parser, new[]{ "Name", "Etag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.DestroySecretVersionRequest), global::Google.Cloud.SecretManager.V1.DestroySecretVersionRequest.Parser, new[]{ "Name", "Etag" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Request message for + /// [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1.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.V1.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.v1.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.v1.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.v1.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.V1.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.V1.Secret.Parser); + private readonly pbc::RepeatedField secrets_ = new pbc::RepeatedField(); + /// + /// The list of [Secrets][google.cloud.secretmanager.v1.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.v1.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.v1.Secret] but 0 + /// when the + /// [ListSecretsRequest.filter][google.cloud.secretmanager.v1.ListSecretsRequest.filter] + /// field is set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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.v1.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.V1.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.v1.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.V1.Secret secret_; + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.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.V1.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.V1.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.V1.Secret(); + } + input.ReadMessage(Secret); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.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.V1.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.v1.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1.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.V1.SecretPayload payload_; + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.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.V1.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.V1.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.V1.SecretPayload(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.GetSecret][google.cloud.secretmanager.v1.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.V1.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.v1.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.v1.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.V1.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.v1.Secret] associated with the + /// [SecretVersions][google.cloud.secretmanager.v1.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.v1.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.V1.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.V1.SecretVersion.Parser); + private readonly pbc::RepeatedField versions_ = new pbc::RepeatedField(); + /// + /// The list of [SecretVersions][google.cloud.secretmanager.v1.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.v1.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.v1.SecretVersion] but 0 when + /// the + /// [ListSecretsRequest.filter][google.cloud.secretmanager.v1.ListSecretsRequest.filter] + /// field is set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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.v1.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.V1.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.v1.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.v1.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.v1.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.V1.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.V1.Secret secret_; + /// + /// Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field + /// values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.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.V1.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.V1.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.V1.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.v1.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.V1.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.v1.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.v1.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.v1.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.V1.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.v1.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.V1.SecretPayload payload_; + /// + /// Secret payload + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.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.V1.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.V1.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.V1.SecretPayload(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.DeleteSecret][google.cloud.secretmanager.v1.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.V1.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.v1.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.v1.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.v1.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.V1.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.v1.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.v1.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.v1.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.V1.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.v1.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.v1.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.v1.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.V1.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.v1.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.v1.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.V1/Google.Cloud.SecretManager.V1/ServiceCollectionExtensions.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceCollectionExtensions.g.cs new file mode 100755 index 000000000000..6d11ed4eb94f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/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.V1; +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.V1/Google.Cloud.SecretManager.V1/ServiceGrpc.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceGrpc.g.cs new file mode 100755 index 000000000000..d5929e9270c2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceGrpc.g.cs @@ -0,0 +1,1430 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1/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.V1 { + /// + /// Secret Manager Service + /// + /// Manages secrets and operations using those secrets. Implements a REST + /// model with the following objects: + /// + /// * [Secret][google.cloud.secretmanager.v1.Secret] + /// * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] + /// + public static partial class SecretManagerService + { + static readonly string __ServiceName = "google.cloud.secretmanager.v1.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_v1_ListSecretsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.ListSecretsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_ListSecretsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.ListSecretsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_CreateSecretRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.CreateSecretRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_Secret = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.Secret.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_AddSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.AddSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_SecretVersion = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.SecretVersion.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_GetSecretRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.GetSecretRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_UpdateSecretRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.UpdateSecretRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_DeleteSecretRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.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_v1_ListSecretVersionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.ListSecretVersionsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_ListSecretVersionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.ListSecretVersionsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_GetSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.GetSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_AccessSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.AccessSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_AccessSecretVersionResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.AccessSecretVersionResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_DisableSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.DisableSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_EnableSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.EnableSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1_DestroySecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1.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_v1_ListSecretsRequest, + __Marshaller_google_cloud_secretmanager_v1_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_v1_CreateSecretRequest, + __Marshaller_google_cloud_secretmanager_v1_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_v1_AddSecretVersionRequest, + __Marshaller_google_cloud_secretmanager_v1_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_v1_GetSecretRequest, + __Marshaller_google_cloud_secretmanager_v1_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_v1_UpdateSecretRequest, + __Marshaller_google_cloud_secretmanager_v1_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_v1_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_v1_ListSecretVersionsRequest, + __Marshaller_google_cloud_secretmanager_v1_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_v1_GetSecretVersionRequest, + __Marshaller_google_cloud_secretmanager_v1_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_v1_AccessSecretVersionRequest, + __Marshaller_google_cloud_secretmanager_v1_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_v1_DisableSecretVersionRequest, + __Marshaller_google_cloud_secretmanager_v1_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_v1_EnableSecretVersionRequest, + __Marshaller_google_cloud_secretmanager_v1_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_v1_DestroySecretVersionRequest, + __Marshaller_google_cloud_secretmanager_v1_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.V1.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.v1.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.V1.ListSecretsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.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.V1.CreateSecretRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.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.V1.AddSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets metadata for a given [Secret][google.cloud.secretmanager.v1.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.V1.GetSecretRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1.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.V1.UpdateSecretRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1.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.V1.DeleteSecretRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1.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.V1.ListSecretVersionsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.V1.GetSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.V1.AccessSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.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.V1.DisableSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.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.V1.EnableSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.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.V1.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.v1.SecretVersion] are enforced + /// according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1.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.v1.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.V1.ListSecretsResponse ListSecrets(global::Google.Cloud.SecretManager.V1.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.v1.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.V1.ListSecretsResponse ListSecrets(global::Google.Cloud.SecretManager.V1.ListSecretsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListSecrets, null, options, request); + } + /// + /// Lists [Secrets][google.cloud.secretmanager.v1.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.V1.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.v1.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.V1.ListSecretsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListSecrets, null, options, request); + } + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.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.V1.Secret CreateSecret(global::Google.Cloud.SecretManager.V1.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.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.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.V1.Secret CreateSecret(global::Google.Cloud.SecretManager.V1.CreateSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateSecret, null, options, request); + } + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.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.V1.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.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.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.V1.CreateSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateSecret, null, options, request); + } + /// + /// Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.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.V1.SecretVersion AddSecretVersion(global::Google.Cloud.SecretManager.V1.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.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.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.V1.SecretVersion AddSecretVersion(global::Google.Cloud.SecretManager.V1.AddSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_AddSecretVersion, null, options, request); + } + /// + /// Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.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.V1.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.v1.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1.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.V1.AddSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_AddSecretVersion, null, options, request); + } + /// + /// Gets metadata for a given [Secret][google.cloud.secretmanager.v1.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.V1.Secret GetSecret(global::Google.Cloud.SecretManager.V1.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.v1.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.V1.Secret GetSecret(global::Google.Cloud.SecretManager.V1.GetSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetSecret, null, options, request); + } + /// + /// Gets metadata for a given [Secret][google.cloud.secretmanager.v1.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.V1.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.v1.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.V1.GetSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetSecret, null, options, request); + } + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1.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.V1.Secret UpdateSecret(global::Google.Cloud.SecretManager.V1.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.v1.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.V1.Secret UpdateSecret(global::Google.Cloud.SecretManager.V1.UpdateSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateSecret, null, options, request); + } + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1.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.V1.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.v1.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.V1.UpdateSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateSecret, null, options, request); + } + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1.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.V1.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.v1.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.V1.DeleteSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteSecret, null, options, request); + } + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1.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.V1.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.v1.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.V1.DeleteSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteSecret, null, options, request); + } + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1.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.V1.ListSecretVersionsResponse ListSecretVersions(global::Google.Cloud.SecretManager.V1.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.v1.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.V1.ListSecretVersionsResponse ListSecretVersions(global::Google.Cloud.SecretManager.V1.ListSecretVersionsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListSecretVersions, null, options, request); + } + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1.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.V1.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.v1.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.V1.ListSecretVersionsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListSecretVersions, null, options, request); + } + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.V1.SecretVersion GetSecretVersion(global::Google.Cloud.SecretManager.V1.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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.V1.SecretVersion GetSecretVersion(global::Google.Cloud.SecretManager.V1.GetSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetSecretVersion, null, options, request); + } + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.V1.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.v1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.V1.GetSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetSecretVersion, null, options, request); + } + /// + /// Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.V1.AccessSecretVersionResponse AccessSecretVersion(global::Google.Cloud.SecretManager.V1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.V1.AccessSecretVersionResponse AccessSecretVersion(global::Google.Cloud.SecretManager.V1.AccessSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_AccessSecretVersion, null, options, request); + } + /// + /// Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.V1.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.v1.SecretVersion]. + /// This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1.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.V1.AccessSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_AccessSecretVersion, null, options, request); + } + /// + /// Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.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.V1.SecretVersion DisableSecretVersion(global::Google.Cloud.SecretManager.V1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.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.V1.SecretVersion DisableSecretVersion(global::Google.Cloud.SecretManager.V1.DisableSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DisableSecretVersion, null, options, request); + } + /// + /// Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.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.V1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1.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.V1.DisableSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DisableSecretVersion, null, options, request); + } + /// + /// Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.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.V1.SecretVersion EnableSecretVersion(global::Google.Cloud.SecretManager.V1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.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.V1.SecretVersion EnableSecretVersion(global::Google.Cloud.SecretManager.V1.EnableSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_EnableSecretVersion, null, options, request); + } + /// + /// Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.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.V1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1.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.V1.EnableSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_EnableSecretVersion, null, options, request); + } + /// + /// Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.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.V1.SecretVersion DestroySecretVersion(global::Google.Cloud.SecretManager.V1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.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.V1.SecretVersion DestroySecretVersion(global::Google.Cloud.SecretManager.V1.DestroySecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DestroySecretVersion, null, options, request); + } + /// + /// Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.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.V1.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.v1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1.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.V1.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.v1.SecretVersion] are enforced + /// according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1.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.v1.SecretVersion] are enforced + /// according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1.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.v1.SecretVersion] are enforced + /// according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1.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.v1.SecretVersion] are enforced + /// according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1.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.V1/Google.Cloud.SecretManager.V1/ServiceResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceResourceNames.g.cs new file mode 100755 index 000000000000..f11da4a60ad4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/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.V1; + +namespace Google.Cloud.SecretManager.V1 +{ + 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.V1/gapic_metadata.json b/owl-bot-staging/Google.Cloud.SecretManager.V1/gapic_metadata.json new file mode 100755 index 000000000000..62b0497e6eb9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1/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.v1", + "libraryPackage": "Google.Cloud.SecretManager.V1", + "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" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets.csproj b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets.csproj new file mode 100755 index 000000000000..33cb1db90298 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/Google.Cloud.SecretManager.V1Beta1.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.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..9fbbdfb3c264 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_AccessSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_AccessSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..477f0b89dea6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_AccessSecretVersion_async] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_AccessSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..d9f0b2a094c6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_AccessSecretVersion_sync] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_AccessSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..7631a61b43b4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_AccessSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_AccessSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..1c6b2fadfebc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_AccessSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_AccessSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..3c946206d594 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_AccessSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_AccessSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..109018e3a319 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_AddSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_AddSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..109f267cf849 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_AddSecretVersion_async] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_AddSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..f812fdccae1f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_AddSecretVersion_sync] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_AddSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..787dd0fee10a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_AddSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_AddSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..7431b81f00ed --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_AddSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_AddSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..3726f92b7582 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_AddSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_AddSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretAsyncSnippet.g.cs new file mode 100755 index 000000000000..67cab86fd192 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_CreateSecret_async_flattened] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_CreateSecret_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..b7ddbf7ebdad --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_CreateSecret_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_CreateSecret_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..01859fea669b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_CreateSecret_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_CreateSecret_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..cbc9b881f491 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesAsyncSnippet.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_v1beta1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta1; + 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 CreateSecretResourceNamesAsync() + { + // 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_v1beta1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..e5d98afdde32 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesSnippet.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_v1beta1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta1; + + 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 CreateSecretResourceNames() + { + // 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_v1beta1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretSnippet.g.cs new file mode 100755 index 000000000000..2666f133485f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_CreateSecret_sync_flattened] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_CreateSecret_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretAsyncSnippet.g.cs new file mode 100755 index 000000000000..4399c6742c46 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_DeleteSecret_async_flattened] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_DeleteSecret_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..3d7a891ea53e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectAsyncSnippet.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_v1beta1_generated_SecretManagerService_DeleteSecret_async] + using Google.Cloud.SecretManager.V1Beta1; + 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]"), + }; + // Make the request + await secretManagerServiceClient.DeleteSecretAsync(request); + } + } + // [END secretmanager_v1beta1_generated_SecretManagerService_DeleteSecret_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..b34dc4fd1b75 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectSnippet.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_v1beta1_generated_SecretManagerService_DeleteSecret_sync] + using Google.Cloud.SecretManager.V1Beta1; + + 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]"), + }; + // Make the request + secretManagerServiceClient.DeleteSecret(request); + } + } + // [END secretmanager_v1beta1_generated_SecretManagerService_DeleteSecret_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..988bd73b5e71 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_DeleteSecret_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_DeleteSecret_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..8481f4ab5d46 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_DeleteSecret_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_DeleteSecret_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretSnippet.g.cs new file mode 100755 index 000000000000..d5d014985cec --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_DeleteSecret_sync_flattened] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_DeleteSecret_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..4fbf51e7fe90 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_DestroySecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_DestroySecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..5dca9dbf4ab6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectAsyncSnippet.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_v1beta1_generated_SecretManagerService_DestroySecretVersion_async] + using Google.Cloud.SecretManager.V1Beta1; + 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]"), + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.DestroySecretVersionAsync(request); + } + } + // [END secretmanager_v1beta1_generated_SecretManagerService_DestroySecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..beb782b3bbb3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectSnippet.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_v1beta1_generated_SecretManagerService_DestroySecretVersion_sync] + using Google.Cloud.SecretManager.V1Beta1; + + 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]"), + }; + // Make the request + SecretVersion response = secretManagerServiceClient.DestroySecretVersion(request); + } + } + // [END secretmanager_v1beta1_generated_SecretManagerService_DestroySecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..30003d37b3b2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_DestroySecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_DestroySecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..ab3641768129 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_DestroySecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_DestroySecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionSnippet.g.cs new file mode 100755 index 000000000000..b809790b1119 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_DestroySecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_DestroySecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..856208d0a61e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_DisableSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_DisableSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2d6c5aa61bd3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectAsyncSnippet.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_v1beta1_generated_SecretManagerService_DisableSecretVersion_async] + using Google.Cloud.SecretManager.V1Beta1; + 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]"), + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.DisableSecretVersionAsync(request); + } + } + // [END secretmanager_v1beta1_generated_SecretManagerService_DisableSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..924f75041617 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectSnippet.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_v1beta1_generated_SecretManagerService_DisableSecretVersion_sync] + using Google.Cloud.SecretManager.V1Beta1; + + 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]"), + }; + // Make the request + SecretVersion response = secretManagerServiceClient.DisableSecretVersion(request); + } + } + // [END secretmanager_v1beta1_generated_SecretManagerService_DisableSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..3000655fba6c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_DisableSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_DisableSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..5a8bcd549512 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_DisableSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_DisableSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..67d6891ef0ab --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_DisableSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_DisableSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..3ac4d6f62a4f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_EnableSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_EnableSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..b551523170ba --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectAsyncSnippet.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_v1beta1_generated_SecretManagerService_EnableSecretVersion_async] + using Google.Cloud.SecretManager.V1Beta1; + 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]"), + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.EnableSecretVersionAsync(request); + } + } + // [END secretmanager_v1beta1_generated_SecretManagerService_EnableSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..5fb4d5feb469 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectSnippet.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_v1beta1_generated_SecretManagerService_EnableSecretVersion_sync] + using Google.Cloud.SecretManager.V1Beta1; + + 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]"), + }; + // Make the request + SecretVersion response = secretManagerServiceClient.EnableSecretVersion(request); + } + } + // [END secretmanager_v1beta1_generated_SecretManagerService_EnableSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..371aa9f6527f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_EnableSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_EnableSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..30cfc55b3eaa --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_EnableSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_EnableSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..5c2f52add5fe --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_EnableSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_EnableSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..65240b3acc30 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetIamPolicy_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_GetIamPolicy_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..9319c2efcc72 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetIamPolicy_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_GetIamPolicy_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretAsyncSnippet.g.cs new file mode 100755 index 000000000000..559f3b599561 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetSecret_async_flattened] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_GetSecret_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..fe8bdb7165e2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetSecret_async] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_GetSecret_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..3646259c3281 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetSecret_sync] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_GetSecret_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..e9fac646457f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetSecret_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_GetSecret_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..7956b58ffa09 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetSecret_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_GetSecret_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretSnippet.g.cs new file mode 100755 index 000000000000..230d8473a9b4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetSecret_sync_flattened] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_GetSecret_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..29694af86e83 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_GetSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..86d7051b0b96 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetSecretVersion_async] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_GetSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..d19ea433b883 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetSecretVersion_sync] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_GetSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..6e7fd3396059 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_GetSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..ddaee4055c3f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_GetSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..feee143d0316 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_GetSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_GetSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsAsyncSnippet.g.cs new file mode 100755 index 000000000000..3e38609a8003 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_ListSecretVersions_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_ListSecretVersions_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..9a82c074f0c2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectAsyncSnippet.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_v1beta1_generated_SecretManagerService_ListSecretVersions_async] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta1; + 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]"), + }; + // 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_v1beta1_generated_SecretManagerService_ListSecretVersions_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..321265f704d3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectSnippet.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_v1beta1_generated_SecretManagerService_ListSecretVersions_sync] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta1; + 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]"), + }; + // 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_v1beta1_generated_SecretManagerService_ListSecretVersions_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..ba06c6daf6d9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_ListSecretVersions_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_ListSecretVersions_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..99f6c4d810ef --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_ListSecretVersions_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_ListSecretVersions_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsSnippet.g.cs new file mode 100755 index 000000000000..2c74f8adf0b6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_ListSecretVersions_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_ListSecretVersions_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsAsyncSnippet.g.cs new file mode 100755 index 000000000000..d4722a7c1461 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_ListSecrets_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_ListSecrets_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..3385d592b336 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectAsyncSnippet.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_v1beta1_generated_SecretManagerService_ListSecrets_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta1; + 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]"), + }; + // 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_v1beta1_generated_SecretManagerService_ListSecrets_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..2bfe78b9aed4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectSnippet.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_v1beta1_generated_SecretManagerService_ListSecrets_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta1; + 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]"), + }; + // 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_v1beta1_generated_SecretManagerService_ListSecrets_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..cd7acbf4c682 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesAsyncSnippet.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_v1beta1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta1; + 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 ListSecretsResourceNamesAsync() + { + // 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_v1beta1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..e63ccbe57a53 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesSnippet.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_v1beta1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta1; + 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 ListSecretsResourceNames() + { + // 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_v1beta1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsSnippet.g.cs new file mode 100755 index 000000000000..1dbc3aff9adb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_ListSecrets_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_ListSecrets_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..81947ed451a0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_SetIamPolicy_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_SetIamPolicy_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..1d6d622a6845 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_SetIamPolicy_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_SetIamPolicy_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..dd2933500930 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_TestIamPermissions_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_TestIamPermissions_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..e8f8bbd1ba59 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_TestIamPermissions_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta1; + + 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_v1beta1_generated_SecretManagerService_TestIamPermissions_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretAsyncSnippet.g.cs new file mode 100755 index 000000000000..44d79dfb4f4f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_UpdateSecret_async_flattened] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_UpdateSecret_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..fd93e234f384 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_UpdateSecret_async] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_UpdateSecret_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..6d4332018837 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_UpdateSecret_sync] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_UpdateSecret_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretSnippet.g.cs new file mode 100755 index 000000000000..ecf3283cdd95 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.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_v1beta1_generated_SecretManagerService_UpdateSecret_sync_flattened] + using Google.Cloud.SecretManager.V1Beta1; + 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_v1beta1_generated_SecretManagerService_UpdateSecret_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.secrets.v1beta1.json b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.secrets.v1beta1.json new file mode 100755 index 000000000000..93ca4ceca1ac --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.secrets.v1beta1.json @@ -0,0 +1,3771 @@ +{ + "clientLibrary": { + "name": "Google.Cloud.SecretManager.V1Beta1", + "language": "C_SHARP", + "apis": [ + { + "id": "google.cloud.secrets.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.ListSecrets", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.ListSecretsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 37, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.ListSecretsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.ListSecretsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 39, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames", + "title": "ListSecretsResourceNames", + "description": "Snippet for ListSecrets", + "file": "SecretManagerServiceClient.ListSecretsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecrets", + "fullName": "Google.Cloud.SecretManager.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames", + "title": "ListSecretsResourceNamesAsync", + "description": "Snippet for ListSecretsAsync", + "file": "SecretManagerServiceClient.ListSecretsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretsAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.CreateSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.CreateSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.CreateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.CreateSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 36, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.CreateSecret", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta1.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.CreateSecretAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta1.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames", + "title": "CreateSecretResourceNames", + "description": "Snippet for CreateSecret", + "file": "SecretManagerServiceClient.CreateSecretResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecret", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient.CreateSecret", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta1.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames", + "title": "CreateSecretResourceNamesAsync", + "description": "Snippet for CreateSecretAsync", + "file": "SecretManagerServiceClient.CreateSecretResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient.CreateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta1.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.AddSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.AddSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.AddSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.AddSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.AddSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretPayload", + "name": "payload" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.AddSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretPayload", + "name": "payload" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.AddSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretPayload", + "name": "payload" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.AddSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretPayload", + "name": "payload" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.GetSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.GetSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.GetSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.GetSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.GetSecret", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.GetSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.GetSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.UpdateSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "UpdateSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.UpdateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.UpdateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "UpdateSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.UpdateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.UpdateSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.Secret", + "name": "secret" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "UpdateSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.UpdateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.UpdateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "UpdateSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.UpdateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DeleteSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.DeleteSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DeleteSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.DeleteSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DeleteSecret", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DeleteSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DeleteSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.ListSecretVersions", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.ListSecretVersionsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.ListSecretVersionsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.ListSecretVersionsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 38, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.ListSecretVersions", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.ListSecretVersionsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.GetSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.GetSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.GetSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.GetSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.GetSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.GetSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.GetSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.AccessSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.AccessSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.AccessSecretVersionResponse", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.AccessSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.AccessSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.AccessSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.AccessSecretVersionResponse", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.AccessSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.AccessSecretVersionResponse", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.AccessSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DisableSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.DisableSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DisableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.DisableSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DisableSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DisableSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DisableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.EnableSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.EnableSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.EnableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.EnableSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.EnableSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.EnableSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.EnableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DestroySecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.DestroySecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DestroySecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.DestroySecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DestroySecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DestroySecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta1.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.SecretManagerServiceClient.DestroySecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta1.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.SetIamPolicy", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 37, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.SetIamPolicy", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 38, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetIamPolicy", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.GetIamPolicy", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.TestIamPermissions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta1_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.V1Beta1.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.V1Beta1.SecretManagerServiceClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.secrets.v1beta1.SecretManagerService.TestIamPermissions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secrets.v1beta1.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.V1Beta1/Google.Cloud.SecretManager.V1Beta1.Snippets/Google.Cloud.SecretManager.V1Beta1.Snippets.csproj b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.Snippets/Google.Cloud.SecretManager.V1Beta1.Snippets.csproj new file mode 100755 index 000000000000..33cb1db90298 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.Snippets/Google.Cloud.SecretManager.V1Beta1.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.V1Beta1/Google.Cloud.SecretManager.V1Beta1.Snippets/SecretManagerServiceClientSnippets.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.Snippets/SecretManagerServiceClientSnippets.g.cs new file mode 100755 index 000000000000..b9d41a338939 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.Snippets/SecretManagerServiceClientSnippets.g.cs @@ -0,0 +1,1555 @@ +// 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.V1Beta1; + 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]"), + }; + // 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]"), + }; + // 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 ListSecretsResourceNames() + { + // 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 ListSecretsResourceNamesAsync() + { + // 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 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 CreateSecretResourceNames() + { + // 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 CreateSecretResourceNamesAsync() + { + // 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 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]"), + }; + // 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]"), + }; + // 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]"), + }; + // 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]"), + }; + // 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]"), + }; + // 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]"), + }; + // 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]"), + }; + // 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]"), + }; + // 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]"), + }; + // 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]"), + }; + // 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.V1Beta1/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.csproj b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.csproj new file mode 100755 index 000000000000..d7480d4f210e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1.csproj @@ -0,0 +1,48 @@ + + + + + + 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.V1Beta1/Google.Cloud.SecretManager.V1Beta1/PackageApiMetadata.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/PackageApiMetadata.g.cs new file mode 100755 index 000000000000..90fb75e2dc26 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/PackageApiMetadata.g.cs @@ -0,0 +1,37 @@ +// 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 gpr = Google.Protobuf.Reflection; +using scg = System.Collections.Generic; + +namespace Google.Cloud.SecretManager.V1Beta1 +{ + /// 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.V1Beta1", GetFileDescriptors) + .WithRequestNumericEnumJsonEncoding(true); + + private static scg::IEnumerable GetFileDescriptors() + { + yield return ResourcesReflection.Descriptor; + yield return ServiceReflection.Descriptor; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/Resources.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/Resources.g.cs new file mode 100755 index 000000000000..748324991c5d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/Resources.g.cs @@ -0,0 +1,1842 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secrets/v1beta1/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.V1Beta1 { + + /// Holder for reflection information generated from google/cloud/secrets/v1beta1/resources.proto + public static partial class ResourcesReflection { + + #region Descriptor + /// File descriptor for google/cloud/secrets/v1beta1/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( + "Cixnb29nbGUvY2xvdWQvc2VjcmV0cy92MWJldGExL3Jlc291cmNlcy5wcm90", + "bxIcZ29vZ2xlLmNsb3VkLnNlY3JldHMudjFiZXRhMRofZ29vZ2xlL2FwaS9m", + "aWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90", + "bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90byLZAgoGU2VjcmV0", + "EhEKBG5hbWUYASABKAlCA+BBAxJGCgtyZXBsaWNhdGlvbhgCIAEoCzIpLmdv", + "b2dsZS5jbG91ZC5zZWNyZXRzLnYxYmV0YTEuUmVwbGljYXRpb25CBuBBBeBB", + "AhI0CgtjcmVhdGVfdGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXBCA+BBAxJACgZsYWJlbHMYBCADKAsyMC5nb29nbGUuY2xvdWQuc2Vj", + "cmV0cy52MWJldGExLlNlY3JldC5MYWJlbHNFbnRyeRotCgtMYWJlbHNFbnRy", + "eRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBOk3qQUoKI3NlY3Jl", + "dG1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vU2VjcmV0EiNwcm9qZWN0cy97cHJv", + "amVjdH0vc2VjcmV0cy97c2VjcmV0fSKQAwoNU2VjcmV0VmVyc2lvbhIRCgRu", + "YW1lGAEgASgJQgPgQQMSNAoLY3JlYXRlX3RpbWUYAiABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wQgPgQQMSNQoMZGVzdHJveV90aW1lGAMgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEkUKBXN0YXRlGAQg", + "ASgOMjEuZ29vZ2xlLmNsb3VkLnNlY3JldHMudjFiZXRhMS5TZWNyZXRWZXJz", + "aW9uLlN0YXRlQgPgQQMiSAoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQ", + "ABILCgdFTkFCTEVEEAESDAoIRElTQUJMRUQQAhINCglERVNUUk9ZRUQQAzpu", + "6kFrCipzZWNyZXRtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1NlY3JldFZlcnNp", + "b24SPXByb2plY3RzL3twcm9qZWN0fS9zZWNyZXRzL3tzZWNyZXR9L3ZlcnNp", + "b25zL3tzZWNyZXRfdmVyc2lvbn0ixQIKC1JlcGxpY2F0aW9uEkgKCWF1dG9t", + "YXRpYxgBIAEoCzIzLmdvb2dsZS5jbG91ZC5zZWNyZXRzLnYxYmV0YTEuUmVw", + "bGljYXRpb24uQXV0b21hdGljSAASTQoMdXNlcl9tYW5hZ2VkGAIgASgLMjUu", + "Z29vZ2xlLmNsb3VkLnNlY3JldHMudjFiZXRhMS5SZXBsaWNhdGlvbi5Vc2Vy", + "TWFuYWdlZEgAGgsKCUF1dG9tYXRpYxqAAQoLVXNlck1hbmFnZWQSVAoIcmVw", + "bGljYXMYASADKAsyPS5nb29nbGUuY2xvdWQuc2VjcmV0cy52MWJldGExLlJl", + "cGxpY2F0aW9uLlVzZXJNYW5hZ2VkLlJlcGxpY2FCA+BBAhobCgdSZXBsaWNh", + "EhAKCGxvY2F0aW9uGAEgASgJQg0KC3JlcGxpY2F0aW9uIh0KDVNlY3JldFBh", + "eWxvYWQSDAoEZGF0YRgBIAEoDELxAQomY29tLmdvb2dsZS5jbG91ZC5zZWNy", + "ZXRtYW5hZ2VyLnYxYmV0YTFCDlJlc291cmNlc1Byb3RvUAFaOmNsb3VkLmdv", + "b2dsZS5jb20vZ28vc2VjcmV0cy9hcGl2MWJldGExL3NlY3JldHNwYjtzZWNy", + "ZXRzcGL4AQGiAgNHU02qAiJHb29nbGUuQ2xvdWQuU2VjcmV0TWFuYWdlci5W", + "MUJldGExygIiR29vZ2xlXENsb3VkXFNlY3JldE1hbmFnZXJcVjFiZXRhMeoC", + "JUdvb2dsZTo6Q2xvdWQ6OlNlY3JldE1hbmFnZXI6OlYxYmV0YTFiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.Secret), global::Google.Cloud.SecretManager.V1Beta1.Secret.Parser, new[]{ "Name", "Replication", "CreateTime", "Labels" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.SecretVersion), global::Google.Cloud.SecretManager.V1Beta1.SecretVersion.Parser, new[]{ "Name", "CreateTime", "DestroyTime", "State" }, null, new[]{ typeof(global::Google.Cloud.SecretManager.V1Beta1.SecretVersion.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.Replication), global::Google.Cloud.SecretManager.V1Beta1.Replication.Parser, new[]{ "Automatic", "UserManaged" }, new[]{ "Replication" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.Replication.Types.Automatic), global::Google.Cloud.SecretManager.V1Beta1.Replication.Types.Automatic.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.Replication.Types.UserManaged), global::Google.Cloud.SecretManager.V1Beta1.Replication.Types.UserManaged.Parser, new[]{ "Replicas" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.Replication.Types.UserManaged.Types.Replica), global::Google.Cloud.SecretManager.V1Beta1.Replication.Types.UserManaged.Types.Replica.Parser, new[]{ "Location" }, null, null, null, null)})}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.SecretPayload), global::Google.Cloud.SecretManager.V1Beta1.SecretPayload.Parser, new[]{ "Data" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A [Secret][google.cloud.secrets.v1beta1.Secret] is a logical secret whose value and versions can + /// be accessed. + /// + /// A [Secret][google.cloud.secrets.v1beta1.Secret] is made up of zero or more [SecretVersions][google.cloud.secrets.v1beta1.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.V1Beta1.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(); + _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.secrets.v1beta1.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.V1Beta1.Replication replication_; + /// + /// Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.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_; } + } + + [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; + 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(); + 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); + 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); + 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); + 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.V1Beta1.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_); + _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.V1Beta1.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; + } + } + } + #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.V1Beta1.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; + } + } + } + } + #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.V1Beta1.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_; + _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.secrets.v1beta1.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*`. + /// + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] IDs in a [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] was destroyed. + /// Only present if [state][google.cloud.secrets.v1beta1.SecretVersion.state] is + /// [DESTROYED][google.cloud.secrets.v1beta1.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.V1Beta1.SecretVersion.Types.State state_ = global::Google.Cloud.SecretManager.V1Beta1.SecretVersion.Types.State.Unspecified; + /// + /// Output only. The current state of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta1.SecretVersion.Types.State State { + get { return state_; } + set { + state_ = 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; + 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.V1Beta1.SecretVersion.Types.State.Unspecified) hash ^= State.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.V1Beta1.SecretVersion.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + 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.V1Beta1.SecretVersion.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + 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.V1Beta1.SecretVersion.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + 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.V1Beta1.SecretVersion.Types.State.Unspecified) { + State = other.State; + } + _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.V1Beta1.SecretVersion.Types.State) input.ReadEnum(); + 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.V1Beta1.SecretVersion.Types.State) input.ReadEnum(); + 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.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] may be accessed. + /// + [pbr::OriginalName("ENABLED")] Enabled = 1, + /// + /// The [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] may not be accessed, but the secret data + /// is still available and can be placed back into the [ENABLED][google.cloud.secrets.v1beta1.SecretVersion.State.ENABLED] + /// state. + /// + [pbr::OriginalName("DISABLED")] Disabled = 2, + /// + /// The [SecretVersion][google.cloud.secrets.v1beta1.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 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.V1Beta1.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.secrets.v1beta1.Secret] will automatically be replicated without any restrictions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta1.Replication.Types.Automatic Automatic { + get { return replicationCase_ == ReplicationOneofCase.Automatic ? (global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.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.V1Beta1.Replication.Types.UserManaged UserManaged { + get { return replicationCase_ == ReplicationOneofCase.UserManaged ? (global::Google.Cloud.SecretManager.V1Beta1.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.V1Beta1.Replication.Types.Automatic(); + } + Automatic.MergeFrom(other.Automatic); + break; + case ReplicationOneofCase.UserManaged: + if (UserManaged == null) { + UserManaged = new global::Google.Cloud.SecretManager.V1Beta1.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.V1Beta1.Replication.Types.Automatic subBuilder = new global::Google.Cloud.SecretManager.V1Beta1.Replication.Types.Automatic(); + if (replicationCase_ == ReplicationOneofCase.Automatic) { + subBuilder.MergeFrom(Automatic); + } + input.ReadMessage(subBuilder); + Automatic = subBuilder; + break; + } + case 18: { + global::Google.Cloud.SecretManager.V1Beta1.Replication.Types.UserManaged subBuilder = new global::Google.Cloud.SecretManager.V1Beta1.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.V1Beta1.Replication.Types.Automatic subBuilder = new global::Google.Cloud.SecretManager.V1Beta1.Replication.Types.Automatic(); + if (replicationCase_ == ReplicationOneofCase.Automatic) { + subBuilder.MergeFrom(Automatic); + } + input.ReadMessage(subBuilder); + Automatic = subBuilder; + break; + } + case 18: { + global::Google.Cloud.SecretManager.V1Beta1.Replication.Types.UserManaged subBuilder = new global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.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.V1Beta1.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() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Automatic Clone() { + return new Automatic(this); + } + + [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; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Automatic other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// A replication policy that replicates the [Secret][google.cloud.secrets.v1beta1.Secret] payload into the + /// locations specified in [Secret.replication.user_managed.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.V1Beta1.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.V1Beta1.Replication.Types.UserManaged.Types.Replica.Parser); + private readonly pbc::RepeatedField replicas_ = new pbc::RepeatedField(); + /// + /// Required. The list of Replicas for this [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.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.V1Beta1.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_; + _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"); + } + } + + [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; + 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 (_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 (_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 (_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 (_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; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// A secret payload resource in the Secret Manager API. This contains the + /// sensitive secret data that is associated with a [SecretVersion][google.cloud.secrets.v1beta1.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; + [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.V1Beta1.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 SecretPayload() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecretPayload(SecretPayload other) : this() { + data_ = other.data_; + _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"); + } + } + + [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; + 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 (_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 (_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 (_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 (_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; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ResourcesResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ResourcesResourceNames.g.cs new file mode 100755 index 000000000000..24c029932ea5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ResourcesResourceNames.g.cs @@ -0,0 +1,528 @@ +// 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.V1Beta1; +using sys = System; + +namespace Google.Cloud.SecretManager.V1Beta1 +{ + /// 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, + } + + private static gax::PathTemplate s_projectSecret = new gax::PathTemplate("projects/{project}/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))); + + /// + /// 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))); + + /// 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} + /// + /// + /// 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} + /// + /// 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} + /// + /// + /// 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} + /// + /// 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 (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 projectId = null, string secretId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + 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 Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// + /// The Secret ID. Will not be null, unless this instance contains an unparsed resource name. + /// + 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); + 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, + } + + private static gax::PathTemplate s_projectSecretSecretVersion = new gax::PathTemplate("projects/{project}/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))); + + /// + /// 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))); + + /// + /// 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} + /// + /// + /// + /// 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} + /// + /// + /// 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} + /// + /// + /// + /// 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} + /// + /// + /// 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 (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 projectId = null, string secretId = null, string secretVersionId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + 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 Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// + /// The Secret ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string SecretId { get; } + + /// + /// The SecretVersion ID. Will not be null, unless this instance contains an unparsed resource + /// name. + /// + 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); + 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); + } + + 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() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/SecretManagerServiceClient.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/SecretManagerServiceClient.g.cs new file mode 100755 index 000000000000..6d6abc09d6a6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/SecretManagerServiceClient.g.cs @@ -0,0 +1,2791 @@ +// 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 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.V1Beta1 +{ + /// 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; + 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: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// 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: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.Unknown))); + + /// + /// 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))); + + /// 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.secrets.v1beta1.Secret] + /// * [SecretVersion][google.cloud.secrets.v1beta1.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(); + + /// + /// Lists [Secrets][google.cloud.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`. + /// + /// + /// 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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`. + /// + /// + /// 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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`. + /// + /// + /// 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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`. + /// + /// + /// 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); + } + + /// + /// Creates a new [Secret][google.cloud.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.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.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.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.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.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.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`. + /// + /// + /// 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.secrets.v1beta1.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.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`. + /// + /// + /// 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.secrets.v1beta1.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.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`. + /// + /// + /// 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.secrets.v1beta1.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.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`. + /// + /// + /// 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.secrets.v1beta1.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.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`. + /// + /// + /// 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.secrets.v1beta1.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.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`. + /// + /// + /// 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.secrets.v1beta1.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 [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] to associate with the + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/secrets/*`. + /// + /// + /// Required. The secret payload of the [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] to associate with the + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/secrets/*`. + /// + /// + /// Required. The secret payload of the [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] to associate with the + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/secrets/*`. + /// + /// + /// Required. The secret payload of the [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] to associate with the + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/secrets/*`. + /// + /// + /// Required. The secret payload of the [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] to associate with the + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/secrets/*`. + /// + /// + /// Required. The secret payload of the [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] to associate with the + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/secrets/*`. + /// + /// + /// Required. The secret payload of the [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*/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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*/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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*/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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*/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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*/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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*/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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.Secret]. + /// + /// + /// Required. [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.Secret]. + /// + /// + /// Required. [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.Secret]. + /// + /// + /// Required. [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.Secret]. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. This call does not return secret + /// data. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] associated with the + /// [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] to list, in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. This call does not return secret + /// data. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] associated with the + /// [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] to list, in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. This call does not return secret + /// data. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] associated with the + /// [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] to list, in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. This call does not return secret + /// data. + /// + /// + /// Required. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] associated with the + /// [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] to list, in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// + /// 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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// + /// 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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// + /// 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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// + /// 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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// + /// 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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// + /// 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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to disable in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to disable in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to disable in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to disable in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to disable in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to disable in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to enable in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to enable in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to enable in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to enable in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to enable in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to enable in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED] and irrevocably destroys the + /// secret data. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to destroy in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED] and irrevocably destroys the + /// secret data. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to destroy in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED] and irrevocably destroys the + /// secret data. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to destroy in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED] and irrevocably destroys the + /// secret data. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to destroy in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED] and irrevocably destroys the + /// secret data. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to destroy in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED] and irrevocably destroys the + /// secret data. + /// + /// + /// Required. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to destroy in the format + /// `projects/*/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.secrets.v1beta1.SecretVersion] are enforced according + /// to the policy set on the associated [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] are enforced according + /// to the policy set on the associated [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] are enforced according + /// to the policy set on the associated [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.Secret] + /// * [SecretVersion][google.cloud.secrets.v1beta1.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, + }); + _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; } + + 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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.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.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] are enforced according + /// to the policy set on the associated [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] are enforced according + /// to the policy set on the associated [Secret][google.cloud.secrets.v1beta1.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(); + } +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/Service.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/Service.g.cs new file mode 100755 index 000000000000..4ffe5317aca0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/Service.g.cs @@ -0,0 +1,3683 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secrets/v1beta1/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.V1Beta1 { + + /// Holder for reflection information generated from google/cloud/secrets/v1beta1/service.proto + public static partial class ServiceReflection { + + #region Descriptor + /// File descriptor for google/cloud/secrets/v1beta1/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( + "Cipnb29nbGUvY2xvdWQvc2VjcmV0cy92MWJldGExL3NlcnZpY2UucHJvdG8S", + "HGdvb2dsZS5jbG91ZC5zZWNyZXRzLnYxYmV0YTEaHGdvb2dsZS9hcGkvYW5u", + "b3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29n", + "bGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291", + "cmNlLnByb3RvGixnb29nbGUvY2xvdWQvc2VjcmV0cy92MWJldGExL3Jlc291", + "cmNlcy5wcm90bxoeZ29vZ2xlL2lhbS92MS9pYW1fcG9saWN5LnByb3RvGhpn", + "b29nbGUvaWFtL3YxL3BvbGljeS5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2Vt", + "cHR5LnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90byKK", + "AQoSTGlzdFNlY3JldHNSZXF1ZXN0EkMKBnBhcmVudBgBIAEoCUIz4EEC+kEt", + "CitjbG91ZHJlc291cmNlbWFuYWdlci5nb29nbGVhcGlzLmNvbS9Qcm9qZWN0", + "EhYKCXBhZ2Vfc2l6ZRgCIAEoBUID4EEBEhcKCnBhZ2VfdG9rZW4YAyABKAlC", + "A+BBASJ5ChNMaXN0U2VjcmV0c1Jlc3BvbnNlEjUKB3NlY3JldHMYASADKAsy", + "JC5nb29nbGUuY2xvdWQuc2VjcmV0cy52MWJldGExLlNlY3JldBIXCg9uZXh0", + "X3BhZ2VfdG9rZW4YAiABKAkSEgoKdG90YWxfc2l6ZRgDIAEoBSKtAQoTQ3Jl", + "YXRlU2VjcmV0UmVxdWVzdBJDCgZwYXJlbnQYASABKAlCM+BBAvpBLQorY2xv", + "dWRyZXNvdXJjZW1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vUHJvamVjdBIWCglz", + "ZWNyZXRfaWQYAiABKAlCA+BBAhI5CgZzZWNyZXQYAyABKAsyJC5nb29nbGUu", + "Y2xvdWQuc2VjcmV0cy52MWJldGExLlNlY3JldEID4EECIpkBChdBZGRTZWNy", + "ZXRWZXJzaW9uUmVxdWVzdBI7CgZwYXJlbnQYASABKAlCK+BBAvpBJQojc2Vj", + "cmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9TZWNyZXQSQQoHcGF5bG9hZBgC", + "IAEoCzIrLmdvb2dsZS5jbG91ZC5zZWNyZXRzLnYxYmV0YTEuU2VjcmV0UGF5", + "bG9hZEID4EECIk0KEEdldFNlY3JldFJlcXVlc3QSOQoEbmFtZRgBIAEoCUIr", + "4EEC+kElCiNzZWNyZXRtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1NlY3JldCKJ", + "AQoZTGlzdFNlY3JldFZlcnNpb25zUmVxdWVzdBI7CgZwYXJlbnQYASABKAlC", + "K+BBAvpBJQojc2VjcmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9TZWNyZXQS", + "FgoJcGFnZV9zaXplGAIgASgFQgPgQQESFwoKcGFnZV90b2tlbhgDIAEoCUID", + "4EEBIogBChpMaXN0U2VjcmV0VmVyc2lvbnNSZXNwb25zZRI9Cgh2ZXJzaW9u", + "cxgBIAMoCzIrLmdvb2dsZS5jbG91ZC5zZWNyZXRzLnYxYmV0YTEuU2VjcmV0", + "VmVyc2lvbhIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkSEgoKdG90YWxfc2l6", + "ZRgDIAEoBSJbChdHZXRTZWNyZXRWZXJzaW9uUmVxdWVzdBJACgRuYW1lGAEg", + "ASgJQjLgQQL6QSwKKnNlY3JldG1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vU2Vj", + "cmV0VmVyc2lvbiKGAQoTVXBkYXRlU2VjcmV0UmVxdWVzdBI5CgZzZWNyZXQY", + "ASABKAsyJC5nb29nbGUuY2xvdWQuc2VjcmV0cy52MWJldGExLlNlY3JldEID", + "4EECEjQKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZp", + "ZWxkTWFza0ID4EECIl4KGkFjY2Vzc1NlY3JldFZlcnNpb25SZXF1ZXN0EkAK", + "BG5hbWUYASABKAlCMuBBAvpBLAoqc2VjcmV0bWFuYWdlci5nb29nbGVhcGlz", + "LmNvbS9TZWNyZXRWZXJzaW9uIpoBChtBY2Nlc3NTZWNyZXRWZXJzaW9uUmVz", + "cG9uc2USPQoEbmFtZRgBIAEoCUIv+kEsCipzZWNyZXRtYW5hZ2VyLmdvb2ds", + "ZWFwaXMuY29tL1NlY3JldFZlcnNpb24SPAoHcGF5bG9hZBgCIAEoCzIrLmdv", + "b2dsZS5jbG91ZC5zZWNyZXRzLnYxYmV0YTEuU2VjcmV0UGF5bG9hZCJQChNE", + "ZWxldGVTZWNyZXRSZXF1ZXN0EjkKBG5hbWUYASABKAlCK+BBAvpBJQojc2Vj", + "cmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9TZWNyZXQiXwobRGlzYWJsZVNl", + "Y3JldFZlcnNpb25SZXF1ZXN0EkAKBG5hbWUYASABKAlCMuBBAvpBLAoqc2Vj", + "cmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9TZWNyZXRWZXJzaW9uIl4KGkVu", + "YWJsZVNlY3JldFZlcnNpb25SZXF1ZXN0EkAKBG5hbWUYASABKAlCMuBBAvpB", + "LAoqc2VjcmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9TZWNyZXRWZXJzaW9u", + "Il8KG0Rlc3Ryb3lTZWNyZXRWZXJzaW9uUmVxdWVzdBJACgRuYW1lGAEgASgJ", + "QjLgQQL6QSwKKnNlY3JldG1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vU2VjcmV0", + "VmVyc2lvbjKDFgoUU2VjcmV0TWFuYWdlclNlcnZpY2USqQEKC0xpc3RTZWNy", + "ZXRzEjAuZ29vZ2xlLmNsb3VkLnNlY3JldHMudjFiZXRhMS5MaXN0U2VjcmV0", + "c1JlcXVlc3QaMS5nb29nbGUuY2xvdWQuc2VjcmV0cy52MWJldGExLkxpc3RT", + "ZWNyZXRzUmVzcG9uc2UiNdpBBnBhcmVudILT5JMCJhIkL3YxYmV0YTEve3Bh", + "cmVudD1wcm9qZWN0cy8qfS9zZWNyZXRzErcBCgxDcmVhdGVTZWNyZXQSMS5n", + "b29nbGUuY2xvdWQuc2VjcmV0cy52MWJldGExLkNyZWF0ZVNlY3JldFJlcXVl", + "c3QaJC5nb29nbGUuY2xvdWQuc2VjcmV0cy52MWJldGExLlNlY3JldCJO2kEX", + "cGFyZW50LHNlY3JldF9pZCxzZWNyZXSC0+STAi4iJC92MWJldGExL3twYXJl", + "bnQ9cHJvamVjdHMvKn0vc2VjcmV0czoGc2VjcmV0EsUBChBBZGRTZWNyZXRW", + "ZXJzaW9uEjUuZ29vZ2xlLmNsb3VkLnNlY3JldHMudjFiZXRhMS5BZGRTZWNy", + "ZXRWZXJzaW9uUmVxdWVzdBorLmdvb2dsZS5jbG91ZC5zZWNyZXRzLnYxYmV0", + "YTEuU2VjcmV0VmVyc2lvbiJN2kEOcGFyZW50LHBheWxvYWSC0+STAjYiMS92", + "MWJldGExL3twYXJlbnQ9cHJvamVjdHMvKi9zZWNyZXRzLyp9OmFkZFZlcnNp", + "b246ASoSlgEKCUdldFNlY3JldBIuLmdvb2dsZS5jbG91ZC5zZWNyZXRzLnYx", + "YmV0YTEuR2V0U2VjcmV0UmVxdWVzdBokLmdvb2dsZS5jbG91ZC5zZWNyZXRz", + "LnYxYmV0YTEuU2VjcmV0IjPaQQRuYW1lgtPkkwImEiQvdjFiZXRhMS97bmFt", + "ZT1wcm9qZWN0cy8qL3NlY3JldHMvKn0SuQEKDFVwZGF0ZVNlY3JldBIxLmdv", + "b2dsZS5jbG91ZC5zZWNyZXRzLnYxYmV0YTEuVXBkYXRlU2VjcmV0UmVxdWVz", + "dBokLmdvb2dsZS5jbG91ZC5zZWNyZXRzLnYxYmV0YTEuU2VjcmV0IlDaQRJz", + "ZWNyZXQsdXBkYXRlX21hc2uC0+STAjUyKy92MWJldGExL3tzZWNyZXQubmFt", + "ZT1wcm9qZWN0cy8qL3NlY3JldHMvKn06BnNlY3JldBKOAQoMRGVsZXRlU2Vj", + "cmV0EjEuZ29vZ2xlLmNsb3VkLnNlY3JldHMudjFiZXRhMS5EZWxldGVTZWNy", + "ZXRSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IjPaQQRuYW1lgtPk", + "kwImKiQvdjFiZXRhMS97bmFtZT1wcm9qZWN0cy8qL3NlY3JldHMvKn0SyQEK", + "Ekxpc3RTZWNyZXRWZXJzaW9ucxI3Lmdvb2dsZS5jbG91ZC5zZWNyZXRzLnYx", + "YmV0YTEuTGlzdFNlY3JldFZlcnNpb25zUmVxdWVzdBo4Lmdvb2dsZS5jbG91", + "ZC5zZWNyZXRzLnYxYmV0YTEuTGlzdFNlY3JldFZlcnNpb25zUmVzcG9uc2Ui", + "QNpBBnBhcmVudILT5JMCMRIvL3YxYmV0YTEve3BhcmVudD1wcm9qZWN0cy8q", + "L3NlY3JldHMvKn0vdmVyc2lvbnMStgEKEEdldFNlY3JldFZlcnNpb24SNS5n", + "b29nbGUuY2xvdWQuc2VjcmV0cy52MWJldGExLkdldFNlY3JldFZlcnNpb25S", + "ZXF1ZXN0GisuZ29vZ2xlLmNsb3VkLnNlY3JldHMudjFiZXRhMS5TZWNyZXRW", + "ZXJzaW9uIj7aQQRuYW1lgtPkkwIxEi8vdjFiZXRhMS97bmFtZT1wcm9qZWN0", + "cy8qL3NlY3JldHMvKi92ZXJzaW9ucy8qfRLRAQoTQWNjZXNzU2VjcmV0VmVy", + "c2lvbhI4Lmdvb2dsZS5jbG91ZC5zZWNyZXRzLnYxYmV0YTEuQWNjZXNzU2Vj", + "cmV0VmVyc2lvblJlcXVlc3QaOS5nb29nbGUuY2xvdWQuc2VjcmV0cy52MWJl", + "dGExLkFjY2Vzc1NlY3JldFZlcnNpb25SZXNwb25zZSJF2kEEbmFtZYLT5JMC", + "OBI2L3YxYmV0YTEve25hbWU9cHJvamVjdHMvKi9zZWNyZXRzLyovdmVyc2lv", + "bnMvKn06YWNjZXNzEskBChREaXNhYmxlU2VjcmV0VmVyc2lvbhI5Lmdvb2ds", + "ZS5jbG91ZC5zZWNyZXRzLnYxYmV0YTEuRGlzYWJsZVNlY3JldFZlcnNpb25S", + "ZXF1ZXN0GisuZ29vZ2xlLmNsb3VkLnNlY3JldHMudjFiZXRhMS5TZWNyZXRW", + "ZXJzaW9uIknaQQRuYW1lgtPkkwI8IjcvdjFiZXRhMS97bmFtZT1wcm9qZWN0", + "cy8qL3NlY3JldHMvKi92ZXJzaW9ucy8qfTpkaXNhYmxlOgEqEsYBChNFbmFi", + "bGVTZWNyZXRWZXJzaW9uEjguZ29vZ2xlLmNsb3VkLnNlY3JldHMudjFiZXRh", + "MS5FbmFibGVTZWNyZXRWZXJzaW9uUmVxdWVzdBorLmdvb2dsZS5jbG91ZC5z", + "ZWNyZXRzLnYxYmV0YTEuU2VjcmV0VmVyc2lvbiJI2kEEbmFtZYLT5JMCOyI2", + "L3YxYmV0YTEve25hbWU9cHJvamVjdHMvKi9zZWNyZXRzLyovdmVyc2lvbnMv", + "Kn06ZW5hYmxlOgEqEskBChREZXN0cm95U2VjcmV0VmVyc2lvbhI5Lmdvb2ds", + "ZS5jbG91ZC5zZWNyZXRzLnYxYmV0YTEuRGVzdHJveVNlY3JldFZlcnNpb25S", + "ZXF1ZXN0GisuZ29vZ2xlLmNsb3VkLnNlY3JldHMudjFiZXRhMS5TZWNyZXRW", + "ZXJzaW9uIknaQQRuYW1lgtPkkwI8IjcvdjFiZXRhMS97bmFtZT1wcm9qZWN0", + "cy8qL3NlY3JldHMvKi92ZXJzaW9ucy8qfTpkZXN0cm95OgEqEosBCgxTZXRJ", + "YW1Qb2xpY3kSIi5nb29nbGUuaWFtLnYxLlNldElhbVBvbGljeVJlcXVlc3Qa", + "FS5nb29nbGUuaWFtLnYxLlBvbGljeSJAgtPkkwI6IjUvdjFiZXRhMS97cmVz", + "b3VyY2U9cHJvamVjdHMvKi9zZWNyZXRzLyp9OnNldElhbVBvbGljeToBKhKI", + "AQoMR2V0SWFtUG9saWN5EiIuZ29vZ2xlLmlhbS52MS5HZXRJYW1Qb2xpY3lS", + "ZXF1ZXN0GhUuZ29vZ2xlLmlhbS52MS5Qb2xpY3kiPYLT5JMCNxI1L3YxYmV0", + "YTEve3Jlc291cmNlPXByb2plY3RzLyovc2VjcmV0cy8qfTpnZXRJYW1Qb2xp", + "Y3kSsQEKElRlc3RJYW1QZXJtaXNzaW9ucxIoLmdvb2dsZS5pYW0udjEuVGVz", + "dElhbVBlcm1pc3Npb25zUmVxdWVzdBopLmdvb2dsZS5pYW0udjEuVGVzdElh", + "bVBlcm1pc3Npb25zUmVzcG9uc2UiRoLT5JMCQCI7L3YxYmV0YTEve3Jlc291", + "cmNlPXByb2plY3RzLyovc2VjcmV0cy8qfTp0ZXN0SWFtUGVybWlzc2lvbnM6", + "ASoaUMpBHHNlY3JldG1hbmFnZXIuZ29vZ2xlYXBpcy5jb23SQS5odHRwczov", + "L3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Nsb3VkLXBsYXRmb3JtQu8BCiZj", + "b20uZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMUIMU2Vydmlj", + "ZVByb3RvUAFaOmNsb3VkLmdvb2dsZS5jb20vZ28vc2VjcmV0cy9hcGl2MWJl", + "dGExL3NlY3JldHNwYjtzZWNyZXRzcGL4AQGiAgNHU02qAiJHb29nbGUuQ2xv", + "dWQuU2VjcmV0TWFuYWdlci5WMUJldGExygIiR29vZ2xlXENsb3VkXFNlY3Jl", + "dE1hbmFnZXJcVjFiZXRhMeoCJUdvb2dsZTo6Q2xvdWQ6OlNlY3JldE1hbmFn", + "ZXI6OlYxYmV0YTFiBnByb3RvMw==")); + 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.V1Beta1.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.V1Beta1.ListSecretsRequest), global::Google.Cloud.SecretManager.V1Beta1.ListSecretsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.ListSecretsResponse), global::Google.Cloud.SecretManager.V1Beta1.ListSecretsResponse.Parser, new[]{ "Secrets", "NextPageToken", "TotalSize" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.CreateSecretRequest), global::Google.Cloud.SecretManager.V1Beta1.CreateSecretRequest.Parser, new[]{ "Parent", "SecretId", "Secret" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.AddSecretVersionRequest), global::Google.Cloud.SecretManager.V1Beta1.AddSecretVersionRequest.Parser, new[]{ "Parent", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.GetSecretRequest), global::Google.Cloud.SecretManager.V1Beta1.GetSecretRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.ListSecretVersionsRequest), global::Google.Cloud.SecretManager.V1Beta1.ListSecretVersionsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.ListSecretVersionsResponse), global::Google.Cloud.SecretManager.V1Beta1.ListSecretVersionsResponse.Parser, new[]{ "Versions", "NextPageToken", "TotalSize" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.GetSecretVersionRequest), global::Google.Cloud.SecretManager.V1Beta1.GetSecretVersionRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest), global::Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest.Parser, new[]{ "Secret", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.AccessSecretVersionRequest), global::Google.Cloud.SecretManager.V1Beta1.AccessSecretVersionRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.AccessSecretVersionResponse), global::Google.Cloud.SecretManager.V1Beta1.AccessSecretVersionResponse.Parser, new[]{ "Name", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.DeleteSecretRequest), global::Google.Cloud.SecretManager.V1Beta1.DeleteSecretRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.DisableSecretVersionRequest), global::Google.Cloud.SecretManager.V1Beta1.DisableSecretVersionRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.EnableSecretVersionRequest), global::Google.Cloud.SecretManager.V1Beta1.EnableSecretVersionRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta1.DestroySecretVersionRequest), global::Google.Cloud.SecretManager.V1Beta1.DestroySecretVersionRequest.Parser, new[]{ "Name" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Request message for [SecretManagerService.ListSecrets][google.cloud.secrets.v1beta1.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.V1Beta1.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_; + _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.secrets.v1beta1.Secret], in the format `projects/*`. + /// + [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.secrets.v1beta1.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"); + } + } + + [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; + 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 (_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 (_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 (_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 (_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; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + /// + /// Response message for [SecretManagerService.ListSecrets][google.cloud.secrets.v1beta1.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.V1Beta1.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.V1Beta1.Secret.Parser); + private readonly pbc::RepeatedField secrets_ = new pbc::RepeatedField(); + /// + /// The list of [Secrets][google.cloud.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.Secret]. + /// + [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.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.Secret], in the format `projects/*`. + /// + [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.V1Beta1.Secret secret_; + /// + /// Required. A [Secret][google.cloud.secrets.v1beta1.Secret] with initial field values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta1.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.V1Beta1.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.V1Beta1.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.V1Beta1.Secret(); + } + input.ReadMessage(Secret); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for [SecretManagerService.AddSecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.Secret] to associate with the + /// [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/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.V1Beta1.SecretPayload payload_; + /// + /// Required. The secret payload of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta1.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.V1Beta1.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.V1Beta1.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.V1Beta1.SecretPayload(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for [SecretManagerService.GetSecret][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.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"); + } + } + + [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.secrets.v1beta1.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.V1Beta1.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_; + _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.secrets.v1beta1.Secret] associated with the + /// [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] to list, in the format + /// `projects/*/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"); + } + } + + [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; + 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 (_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 (_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 (_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 (_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; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + /// + /// Response message for [SecretManagerService.ListSecretVersions][google.cloud.secrets.v1beta1.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.V1Beta1.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.V1Beta1.SecretVersion.Parser); + private readonly pbc::RepeatedField versions_ = new pbc::RepeatedField(); + /// + /// The list of [SecretVersions][google.cloud.secrets.v1beta1.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.secrets.v1beta1.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.secrets.v1beta1.SecretVersion]. + /// + [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.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.secrets.v1beta1.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.V1Beta1.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.V1Beta1.Secret secret_; + /// + /// Required. [Secret][google.cloud.secrets.v1beta1.Secret] with updated field values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta1.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.V1Beta1.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.V1Beta1.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.V1Beta1.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.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/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"); + } + } + + [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.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.SecretVersion] in the format + /// `projects/*/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.V1Beta1.SecretPayload payload_; + /// + /// Secret payload + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta1.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.V1Beta1.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.V1Beta1.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.V1Beta1.SecretPayload(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for [SecretManagerService.DeleteSecret][google.cloud.secrets.v1beta1.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.V1Beta1.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_; + _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.secrets.v1beta1.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"); + } + } + + [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; + 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(DeleteSecretRequest 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.DisableSecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.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_; + _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.secrets.v1beta1.SecretVersion] to disable in the format + /// `projects/*/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"); + } + } + + [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; + 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(DisableSecretVersionRequest 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.EnableSecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.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_; + _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.secrets.v1beta1.SecretVersion] to enable in the format + /// `projects/*/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"); + } + } + + [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; + 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(EnableSecretVersionRequest 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.DestroySecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.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_; + _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.secrets.v1beta1.SecretVersion] to destroy in the format + /// `projects/*/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"); + } + } + + [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; + 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(DestroySecretVersionRequest 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 + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ServiceCollectionExtensions.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ServiceCollectionExtensions.g.cs new file mode 100755 index 000000000000..f6edc38ab4a2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ServiceCollectionExtensions.g.cs @@ -0,0 +1,65 @@ +// 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 gcsv = Google.Cloud.SecretManager.V1Beta1; +using gpr = Google.Protobuf.Reflection; +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.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ServiceGrpc.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ServiceGrpc.g.cs new file mode 100755 index 000000000000..00c44ba75c72 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ServiceGrpc.g.cs @@ -0,0 +1,1380 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secrets/v1beta1/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.V1Beta1 { + /// + /// Secret Manager Service + /// + /// Manages secrets and operations using those secrets. Implements a REST + /// model with the following objects: + /// + /// * [Secret][google.cloud.secrets.v1beta1.Secret] + /// * [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] + /// + public static partial class SecretManagerService + { + static readonly string __ServiceName = "google.cloud.secrets.v1beta1.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_secrets_v1beta1_ListSecretsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.ListSecretsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_ListSecretsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.ListSecretsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_CreateSecretRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.CreateSecretRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_Secret = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.Secret.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_AddSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.AddSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_SecretVersion = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.SecretVersion.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_GetSecretRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.GetSecretRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_UpdateSecretRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_DeleteSecretRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.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_secrets_v1beta1_ListSecretVersionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.ListSecretVersionsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_ListSecretVersionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.ListSecretVersionsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_GetSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.GetSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_AccessSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.AccessSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_AccessSecretVersionResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.AccessSecretVersionResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_DisableSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.DisableSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_EnableSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.EnableSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secrets_v1beta1_DestroySecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta1.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_secrets_v1beta1_ListSecretsRequest, + __Marshaller_google_cloud_secrets_v1beta1_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_secrets_v1beta1_CreateSecretRequest, + __Marshaller_google_cloud_secrets_v1beta1_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_secrets_v1beta1_AddSecretVersionRequest, + __Marshaller_google_cloud_secrets_v1beta1_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_secrets_v1beta1_GetSecretRequest, + __Marshaller_google_cloud_secrets_v1beta1_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_secrets_v1beta1_UpdateSecretRequest, + __Marshaller_google_cloud_secrets_v1beta1_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_secrets_v1beta1_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_secrets_v1beta1_ListSecretVersionsRequest, + __Marshaller_google_cloud_secrets_v1beta1_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_secrets_v1beta1_GetSecretVersionRequest, + __Marshaller_google_cloud_secrets_v1beta1_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_secrets_v1beta1_AccessSecretVersionRequest, + __Marshaller_google_cloud_secrets_v1beta1_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_secrets_v1beta1_DisableSecretVersionRequest, + __Marshaller_google_cloud_secrets_v1beta1_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_secrets_v1beta1_EnableSecretVersionRequest, + __Marshaller_google_cloud_secrets_v1beta1_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_secrets_v1beta1_DestroySecretVersionRequest, + __Marshaller_google_cloud_secrets_v1beta1_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.V1Beta1.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.secrets.v1beta1.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.V1Beta1.ListSecretsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a new [Secret][google.cloud.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.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.V1Beta1.CreateSecretRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a new [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.AddSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets metadata for a given [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.GetSecretRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates metadata of an existing [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.UpdateSecretRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes a [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.DeleteSecretRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists [SecretVersions][google.cloud.secrets.v1beta1.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.V1Beta1.ListSecretVersionsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets metadata for a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.GetSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Accesses a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.AccessSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Disables a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.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.V1Beta1.DisableSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Enables a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.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.V1Beta1.EnableSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Destroys a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.SecretVersion] are enforced according + /// to the policy set on the associated [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.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.V1Beta1.ListSecretsResponse ListSecrets(global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.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.V1Beta1.ListSecretsResponse ListSecrets(global::Google.Cloud.SecretManager.V1Beta1.ListSecretsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListSecrets, null, options, request); + } + /// + /// Lists [Secrets][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.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.V1Beta1.ListSecretsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListSecrets, null, options, request); + } + /// + /// Creates a new [Secret][google.cloud.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.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.V1Beta1.Secret CreateSecret(global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.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.V1Beta1.Secret CreateSecret(global::Google.Cloud.SecretManager.V1Beta1.CreateSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateSecret, null, options, request); + } + /// + /// Creates a new [Secret][google.cloud.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.Secret] containing no [SecretVersions][google.cloud.secrets.v1beta1.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.V1Beta1.CreateSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateSecret, null, options, request); + } + /// + /// Creates a new [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.SecretVersion AddSecretVersion(global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.SecretVersion AddSecretVersion(global::Google.Cloud.SecretManager.V1Beta1.AddSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_AddSecretVersion, null, options, request); + } + /// + /// Creates a new [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.SecretVersion] containing secret data and attaches + /// it to an existing [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.AddSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_AddSecretVersion, null, options, request); + } + /// + /// Gets metadata for a given [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.Secret GetSecret(global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.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.V1Beta1.Secret GetSecret(global::Google.Cloud.SecretManager.V1Beta1.GetSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetSecret, null, options, request); + } + /// + /// Gets metadata for a given [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.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.V1Beta1.GetSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetSecret, null, options, request); + } + /// + /// Updates metadata of an existing [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.Secret UpdateSecret(global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.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.V1Beta1.Secret UpdateSecret(global::Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateSecret, null, options, request); + } + /// + /// Updates metadata of an existing [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.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.V1Beta1.UpdateSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateSecret, null, options, request); + } + /// + /// Deletes a [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.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.V1Beta1.DeleteSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteSecret, null, options, request); + } + /// + /// Deletes a [Secret][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.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.V1Beta1.DeleteSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteSecret, null, options, request); + } + /// + /// Lists [SecretVersions][google.cloud.secrets.v1beta1.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.V1Beta1.ListSecretVersionsResponse ListSecretVersions(global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.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.V1Beta1.ListSecretVersionsResponse ListSecretVersions(global::Google.Cloud.SecretManager.V1Beta1.ListSecretVersionsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListSecretVersions, null, options, request); + } + /// + /// Lists [SecretVersions][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.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.V1Beta1.ListSecretVersionsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListSecretVersions, null, options, request); + } + /// + /// Gets metadata for a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.SecretVersion GetSecretVersion(global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.SecretVersion GetSecretVersion(global::Google.Cloud.SecretManager.V1Beta1.GetSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetSecretVersion, null, options, request); + } + /// + /// Gets metadata for a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.GetSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetSecretVersion, null, options, request); + } + /// + /// Accesses a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.AccessSecretVersionResponse AccessSecretVersion(global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.AccessSecretVersionResponse AccessSecretVersion(global::Google.Cloud.SecretManager.V1Beta1.AccessSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_AccessSecretVersion, null, options, request); + } + /// + /// Accesses a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.SecretVersion]. This call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the `latest` + /// [SecretVersion][google.cloud.secrets.v1beta1.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.V1Beta1.AccessSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_AccessSecretVersion, null, options, request); + } + /// + /// Disables a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.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.V1Beta1.SecretVersion DisableSecretVersion(global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.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.V1Beta1.SecretVersion DisableSecretVersion(global::Google.Cloud.SecretManager.V1Beta1.DisableSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DisableSecretVersion, null, options, request); + } + /// + /// Disables a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DISABLED][google.cloud.secrets.v1beta1.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.V1Beta1.DisableSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DisableSecretVersion, null, options, request); + } + /// + /// Enables a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.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.V1Beta1.SecretVersion EnableSecretVersion(global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.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.V1Beta1.SecretVersion EnableSecretVersion(global::Google.Cloud.SecretManager.V1Beta1.EnableSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_EnableSecretVersion, null, options, request); + } + /// + /// Enables a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [ENABLED][google.cloud.secrets.v1beta1.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.V1Beta1.EnableSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_EnableSecretVersion, null, options, request); + } + /// + /// Destroys a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.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.V1Beta1.SecretVersion DestroySecretVersion(global::Google.Cloud.SecretManager.V1Beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.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.V1Beta1.SecretVersion DestroySecretVersion(global::Google.Cloud.SecretManager.V1Beta1.DestroySecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DestroySecretVersion, null, options, request); + } + /// + /// Destroys a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.SecretVersion]. + /// + /// Sets the [state][google.cloud.secrets.v1beta1.SecretVersion.state] of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to + /// [DESTROYED][google.cloud.secrets.v1beta1.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.V1Beta1.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.secrets.v1beta1.SecretVersion] are enforced according + /// to the policy set on the associated [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] are enforced according + /// to the policy set on the associated [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] are enforced according + /// to the policy set on the associated [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] are enforced according + /// to the policy set on the associated [Secret][google.cloud.secrets.v1beta1.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.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ServiceResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ServiceResourceNames.g.cs new file mode 100755 index 000000000000..3757019f4394 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/Google.Cloud.SecretManager.V1Beta1/ServiceResourceNames.g.cs @@ -0,0 +1,162 @@ +// 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 gcsv = Google.Cloud.SecretManager.V1Beta1; + +namespace Google.Cloud.SecretManager.V1Beta1 +{ + 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() ?? ""; + } + } + + 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() ?? ""; + } + } + + 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.V1Beta1/gapic_metadata.json b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/gapic_metadata.json new file mode 100755 index 000000000000..6517a64a6a31 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta1/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.secrets.v1beta1", + "libraryPackage": "Google.Cloud.SecretManager.V1Beta1", + "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" + ] + } + } + } + } + } + } +} 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..8bb5d6acefb8 --- /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" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets.csproj b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets.csproj new file mode 100755 index 000000000000..e62d6d54a1fd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..764097994d39 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_async_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateBranchRuleAsync + /// + /// 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 CreateBranchRuleAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + BranchRule branchRule = new BranchRule(); + string branchRuleId = ""; + // Make the request + Operation response = await secureSourceManagerClient.CreateBranchRuleAsync(parent, branchRule, branchRuleId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..a29ab242aa47 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_async] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateBranchRuleAsync + /// + /// 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 CreateBranchRuleRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + CreateBranchRuleRequest request = new CreateBranchRuleRequest + { + ParentAsRepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + BranchRule = new BranchRule(), + BranchRuleId = "", + }; + // Make the request + Operation response = await secureSourceManagerClient.CreateBranchRuleAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..8f41ceb943aa --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_sync] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateBranchRule + /// + /// 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 CreateBranchRuleRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + CreateBranchRuleRequest request = new CreateBranchRuleRequest + { + ParentAsRepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + BranchRule = new BranchRule(), + BranchRuleId = "", + }; + // Make the request + Operation response = secureSourceManagerClient.CreateBranchRule(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..09cfddeebbed --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_async_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateBranchRuleAsync + /// + /// 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 CreateBranchRuleResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + RepositoryName parent = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + BranchRule branchRule = new BranchRule(); + string branchRuleId = ""; + // Make the request + Operation response = await secureSourceManagerClient.CreateBranchRuleAsync(parent, branchRule, branchRuleId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..a66b01eddf3f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleResourceNamesSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_sync_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateBranchRule + /// + /// 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 CreateBranchRuleResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + RepositoryName parent = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + BranchRule branchRule = new BranchRule(); + string branchRuleId = ""; + // Make the request + Operation response = secureSourceManagerClient.CreateBranchRule(parent, branchRule, branchRuleId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleSnippet.g.cs new file mode 100755 index 000000000000..b4f4ddd11794 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateBranchRuleSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_sync_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateBranchRule + /// + /// 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 CreateBranchRule() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + BranchRule branchRule = new BranchRule(); + string branchRuleId = ""; + // Make the request + Operation response = secureSourceManagerClient.CreateBranchRule(parent, branchRule, branchRuleId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceAsyncSnippet.g.cs new file mode 100755 index 000000000000..a3198c2c7b60 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_async_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateInstanceAsync + /// + /// 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 CreateInstanceAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + Instance instance = new Instance(); + string instanceId = ""; + // Make the request + Operation response = await secureSourceManagerClient.CreateInstanceAsync(parent, instance, instanceId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..83d1c0d3bb08 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,68 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateInstanceAsync + /// + /// 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 CreateInstanceRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + CreateInstanceRequest request = new CreateInstanceRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + InstanceId = "", + Instance = new Instance(), + RequestId = "", + }; + // Make the request + Operation response = await secureSourceManagerClient.CreateInstanceAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..5dbe93189645 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceRequestObjectSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateInstance + /// + /// 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 CreateInstanceRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + CreateInstanceRequest request = new CreateInstanceRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + InstanceId = "", + Instance = new Instance(), + RequestId = "", + }; + // Make the request + Operation response = secureSourceManagerClient.CreateInstance(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..fe8c7dd62c43 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,64 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateInstanceAsync + /// + /// 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 CreateInstanceResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + Instance instance = new Instance(); + string instanceId = ""; + // Make the request + Operation response = await secureSourceManagerClient.CreateInstanceAsync(parent, instance, instanceId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..7f7f93576af8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceResourceNamesSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateInstance + /// + /// 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 CreateInstanceResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + Instance instance = new Instance(); + string instanceId = ""; + // Make the request + Operation response = secureSourceManagerClient.CreateInstance(parent, instance, instanceId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceSnippet.g.cs new file mode 100755 index 000000000000..6aca440d014d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateInstanceSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_sync_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateInstance + /// + /// 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 CreateInstance() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + Instance instance = new Instance(); + string instanceId = ""; + // Make the request + Operation response = secureSourceManagerClient.CreateInstance(parent, instance, instanceId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryAsyncSnippet.g.cs new file mode 100755 index 000000000000..a78745e3c826 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_async_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateRepositoryAsync + /// + /// 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 CreateRepositoryAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + Repository repository = new Repository(); + string repositoryId = ""; + // Make the request + Operation response = await secureSourceManagerClient.CreateRepositoryAsync(parent, repository, repositoryId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Repository result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateRepositoryAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Repository retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..727e933b5dc9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryRequestObjectAsyncSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateRepositoryAsync + /// + /// 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 CreateRepositoryRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + CreateRepositoryRequest request = new CreateRepositoryRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Repository = new Repository(), + RepositoryId = "", + }; + // Make the request + Operation response = await secureSourceManagerClient.CreateRepositoryAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Repository result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateRepositoryAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Repository retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..4581db3eac3a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateRepository + /// + /// 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 CreateRepositoryRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + CreateRepositoryRequest request = new CreateRepositoryRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Repository = new Repository(), + RepositoryId = "", + }; + // Make the request + Operation response = secureSourceManagerClient.CreateRepository(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Repository result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateRepository(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Repository retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..19723b26f587 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,64 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateRepositoryAsync + /// + /// 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 CreateRepositoryResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + Repository repository = new Repository(); + string repositoryId = ""; + // Make the request + Operation response = await secureSourceManagerClient.CreateRepositoryAsync(parent, repository, repositoryId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Repository result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateRepositoryAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Repository retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..170426e245c7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositoryResourceNamesSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateRepository + /// + /// 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 CreateRepositoryResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + Repository repository = new Repository(); + string repositoryId = ""; + // Make the request + Operation response = secureSourceManagerClient.CreateRepository(parent, repository, repositoryId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Repository result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateRepository(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Repository retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositorySnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositorySnippet.g.cs new file mode 100755 index 000000000000..2e155509e37e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.CreateRepositorySnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_sync_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for CreateRepository + /// + /// 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 CreateRepository() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + Repository repository = new Repository(); + string repositoryId = ""; + // Make the request + Operation response = secureSourceManagerClient.CreateRepository(parent, repository, repositoryId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Repository result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateRepository(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Repository retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..3cbc9432d6d9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_async_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteBranchRuleAsync + /// + /// 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 DeleteBranchRuleAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/branchRules/[BRANCH_RULE]"; + // Make the request + Operation response = await secureSourceManagerClient.DeleteBranchRuleAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..d50e425a3696 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_async] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteBranchRuleAsync + /// + /// 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 DeleteBranchRuleRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + DeleteBranchRuleRequest request = new DeleteBranchRuleRequest + { + BranchRuleName = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"), + AllowMissing = false, + }; + // Make the request + Operation response = await secureSourceManagerClient.DeleteBranchRuleAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c783217566c0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_sync] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteBranchRule + /// + /// 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 DeleteBranchRuleRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + DeleteBranchRuleRequest request = new DeleteBranchRuleRequest + { + BranchRuleName = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"), + AllowMissing = false, + }; + // Make the request + Operation response = secureSourceManagerClient.DeleteBranchRule(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..35ba804019e5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_async_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteBranchRuleAsync + /// + /// 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 DeleteBranchRuleResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + BranchRuleName name = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + // Make the request + Operation response = await secureSourceManagerClient.DeleteBranchRuleAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..aa070360149e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleResourceNamesSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_sync_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteBranchRule + /// + /// 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 DeleteBranchRuleResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + BranchRuleName name = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + // Make the request + Operation response = secureSourceManagerClient.DeleteBranchRule(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleSnippet.g.cs new file mode 100755 index 000000000000..ec5cc29a2fcf --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteBranchRuleSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_sync_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteBranchRule + /// + /// 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 DeleteBranchRule() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/branchRules/[BRANCH_RULE]"; + // Make the request + Operation response = secureSourceManagerClient.DeleteBranchRule(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceAsyncSnippet.g.cs new file mode 100755 index 000000000000..d5f719d69896 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_async_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteInstanceAsync + /// + /// 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 DeleteInstanceAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]"; + // Make the request + Operation response = await secureSourceManagerClient.DeleteInstanceAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..1cb8fb557edb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_async] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteInstanceAsync + /// + /// 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 DeleteInstanceRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + DeleteInstanceRequest request = new DeleteInstanceRequest + { + InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), + RequestId = "", + }; + // Make the request + Operation response = await secureSourceManagerClient.DeleteInstanceAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..14e5fd2c59eb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_sync] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteInstance + /// + /// 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 DeleteInstanceRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + DeleteInstanceRequest request = new DeleteInstanceRequest + { + InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), + RequestId = "", + }; + // Make the request + Operation response = secureSourceManagerClient.DeleteInstance(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..310900c533cd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_async_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteInstanceAsync + /// + /// 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 DeleteInstanceResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + // Make the request + Operation response = await secureSourceManagerClient.DeleteInstanceAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..1b1c9627cd98 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceResourceNamesSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_sync_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteInstance + /// + /// 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 DeleteInstanceResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + // Make the request + Operation response = secureSourceManagerClient.DeleteInstance(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceSnippet.g.cs new file mode 100755 index 000000000000..687b5410e20f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteInstanceSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_sync_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteInstance + /// + /// 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 DeleteInstance() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]"; + // Make the request + Operation response = secureSourceManagerClient.DeleteInstance(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryAsyncSnippet.g.cs new file mode 100755 index 000000000000..cc96477af5df --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_async_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteRepositoryAsync + /// + /// 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 DeleteRepositoryAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + // Make the request + Operation response = await secureSourceManagerClient.DeleteRepositoryAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteRepositoryAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..f6ba58750ad5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_async] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteRepositoryAsync + /// + /// 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 DeleteRepositoryRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + DeleteRepositoryRequest request = new DeleteRepositoryRequest + { + RepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + AllowMissing = false, + }; + // Make the request + Operation response = await secureSourceManagerClient.DeleteRepositoryAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteRepositoryAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..497f0e51d62e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_sync] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteRepository + /// + /// 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 DeleteRepositoryRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + DeleteRepositoryRequest request = new DeleteRepositoryRequest + { + RepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + AllowMissing = false, + }; + // Make the request + Operation response = secureSourceManagerClient.DeleteRepository(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteRepository(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..e9dd0466a5d6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_async_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteRepositoryAsync + /// + /// 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 DeleteRepositoryResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + RepositoryName name = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + // Make the request + Operation response = await secureSourceManagerClient.DeleteRepositoryAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteRepositoryAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..f9c13eac8a80 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositoryResourceNamesSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_sync_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteRepository + /// + /// 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 DeleteRepositoryResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + RepositoryName name = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + // Make the request + Operation response = secureSourceManagerClient.DeleteRepository(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteRepository(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositorySnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositorySnippet.g.cs new file mode 100755 index 000000000000..09a687924e54 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.DeleteRepositorySnippet.g.cs @@ -0,0 +1,61 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_sync_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for DeleteRepository + /// + /// 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 DeleteRepository() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + // Make the request + Operation response = secureSourceManagerClient.DeleteRepository(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteRepository(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..198237434142 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_async_flattened] + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetBranchRuleAsync + /// + /// 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 GetBranchRuleAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/branchRules/[BRANCH_RULE]"; + // Make the request + BranchRule response = await secureSourceManagerClient.GetBranchRuleAsync(name); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..824a6fd0a55d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleRequestObjectAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_async] + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetBranchRuleAsync + /// + /// 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 GetBranchRuleRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + GetBranchRuleRequest request = new GetBranchRuleRequest + { + BranchRuleName = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"), + }; + // Make the request + BranchRule response = await secureSourceManagerClient.GetBranchRuleAsync(request); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..bf510bb53036 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleRequestObjectSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_sync] + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetBranchRule + /// + /// 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 GetBranchRuleRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + GetBranchRuleRequest request = new GetBranchRuleRequest + { + BranchRuleName = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"), + }; + // Make the request + BranchRule response = secureSourceManagerClient.GetBranchRule(request); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..ea043dc83436 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleResourceNamesAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_async_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetBranchRuleAsync + /// + /// 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 GetBranchRuleResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + BranchRuleName name = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + // Make the request + BranchRule response = await secureSourceManagerClient.GetBranchRuleAsync(name); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..7023059931d0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleResourceNamesSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_sync_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetBranchRule + /// + /// 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 GetBranchRuleResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + BranchRuleName name = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + // Make the request + BranchRule response = secureSourceManagerClient.GetBranchRule(name); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleSnippet.g.cs new file mode 100755 index 000000000000..987ec3d5e56e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetBranchRuleSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_sync_flattened] + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetBranchRule + /// + /// 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 GetBranchRule() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/branchRules/[BRANCH_RULE]"; + // Make the request + BranchRule response = secureSourceManagerClient.GetBranchRule(name); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoAsyncSnippet.g.cs new file mode 100755 index 000000000000..f7dd3270db7a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_async_flattened] + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetIamPolicyRepoAsync + /// + /// 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 GetIamPolicyRepoAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = await secureSourceManagerClient.GetIamPolicyRepoAsync(resource); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..e14f3d636ec7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoRequestObjectAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetIamPolicyRepoAsync + /// + /// 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 GetIamPolicyRepoRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = await secureSourceManagerClient.GetIamPolicyRepoAsync(request); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c06ac59ac7d5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoRequestObjectSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetIamPolicyRepo + /// + /// 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 GetIamPolicyRepoRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = secureSourceManagerClient.GetIamPolicyRepo(request); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..9c9f8b6975e8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoResourceNamesAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetIamPolicyRepoAsync + /// + /// 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 GetIamPolicyRepoResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = await secureSourceManagerClient.GetIamPolicyRepoAsync(resource); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..f36e87999b46 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoResourceNamesSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetIamPolicyRepo + /// + /// 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 GetIamPolicyRepoResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = secureSourceManagerClient.GetIamPolicyRepo(resource); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoSnippet.g.cs new file mode 100755 index 000000000000..933da961a6f4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetIamPolicyRepoSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_sync_flattened] + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetIamPolicyRepo + /// + /// 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 GetIamPolicyRepo() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = secureSourceManagerClient.GetIamPolicyRepo(resource); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceAsyncSnippet.g.cs new file mode 100755 index 000000000000..9f38331f2b1c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetInstance_async_flattened] + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetInstanceAsync + /// + /// 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 GetInstanceAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]"; + // Make the request + Instance response = await secureSourceManagerClient.GetInstanceAsync(name); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetInstance_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..48ab5b6608bb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceRequestObjectAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetInstance_async] + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetInstanceAsync + /// + /// 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 GetInstanceRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + GetInstanceRequest request = new GetInstanceRequest + { + InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), + }; + // Make the request + Instance response = await secureSourceManagerClient.GetInstanceAsync(request); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetInstance_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..a3ee7f5caa5a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceRequestObjectSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetInstance_sync] + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetInstance + /// + /// 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 GetInstanceRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + GetInstanceRequest request = new GetInstanceRequest + { + InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), + }; + // Make the request + Instance response = secureSourceManagerClient.GetInstance(request); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetInstance_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..1d5e442d60f2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceResourceNamesAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetInstance_async_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetInstanceAsync + /// + /// 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 GetInstanceResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + // Make the request + Instance response = await secureSourceManagerClient.GetInstanceAsync(name); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetInstance_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..2376e8e68a63 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceResourceNamesSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetInstance_sync_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetInstance + /// + /// 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 GetInstanceResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + // Make the request + Instance response = secureSourceManagerClient.GetInstance(name); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetInstance_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceSnippet.g.cs new file mode 100755 index 000000000000..457c244118d6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetInstanceSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetInstance_sync_flattened] + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetInstance + /// + /// 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 GetInstance() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]"; + // Make the request + Instance response = secureSourceManagerClient.GetInstance(name); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetInstance_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryAsyncSnippet.g.cs new file mode 100755 index 000000000000..4c97b61337d6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetRepository_async_flattened] + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetRepositoryAsync + /// + /// 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 GetRepositoryAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + // Make the request + Repository response = await secureSourceManagerClient.GetRepositoryAsync(name); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetRepository_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..fcc231c8ae21 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryRequestObjectAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetRepository_async] + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetRepositoryAsync + /// + /// 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 GetRepositoryRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + GetRepositoryRequest request = new GetRepositoryRequest + { + RepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + }; + // Make the request + Repository response = await secureSourceManagerClient.GetRepositoryAsync(request); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetRepository_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..0cb4a4e8f219 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryRequestObjectSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetRepository_sync] + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetRepository + /// + /// 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 GetRepositoryRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + GetRepositoryRequest request = new GetRepositoryRequest + { + RepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + }; + // Make the request + Repository response = secureSourceManagerClient.GetRepository(request); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetRepository_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..77ca32730d4b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryResourceNamesAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetRepository_async_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetRepositoryAsync + /// + /// 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 GetRepositoryResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + RepositoryName name = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + // Make the request + Repository response = await secureSourceManagerClient.GetRepositoryAsync(name); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetRepository_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..cd753ffe91c7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositoryResourceNamesSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetRepository_sync_flattened_resourceNames] + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetRepository + /// + /// 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 GetRepositoryResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + RepositoryName name = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + // Make the request + Repository response = secureSourceManagerClient.GetRepository(name); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetRepository_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositorySnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositorySnippet.g.cs new file mode 100755 index 000000000000..70aba95299c8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.GetRepositorySnippet.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 securesourcemanager_v1_generated_SecureSourceManager_GetRepository_sync_flattened] + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for GetRepository + /// + /// 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 GetRepository() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + // Make the request + Repository response = secureSourceManagerClient.GetRepository(name); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_GetRepository_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesAsyncSnippet.g.cs new file mode 100755 index 000000000000..d9e854c35abc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecureSourceManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListBranchRulesAsync + /// + /// 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 ListBranchRulesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListBranchRulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BranchRule 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((ListBranchRulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BranchRule 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 (BranchRule 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 securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..27c2888e3201 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesRequestObjectAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_async] + using Google.Api.Gax; + using Google.Cloud.SecureSourceManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListBranchRulesAsync + /// + /// 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 ListBranchRulesRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + ListBranchRulesRequest request = new ListBranchRulesRequest + { + ParentAsRepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + }; + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListBranchRulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BranchRule 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((ListBranchRulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BranchRule 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 (BranchRule 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 securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c9890af71e26 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesRequestObjectSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_sync] + using Google.Api.Gax; + using Google.Cloud.SecureSourceManager.V1; + using System; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListBranchRules + /// + /// 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 ListBranchRulesRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + ListBranchRulesRequest request = new ListBranchRulesRequest + { + ParentAsRepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + }; + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListBranchRules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BranchRule 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 (ListBranchRulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BranchRule 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 (BranchRule 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 securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..513df590cca1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesResourceNamesAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecureSourceManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListBranchRulesAsync + /// + /// 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 ListBranchRulesResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + RepositoryName parent = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListBranchRulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BranchRule 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((ListBranchRulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BranchRule 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 (BranchRule 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 securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..6e1c90902864 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesResourceNamesSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecureSourceManager.V1; + using System; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListBranchRules + /// + /// 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 ListBranchRulesResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + RepositoryName parent = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListBranchRules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BranchRule 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 (ListBranchRulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BranchRule 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 (BranchRule 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 securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesSnippet.g.cs new file mode 100755 index 000000000000..454a33b4e91c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListBranchRulesSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecureSourceManager.V1; + using System; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListBranchRules + /// + /// 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 ListBranchRules() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListBranchRules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BranchRule 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 (ListBranchRulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BranchRule 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 (BranchRule 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 securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesAsyncSnippet.g.cs new file mode 100755 index 000000000000..1743078db736 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListInstances_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecureSourceManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListInstancesAsync + /// + /// 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 ListInstancesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListInstancesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Instance 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((ListInstancesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Instance 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 (Instance 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 securesourcemanager_v1_generated_SecureSourceManager_ListInstances_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..5f940c85e1b3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,85 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_ListInstances_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListInstancesAsync + /// + /// 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 ListInstancesRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + ListInstancesRequest request = new ListInstancesRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListInstancesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Instance 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((ListInstancesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Instance 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 (Instance 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 securesourcemanager_v1_generated_SecureSourceManager_ListInstances_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..f824375adc25 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesRequestObjectSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListInstances_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using System; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListInstances + /// + /// 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 ListInstancesRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + ListInstancesRequest request = new ListInstancesRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListInstances(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Instance 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 (ListInstancesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Instance 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 (Instance 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 securesourcemanager_v1_generated_SecureSourceManager_ListInstances_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..4ad19a9444b5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesResourceNamesAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListInstances_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListInstancesAsync + /// + /// 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 ListInstancesResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListInstancesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Instance 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((ListInstancesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Instance 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 (Instance 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 securesourcemanager_v1_generated_SecureSourceManager_ListInstances_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..d6a7b57dde63 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesResourceNamesSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListInstances_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using System; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListInstances + /// + /// 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 ListInstancesResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListInstances(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Instance 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 (ListInstancesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Instance 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 (Instance 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 securesourcemanager_v1_generated_SecureSourceManager_ListInstances_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesSnippet.g.cs new file mode 100755 index 000000000000..8b054429f501 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListInstancesSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListInstances_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecureSourceManager.V1; + using System; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListInstances + /// + /// 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 ListInstances() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListInstances(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Instance 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 (ListInstancesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Instance 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 (Instance 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 securesourcemanager_v1_generated_SecureSourceManager_ListInstances_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesAsyncSnippet.g.cs new file mode 100755 index 000000000000..d90c39e47a91 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecureSourceManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListRepositoriesAsync + /// + /// 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 ListRepositoriesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListRepositoriesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Repository 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((ListRepositoriesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Repository 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 (Repository 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 securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..10b359b0f943 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,85 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListRepositoriesAsync + /// + /// 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 ListRepositoriesRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + ListRepositoriesRequest request = new ListRepositoriesRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + InstanceAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), + }; + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListRepositoriesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Repository 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((ListRepositoriesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Repository 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 (Repository 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 securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..631d76269d07 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesRequestObjectSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using System; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListRepositories + /// + /// 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 ListRepositoriesRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + ListRepositoriesRequest request = new ListRepositoriesRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + InstanceAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), + }; + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListRepositories(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Repository 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 (ListRepositoriesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Repository 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 (Repository 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 securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..6d8078935d7f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesResourceNamesAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListRepositoriesAsync + /// + /// 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 ListRepositoriesResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListRepositoriesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Repository 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((ListRepositoriesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Repository 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 (Repository 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 securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..67657544104e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesResourceNamesSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecureSourceManager.V1; + using System; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListRepositories + /// + /// 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 ListRepositoriesResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListRepositories(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Repository 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 (ListRepositoriesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Repository 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 (Repository 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 securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesSnippet.g.cs new file mode 100755 index 000000000000..9a87f8e19689 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.ListRepositoriesSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecureSourceManager.V1; + using System; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListRepositories + /// + /// 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 ListRepositories() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListRepositories(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Repository 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 (ListRepositoriesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Repository 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 (Repository 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 securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoAsyncSnippet.g.cs new file mode 100755 index 000000000000..7fce7f9ae08c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_async_flattened] + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for SetIamPolicyRepoAsync + /// + /// 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 SetIamPolicyRepoAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = await secureSourceManagerClient.SetIamPolicyRepoAsync(resource); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..d621de4d98f6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoRequestObjectAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for SetIamPolicyRepoAsync + /// + /// 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 SetIamPolicyRepoRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.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 secureSourceManagerClient.SetIamPolicyRepoAsync(request); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..62ea6545d02f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoRequestObjectSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for SetIamPolicyRepo + /// + /// 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 SetIamPolicyRepoRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.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 = secureSourceManagerClient.SetIamPolicyRepo(request); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..244f963fe55c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoResourceNamesAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for SetIamPolicyRepoAsync + /// + /// 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 SetIamPolicyRepoResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = await secureSourceManagerClient.SetIamPolicyRepoAsync(resource); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..2242745901da --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoResourceNamesSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for SetIamPolicyRepo + /// + /// 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 SetIamPolicyRepoResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = secureSourceManagerClient.SetIamPolicyRepo(resource); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoSnippet.g.cs new file mode 100755 index 000000000000..3923e49d32a7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.SetIamPolicyRepoSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_sync_flattened] + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for SetIamPolicyRepo + /// + /// 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 SetIamPolicyRepo() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = secureSourceManagerClient.SetIamPolicyRepo(resource); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoAsyncSnippet.g.cs new file mode 100755 index 000000000000..9338d4835451 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_async_flattened] + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for TestIamPermissionsRepoAsync + /// + /// 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 TestIamPermissionsRepoAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + TestIamPermissionsResponse response = await secureSourceManagerClient.TestIamPermissionsRepoAsync(resource); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..fd1fbd58606e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoRequestObjectAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for TestIamPermissionsRepoAsync + /// + /// 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 TestIamPermissionsRepoRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = await secureSourceManagerClient.TestIamPermissionsRepoAsync(request); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..94455d34aa01 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoRequestObjectSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for TestIamPermissionsRepo + /// + /// 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 TestIamPermissionsRepoRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = secureSourceManagerClient.TestIamPermissionsRepo(request); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..bf96c446d2d0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoResourceNamesAsyncSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for TestIamPermissionsRepoAsync + /// + /// 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 TestIamPermissionsRepoResourceNamesAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + TestIamPermissionsResponse response = await secureSourceManagerClient.TestIamPermissionsRepoAsync(resource); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..bf4520577fbd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoResourceNamesSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for TestIamPermissionsRepo + /// + /// 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 TestIamPermissionsRepoResourceNames() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + TestIamPermissionsResponse response = secureSourceManagerClient.TestIamPermissionsRepo(resource); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoSnippet.g.cs new file mode 100755 index 000000000000..fc53a236b61d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.TestIamPermissionsRepoSnippet.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 securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_sync_flattened] + using Google.Cloud.Iam.V1; + using Google.Cloud.SecureSourceManager.V1; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for TestIamPermissionsRepo + /// + /// 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 TestIamPermissionsRepo() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + TestIamPermissionsResponse response = secureSourceManagerClient.TestIamPermissionsRepo(resource); + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..216dde1fd596 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_async_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for UpdateBranchRuleAsync + /// + /// 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 UpdateBranchRuleAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + BranchRule branchRule = new BranchRule(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await secureSourceManagerClient.UpdateBranchRuleAsync(branchRule, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceUpdateBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..3a6635a84b5d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleRequestObjectAsyncSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_async] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for UpdateBranchRuleAsync + /// + /// 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 UpdateBranchRuleRequestObjectAsync() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + UpdateBranchRuleRequest request = new UpdateBranchRuleRequest + { + BranchRule = new BranchRule(), + ValidateOnly = false, + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = await secureSourceManagerClient.UpdateBranchRuleAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceUpdateBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..db24dba4a249 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_sync] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for UpdateBranchRule + /// + /// 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 UpdateBranchRuleRequestObject() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + UpdateBranchRuleRequest request = new UpdateBranchRuleRequest + { + BranchRule = new BranchRule(), + ValidateOnly = false, + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = secureSourceManagerClient.UpdateBranchRule(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceUpdateBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleSnippet.g.cs new file mode 100755 index 000000000000..e27aa6a39b43 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/SecureSourceManagerClient.UpdateBranchRuleSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_sync_flattened] + using Google.Cloud.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecureSourceManagerClientSnippets + { + /// Snippet for UpdateBranchRule + /// + /// 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 UpdateBranchRule() + { + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + BranchRule branchRule = new BranchRule(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = secureSourceManagerClient.UpdateBranchRule(branchRule, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceUpdateBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + } + } + // [END securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/snippet_metadata_google.cloud.securesourcemanager.v1.json b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/snippet_metadata_google.cloud.securesourcemanager.v1.json new file mode 100755 index 000000000000..5348fcf2a9de --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.GeneratedSnippets/snippet_metadata_google.cloud.securesourcemanager.v1.json @@ -0,0 +1,4711 @@ +{ + "clientLibrary": { + "name": "Google.Cloud.SecureSourceManager.V1", + "language": "C_SHARP", + "apis": [ + { + "id": "google.cloud.securesourcemanager.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListInstances_sync", + "title": "ListInstancesRequestObject", + "description": "Snippet for ListInstances", + "file": "SecureSourceManagerClient.ListInstancesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListInstances", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.ListInstancesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListInstances", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 37, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListInstances_async", + "title": "ListInstancesRequestObjectAsync", + "description": "Snippet for ListInstancesAsync", + "file": "SecureSourceManagerClient.ListInstancesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListInstancesAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListInstancesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.ListInstancesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListInstances", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 83, + "type": "FULL" + }, + { + "start": 39, + "end": 81, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListInstances_sync_flattened", + "title": "ListInstances", + "description": "Snippet for ListInstances", + "file": "SecureSourceManagerClient.ListInstancesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListInstances", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListInstances", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListInstances_async_flattened", + "title": "ListInstancesAsync", + "description": "Snippet for ListInstancesAsync", + "file": "SecureSourceManagerClient.ListInstancesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListInstancesAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListInstancesAsync", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListInstances", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListInstances_sync_flattened_resourceNames", + "title": "ListInstancesResourceNames", + "description": "Snippet for ListInstances", + "file": "SecureSourceManagerClient.ListInstancesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListInstances", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListInstances", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListInstances_async_flattened_resourceNames", + "title": "ListInstancesResourceNamesAsync", + "description": "Snippet for ListInstancesAsync", + "file": "SecureSourceManagerClient.ListInstancesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListInstancesAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListInstancesAsync", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListInstances", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetInstance_sync", + "title": "GetInstanceRequestObject", + "description": "Snippet for GetInstance", + "file": "SecureSourceManagerClient.GetInstanceRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetInstance", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.GetInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecureSourceManager.V1.Instance", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetInstance_async", + "title": "GetInstanceRequestObjectAsync", + "description": "Snippet for GetInstanceAsync", + "file": "SecureSourceManagerClient.GetInstanceRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetInstanceAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.GetInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetInstance_sync_flattened", + "title": "GetInstance", + "description": "Snippet for GetInstance", + "file": "SecureSourceManagerClient.GetInstanceSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetInstance", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecureSourceManager.V1.Instance", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetInstance_async_flattened", + "title": "GetInstanceAsync", + "description": "Snippet for GetInstanceAsync", + "file": "SecureSourceManagerClient.GetInstanceAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetInstanceAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetInstanceAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetInstance_sync_flattened_resourceNames", + "title": "GetInstanceResourceNames", + "description": "Snippet for GetInstance", + "file": "SecureSourceManagerClient.GetInstanceResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetInstance", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.InstanceName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecureSourceManager.V1.Instance", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetInstance_async_flattened_resourceNames", + "title": "GetInstanceResourceNamesAsync", + "description": "Snippet for GetInstanceAsync", + "file": "SecureSourceManagerClient.GetInstanceResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetInstanceAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.InstanceName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_sync", + "title": "CreateInstanceRequestObject", + "description": "Snippet for CreateInstance", + "file": "SecureSourceManagerClient.CreateInstanceRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateInstance", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.CreateInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 36, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_async", + "title": "CreateInstanceRequestObjectAsync", + "description": "Snippet for CreateInstanceAsync", + "file": "SecureSourceManagerClient.CreateInstanceRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateInstanceAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.CreateInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 37, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_sync_flattened", + "title": "CreateInstance", + "description": "Snippet for CreateInstance", + "file": "SecureSourceManagerClient.CreateInstanceSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateInstance", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecureSourceManager.V1.Instance", + "name": "instance" + }, + { + "type": "System.String", + "name": "instanceId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_async_flattened", + "title": "CreateInstanceAsync", + "description": "Snippet for CreateInstanceAsync", + "file": "SecureSourceManagerClient.CreateInstanceAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateInstanceAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateInstanceAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecureSourceManager.V1.Instance", + "name": "instance" + }, + { + "type": "System.String", + "name": "instanceId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_sync_flattened_resourceNames", + "title": "CreateInstanceResourceNames", + "description": "Snippet for CreateInstance", + "file": "SecureSourceManagerClient.CreateInstanceResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateInstance", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecureSourceManager.V1.Instance", + "name": "instance" + }, + { + "type": "System.String", + "name": "instanceId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_async_flattened_resourceNames", + "title": "CreateInstanceResourceNamesAsync", + "description": "Snippet for CreateInstanceAsync", + "file": "SecureSourceManagerClient.CreateInstanceResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateInstanceAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecureSourceManager.V1.Instance", + "name": "instance" + }, + { + "type": "System.String", + "name": "instanceId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 37, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_sync", + "title": "DeleteInstanceRequestObject", + "description": "Snippet for DeleteInstance", + "file": "SecureSourceManagerClient.DeleteInstanceRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteInstance", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.DeleteInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_async", + "title": "DeleteInstanceRequestObjectAsync", + "description": "Snippet for DeleteInstanceAsync", + "file": "SecureSourceManagerClient.DeleteInstanceRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteInstanceAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.DeleteInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 37, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_sync_flattened", + "title": "DeleteInstance", + "description": "Snippet for DeleteInstance", + "file": "SecureSourceManagerClient.DeleteInstanceSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteInstance", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_async_flattened", + "title": "DeleteInstanceAsync", + "description": "Snippet for DeleteInstanceAsync", + "file": "SecureSourceManagerClient.DeleteInstanceAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteInstanceAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteInstanceAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_sync_flattened_resourceNames", + "title": "DeleteInstanceResourceNames", + "description": "Snippet for DeleteInstance", + "file": "SecureSourceManagerClient.DeleteInstanceResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteInstance", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.InstanceName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_async_flattened_resourceNames", + "title": "DeleteInstanceResourceNamesAsync", + "description": "Snippet for DeleteInstanceAsync", + "file": "SecureSourceManagerClient.DeleteInstanceResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteInstanceAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.InstanceName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteInstance", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_sync", + "title": "ListRepositoriesRequestObject", + "description": "Snippet for ListRepositories", + "file": "SecureSourceManagerClient.ListRepositoriesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListRepositories", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListRepositories", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.ListRepositoriesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListRepositories", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListRepositories", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 37, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_async", + "title": "ListRepositoriesRequestObjectAsync", + "description": "Snippet for ListRepositoriesAsync", + "file": "SecureSourceManagerClient.ListRepositoriesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListRepositoriesAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListRepositoriesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.ListRepositoriesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListRepositories", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListRepositories", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 83, + "type": "FULL" + }, + { + "start": 39, + "end": 81, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_sync_flattened", + "title": "ListRepositories", + "description": "Snippet for ListRepositories", + "file": "SecureSourceManagerClient.ListRepositoriesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListRepositories", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListRepositories", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListRepositories", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListRepositories", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_async_flattened", + "title": "ListRepositoriesAsync", + "description": "Snippet for ListRepositoriesAsync", + "file": "SecureSourceManagerClient.ListRepositoriesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListRepositoriesAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListRepositoriesAsync", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListRepositories", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListRepositories", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_sync_flattened_resourceNames", + "title": "ListRepositoriesResourceNames", + "description": "Snippet for ListRepositories", + "file": "SecureSourceManagerClient.ListRepositoriesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListRepositories", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListRepositories", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListRepositories", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListRepositories", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_async_flattened_resourceNames", + "title": "ListRepositoriesResourceNamesAsync", + "description": "Snippet for ListRepositoriesAsync", + "file": "SecureSourceManagerClient.ListRepositoriesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListRepositoriesAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListRepositoriesAsync", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListRepositories", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListRepositories", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetRepository_sync", + "title": "GetRepositoryRequestObject", + "description": "Snippet for GetRepository", + "file": "SecureSourceManagerClient.GetRepositoryRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetRepository", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetRepository", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.GetRepositoryRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecureSourceManager.V1.Repository", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetRepository_async", + "title": "GetRepositoryRequestObjectAsync", + "description": "Snippet for GetRepositoryAsync", + "file": "SecureSourceManagerClient.GetRepositoryRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetRepositoryAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetRepositoryAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.GetRepositoryRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetRepository_sync_flattened", + "title": "GetRepository", + "description": "Snippet for GetRepository", + "file": "SecureSourceManagerClient.GetRepositorySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetRepository", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetRepository", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecureSourceManager.V1.Repository", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetRepository_async_flattened", + "title": "GetRepositoryAsync", + "description": "Snippet for GetRepositoryAsync", + "file": "SecureSourceManagerClient.GetRepositoryAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetRepositoryAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetRepositoryAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetRepository_sync_flattened_resourceNames", + "title": "GetRepositoryResourceNames", + "description": "Snippet for GetRepository", + "file": "SecureSourceManagerClient.GetRepositoryResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetRepository", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetRepository", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.RepositoryName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecureSourceManager.V1.Repository", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetRepository_async_flattened_resourceNames", + "title": "GetRepositoryResourceNamesAsync", + "description": "Snippet for GetRepositoryAsync", + "file": "SecureSourceManagerClient.GetRepositoryResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetRepositoryAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetRepositoryAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.RepositoryName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_sync", + "title": "CreateRepositoryRequestObject", + "description": "Snippet for CreateRepository", + "file": "SecureSourceManagerClient.CreateRepositoryRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateRepository", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateRepository", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.CreateRepositoryRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_async", + "title": "CreateRepositoryRequestObjectAsync", + "description": "Snippet for CreateRepositoryAsync", + "file": "SecureSourceManagerClient.CreateRepositoryRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateRepositoryAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateRepositoryAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.CreateRepositoryRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 37, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_sync_flattened", + "title": "CreateRepository", + "description": "Snippet for CreateRepository", + "file": "SecureSourceManagerClient.CreateRepositorySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateRepository", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateRepository", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecureSourceManager.V1.Repository", + "name": "repository" + }, + { + "type": "System.String", + "name": "repositoryId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_async_flattened", + "title": "CreateRepositoryAsync", + "description": "Snippet for CreateRepositoryAsync", + "file": "SecureSourceManagerClient.CreateRepositoryAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateRepositoryAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateRepositoryAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecureSourceManager.V1.Repository", + "name": "repository" + }, + { + "type": "System.String", + "name": "repositoryId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_sync_flattened_resourceNames", + "title": "CreateRepositoryResourceNames", + "description": "Snippet for CreateRepository", + "file": "SecureSourceManagerClient.CreateRepositoryResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateRepository", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateRepository", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecureSourceManager.V1.Repository", + "name": "repository" + }, + { + "type": "System.String", + "name": "repositoryId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_async_flattened_resourceNames", + "title": "CreateRepositoryResourceNamesAsync", + "description": "Snippet for CreateRepositoryAsync", + "file": "SecureSourceManagerClient.CreateRepositoryResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateRepositoryAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateRepositoryAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecureSourceManager.V1.Repository", + "name": "repository" + }, + { + "type": "System.String", + "name": "repositoryId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 37, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_sync", + "title": "DeleteRepositoryRequestObject", + "description": "Snippet for DeleteRepository", + "file": "SecureSourceManagerClient.DeleteRepositoryRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteRepository", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteRepository", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.DeleteRepositoryRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_async", + "title": "DeleteRepositoryRequestObjectAsync", + "description": "Snippet for DeleteRepositoryAsync", + "file": "SecureSourceManagerClient.DeleteRepositoryRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteRepositoryAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteRepositoryAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.DeleteRepositoryRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 37, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_sync_flattened", + "title": "DeleteRepository", + "description": "Snippet for DeleteRepository", + "file": "SecureSourceManagerClient.DeleteRepositorySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteRepository", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteRepository", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_async_flattened", + "title": "DeleteRepositoryAsync", + "description": "Snippet for DeleteRepositoryAsync", + "file": "SecureSourceManagerClient.DeleteRepositoryAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteRepositoryAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteRepositoryAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_sync_flattened_resourceNames", + "title": "DeleteRepositoryResourceNames", + "description": "Snippet for DeleteRepository", + "file": "SecureSourceManagerClient.DeleteRepositoryResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteRepository", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteRepository", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.RepositoryName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_async_flattened_resourceNames", + "title": "DeleteRepositoryResourceNamesAsync", + "description": "Snippet for DeleteRepositoryAsync", + "file": "SecureSourceManagerClient.DeleteRepositoryResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteRepositoryAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteRepositoryAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.RepositoryName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteRepository", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteRepository", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_sync", + "title": "GetIamPolicyRepoRequestObject", + "description": "Snippet for GetIamPolicyRepo", + "file": "SecureSourceManagerClient.GetIamPolicyRepoRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyRepo", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetIamPolicyRepo", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetIamPolicyRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetIamPolicyRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_async", + "title": "GetIamPolicyRepoRequestObjectAsync", + "description": "Snippet for GetIamPolicyRepoAsync", + "file": "SecureSourceManagerClient.GetIamPolicyRepoRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyRepoAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetIamPolicyRepoAsync", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetIamPolicyRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetIamPolicyRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_sync_flattened", + "title": "GetIamPolicyRepo", + "description": "Snippet for GetIamPolicyRepo", + "file": "SecureSourceManagerClient.GetIamPolicyRepoSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyRepo", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetIamPolicyRepo", + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetIamPolicyRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetIamPolicyRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_async_flattened", + "title": "GetIamPolicyRepoAsync", + "description": "Snippet for GetIamPolicyRepoAsync", + "file": "SecureSourceManagerClient.GetIamPolicyRepoAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyRepoAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetIamPolicyRepoAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetIamPolicyRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetIamPolicyRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_sync_flattened_resourceNames", + "title": "GetIamPolicyRepoResourceNames", + "description": "Snippet for GetIamPolicyRepo", + "file": "SecureSourceManagerClient.GetIamPolicyRepoResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyRepo", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetIamPolicyRepo", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetIamPolicyRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetIamPolicyRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_async_flattened_resourceNames", + "title": "GetIamPolicyRepoResourceNamesAsync", + "description": "Snippet for GetIamPolicyRepoAsync", + "file": "SecureSourceManagerClient.GetIamPolicyRepoResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyRepoAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetIamPolicyRepoAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetIamPolicyRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetIamPolicyRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 37, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_sync", + "title": "SetIamPolicyRepoRequestObject", + "description": "Snippet for SetIamPolicyRepo", + "file": "SecureSourceManagerClient.SetIamPolicyRepoRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyRepo", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.SetIamPolicyRepo", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "SetIamPolicyRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.SetIamPolicyRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 37, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_async", + "title": "SetIamPolicyRepoRequestObjectAsync", + "description": "Snippet for SetIamPolicyRepoAsync", + "file": "SecureSourceManagerClient.SetIamPolicyRepoRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyRepoAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.SetIamPolicyRepoAsync", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "SetIamPolicyRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.SetIamPolicyRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 38, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_sync_flattened", + "title": "SetIamPolicyRepo", + "description": "Snippet for SetIamPolicyRepo", + "file": "SecureSourceManagerClient.SetIamPolicyRepoSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyRepo", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.SetIamPolicyRepo", + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "SetIamPolicyRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.SetIamPolicyRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_async_flattened", + "title": "SetIamPolicyRepoAsync", + "description": "Snippet for SetIamPolicyRepoAsync", + "file": "SecureSourceManagerClient.SetIamPolicyRepoAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyRepoAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.SetIamPolicyRepoAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "SetIamPolicyRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.SetIamPolicyRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_sync_flattened_resourceNames", + "title": "SetIamPolicyRepoResourceNames", + "description": "Snippet for SetIamPolicyRepo", + "file": "SecureSourceManagerClient.SetIamPolicyRepoResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyRepo", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.SetIamPolicyRepo", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "SetIamPolicyRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.SetIamPolicyRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_async_flattened_resourceNames", + "title": "SetIamPolicyRepoResourceNamesAsync", + "description": "Snippet for SetIamPolicyRepoAsync", + "file": "SecureSourceManagerClient.SetIamPolicyRepoResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyRepoAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.SetIamPolicyRepoAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "SetIamPolicyRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.SetIamPolicyRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 37, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_sync", + "title": "TestIamPermissionsRepoRequestObject", + "description": "Snippet for TestIamPermissionsRepo", + "file": "SecureSourceManagerClient.TestIamPermissionsRepoRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsRepo", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.TestIamPermissionsRepo", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "TestIamPermissionsRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.TestIamPermissionsRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_async", + "title": "TestIamPermissionsRepoRequestObjectAsync", + "description": "Snippet for TestIamPermissionsRepoAsync", + "file": "SecureSourceManagerClient.TestIamPermissionsRepoRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsRepoAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.TestIamPermissionsRepoAsync", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "TestIamPermissionsRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.TestIamPermissionsRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_sync_flattened", + "title": "TestIamPermissionsRepo", + "description": "Snippet for TestIamPermissionsRepo", + "file": "SecureSourceManagerClient.TestIamPermissionsRepoSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsRepo", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.TestIamPermissionsRepo", + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "TestIamPermissionsRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.TestIamPermissionsRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_async_flattened", + "title": "TestIamPermissionsRepoAsync", + "description": "Snippet for TestIamPermissionsRepoAsync", + "file": "SecureSourceManagerClient.TestIamPermissionsRepoAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsRepoAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.TestIamPermissionsRepoAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "TestIamPermissionsRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.TestIamPermissionsRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_sync_flattened_resourceNames", + "title": "TestIamPermissionsRepoResourceNames", + "description": "Snippet for TestIamPermissionsRepo", + "file": "SecureSourceManagerClient.TestIamPermissionsRepoResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsRepo", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.TestIamPermissionsRepo", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "TestIamPermissionsRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.TestIamPermissionsRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_async_flattened_resourceNames", + "title": "TestIamPermissionsRepoResourceNamesAsync", + "description": "Snippet for TestIamPermissionsRepoAsync", + "file": "SecureSourceManagerClient.TestIamPermissionsRepoResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsRepoAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.TestIamPermissionsRepoAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "TestIamPermissionsRepo", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.TestIamPermissionsRepo", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 37, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_sync", + "title": "CreateBranchRuleRequestObject", + "description": "Snippet for CreateBranchRule", + "file": "SecureSourceManagerClient.CreateBranchRuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBranchRule", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateBranchRule", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.CreateBranchRuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 35, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_async", + "title": "CreateBranchRuleRequestObjectAsync", + "description": "Snippet for CreateBranchRuleAsync", + "file": "SecureSourceManagerClient.CreateBranchRuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBranchRuleAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateBranchRuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.CreateBranchRuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_sync_flattened", + "title": "CreateBranchRule", + "description": "Snippet for CreateBranchRule", + "file": "SecureSourceManagerClient.CreateBranchRuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBranchRule", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateBranchRule", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecureSourceManager.V1.BranchRule", + "name": "branchRule" + }, + { + "type": "System.String", + "name": "branchRuleId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_async_flattened", + "title": "CreateBranchRuleAsync", + "description": "Snippet for CreateBranchRuleAsync", + "file": "SecureSourceManagerClient.CreateBranchRuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBranchRuleAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateBranchRuleAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecureSourceManager.V1.BranchRule", + "name": "branchRule" + }, + { + "type": "System.String", + "name": "branchRuleId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_sync_flattened_resourceNames", + "title": "CreateBranchRuleResourceNames", + "description": "Snippet for CreateBranchRule", + "file": "SecureSourceManagerClient.CreateBranchRuleResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBranchRule", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateBranchRule", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.RepositoryName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecureSourceManager.V1.BranchRule", + "name": "branchRule" + }, + { + "type": "System.String", + "name": "branchRuleId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_async_flattened_resourceNames", + "title": "CreateBranchRuleResourceNamesAsync", + "description": "Snippet for CreateBranchRuleAsync", + "file": "SecureSourceManagerClient.CreateBranchRuleResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBranchRuleAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.CreateBranchRuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.RepositoryName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecureSourceManager.V1.BranchRule", + "name": "branchRule" + }, + { + "type": "System.String", + "name": "branchRuleId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "CreateBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_sync", + "title": "ListBranchRulesRequestObject", + "description": "Snippet for ListBranchRules", + "file": "SecureSourceManagerClient.ListBranchRulesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBranchRules", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListBranchRules", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.ListBranchRulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListBranchRules", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListBranchRules", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_async", + "title": "ListBranchRulesRequestObjectAsync", + "description": "Snippet for ListBranchRulesAsync", + "file": "SecureSourceManagerClient.ListBranchRulesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBranchRulesAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListBranchRulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.ListBranchRulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListBranchRules", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListBranchRules", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 38, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_sync_flattened", + "title": "ListBranchRules", + "description": "Snippet for ListBranchRules", + "file": "SecureSourceManagerClient.ListBranchRulesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBranchRules", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListBranchRules", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListBranchRules", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListBranchRules", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_async_flattened", + "title": "ListBranchRulesAsync", + "description": "Snippet for ListBranchRulesAsync", + "file": "SecureSourceManagerClient.ListBranchRulesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBranchRulesAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListBranchRulesAsync", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListBranchRules", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListBranchRules", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_sync_flattened_resourceNames", + "title": "ListBranchRulesResourceNames", + "description": "Snippet for ListBranchRules", + "file": "SecureSourceManagerClient.ListBranchRulesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBranchRules", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListBranchRules", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.RepositoryName", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListBranchRules", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListBranchRules", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_async_flattened_resourceNames", + "title": "ListBranchRulesResourceNamesAsync", + "description": "Snippet for ListBranchRulesAsync", + "file": "SecureSourceManagerClient.ListBranchRulesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBranchRulesAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.ListBranchRulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.RepositoryName", + "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": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "ListBranchRules", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListBranchRules", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_sync", + "title": "GetBranchRuleRequestObject", + "description": "Snippet for GetBranchRule", + "file": "SecureSourceManagerClient.GetBranchRuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBranchRule", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetBranchRule", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.GetBranchRuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecureSourceManager.V1.BranchRule", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_async", + "title": "GetBranchRuleRequestObjectAsync", + "description": "Snippet for GetBranchRuleAsync", + "file": "SecureSourceManagerClient.GetBranchRuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBranchRuleAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetBranchRuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.GetBranchRuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_sync_flattened", + "title": "GetBranchRule", + "description": "Snippet for GetBranchRule", + "file": "SecureSourceManagerClient.GetBranchRuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBranchRule", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetBranchRule", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecureSourceManager.V1.BranchRule", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_async_flattened", + "title": "GetBranchRuleAsync", + "description": "Snippet for GetBranchRuleAsync", + "file": "SecureSourceManagerClient.GetBranchRuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBranchRuleAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetBranchRuleAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_sync_flattened_resourceNames", + "title": "GetBranchRuleResourceNames", + "description": "Snippet for GetBranchRule", + "file": "SecureSourceManagerClient.GetBranchRuleResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBranchRule", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetBranchRule", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.BranchRuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecureSourceManager.V1.BranchRule", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_async_flattened_resourceNames", + "title": "GetBranchRuleResourceNamesAsync", + "description": "Snippet for GetBranchRuleAsync", + "file": "SecureSourceManagerClient.GetBranchRuleResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBranchRuleAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.GetBranchRuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.BranchRuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "GetBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_sync", + "title": "UpdateBranchRuleRequestObject", + "description": "Snippet for UpdateBranchRule", + "file": "SecureSourceManagerClient.UpdateBranchRuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateBranchRule", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.UpdateBranchRule", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.UpdateBranchRuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "UpdateBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_async", + "title": "UpdateBranchRuleRequestObjectAsync", + "description": "Snippet for UpdateBranchRuleAsync", + "file": "SecureSourceManagerClient.UpdateBranchRuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateBranchRuleAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.UpdateBranchRuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.UpdateBranchRuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "UpdateBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 37, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_sync_flattened", + "title": "UpdateBranchRule", + "description": "Snippet for UpdateBranchRule", + "file": "SecureSourceManagerClient.UpdateBranchRuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateBranchRule", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.UpdateBranchRule", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.BranchRule", + "name": "branchRule" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "UpdateBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_async_flattened", + "title": "UpdateBranchRuleAsync", + "description": "Snippet for UpdateBranchRuleAsync", + "file": "SecureSourceManagerClient.UpdateBranchRuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateBranchRuleAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.UpdateBranchRuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.BranchRule", + "name": "branchRule" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "UpdateBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_sync", + "title": "DeleteBranchRuleRequestObject", + "description": "Snippet for DeleteBranchRule", + "file": "SecureSourceManagerClient.DeleteBranchRuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBranchRule", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteBranchRule", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.DeleteBranchRuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_async", + "title": "DeleteBranchRuleRequestObjectAsync", + "description": "Snippet for DeleteBranchRuleAsync", + "file": "SecureSourceManagerClient.DeleteBranchRuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBranchRuleAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteBranchRuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.DeleteBranchRuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 37, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_sync_flattened", + "title": "DeleteBranchRule", + "description": "Snippet for DeleteBranchRule", + "file": "SecureSourceManagerClient.DeleteBranchRuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBranchRule", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteBranchRule", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_async_flattened", + "title": "DeleteBranchRuleAsync", + "description": "Snippet for DeleteBranchRuleAsync", + "file": "SecureSourceManagerClient.DeleteBranchRuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBranchRuleAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteBranchRuleAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_sync_flattened_resourceNames", + "title": "DeleteBranchRuleResourceNames", + "description": "Snippet for DeleteBranchRule", + "file": "SecureSourceManagerClient.DeleteBranchRuleResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBranchRule", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteBranchRule", + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.BranchRuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_async_flattened_resourceNames", + "title": "DeleteBranchRuleResourceNamesAsync", + "description": "Snippet for DeleteBranchRuleAsync", + "file": "SecureSourceManagerClient.DeleteBranchRuleResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBranchRuleAsync", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient.DeleteBranchRuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecureSourceManager.V1.BranchRuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecureSourceManagerClient", + "fullName": "Google.Cloud.SecureSourceManager.V1.SecureSourceManagerClient" + }, + "method": { + "shortName": "DeleteBranchRule", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteBranchRule", + "service": { + "shortName": "SecureSourceManager", + "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + } + ] +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.Snippets/Google.Cloud.SecureSourceManager.V1.Snippets.csproj b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.Snippets/Google.Cloud.SecureSourceManager.V1.Snippets.csproj new file mode 100755 index 000000000000..e62d6d54a1fd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.Snippets/Google.Cloud.SecureSourceManager.V1.Snippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.Snippets/SecureSourceManagerClientSnippets.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.Snippets/SecureSourceManagerClientSnippets.g.cs new file mode 100755 index 000000000000..8f6593806870 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.Snippets/SecureSourceManagerClientSnippets.g.cs @@ -0,0 +1,2670 @@ +// 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.SecureSourceManager.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Linq; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedSecureSourceManagerClientSnippets + { + /// Snippet for ListInstances + public void ListInstancesRequestObject() + { + // Snippet: ListInstances(ListInstancesRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + ListInstancesRequest request = new ListInstancesRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListInstances(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Instance 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 (ListInstancesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Instance 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 (Instance 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 ListInstancesAsync + public async Task ListInstancesRequestObjectAsync() + { + // Snippet: ListInstancesAsync(ListInstancesRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + ListInstancesRequest request = new ListInstancesRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListInstancesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Instance 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((ListInstancesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Instance 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 (Instance 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 ListInstances + public void ListInstances() + { + // Snippet: ListInstances(string, string, int?, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListInstances(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Instance 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 (ListInstancesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Instance 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 (Instance 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 ListInstancesAsync + public async Task ListInstancesAsync() + { + // Snippet: ListInstancesAsync(string, string, int?, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListInstancesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Instance 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((ListInstancesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Instance 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 (Instance 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 ListInstances + public void ListInstancesResourceNames() + { + // Snippet: ListInstances(LocationName, string, int?, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListInstances(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Instance 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 (ListInstancesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Instance 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 (Instance 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 ListInstancesAsync + public async Task ListInstancesResourceNamesAsync() + { + // Snippet: ListInstancesAsync(LocationName, string, int?, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListInstancesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Instance 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((ListInstancesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Instance 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 (Instance 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 GetInstance + public void GetInstanceRequestObject() + { + // Snippet: GetInstance(GetInstanceRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + GetInstanceRequest request = new GetInstanceRequest + { + InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), + }; + // Make the request + Instance response = secureSourceManagerClient.GetInstance(request); + // End snippet + } + + /// Snippet for GetInstanceAsync + public async Task GetInstanceRequestObjectAsync() + { + // Snippet: GetInstanceAsync(GetInstanceRequest, CallSettings) + // Additional: GetInstanceAsync(GetInstanceRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + GetInstanceRequest request = new GetInstanceRequest + { + InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), + }; + // Make the request + Instance response = await secureSourceManagerClient.GetInstanceAsync(request); + // End snippet + } + + /// Snippet for GetInstance + public void GetInstance() + { + // Snippet: GetInstance(string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]"; + // Make the request + Instance response = secureSourceManagerClient.GetInstance(name); + // End snippet + } + + /// Snippet for GetInstanceAsync + public async Task GetInstanceAsync() + { + // Snippet: GetInstanceAsync(string, CallSettings) + // Additional: GetInstanceAsync(string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]"; + // Make the request + Instance response = await secureSourceManagerClient.GetInstanceAsync(name); + // End snippet + } + + /// Snippet for GetInstance + public void GetInstanceResourceNames() + { + // Snippet: GetInstance(InstanceName, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + // Make the request + Instance response = secureSourceManagerClient.GetInstance(name); + // End snippet + } + + /// Snippet for GetInstanceAsync + public async Task GetInstanceResourceNamesAsync() + { + // Snippet: GetInstanceAsync(InstanceName, CallSettings) + // Additional: GetInstanceAsync(InstanceName, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + // Make the request + Instance response = await secureSourceManagerClient.GetInstanceAsync(name); + // End snippet + } + + /// Snippet for CreateInstance + public void CreateInstanceRequestObject() + { + // Snippet: CreateInstance(CreateInstanceRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + CreateInstanceRequest request = new CreateInstanceRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + InstanceId = "", + Instance = new Instance(), + RequestId = "", + }; + // Make the request + Operation response = secureSourceManagerClient.CreateInstance(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateInstanceAsync + public async Task CreateInstanceRequestObjectAsync() + { + // Snippet: CreateInstanceAsync(CreateInstanceRequest, CallSettings) + // Additional: CreateInstanceAsync(CreateInstanceRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + CreateInstanceRequest request = new CreateInstanceRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + InstanceId = "", + Instance = new Instance(), + RequestId = "", + }; + // Make the request + Operation response = await secureSourceManagerClient.CreateInstanceAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateInstance + public void CreateInstance() + { + // Snippet: CreateInstance(string, Instance, string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + Instance instance = new Instance(); + string instanceId = ""; + // Make the request + Operation response = secureSourceManagerClient.CreateInstance(parent, instance, instanceId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateInstanceAsync + public async Task CreateInstanceAsync() + { + // Snippet: CreateInstanceAsync(string, Instance, string, CallSettings) + // Additional: CreateInstanceAsync(string, Instance, string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + Instance instance = new Instance(); + string instanceId = ""; + // Make the request + Operation response = await secureSourceManagerClient.CreateInstanceAsync(parent, instance, instanceId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateInstance + public void CreateInstanceResourceNames() + { + // Snippet: CreateInstance(LocationName, Instance, string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + Instance instance = new Instance(); + string instanceId = ""; + // Make the request + Operation response = secureSourceManagerClient.CreateInstance(parent, instance, instanceId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateInstanceAsync + public async Task CreateInstanceResourceNamesAsync() + { + // Snippet: CreateInstanceAsync(LocationName, Instance, string, CallSettings) + // Additional: CreateInstanceAsync(LocationName, Instance, string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + Instance instance = new Instance(); + string instanceId = ""; + // Make the request + Operation response = await secureSourceManagerClient.CreateInstanceAsync(parent, instance, instanceId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteInstance + public void DeleteInstanceRequestObject() + { + // Snippet: DeleteInstance(DeleteInstanceRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + DeleteInstanceRequest request = new DeleteInstanceRequest + { + InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), + RequestId = "", + }; + // Make the request + Operation response = secureSourceManagerClient.DeleteInstance(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteInstanceAsync + public async Task DeleteInstanceRequestObjectAsync() + { + // Snippet: DeleteInstanceAsync(DeleteInstanceRequest, CallSettings) + // Additional: DeleteInstanceAsync(DeleteInstanceRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + DeleteInstanceRequest request = new DeleteInstanceRequest + { + InstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), + RequestId = "", + }; + // Make the request + Operation response = await secureSourceManagerClient.DeleteInstanceAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteInstance + public void DeleteInstance() + { + // Snippet: DeleteInstance(string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]"; + // Make the request + Operation response = secureSourceManagerClient.DeleteInstance(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteInstanceAsync + public async Task DeleteInstanceAsync() + { + // Snippet: DeleteInstanceAsync(string, CallSettings) + // Additional: DeleteInstanceAsync(string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]"; + // Make the request + Operation response = await secureSourceManagerClient.DeleteInstanceAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteInstance + public void DeleteInstanceResourceNames() + { + // Snippet: DeleteInstance(InstanceName, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + // Make the request + Operation response = secureSourceManagerClient.DeleteInstance(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteInstanceAsync + public async Task DeleteInstanceResourceNamesAsync() + { + // Snippet: DeleteInstanceAsync(InstanceName, CallSettings) + // Additional: DeleteInstanceAsync(InstanceName, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + // Make the request + Operation response = await secureSourceManagerClient.DeleteInstanceAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for ListRepositories + public void ListRepositoriesRequestObject() + { + // Snippet: ListRepositories(ListRepositoriesRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + ListRepositoriesRequest request = new ListRepositoriesRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + InstanceAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), + }; + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListRepositories(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Repository 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 (ListRepositoriesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Repository 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 (Repository 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 ListRepositoriesAsync + public async Task ListRepositoriesRequestObjectAsync() + { + // Snippet: ListRepositoriesAsync(ListRepositoriesRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + ListRepositoriesRequest request = new ListRepositoriesRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + InstanceAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"), + }; + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListRepositoriesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Repository 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((ListRepositoriesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Repository 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 (Repository 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 ListRepositories + public void ListRepositories() + { + // Snippet: ListRepositories(string, string, int?, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListRepositories(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Repository 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 (ListRepositoriesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Repository 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 (Repository 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 ListRepositoriesAsync + public async Task ListRepositoriesAsync() + { + // Snippet: ListRepositoriesAsync(string, string, int?, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListRepositoriesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Repository 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((ListRepositoriesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Repository 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 (Repository 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 ListRepositories + public void ListRepositoriesResourceNames() + { + // Snippet: ListRepositories(LocationName, string, int?, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListRepositories(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Repository 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 (ListRepositoriesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Repository 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 (Repository 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 ListRepositoriesAsync + public async Task ListRepositoriesResourceNamesAsync() + { + // Snippet: ListRepositoriesAsync(LocationName, string, int?, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListRepositoriesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Repository 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((ListRepositoriesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Repository 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 (Repository 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 GetRepository + public void GetRepositoryRequestObject() + { + // Snippet: GetRepository(GetRepositoryRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + GetRepositoryRequest request = new GetRepositoryRequest + { + RepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + }; + // Make the request + Repository response = secureSourceManagerClient.GetRepository(request); + // End snippet + } + + /// Snippet for GetRepositoryAsync + public async Task GetRepositoryRequestObjectAsync() + { + // Snippet: GetRepositoryAsync(GetRepositoryRequest, CallSettings) + // Additional: GetRepositoryAsync(GetRepositoryRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + GetRepositoryRequest request = new GetRepositoryRequest + { + RepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + }; + // Make the request + Repository response = await secureSourceManagerClient.GetRepositoryAsync(request); + // End snippet + } + + /// Snippet for GetRepository + public void GetRepository() + { + // Snippet: GetRepository(string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + // Make the request + Repository response = secureSourceManagerClient.GetRepository(name); + // End snippet + } + + /// Snippet for GetRepositoryAsync + public async Task GetRepositoryAsync() + { + // Snippet: GetRepositoryAsync(string, CallSettings) + // Additional: GetRepositoryAsync(string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + // Make the request + Repository response = await secureSourceManagerClient.GetRepositoryAsync(name); + // End snippet + } + + /// Snippet for GetRepository + public void GetRepositoryResourceNames() + { + // Snippet: GetRepository(RepositoryName, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + RepositoryName name = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + // Make the request + Repository response = secureSourceManagerClient.GetRepository(name); + // End snippet + } + + /// Snippet for GetRepositoryAsync + public async Task GetRepositoryResourceNamesAsync() + { + // Snippet: GetRepositoryAsync(RepositoryName, CallSettings) + // Additional: GetRepositoryAsync(RepositoryName, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + RepositoryName name = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + // Make the request + Repository response = await secureSourceManagerClient.GetRepositoryAsync(name); + // End snippet + } + + /// Snippet for CreateRepository + public void CreateRepositoryRequestObject() + { + // Snippet: CreateRepository(CreateRepositoryRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + CreateRepositoryRequest request = new CreateRepositoryRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Repository = new Repository(), + RepositoryId = "", + }; + // Make the request + Operation response = secureSourceManagerClient.CreateRepository(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Repository result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateRepository(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Repository retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateRepositoryAsync + public async Task CreateRepositoryRequestObjectAsync() + { + // Snippet: CreateRepositoryAsync(CreateRepositoryRequest, CallSettings) + // Additional: CreateRepositoryAsync(CreateRepositoryRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + CreateRepositoryRequest request = new CreateRepositoryRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Repository = new Repository(), + RepositoryId = "", + }; + // Make the request + Operation response = await secureSourceManagerClient.CreateRepositoryAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Repository result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateRepositoryAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Repository retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateRepository + public void CreateRepository() + { + // Snippet: CreateRepository(string, Repository, string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + Repository repository = new Repository(); + string repositoryId = ""; + // Make the request + Operation response = secureSourceManagerClient.CreateRepository(parent, repository, repositoryId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Repository result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateRepository(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Repository retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateRepositoryAsync + public async Task CreateRepositoryAsync() + { + // Snippet: CreateRepositoryAsync(string, Repository, string, CallSettings) + // Additional: CreateRepositoryAsync(string, Repository, string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + Repository repository = new Repository(); + string repositoryId = ""; + // Make the request + Operation response = await secureSourceManagerClient.CreateRepositoryAsync(parent, repository, repositoryId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Repository result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateRepositoryAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Repository retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateRepository + public void CreateRepositoryResourceNames() + { + // Snippet: CreateRepository(LocationName, Repository, string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + Repository repository = new Repository(); + string repositoryId = ""; + // Make the request + Operation response = secureSourceManagerClient.CreateRepository(parent, repository, repositoryId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Repository result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateRepository(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Repository retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateRepositoryAsync + public async Task CreateRepositoryResourceNamesAsync() + { + // Snippet: CreateRepositoryAsync(LocationName, Repository, string, CallSettings) + // Additional: CreateRepositoryAsync(LocationName, Repository, string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + Repository repository = new Repository(); + string repositoryId = ""; + // Make the request + Operation response = await secureSourceManagerClient.CreateRepositoryAsync(parent, repository, repositoryId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Repository result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateRepositoryAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Repository retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteRepository + public void DeleteRepositoryRequestObject() + { + // Snippet: DeleteRepository(DeleteRepositoryRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + DeleteRepositoryRequest request = new DeleteRepositoryRequest + { + RepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + AllowMissing = false, + }; + // Make the request + Operation response = secureSourceManagerClient.DeleteRepository(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteRepository(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteRepositoryAsync + public async Task DeleteRepositoryRequestObjectAsync() + { + // Snippet: DeleteRepositoryAsync(DeleteRepositoryRequest, CallSettings) + // Additional: DeleteRepositoryAsync(DeleteRepositoryRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + DeleteRepositoryRequest request = new DeleteRepositoryRequest + { + RepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + AllowMissing = false, + }; + // Make the request + Operation response = await secureSourceManagerClient.DeleteRepositoryAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteRepositoryAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteRepository + public void DeleteRepository() + { + // Snippet: DeleteRepository(string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + // Make the request + Operation response = secureSourceManagerClient.DeleteRepository(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteRepository(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteRepositoryAsync + public async Task DeleteRepositoryAsync() + { + // Snippet: DeleteRepositoryAsync(string, CallSettings) + // Additional: DeleteRepositoryAsync(string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + // Make the request + Operation response = await secureSourceManagerClient.DeleteRepositoryAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteRepositoryAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteRepository + public void DeleteRepositoryResourceNames() + { + // Snippet: DeleteRepository(RepositoryName, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + RepositoryName name = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + // Make the request + Operation response = secureSourceManagerClient.DeleteRepository(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteRepository(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteRepositoryAsync + public async Task DeleteRepositoryResourceNamesAsync() + { + // Snippet: DeleteRepositoryAsync(RepositoryName, CallSettings) + // Additional: DeleteRepositoryAsync(RepositoryName, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + RepositoryName name = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + // Make the request + Operation response = await secureSourceManagerClient.DeleteRepositoryAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteRepositoryAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for GetIamPolicyRepo + public void GetIamPolicyRepoRequestObject() + { + // Snippet: GetIamPolicyRepo(GetIamPolicyRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = secureSourceManagerClient.GetIamPolicyRepo(request); + // End snippet + } + + /// Snippet for GetIamPolicyRepoAsync + public async Task GetIamPolicyRepoRequestObjectAsync() + { + // Snippet: GetIamPolicyRepoAsync(GetIamPolicyRequest, CallSettings) + // Additional: GetIamPolicyRepoAsync(GetIamPolicyRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = await secureSourceManagerClient.GetIamPolicyRepoAsync(request); + // End snippet + } + + /// Snippet for GetIamPolicyRepo + public void GetIamPolicyRepo() + { + // Snippet: GetIamPolicyRepo(string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = secureSourceManagerClient.GetIamPolicyRepo(resource); + // End snippet + } + + /// Snippet for GetIamPolicyRepoAsync + public async Task GetIamPolicyRepoAsync() + { + // Snippet: GetIamPolicyRepoAsync(string, CallSettings) + // Additional: GetIamPolicyRepoAsync(string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = await secureSourceManagerClient.GetIamPolicyRepoAsync(resource); + // End snippet + } + + /// Snippet for GetIamPolicyRepo + public void GetIamPolicyRepoResourceNames() + { + // Snippet: GetIamPolicyRepo(IResourceName, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = secureSourceManagerClient.GetIamPolicyRepo(resource); + // End snippet + } + + /// Snippet for GetIamPolicyRepoAsync + public async Task GetIamPolicyRepoResourceNamesAsync() + { + // Snippet: GetIamPolicyRepoAsync(IResourceName, CallSettings) + // Additional: GetIamPolicyRepoAsync(IResourceName, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = await secureSourceManagerClient.GetIamPolicyRepoAsync(resource); + // End snippet + } + + /// Snippet for SetIamPolicyRepo + public void SetIamPolicyRepoRequestObject() + { + // Snippet: SetIamPolicyRepo(SetIamPolicyRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.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 = secureSourceManagerClient.SetIamPolicyRepo(request); + // End snippet + } + + /// Snippet for SetIamPolicyRepoAsync + public async Task SetIamPolicyRepoRequestObjectAsync() + { + // Snippet: SetIamPolicyRepoAsync(SetIamPolicyRequest, CallSettings) + // Additional: SetIamPolicyRepoAsync(SetIamPolicyRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.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 secureSourceManagerClient.SetIamPolicyRepoAsync(request); + // End snippet + } + + /// Snippet for SetIamPolicyRepo + public void SetIamPolicyRepo() + { + // Snippet: SetIamPolicyRepo(string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = secureSourceManagerClient.SetIamPolicyRepo(resource); + // End snippet + } + + /// Snippet for SetIamPolicyRepoAsync + public async Task SetIamPolicyRepoAsync() + { + // Snippet: SetIamPolicyRepoAsync(string, CallSettings) + // Additional: SetIamPolicyRepoAsync(string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = await secureSourceManagerClient.SetIamPolicyRepoAsync(resource); + // End snippet + } + + /// Snippet for SetIamPolicyRepo + public void SetIamPolicyRepoResourceNames() + { + // Snippet: SetIamPolicyRepo(IResourceName, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = secureSourceManagerClient.SetIamPolicyRepo(resource); + // End snippet + } + + /// Snippet for SetIamPolicyRepoAsync + public async Task SetIamPolicyRepoResourceNamesAsync() + { + // Snippet: SetIamPolicyRepoAsync(IResourceName, CallSettings) + // Additional: SetIamPolicyRepoAsync(IResourceName, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = await secureSourceManagerClient.SetIamPolicyRepoAsync(resource); + // End snippet + } + + /// Snippet for TestIamPermissionsRepo + public void TestIamPermissionsRepoRequestObject() + { + // Snippet: TestIamPermissionsRepo(TestIamPermissionsRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = secureSourceManagerClient.TestIamPermissionsRepo(request); + // End snippet + } + + /// Snippet for TestIamPermissionsRepoAsync + public async Task TestIamPermissionsRepoRequestObjectAsync() + { + // Snippet: TestIamPermissionsRepoAsync(TestIamPermissionsRequest, CallSettings) + // Additional: TestIamPermissionsRepoAsync(TestIamPermissionsRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = await secureSourceManagerClient.TestIamPermissionsRepoAsync(request); + // End snippet + } + + /// Snippet for TestIamPermissionsRepo + public void TestIamPermissionsRepo() + { + // Snippet: TestIamPermissionsRepo(string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + TestIamPermissionsResponse response = secureSourceManagerClient.TestIamPermissionsRepo(resource); + // End snippet + } + + /// Snippet for TestIamPermissionsRepoAsync + public async Task TestIamPermissionsRepoAsync() + { + // Snippet: TestIamPermissionsRepoAsync(string, CallSettings) + // Additional: TestIamPermissionsRepoAsync(string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + TestIamPermissionsResponse response = await secureSourceManagerClient.TestIamPermissionsRepoAsync(resource); + // End snippet + } + + /// Snippet for TestIamPermissionsRepo + public void TestIamPermissionsRepoResourceNames() + { + // Snippet: TestIamPermissionsRepo(IResourceName, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + TestIamPermissionsResponse response = secureSourceManagerClient.TestIamPermissionsRepo(resource); + // End snippet + } + + /// Snippet for TestIamPermissionsRepoAsync + public async Task TestIamPermissionsRepoResourceNamesAsync() + { + // Snippet: TestIamPermissionsRepoAsync(IResourceName, CallSettings) + // Additional: TestIamPermissionsRepoAsync(IResourceName, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + TestIamPermissionsResponse response = await secureSourceManagerClient.TestIamPermissionsRepoAsync(resource); + // End snippet + } + + /// Snippet for CreateBranchRule + public void CreateBranchRuleRequestObject() + { + // Snippet: CreateBranchRule(CreateBranchRuleRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + CreateBranchRuleRequest request = new CreateBranchRuleRequest + { + ParentAsRepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + BranchRule = new BranchRule(), + BranchRuleId = "", + }; + // Make the request + Operation response = secureSourceManagerClient.CreateBranchRule(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateBranchRuleAsync + public async Task CreateBranchRuleRequestObjectAsync() + { + // Snippet: CreateBranchRuleAsync(CreateBranchRuleRequest, CallSettings) + // Additional: CreateBranchRuleAsync(CreateBranchRuleRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + CreateBranchRuleRequest request = new CreateBranchRuleRequest + { + ParentAsRepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + BranchRule = new BranchRule(), + BranchRuleId = "", + }; + // Make the request + Operation response = await secureSourceManagerClient.CreateBranchRuleAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateBranchRule + public void CreateBranchRule() + { + // Snippet: CreateBranchRule(string, BranchRule, string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + BranchRule branchRule = new BranchRule(); + string branchRuleId = ""; + // Make the request + Operation response = secureSourceManagerClient.CreateBranchRule(parent, branchRule, branchRuleId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateBranchRuleAsync + public async Task CreateBranchRuleAsync() + { + // Snippet: CreateBranchRuleAsync(string, BranchRule, string, CallSettings) + // Additional: CreateBranchRuleAsync(string, BranchRule, string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + BranchRule branchRule = new BranchRule(); + string branchRuleId = ""; + // Make the request + Operation response = await secureSourceManagerClient.CreateBranchRuleAsync(parent, branchRule, branchRuleId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateBranchRule + public void CreateBranchRuleResourceNames() + { + // Snippet: CreateBranchRule(RepositoryName, BranchRule, string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + RepositoryName parent = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + BranchRule branchRule = new BranchRule(); + string branchRuleId = ""; + // Make the request + Operation response = secureSourceManagerClient.CreateBranchRule(parent, branchRule, branchRuleId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceCreateBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateBranchRuleAsync + public async Task CreateBranchRuleResourceNamesAsync() + { + // Snippet: CreateBranchRuleAsync(RepositoryName, BranchRule, string, CallSettings) + // Additional: CreateBranchRuleAsync(RepositoryName, BranchRule, string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + RepositoryName parent = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + BranchRule branchRule = new BranchRule(); + string branchRuleId = ""; + // Make the request + Operation response = await secureSourceManagerClient.CreateBranchRuleAsync(parent, branchRule, branchRuleId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceCreateBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for ListBranchRules + public void ListBranchRulesRequestObject() + { + // Snippet: ListBranchRules(ListBranchRulesRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + ListBranchRulesRequest request = new ListBranchRulesRequest + { + ParentAsRepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + }; + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListBranchRules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BranchRule 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 (ListBranchRulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BranchRule 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 (BranchRule 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 ListBranchRulesAsync + public async Task ListBranchRulesRequestObjectAsync() + { + // Snippet: ListBranchRulesAsync(ListBranchRulesRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + ListBranchRulesRequest request = new ListBranchRulesRequest + { + ParentAsRepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"), + }; + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListBranchRulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BranchRule 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((ListBranchRulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BranchRule 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 (BranchRule 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 ListBranchRules + public void ListBranchRules() + { + // Snippet: ListBranchRules(string, string, int?, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListBranchRules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BranchRule 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 (ListBranchRulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BranchRule 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 (BranchRule 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 ListBranchRulesAsync + public async Task ListBranchRulesAsync() + { + // Snippet: ListBranchRulesAsync(string, string, int?, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]"; + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListBranchRulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BranchRule 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((ListBranchRulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BranchRule 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 (BranchRule 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 ListBranchRules + public void ListBranchRulesResourceNames() + { + // Snippet: ListBranchRules(RepositoryName, string, int?, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + RepositoryName parent = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + // Make the request + PagedEnumerable response = secureSourceManagerClient.ListBranchRules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BranchRule 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 (ListBranchRulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BranchRule 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 (BranchRule 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 ListBranchRulesAsync + public async Task ListBranchRulesResourceNamesAsync() + { + // Snippet: ListBranchRulesAsync(RepositoryName, string, int?, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + RepositoryName parent = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + // Make the request + PagedAsyncEnumerable response = secureSourceManagerClient.ListBranchRulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BranchRule 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((ListBranchRulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BranchRule 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 (BranchRule 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 GetBranchRule + public void GetBranchRuleRequestObject() + { + // Snippet: GetBranchRule(GetBranchRuleRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + GetBranchRuleRequest request = new GetBranchRuleRequest + { + BranchRuleName = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"), + }; + // Make the request + BranchRule response = secureSourceManagerClient.GetBranchRule(request); + // End snippet + } + + /// Snippet for GetBranchRuleAsync + public async Task GetBranchRuleRequestObjectAsync() + { + // Snippet: GetBranchRuleAsync(GetBranchRuleRequest, CallSettings) + // Additional: GetBranchRuleAsync(GetBranchRuleRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + GetBranchRuleRequest request = new GetBranchRuleRequest + { + BranchRuleName = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"), + }; + // Make the request + BranchRule response = await secureSourceManagerClient.GetBranchRuleAsync(request); + // End snippet + } + + /// Snippet for GetBranchRule + public void GetBranchRule() + { + // Snippet: GetBranchRule(string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/branchRules/[BRANCH_RULE]"; + // Make the request + BranchRule response = secureSourceManagerClient.GetBranchRule(name); + // End snippet + } + + /// Snippet for GetBranchRuleAsync + public async Task GetBranchRuleAsync() + { + // Snippet: GetBranchRuleAsync(string, CallSettings) + // Additional: GetBranchRuleAsync(string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/branchRules/[BRANCH_RULE]"; + // Make the request + BranchRule response = await secureSourceManagerClient.GetBranchRuleAsync(name); + // End snippet + } + + /// Snippet for GetBranchRule + public void GetBranchRuleResourceNames() + { + // Snippet: GetBranchRule(BranchRuleName, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + BranchRuleName name = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + // Make the request + BranchRule response = secureSourceManagerClient.GetBranchRule(name); + // End snippet + } + + /// Snippet for GetBranchRuleAsync + public async Task GetBranchRuleResourceNamesAsync() + { + // Snippet: GetBranchRuleAsync(BranchRuleName, CallSettings) + // Additional: GetBranchRuleAsync(BranchRuleName, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + BranchRuleName name = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + // Make the request + BranchRule response = await secureSourceManagerClient.GetBranchRuleAsync(name); + // End snippet + } + + /// Snippet for UpdateBranchRule + public void UpdateBranchRuleRequestObject() + { + // Snippet: UpdateBranchRule(UpdateBranchRuleRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + UpdateBranchRuleRequest request = new UpdateBranchRuleRequest + { + BranchRule = new BranchRule(), + ValidateOnly = false, + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = secureSourceManagerClient.UpdateBranchRule(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceUpdateBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateBranchRuleAsync + public async Task UpdateBranchRuleRequestObjectAsync() + { + // Snippet: UpdateBranchRuleAsync(UpdateBranchRuleRequest, CallSettings) + // Additional: UpdateBranchRuleAsync(UpdateBranchRuleRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + UpdateBranchRuleRequest request = new UpdateBranchRuleRequest + { + BranchRule = new BranchRule(), + ValidateOnly = false, + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = await secureSourceManagerClient.UpdateBranchRuleAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceUpdateBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateBranchRule + public void UpdateBranchRule() + { + // Snippet: UpdateBranchRule(BranchRule, FieldMask, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + BranchRule branchRule = new BranchRule(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = secureSourceManagerClient.UpdateBranchRule(branchRule, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceUpdateBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateBranchRuleAsync + public async Task UpdateBranchRuleAsync() + { + // Snippet: UpdateBranchRuleAsync(BranchRule, FieldMask, CallSettings) + // Additional: UpdateBranchRuleAsync(BranchRule, FieldMask, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + BranchRule branchRule = new BranchRule(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await secureSourceManagerClient.UpdateBranchRuleAsync(branchRule, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BranchRule result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceUpdateBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BranchRule retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteBranchRule + public void DeleteBranchRuleRequestObject() + { + // Snippet: DeleteBranchRule(DeleteBranchRuleRequest, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + DeleteBranchRuleRequest request = new DeleteBranchRuleRequest + { + BranchRuleName = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"), + AllowMissing = false, + }; + // Make the request + Operation response = secureSourceManagerClient.DeleteBranchRule(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteBranchRuleAsync + public async Task DeleteBranchRuleRequestObjectAsync() + { + // Snippet: DeleteBranchRuleAsync(DeleteBranchRuleRequest, CallSettings) + // Additional: DeleteBranchRuleAsync(DeleteBranchRuleRequest, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + DeleteBranchRuleRequest request = new DeleteBranchRuleRequest + { + BranchRuleName = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"), + AllowMissing = false, + }; + // Make the request + Operation response = await secureSourceManagerClient.DeleteBranchRuleAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteBranchRule + public void DeleteBranchRule() + { + // Snippet: DeleteBranchRule(string, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/branchRules/[BRANCH_RULE]"; + // Make the request + Operation response = secureSourceManagerClient.DeleteBranchRule(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteBranchRuleAsync + public async Task DeleteBranchRuleAsync() + { + // Snippet: DeleteBranchRuleAsync(string, CallSettings) + // Additional: DeleteBranchRuleAsync(string, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/branchRules/[BRANCH_RULE]"; + // Make the request + Operation response = await secureSourceManagerClient.DeleteBranchRuleAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteBranchRule + public void DeleteBranchRuleResourceNames() + { + // Snippet: DeleteBranchRule(BranchRuleName, CallSettings) + // Create client + SecureSourceManagerClient secureSourceManagerClient = SecureSourceManagerClient.Create(); + // Initialize request argument(s) + BranchRuleName name = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + // Make the request + Operation response = secureSourceManagerClient.DeleteBranchRule(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = secureSourceManagerClient.PollOnceDeleteBranchRule(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteBranchRuleAsync + public async Task DeleteBranchRuleResourceNamesAsync() + { + // Snippet: DeleteBranchRuleAsync(BranchRuleName, CallSettings) + // Additional: DeleteBranchRuleAsync(BranchRuleName, CancellationToken) + // Create client + SecureSourceManagerClient secureSourceManagerClient = await SecureSourceManagerClient.CreateAsync(); + // Initialize request argument(s) + BranchRuleName name = BranchRuleName.FromProjectLocationRepositoryBranchRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[BRANCH_RULE]"); + // Make the request + Operation response = await secureSourceManagerClient.DeleteBranchRuleAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await secureSourceManagerClient.PollOnceDeleteBranchRuleAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.csproj b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.csproj new file mode 100755 index 000000000000..1823319ae739 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1.csproj @@ -0,0 +1,50 @@ + + + + + + 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.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/PackageApiMetadata.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/PackageApiMetadata.g.cs new file mode 100755 index 000000000000..15dcba024a56 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/PackageApiMetadata.g.cs @@ -0,0 +1,93 @@ +// 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 gciv = Google.Cloud.Iam.V1; +using gcl = Google.Cloud.Location; +using gpr = Google.Protobuf.Reflection; +using lro = Google.LongRunning; +using proto = Google.Protobuf; +using scg = System.Collections.Generic; + +namespace Google.Cloud.SecureSourceManager.V1 +{ + /// 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.SecureSourceManager.V1", GetFileDescriptors) + .WithRequestNumericEnumJsonEncoding(true) + .WithHttpRuleOverrides(new scg::Dictionary + { + { + "google.cloud.location.Locations.GetLocation", + // { "get": "/v1/{name=projects/*/locations/*}" } + proto::ByteString.FromBase64("EiEvdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKn0=") + }, + { + "google.cloud.location.Locations.ListLocations", + // { "get": "/v1/{name=projects/*}/locations" } + proto::ByteString.FromBase64("Eh8vdjEve25hbWU9cHJvamVjdHMvKn0vbG9jYXRpb25z") + }, + { + "google.iam.v1.IAMPolicy.GetIamPolicy", + // { "get": "/v1/{resource=projects/*/locations/*/instances/*}:getIamPolicy" } + proto::ByteString.FromBase64("Ej4vdjEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovaW5zdGFuY2VzLyp9OmdldElhbVBvbGljeQ==") + }, + { + "google.iam.v1.IAMPolicy.SetIamPolicy", + // { "post": "/v1/{resource=projects/*/locations/*/instances/*}:setIamPolicy", "body": "*" } + proto::ByteString.FromBase64("Ij4vdjEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovaW5zdGFuY2VzLyp9OnNldElhbVBvbGljeToBKg==") + }, + { + "google.iam.v1.IAMPolicy.TestIamPermissions", + // { "post": "/v1/{resource=projects/*/locations/*/instances/*}:testIamPermissions", "body": "*" } + proto::ByteString.FromBase64("IkQvdjEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovaW5zdGFuY2VzLyp9OnRlc3RJYW1QZXJtaXNzaW9uczoBKg==") + }, + { + "google.longrunning.Operations.CancelOperation", + // { "post": "/v1/{name=projects/*/locations/*/operations/*}:cancel", "body": "*" } + proto::ByteString.FromBase64("IjUvdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9vcGVyYXRpb25zLyp9OmNhbmNlbDoBKg==") + }, + { + "google.longrunning.Operations.DeleteOperation", + // { "delete": "/v1/{name=projects/*/locations/*/operations/*}" } + proto::ByteString.FromBase64("Ki4vdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9vcGVyYXRpb25zLyp9") + }, + { + "google.longrunning.Operations.GetOperation", + // { "get": "/v1/{name=projects/*/locations/*/operations/*}" } + proto::ByteString.FromBase64("Ei4vdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9vcGVyYXRpb25zLyp9") + }, + { + "google.longrunning.Operations.ListOperations", + // { "get": "/v1/{name=projects/*/locations/*}/operations" } + proto::ByteString.FromBase64("EiwvdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKn0vb3BlcmF0aW9ucw==") + }, + }); + + private static scg::IEnumerable GetFileDescriptors() + { + yield return gciv::IamPolicyReflection.Descriptor; + yield return gciv::OptionsReflection.Descriptor; + yield return gciv::PolicyReflection.Descriptor; + yield return gcl::LocationsReflection.Descriptor; + yield return SecureSourceManagerReflection.Descriptor; + yield return lro::OperationsReflection.Descriptor; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManager.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManager.g.cs new file mode 100755 index 000000000000..b65b4430c351 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManager.g.cs @@ -0,0 +1,8471 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.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.SecureSourceManager.V1 { + + /// Holder for reflection information generated from google/cloud/securesourcemanager/v1/secure_source_manager.proto + public static partial class SecureSourceManagerReflection { + + #region Descriptor + /// File descriptor for google/cloud/securesourcemanager/v1/secure_source_manager.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SecureSourceManagerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cj9nb29nbGUvY2xvdWQvc2VjdXJlc291cmNlbWFuYWdlci92MS9zZWN1cmVf", + "c291cmNlX21hbmFnZXIucHJvdG8SI2dvb2dsZS5jbG91ZC5zZWN1cmVzb3Vy", + "Y2VtYW5hZ2VyLnYxGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdn", + "b29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhh", + "dmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxoeZ29vZ2xl", + "L2lhbS92MS9pYW1fcG9saWN5LnByb3RvGhpnb29nbGUvaWFtL3YxL3BvbGlj", + "eS5wcm90bxojZ29vZ2xlL2xvbmdydW5uaW5nL29wZXJhdGlvbnMucHJvdG8a", + "G2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90bxogZ29vZ2xlL3Byb3RvYnVm", + "L2ZpZWxkX21hc2sucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAu", + "cHJvdG8i1QoKCEluc3RhbmNlEhEKBG5hbWUYASABKAlCA+BBARI0CgtjcmVh", + "dGVfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BB", + "AxI0Cgt1cGRhdGVfdGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXBCA+BBAxJOCgZsYWJlbHMYBCADKAsyOS5nb29nbGUuY2xvdWQuc2Vj", + "dXJlc291cmNlbWFuYWdlci52MS5JbnN0YW5jZS5MYWJlbHNFbnRyeUID4EEB", + "ElgKDnByaXZhdGVfY29uZmlnGA0gASgLMjsuZ29vZ2xlLmNsb3VkLnNlY3Vy", + "ZXNvdXJjZW1hbmFnZXIudjEuSW5zdGFuY2UuUHJpdmF0ZUNvbmZpZ0ID4EEB", + "EkcKBXN0YXRlGAUgASgOMjMuZ29vZ2xlLmNsb3VkLnNlY3VyZXNvdXJjZW1h", + "bmFnZXIudjEuSW5zdGFuY2UuU3RhdGVCA+BBAxJQCgpzdGF0ZV9ub3RlGAog", + "ASgOMjcuZ29vZ2xlLmNsb3VkLnNlY3VyZXNvdXJjZW1hbmFnZXIudjEuSW5z", + "dGFuY2UuU3RhdGVOb3RlQgPgQQMSOgoHa21zX2tleRgLIAEoCUIp4EEF+kEj", + "CiFjbG91ZGttcy5nb29nbGVhcGlzLmNvbS9DcnlwdG9LZXkSUgoLaG9zdF9j", + "b25maWcYCSABKAsyOC5nb29nbGUuY2xvdWQuc2VjdXJlc291cmNlbWFuYWdl", + "ci52MS5JbnN0YW5jZS5Ib3N0Q29uZmlnQgPgQQMaXgoKSG9zdENvbmZpZxIR", + "CgRodG1sGAEgASgJQgPgQQMSEAoDYXBpGAIgASgJQgPgQQMSFQoIZ2l0X2h0", + "dHAYAyABKAlCA+BBAxIUCgdnaXRfc3NoGAQgASgJQgPgQQMasAIKDVByaXZh", + "dGVDb25maWcSGgoKaXNfcHJpdmF0ZRgBIAEoCEIG4EEF4EECEjsKB2NhX3Bv", + "b2wYAiABKAlCKuBBBeBBAvpBIQofcHJpdmF0ZWNhLmdvb2dsZWFwaXMuY29t", + "L0NhUG9vbBJRChdodHRwX3NlcnZpY2VfYXR0YWNobWVudBgDIAEoCUIw4EED", + "+kEqCihjb21wdXRlLmdvb2dsZWFwaXMuY29tL1NlcnZpY2VBdHRhY2htZW50", + "ElAKFnNzaF9zZXJ2aWNlX2F0dGFjaG1lbnQYBCABKAlCMOBBA/pBKgooY29t", + "cHV0ZS5nb29nbGVhcGlzLmNvbS9TZXJ2aWNlQXR0YWNobWVudBIhChRwc2Nf", + "YWxsb3dlZF9wcm9qZWN0cxgGIAMoCUID4EEBGi0KC0xhYmVsc0VudHJ5EgsK", + "A2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiXwoFU3RhdGUSFQoRU1RB", + "VEVfVU5TUEVDSUZJRUQQABIMCghDUkVBVElORxABEgoKBkFDVElWRRACEgwK", + "CERFTEVUSU5HEAMSCgoGUEFVU0VEEAQSCwoHVU5LTk9XThAGIl8KCVN0YXRl", + "Tm90ZRIaChZTVEFURV9OT1RFX1VOU1BFQ0lGSUVEEAASGwoXUEFVU0VEX0NN", + "RUtfVU5BVkFJTEFCTEUQARIZChFJTlNUQU5DRV9SRVNVTUlORxACGgIIATpx", + "6kFuCitzZWN1cmVzb3VyY2VtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL0luc3Rh", + "bmNlEjxwcm9qZWN0cy97cHJvamVjdH0vbG9jYXRpb25zL3tsb2NhdGlvbn0v", + "aW5zdGFuY2VzL3tpbnN0YW5jZX1SAQEi0AUKClJlcG9zaXRvcnkSEQoEbmFt", + "ZRgBIAEoCUID4EEBEhgKC2Rlc2NyaXB0aW9uGAIgASgJQgPgQQESRQoIaW5z", + "dGFuY2UYAyABKAlCM+BBAfpBLQorc2VjdXJlc291cmNlbWFuYWdlci5nb29n", + "bGVhcGlzLmNvbS9JbnN0YW5jZRIQCgN1aWQYBCABKAlCA+BBAxI0CgtjcmVh", + "dGVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BB", + "AxI0Cgt1cGRhdGVfdGltZRgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXBCA+BBAxIRCgRldGFnGAggASgJQgPgQQESRwoEdXJpcxgJIAEoCzI0", + "Lmdvb2dsZS5jbG91ZC5zZWN1cmVzb3VyY2VtYW5hZ2VyLnYxLlJlcG9zaXRv", + "cnkuVVJJc0ID4EEDEloKDmluaXRpYWxfY29uZmlnGAogASgLMj0uZ29vZ2xl", + "LmNsb3VkLnNlY3VyZXNvdXJjZW1hbmFnZXIudjEuUmVwb3NpdG9yeS5Jbml0", + "aWFsQ29uZmlnQgPgQQQaQwoEVVJJcxIRCgRodG1sGAEgASgJQgPgQQMSFgoJ", + "Z2l0X2h0dHBzGAIgASgJQgPgQQMSEAoDYXBpGAMgASgJQgPgQQMaXAoNSW5p", + "dGlhbENvbmZpZxIWCg5kZWZhdWx0X2JyYW5jaBgBIAEoCRISCgpnaXRpZ25v", + "cmVzGAIgAygJEg8KB2xpY2Vuc2UYAyABKAkSDgoGcmVhZG1lGAQgASgJOnXq", + "QXIKLXNlY3VyZXNvdXJjZW1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vUmVwb3Np", + "dG9yeRJBcHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259", + "L3JlcG9zaXRvcmllcy97cmVwb3NpdG9yeX0i3wYKCkJyYW5jaFJ1bGUSEQoE", + "bmFtZRgBIAEoCUID4EEBEhAKA3VpZBgCIAEoCUID4EEDEjQKC2NyZWF0ZV90", + "aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEjQK", + "C3VwZGF0ZV90aW1lGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", + "cEID4EEDEloKC2Fubm90YXRpb25zGAUgAygLMkAuZ29vZ2xlLmNsb3VkLnNl", + "Y3VyZXNvdXJjZW1hbmFnZXIudjEuQnJhbmNoUnVsZS5Bbm5vdGF0aW9uc0Vu", + "dHJ5QgPgQQESEQoEZXRhZxgGIAEoCUID4EEBEhwKD2luY2x1ZGVfcGF0dGVy", + "bhgHIAEoCUID4EEBEhUKCGRpc2FibGVkGAggASgIQgPgQQESIQoUcmVxdWly", + "ZV9wdWxsX3JlcXVlc3QYCSABKAhCA+BBARIiChVtaW5pbXVtX3Jldmlld3Nf", + "Y291bnQYCiABKAVCA+BBARIkChdtaW5pbXVtX2FwcHJvdmFsc19jb3VudBgL", + "IAEoBUID4EEBEiYKGXJlcXVpcmVfY29tbWVudHNfcmVzb2x2ZWQYDCABKAhC", + "A+BBARIgChNhbGxvd19zdGFsZV9yZXZpZXdzGA8gASgIQgPgQQESIwoWcmVx", + "dWlyZV9saW5lYXJfaGlzdG9yeRgNIAEoCEID4EEBEloKFnJlcXVpcmVkX3N0", + "YXR1c19jaGVja3MYDiADKAsyNS5nb29nbGUuY2xvdWQuc2VjdXJlc291cmNl", + "bWFuYWdlci52MS5CcmFuY2hSdWxlLkNoZWNrQgPgQQEaHQoFQ2hlY2sSFAoH", + "Y29udGV4dBgBIAEoCUID4EECGjIKEEFubm90YXRpb25zRW50cnkSCwoDa2V5", + "GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ATqQAepBjAEKLXNlY3VyZXNvdXJj", + "ZW1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vQnJhbmNoUnVsZRJbcHJvamVjdHMv", + "e3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L3JlcG9zaXRvcmllcy97", + "cmVwb3NpdG9yeX0vYnJhbmNoUnVsZXMve2JyYW5jaF9ydWxlfSKkAQoUTGlz", + "dEluc3RhbmNlc1JlcXVlc3QSQwoGcGFyZW50GAEgASgJQjPgQQL6QS0SK3Nl", + "Y3VyZXNvdXJjZW1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vSW5zdGFuY2USEQoJ", + "cGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkSDgoGZmlsdGVy", + "GAQgASgJEhAKCG9yZGVyX2J5GAUgASgJIocBChVMaXN0SW5zdGFuY2VzUmVz", + "cG9uc2USQAoJaW5zdGFuY2VzGAEgAygLMi0uZ29vZ2xlLmNsb3VkLnNlY3Vy", + "ZXNvdXJjZW1hbmFnZXIudjEuSW5zdGFuY2USFwoPbmV4dF9wYWdlX3Rva2Vu", + "GAIgASgJEhMKC3VucmVhY2hhYmxlGAMgAygJIlcKEkdldEluc3RhbmNlUmVx", + "dWVzdBJBCgRuYW1lGAEgASgJQjPgQQL6QS0KK3NlY3VyZXNvdXJjZW1hbmFn", + "ZXIuZ29vZ2xlYXBpcy5jb20vSW5zdGFuY2Ui1QEKFUNyZWF0ZUluc3RhbmNl", + "UmVxdWVzdBJDCgZwYXJlbnQYASABKAlCM+BBAvpBLRIrc2VjdXJlc291cmNl", + "bWFuYWdlci5nb29nbGVhcGlzLmNvbS9JbnN0YW5jZRIYCgtpbnN0YW5jZV9p", + "ZBgCIAEoCUID4EECEkQKCGluc3RhbmNlGAMgASgLMi0uZ29vZ2xlLmNsb3Vk", + "LnNlY3VyZXNvdXJjZW1hbmFnZXIudjEuSW5zdGFuY2VCA+BBAhIXCgpyZXF1", + "ZXN0X2lkGAQgASgJQgPgQQEicwoVRGVsZXRlSW5zdGFuY2VSZXF1ZXN0EkEK", + "BG5hbWUYASABKAlCM+BBAvpBLQorc2VjdXJlc291cmNlbWFuYWdlci5nb29n", + "bGVhcGlzLmNvbS9JbnN0YW5jZRIXCgpyZXF1ZXN0X2lkGAIgASgJQgPgQQEi", + "gAIKEU9wZXJhdGlvbk1ldGFkYXRhEjQKC2NyZWF0ZV90aW1lGAEgASgLMhou", + "Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEjEKCGVuZF90aW1lGAIg", + "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEhMKBnRhcmdl", + "dBgDIAEoCUID4EEDEhEKBHZlcmIYBCABKAlCA+BBAxIbCg5zdGF0dXNfbWVz", + "c2FnZRgFIAEoCUID4EEDEiMKFnJlcXVlc3RlZF9jYW5jZWxsYXRpb24YBiAB", + "KAhCA+BBAxIYCgthcGlfdmVyc2lvbhgHIAEoCUID4EEDIugBChdMaXN0UmVw", + "b3NpdG9yaWVzUmVxdWVzdBJFCgZwYXJlbnQYASABKAlCNeBBAvpBLxItc2Vj", + "dXJlc291cmNlbWFuYWdlci5nb29nbGVhcGlzLmNvbS9SZXBvc2l0b3J5EhYK", + "CXBhZ2Vfc2l6ZRgCIAEoBUID4EEBEhIKCnBhZ2VfdG9rZW4YAyABKAkSEwoG", + "ZmlsdGVyGAQgASgJQgPgQQESRQoIaW5zdGFuY2UYBSABKAlCM+BBAfpBLQor", + "c2VjdXJlc291cmNlbWFuYWdlci5nb29nbGVhcGlzLmNvbS9JbnN0YW5jZSJ6", + "ChhMaXN0UmVwb3NpdG9yaWVzUmVzcG9uc2USRQoMcmVwb3NpdG9yaWVzGAEg", + "AygLMi8uZ29vZ2xlLmNsb3VkLnNlY3VyZXNvdXJjZW1hbmFnZXIudjEuUmVw", + "b3NpdG9yeRIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkiWwoUR2V0UmVwb3Np", + "dG9yeVJlcXVlc3QSQwoEbmFtZRgBIAEoCUI14EEC+kEvCi1zZWN1cmVzb3Vy", + "Y2VtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1JlcG9zaXRvcnkixgEKF0NyZWF0", + "ZVJlcG9zaXRvcnlSZXF1ZXN0EkUKBnBhcmVudBgBIAEoCUI14EEC+kEvEi1z", + "ZWN1cmVzb3VyY2VtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1JlcG9zaXRvcnkS", + "SAoKcmVwb3NpdG9yeRgCIAEoCzIvLmdvb2dsZS5jbG91ZC5zZWN1cmVzb3Vy", + "Y2VtYW5hZ2VyLnYxLlJlcG9zaXRvcnlCA+BBAhIaCg1yZXBvc2l0b3J5X2lk", + "GAMgASgJQgPgQQIiegoXRGVsZXRlUmVwb3NpdG9yeVJlcXVlc3QSQwoEbmFt", + "ZRgBIAEoCUI14EEC+kEvCi1zZWN1cmVzb3VyY2VtYW5hZ2VyLmdvb2dsZWFw", + "aXMuY29tL1JlcG9zaXRvcnkSGgoNYWxsb3dfbWlzc2luZxgCIAEoCEID4EEB", + "IlsKFEdldEJyYW5jaFJ1bGVSZXF1ZXN0EkMKBG5hbWUYASABKAlCNeBBAvpB", + "Lwotc2VjdXJlc291cmNlbWFuYWdlci5nb29nbGVhcGlzLmNvbS9CcmFuY2hS", + "dWxlIsgBChdDcmVhdGVCcmFuY2hSdWxlUmVxdWVzdBJFCgZwYXJlbnQYASAB", + "KAlCNeBBAvpBLxItc2VjdXJlc291cmNlbWFuYWdlci5nb29nbGVhcGlzLmNv", + "bS9CcmFuY2hSdWxlEkkKC2JyYW5jaF9ydWxlGAIgASgLMi8uZ29vZ2xlLmNs", + "b3VkLnNlY3VyZXNvdXJjZW1hbmFnZXIudjEuQnJhbmNoUnVsZUID4EECEhsK", + "DmJyYW5jaF9ydWxlX2lkGAMgASgJQgPgQQIikAEKFkxpc3RCcmFuY2hSdWxl", + "c1JlcXVlc3QSRQoGcGFyZW50GAEgASgJQjXgQQL6QS8SLXNlY3VyZXNvdXJj", + "ZW1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vQnJhbmNoUnVsZRIWCglwYWdlX3Np", + "emUYAiABKAVCA+BBARIXCgpwYWdlX3Rva2VuGAMgASgJQgPgQQEiegoXRGVs", + "ZXRlQnJhbmNoUnVsZVJlcXVlc3QSQwoEbmFtZRgBIAEoCUI14EEC+kEvCi1z", + "ZWN1cmVzb3VyY2VtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL0JyYW5jaFJ1bGUS", + "GgoNYWxsb3dfbWlzc2luZxgCIAEoCEID4EEBIrYBChdVcGRhdGVCcmFuY2hS", + "dWxlUmVxdWVzdBJJCgticmFuY2hfcnVsZRgBIAEoCzIvLmdvb2dsZS5jbG91", + "ZC5zZWN1cmVzb3VyY2VtYW5hZ2VyLnYxLkJyYW5jaFJ1bGVCA+BBAhIaCg12", + "YWxpZGF0ZV9vbmx5GAIgASgIQgPgQQESNAoLdXBkYXRlX21hc2sYAyABKAsy", + "Gi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQIieQoXTGlzdEJyYW5j", + "aFJ1bGVzUmVzcG9uc2USRQoMYnJhbmNoX3J1bGVzGAEgAygLMi8uZ29vZ2xl", + "LmNsb3VkLnNlY3VyZXNvdXJjZW1hbmFnZXIudjEuQnJhbmNoUnVsZRIXCg9u", + "ZXh0X3BhZ2VfdG9rZW4YAiABKAky+hsKE1NlY3VyZVNvdXJjZU1hbmFnZXIS", + "xgEKDUxpc3RJbnN0YW5jZXMSOS5nb29nbGUuY2xvdWQuc2VjdXJlc291cmNl", + "bWFuYWdlci52MS5MaXN0SW5zdGFuY2VzUmVxdWVzdBo6Lmdvb2dsZS5jbG91", + "ZC5zZWN1cmVzb3VyY2VtYW5hZ2VyLnYxLkxpc3RJbnN0YW5jZXNSZXNwb25z", + "ZSI+2kEGcGFyZW50gtPkkwIvEi0vdjEve3BhcmVudD1wcm9qZWN0cy8qL2xv", + "Y2F0aW9ucy8qfS9pbnN0YW5jZXMSswEKC0dldEluc3RhbmNlEjcuZ29vZ2xl", + "LmNsb3VkLnNlY3VyZXNvdXJjZW1hbmFnZXIudjEuR2V0SW5zdGFuY2VSZXF1", + "ZXN0Gi0uZ29vZ2xlLmNsb3VkLnNlY3VyZXNvdXJjZW1hbmFnZXIudjEuSW5z", + "dGFuY2UiPNpBBG5hbWWC0+STAi8SLS92MS97bmFtZT1wcm9qZWN0cy8qL2xv", + "Y2F0aW9ucy8qL2luc3RhbmNlcy8qfRLqAQoOQ3JlYXRlSW5zdGFuY2USOi5n", + "b29nbGUuY2xvdWQuc2VjdXJlc291cmNlbWFuYWdlci52MS5DcmVhdGVJbnN0", + "YW5jZVJlcXVlc3QaHS5nb29nbGUubG9uZ3J1bm5pbmcuT3BlcmF0aW9uIn3K", + "QR0KCEluc3RhbmNlEhFPcGVyYXRpb25NZXRhZGF0YdpBG3BhcmVudCxpbnN0", + "YW5jZSxpbnN0YW5jZV9pZILT5JMCOSItL3YxL3twYXJlbnQ9cHJvamVjdHMv", + "Ki9sb2NhdGlvbnMvKn0vaW5zdGFuY2VzOghpbnN0YW5jZRLWAQoORGVsZXRl", + "SW5zdGFuY2USOi5nb29nbGUuY2xvdWQuc2VjdXJlc291cmNlbWFuYWdlci52", + "MS5EZWxldGVJbnN0YW5jZVJlcXVlc3QaHS5nb29nbGUubG9uZ3J1bm5pbmcu", + "T3BlcmF0aW9uImnKQSoKFWdvb2dsZS5wcm90b2J1Zi5FbXB0eRIRT3BlcmF0", + "aW9uTWV0YWRhdGHaQQRuYW1lgtPkkwIvKi0vdjEve25hbWU9cHJvamVjdHMv", + "Ki9sb2NhdGlvbnMvKi9pbnN0YW5jZXMvKn0S0gEKEExpc3RSZXBvc2l0b3Jp", + "ZXMSPC5nb29nbGUuY2xvdWQuc2VjdXJlc291cmNlbWFuYWdlci52MS5MaXN0", + "UmVwb3NpdG9yaWVzUmVxdWVzdBo9Lmdvb2dsZS5jbG91ZC5zZWN1cmVzb3Vy", + "Y2VtYW5hZ2VyLnYxLkxpc3RSZXBvc2l0b3JpZXNSZXNwb25zZSJB2kEGcGFy", + "ZW50gtPkkwIyEjAvdjEve3BhcmVudD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8q", + "fS9yZXBvc2l0b3JpZXMSvAEKDUdldFJlcG9zaXRvcnkSOS5nb29nbGUuY2xv", + "dWQuc2VjdXJlc291cmNlbWFuYWdlci52MS5HZXRSZXBvc2l0b3J5UmVxdWVz", + "dBovLmdvb2dsZS5jbG91ZC5zZWN1cmVzb3VyY2VtYW5hZ2VyLnYxLlJlcG9z", + "aXRvcnkiP9pBBG5hbWWC0+STAjISMC92MS97bmFtZT1wcm9qZWN0cy8qL2xv", + "Y2F0aW9ucy8qL3JlcG9zaXRvcmllcy8qfRL6AQoQQ3JlYXRlUmVwb3NpdG9y", + "eRI8Lmdvb2dsZS5jbG91ZC5zZWN1cmVzb3VyY2VtYW5hZ2VyLnYxLkNyZWF0", + "ZVJlcG9zaXRvcnlSZXF1ZXN0Gh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJh", + "dGlvbiKIAcpBHwoKUmVwb3NpdG9yeRIRT3BlcmF0aW9uTWV0YWRhdGHaQR9w", + "YXJlbnQscmVwb3NpdG9yeSxyZXBvc2l0b3J5X2lkgtPkkwI+IjAvdjEve3Bh", + "cmVudD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qfS9yZXBvc2l0b3JpZXM6CnJl", + "cG9zaXRvcnkS3QEKEERlbGV0ZVJlcG9zaXRvcnkSPC5nb29nbGUuY2xvdWQu", + "c2VjdXJlc291cmNlbWFuYWdlci52MS5EZWxldGVSZXBvc2l0b3J5UmVxdWVz", + "dBodLmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24ibMpBKgoVZ29vZ2xl", + "LnByb3RvYnVmLkVtcHR5EhFPcGVyYXRpb25NZXRhZGF0YdpBBG5hbWWC0+ST", + "AjIqMC92MS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3JlcG9zaXRv", + "cmllcy8qfRKjAQoQR2V0SWFtUG9saWN5UmVwbxIiLmdvb2dsZS5pYW0udjEu", + "R2V0SWFtUG9saWN5UmVxdWVzdBoVLmdvb2dsZS5pYW0udjEuUG9saWN5IlTa", + "QQhyZXNvdXJjZYLT5JMCQxJBL3YxL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xv", + "Y2F0aW9ucy8qL3JlcG9zaXRvcmllcy8qfTpnZXRJYW1Qb2xpY3kSpgEKEFNl", + "dElhbVBvbGljeVJlcG8SIi5nb29nbGUuaWFtLnYxLlNldElhbVBvbGljeVJl", + "cXVlc3QaFS5nb29nbGUuaWFtLnYxLlBvbGljeSJX2kEIcmVzb3VyY2WC0+ST", + "AkYiQS92MS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9yZXBv", + "c2l0b3JpZXMvKn06c2V0SWFtUG9saWN5OgEqEswBChZUZXN0SWFtUGVybWlz", + "c2lvbnNSZXBvEiguZ29vZ2xlLmlhbS52MS5UZXN0SWFtUGVybWlzc2lvbnNS", + "ZXF1ZXN0GikuZ29vZ2xlLmlhbS52MS5UZXN0SWFtUGVybWlzc2lvbnNSZXNw", + "b25zZSJd2kEIcmVzb3VyY2WC0+STAkwiRy92MS97cmVzb3VyY2U9cHJvamVj", + "dHMvKi9sb2NhdGlvbnMvKi9yZXBvc2l0b3JpZXMvKn06dGVzdElhbVBlcm1p", + "c3Npb25zOgEqEosCChBDcmVhdGVCcmFuY2hSdWxlEjwuZ29vZ2xlLmNsb3Vk", + "LnNlY3VyZXNvdXJjZW1hbmFnZXIudjEuQ3JlYXRlQnJhbmNoUnVsZVJlcXVl", + "c3QaHS5nb29nbGUubG9uZ3J1bm5pbmcuT3BlcmF0aW9uIpkBykEfCgpCcmFu", + "Y2hSdWxlEhFPcGVyYXRpb25NZXRhZGF0YdpBIXBhcmVudCxicmFuY2hfcnVs", + "ZSxicmFuY2hfcnVsZV9pZILT5JMCTSI+L3YxL3twYXJlbnQ9cHJvamVjdHMv", + "Ki9sb2NhdGlvbnMvKi9yZXBvc2l0b3JpZXMvKn0vYnJhbmNoUnVsZXM6C2Jy", + "YW5jaF9ydWxlEt0BCg9MaXN0QnJhbmNoUnVsZXMSOy5nb29nbGUuY2xvdWQu", + "c2VjdXJlc291cmNlbWFuYWdlci52MS5MaXN0QnJhbmNoUnVsZXNSZXF1ZXN0", + "GjwuZ29vZ2xlLmNsb3VkLnNlY3VyZXNvdXJjZW1hbmFnZXIudjEuTGlzdEJy", + "YW5jaFJ1bGVzUmVzcG9uc2UiT9pBBnBhcmVudILT5JMCQBI+L3YxL3twYXJl", + "bnQ9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9yZXBvc2l0b3JpZXMvKn0vYnJh", + "bmNoUnVsZXMSygEKDUdldEJyYW5jaFJ1bGUSOS5nb29nbGUuY2xvdWQuc2Vj", + "dXJlc291cmNlbWFuYWdlci52MS5HZXRCcmFuY2hSdWxlUmVxdWVzdBovLmdv", + "b2dsZS5jbG91ZC5zZWN1cmVzb3VyY2VtYW5hZ2VyLnYxLkJyYW5jaFJ1bGUi", + "TdpBBG5hbWWC0+STAkASPi92MS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9u", + "cy8qL3JlcG9zaXRvcmllcy8qL2JyYW5jaFJ1bGVzLyp9Eo0CChBVcGRhdGVC", + "cmFuY2hSdWxlEjwuZ29vZ2xlLmNsb3VkLnNlY3VyZXNvdXJjZW1hbmFnZXIu", + "djEuVXBkYXRlQnJhbmNoUnVsZVJlcXVlc3QaHS5nb29nbGUubG9uZ3J1bm5p", + "bmcuT3BlcmF0aW9uIpsBykEfCgpCcmFuY2hSdWxlEhFPcGVyYXRpb25NZXRh", + "ZGF0YdpBF2JyYW5jaF9ydWxlLHVwZGF0ZV9tYXNrgtPkkwJZMkovdjEve2Jy", + "YW5jaF9ydWxlLm5hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9yZXBvc2l0", + "b3JpZXMvKi9icmFuY2hSdWxlcy8qfToLYnJhbmNoX3J1bGUS6wEKEERlbGV0", + "ZUJyYW5jaFJ1bGUSPC5nb29nbGUuY2xvdWQuc2VjdXJlc291cmNlbWFuYWdl", + "ci52MS5EZWxldGVCcmFuY2hSdWxlUmVxdWVzdBodLmdvb2dsZS5sb25ncnVu", + "bmluZy5PcGVyYXRpb24iespBKgoVZ29vZ2xlLnByb3RvYnVmLkVtcHR5EhFP", + "cGVyYXRpb25NZXRhZGF0YdpBBG5hbWWC0+STAkAqPi92MS97bmFtZT1wcm9q", + "ZWN0cy8qL2xvY2F0aW9ucy8qL3JlcG9zaXRvcmllcy8qL2JyYW5jaFJ1bGVz", + "Lyp9GlbKQSJzZWN1cmVzb3VyY2VtYW5hZ2VyLmdvb2dsZWFwaXMuY29t0kEu", + "aHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9jbG91ZC1wbGF0Zm9y", + "bULpBAonY29tLmdvb2dsZS5jbG91ZC5zZWN1cmVzb3VyY2VtYW5hZ2VyLnYx", + "QhhTZWN1cmVTb3VyY2VNYW5hZ2VyUHJvdG9QAVpZY2xvdWQuZ29vZ2xlLmNv", + "bS9nby9zZWN1cmVzb3VyY2VtYW5hZ2VyL2FwaXYxL3NlY3VyZXNvdXJjZW1h", + "bmFnZXJwYjtzZWN1cmVzb3VyY2VtYW5hZ2VycGKqAiNHb29nbGUuQ2xvdWQu", + "U2VjdXJlU291cmNlTWFuYWdlci5WMcoCI0dvb2dsZVxDbG91ZFxTZWN1cmVT", + "b3VyY2VNYW5hZ2VyXFYx6gImR29vZ2xlOjpDbG91ZDo6U2VjdXJlU291cmNl", + "TWFuYWdlcjo6VjHqQXgKIWNsb3Vka21zLmdvb2dsZWFwaXMuY29tL0NyeXB0", + "b0tleRJTcHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259", + "L2tleVJpbmdzL3trZXlfcmluZ30vY3J5cHRvS2V5cy97Y3J5cHRvX2tleX3q", + "QVwKH3ByaXZhdGVjYS5nb29nbGVhcGlzLmNvbS9DYVBvb2wSOXByb2plY3Rz", + "L3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9jYVBvb2xzL3tjYV9w", + "b29sfepBdwooY29tcHV0ZS5nb29nbGVhcGlzLmNvbS9TZXJ2aWNlQXR0YWNo", + "bWVudBJLcHJvamVjdHMve3Byb2plY3R9L3JlZ2lvbnMve3JlZ2lvbn0vc2Vy", + "dmljZUF0dGFjaG1lbnRzL3tzZXJ2aWNlX2F0dGFjaG1lbnR9YgZwcm90bzM=")); + 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.Iam.V1.IamPolicyReflection.Descriptor, global::Google.Cloud.Iam.V1.PolicyReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.Instance), global::Google.Cloud.SecureSourceManager.V1.Instance.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "Labels", "PrivateConfig", "State", "StateNote", "KmsKey", "HostConfig" }, null, new[]{ typeof(global::Google.Cloud.SecureSourceManager.V1.Instance.Types.State), typeof(global::Google.Cloud.SecureSourceManager.V1.Instance.Types.StateNote) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.Instance.Types.HostConfig), global::Google.Cloud.SecureSourceManager.V1.Instance.Types.HostConfig.Parser, new[]{ "Html", "Api", "GitHttp", "GitSsh" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.Instance.Types.PrivateConfig), global::Google.Cloud.SecureSourceManager.V1.Instance.Types.PrivateConfig.Parser, new[]{ "IsPrivate", "CaPool", "HttpServiceAttachment", "SshServiceAttachment", "PscAllowedProjects" }, null, null, null, null), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.Repository), global::Google.Cloud.SecureSourceManager.V1.Repository.Parser, new[]{ "Name", "Description", "Instance", "Uid", "CreateTime", "UpdateTime", "Etag", "Uris", "InitialConfig" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.Repository.Types.URIs), global::Google.Cloud.SecureSourceManager.V1.Repository.Types.URIs.Parser, new[]{ "Html", "GitHttps", "Api" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.Repository.Types.InitialConfig), global::Google.Cloud.SecureSourceManager.V1.Repository.Types.InitialConfig.Parser, new[]{ "DefaultBranch", "Gitignores", "License", "Readme" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.BranchRule), global::Google.Cloud.SecureSourceManager.V1.BranchRule.Parser, new[]{ "Name", "Uid", "CreateTime", "UpdateTime", "Annotations", "Etag", "IncludePattern", "Disabled", "RequirePullRequest", "MinimumReviewsCount", "MinimumApprovalsCount", "RequireCommentsResolved", "AllowStaleReviews", "RequireLinearHistory", "RequiredStatusChecks" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.BranchRule.Types.Check), global::Google.Cloud.SecureSourceManager.V1.BranchRule.Types.Check.Parser, new[]{ "Context" }, null, null, null, null), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.ListInstancesRequest), global::Google.Cloud.SecureSourceManager.V1.ListInstancesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "OrderBy" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.ListInstancesResponse), global::Google.Cloud.SecureSourceManager.V1.ListInstancesResponse.Parser, new[]{ "Instances", "NextPageToken", "Unreachable" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.GetInstanceRequest), global::Google.Cloud.SecureSourceManager.V1.GetInstanceRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.CreateInstanceRequest), global::Google.Cloud.SecureSourceManager.V1.CreateInstanceRequest.Parser, new[]{ "Parent", "InstanceId", "Instance", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.DeleteInstanceRequest), global::Google.Cloud.SecureSourceManager.V1.DeleteInstanceRequest.Parser, new[]{ "Name", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.OperationMetadata), global::Google.Cloud.SecureSourceManager.V1.OperationMetadata.Parser, new[]{ "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.ListRepositoriesRequest), global::Google.Cloud.SecureSourceManager.V1.ListRepositoriesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "Instance" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.ListRepositoriesResponse), global::Google.Cloud.SecureSourceManager.V1.ListRepositoriesResponse.Parser, new[]{ "Repositories", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.GetRepositoryRequest), global::Google.Cloud.SecureSourceManager.V1.GetRepositoryRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.CreateRepositoryRequest), global::Google.Cloud.SecureSourceManager.V1.CreateRepositoryRequest.Parser, new[]{ "Parent", "Repository", "RepositoryId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.DeleteRepositoryRequest), global::Google.Cloud.SecureSourceManager.V1.DeleteRepositoryRequest.Parser, new[]{ "Name", "AllowMissing" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.GetBranchRuleRequest), global::Google.Cloud.SecureSourceManager.V1.GetBranchRuleRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.CreateBranchRuleRequest), global::Google.Cloud.SecureSourceManager.V1.CreateBranchRuleRequest.Parser, new[]{ "Parent", "BranchRule", "BranchRuleId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.ListBranchRulesRequest), global::Google.Cloud.SecureSourceManager.V1.ListBranchRulesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.DeleteBranchRuleRequest), global::Google.Cloud.SecureSourceManager.V1.DeleteBranchRuleRequest.Parser, new[]{ "Name", "AllowMissing" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.UpdateBranchRuleRequest), global::Google.Cloud.SecureSourceManager.V1.UpdateBranchRuleRequest.Parser, new[]{ "BranchRule", "ValidateOnly", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecureSourceManager.V1.ListBranchRulesResponse), global::Google.Cloud.SecureSourceManager.V1.ListBranchRulesResponse.Parser, new[]{ "BranchRules", "NextPageToken" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A resource that represents a Secure Source Manager instance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Instance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Instance()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 Instance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Instance(Instance other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + privateConfig_ = other.privateConfig_ != null ? other.privateConfig_.Clone() : null; + state_ = other.state_; + stateNote_ = other.stateNote_; + kmsKey_ = other.kmsKey_; + hostConfig_ = other.hostConfig_ != null ? other.hostConfig_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Instance Clone() { + return new Instance(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Optional. A unique identifier for an instance. The name should be of the + /// format: + /// `projects/{project_number}/locations/{location_id}/instances/{instance_id}` + /// + /// `project_number`: Maps to a unique int64 id assigned to each project. + /// + /// `location_id`: Refers to the region where the instance will be deployed. + /// Since Secure Source Manager is a regional service, it must be one of the + /// valid GCP regions. + /// + /// `instance_id`: User provided name for the instance, must be unique for a + /// project_number and location_id combination. + /// + [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. Create timestamp. + /// + [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 "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = 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(); + /// + /// Optional. Labels as key value pairs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "private_config" field. + public const int PrivateConfigFieldNumber = 13; + private global::Google.Cloud.SecureSourceManager.V1.Instance.Types.PrivateConfig privateConfig_; + /// + /// Optional. Private settings for private instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecureSourceManager.V1.Instance.Types.PrivateConfig PrivateConfig { + get { return privateConfig_; } + set { + privateConfig_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 5; + private global::Google.Cloud.SecureSourceManager.V1.Instance.Types.State state_ = global::Google.Cloud.SecureSourceManager.V1.Instance.Types.State.Unspecified; + /// + /// Output only. Current state of the instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecureSourceManager.V1.Instance.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "state_note" field. + public const int StateNoteFieldNumber = 10; + private global::Google.Cloud.SecureSourceManager.V1.Instance.Types.StateNote stateNote_ = global::Google.Cloud.SecureSourceManager.V1.Instance.Types.StateNote.Unspecified; + /// + /// Output only. An optional field providing information about the current + /// instance state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecureSourceManager.V1.Instance.Types.StateNote StateNote { + get { return stateNote_; } + set { + stateNote_ = value; + } + } + + /// Field number for the "kms_key" field. + public const int KmsKeyFieldNumber = 11; + private string kmsKey_ = ""; + /// + /// Optional. Immutable. Customer-managed encryption key name, in the format + /// projects/*/locations/*/keyRings/*/cryptoKeys/*. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KmsKey { + get { return kmsKey_; } + set { + kmsKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "host_config" field. + public const int HostConfigFieldNumber = 9; + private global::Google.Cloud.SecureSourceManager.V1.Instance.Types.HostConfig hostConfig_; + /// + /// Output only. A list of hostnames for this instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecureSourceManager.V1.Instance.Types.HostConfig HostConfig { + get { return hostConfig_; } + set { + hostConfig_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Instance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Instance 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(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (!object.Equals(PrivateConfig, other.PrivateConfig)) return false; + if (State != other.State) return false; + if (StateNote != other.StateNote) return false; + if (KmsKey != other.KmsKey) return false; + if (!object.Equals(HostConfig, other.HostConfig)) 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 (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (privateConfig_ != null) hash ^= PrivateConfig.GetHashCode(); + if (State != global::Google.Cloud.SecureSourceManager.V1.Instance.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (StateNote != global::Google.Cloud.SecureSourceManager.V1.Instance.Types.StateNote.Unspecified) hash ^= StateNote.GetHashCode(); + if (KmsKey.Length != 0) hash ^= KmsKey.GetHashCode(); + if (hostConfig_ != null) hash ^= HostConfig.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 (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (State != global::Google.Cloud.SecureSourceManager.V1.Instance.Types.State.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) State); + } + if (hostConfig_ != null) { + output.WriteRawTag(74); + output.WriteMessage(HostConfig); + } + if (StateNote != global::Google.Cloud.SecureSourceManager.V1.Instance.Types.StateNote.Unspecified) { + output.WriteRawTag(80); + output.WriteEnum((int) StateNote); + } + if (KmsKey.Length != 0) { + output.WriteRawTag(90); + output.WriteString(KmsKey); + } + if (privateConfig_ != null) { + output.WriteRawTag(106); + output.WriteMessage(PrivateConfig); + } + 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 (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (State != global::Google.Cloud.SecureSourceManager.V1.Instance.Types.State.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) State); + } + if (hostConfig_ != null) { + output.WriteRawTag(74); + output.WriteMessage(HostConfig); + } + if (StateNote != global::Google.Cloud.SecureSourceManager.V1.Instance.Types.StateNote.Unspecified) { + output.WriteRawTag(80); + output.WriteEnum((int) StateNote); + } + if (KmsKey.Length != 0) { + output.WriteRawTag(90); + output.WriteString(KmsKey); + } + if (privateConfig_ != null) { + output.WriteRawTag(106); + output.WriteMessage(PrivateConfig); + } + 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 (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (privateConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PrivateConfig); + } + if (State != global::Google.Cloud.SecureSourceManager.V1.Instance.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (StateNote != global::Google.Cloud.SecureSourceManager.V1.Instance.Types.StateNote.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StateNote); + } + if (KmsKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KmsKey); + } + if (hostConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HostConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Instance 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.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + if (other.privateConfig_ != null) { + if (privateConfig_ == null) { + PrivateConfig = new global::Google.Cloud.SecureSourceManager.V1.Instance.Types.PrivateConfig(); + } + PrivateConfig.MergeFrom(other.PrivateConfig); + } + if (other.State != global::Google.Cloud.SecureSourceManager.V1.Instance.Types.State.Unspecified) { + State = other.State; + } + if (other.StateNote != global::Google.Cloud.SecureSourceManager.V1.Instance.Types.StateNote.Unspecified) { + StateNote = other.StateNote; + } + if (other.KmsKey.Length != 0) { + KmsKey = other.KmsKey; + } + if (other.hostConfig_ != null) { + if (hostConfig_ == null) { + HostConfig = new global::Google.Cloud.SecureSourceManager.V1.Instance.Types.HostConfig(); + } + HostConfig.MergeFrom(other.HostConfig); + } + _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 (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 40: { + State = (global::Google.Cloud.SecureSourceManager.V1.Instance.Types.State) input.ReadEnum(); + break; + } + case 74: { + if (hostConfig_ == null) { + HostConfig = new global::Google.Cloud.SecureSourceManager.V1.Instance.Types.HostConfig(); + } + input.ReadMessage(HostConfig); + break; + } + case 80: { + StateNote = (global::Google.Cloud.SecureSourceManager.V1.Instance.Types.StateNote) input.ReadEnum(); + break; + } + case 90: { + KmsKey = input.ReadString(); + break; + } + case 106: { + if (privateConfig_ == null) { + PrivateConfig = new global::Google.Cloud.SecureSourceManager.V1.Instance.Types.PrivateConfig(); + } + input.ReadMessage(PrivateConfig); + 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 (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 40: { + State = (global::Google.Cloud.SecureSourceManager.V1.Instance.Types.State) input.ReadEnum(); + break; + } + case 74: { + if (hostConfig_ == null) { + HostConfig = new global::Google.Cloud.SecureSourceManager.V1.Instance.Types.HostConfig(); + } + input.ReadMessage(HostConfig); + break; + } + case 80: { + StateNote = (global::Google.Cloud.SecureSourceManager.V1.Instance.Types.StateNote) input.ReadEnum(); + break; + } + case 90: { + KmsKey = input.ReadString(); + break; + } + case 106: { + if (privateConfig_ == null) { + PrivateConfig = new global::Google.Cloud.SecureSourceManager.V1.Instance.Types.PrivateConfig(); + } + input.ReadMessage(PrivateConfig); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Instance message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Secure Source Manager instance state. + /// + public enum State { + /// + /// Not set. This should only be the case for incoming requests. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// Instance is being created. + /// + [pbr::OriginalName("CREATING")] Creating = 1, + /// + /// Instance is ready. + /// + [pbr::OriginalName("ACTIVE")] Active = 2, + /// + /// Instance is being deleted. + /// + [pbr::OriginalName("DELETING")] Deleting = 3, + /// + /// Instance is paused. + /// + [pbr::OriginalName("PAUSED")] Paused = 4, + /// + /// Instance is unknown, we are not sure if it's functioning. + /// + [pbr::OriginalName("UNKNOWN")] Unknown = 6, + } + + /// + /// Provides information about the current instance state. + /// + public enum StateNote { + /// + /// STATE_NOTE_UNSPECIFIED as the first value of State. + /// + [pbr::OriginalName("STATE_NOTE_UNSPECIFIED")] Unspecified = 0, + /// + /// CMEK access is unavailable. + /// + [pbr::OriginalName("PAUSED_CMEK_UNAVAILABLE")] PausedCmekUnavailable = 1, + /// + /// INSTANCE_RESUMING indicates that the instance was previously paused + /// and is under the process of being brought back. + /// + [global::System.ObsoleteAttribute] + [pbr::OriginalName("INSTANCE_RESUMING")] InstanceResuming = 2, + } + + /// + /// HostConfig has different instance endpoints. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HostConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HostConfig()); + 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.SecureSourceManager.V1.Instance.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 HostConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HostConfig(HostConfig other) : this() { + html_ = other.html_; + api_ = other.api_; + gitHttp_ = other.gitHttp_; + gitSsh_ = other.gitSsh_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HostConfig Clone() { + return new HostConfig(this); + } + + /// Field number for the "html" field. + public const int HtmlFieldNumber = 1; + private string html_ = ""; + /// + /// Output only. HTML hostname. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Html { + get { return html_; } + set { + html_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "api" field. + public const int ApiFieldNumber = 2; + private string api_ = ""; + /// + /// Output only. API hostname. This is the hostname to use for **Host: Data + /// Plane** endpoints. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Api { + get { return api_; } + set { + api_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "git_http" field. + public const int GitHttpFieldNumber = 3; + private string gitHttp_ = ""; + /// + /// Output only. Git HTTP hostname. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GitHttp { + get { return gitHttp_; } + set { + gitHttp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "git_ssh" field. + public const int GitSshFieldNumber = 4; + private string gitSsh_ = ""; + /// + /// Output only. Git SSH hostname. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GitSsh { + get { return gitSsh_; } + set { + gitSsh_ = 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 HostConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HostConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Html != other.Html) return false; + if (Api != other.Api) return false; + if (GitHttp != other.GitHttp) return false; + if (GitSsh != other.GitSsh) 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 (Html.Length != 0) hash ^= Html.GetHashCode(); + if (Api.Length != 0) hash ^= Api.GetHashCode(); + if (GitHttp.Length != 0) hash ^= GitHttp.GetHashCode(); + if (GitSsh.Length != 0) hash ^= GitSsh.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 (Html.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Html); + } + if (Api.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Api); + } + if (GitHttp.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GitHttp); + } + if (GitSsh.Length != 0) { + output.WriteRawTag(34); + output.WriteString(GitSsh); + } + 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 (Html.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Html); + } + if (Api.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Api); + } + if (GitHttp.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GitHttp); + } + if (GitSsh.Length != 0) { + output.WriteRawTag(34); + output.WriteString(GitSsh); + } + 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 (Html.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Html); + } + if (Api.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Api); + } + if (GitHttp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GitHttp); + } + if (GitSsh.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GitSsh); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HostConfig other) { + if (other == null) { + return; + } + if (other.Html.Length != 0) { + Html = other.Html; + } + if (other.Api.Length != 0) { + Api = other.Api; + } + if (other.GitHttp.Length != 0) { + GitHttp = other.GitHttp; + } + if (other.GitSsh.Length != 0) { + GitSsh = other.GitSsh; + } + _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: { + Html = input.ReadString(); + break; + } + case 18: { + Api = input.ReadString(); + break; + } + case 26: { + GitHttp = input.ReadString(); + break; + } + case 34: { + GitSsh = 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: { + Html = input.ReadString(); + break; + } + case 18: { + Api = input.ReadString(); + break; + } + case 26: { + GitHttp = input.ReadString(); + break; + } + case 34: { + GitSsh = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// PrivateConfig includes settings for private instance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PrivateConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PrivateConfig()); + 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.SecureSourceManager.V1.Instance.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 PrivateConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PrivateConfig(PrivateConfig other) : this() { + isPrivate_ = other.isPrivate_; + caPool_ = other.caPool_; + httpServiceAttachment_ = other.httpServiceAttachment_; + sshServiceAttachment_ = other.sshServiceAttachment_; + pscAllowedProjects_ = other.pscAllowedProjects_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PrivateConfig Clone() { + return new PrivateConfig(this); + } + + /// Field number for the "is_private" field. + public const int IsPrivateFieldNumber = 1; + private bool isPrivate_; + /// + /// Required. Immutable. Indicate if it's private instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsPrivate { + get { return isPrivate_; } + set { + isPrivate_ = value; + } + } + + /// Field number for the "ca_pool" field. + public const int CaPoolFieldNumber = 2; + private string caPool_ = ""; + /// + /// Required. Immutable. CA pool resource, resource must in the format of + /// `projects/{project}/locations/{location}/caPools/{ca_pool}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CaPool { + get { return caPool_; } + set { + caPool_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "http_service_attachment" field. + public const int HttpServiceAttachmentFieldNumber = 3; + private string httpServiceAttachment_ = ""; + /// + /// Output only. Service Attachment for HTTP, resource is in the format of + /// `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HttpServiceAttachment { + get { return httpServiceAttachment_; } + set { + httpServiceAttachment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ssh_service_attachment" field. + public const int SshServiceAttachmentFieldNumber = 4; + private string sshServiceAttachment_ = ""; + /// + /// Output only. Service Attachment for SSH, resource is in the format of + /// `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SshServiceAttachment { + get { return sshServiceAttachment_; } + set { + sshServiceAttachment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "psc_allowed_projects" field. + public const int PscAllowedProjectsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_pscAllowedProjects_codec + = pb::FieldCodec.ForString(50); + private readonly pbc::RepeatedField pscAllowedProjects_ = new pbc::RepeatedField(); + /// + /// Optional. Additional allowed projects for setting up PSC connections. + /// Instance host project is automatically allowed and does not need to be + /// included in this list. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PscAllowedProjects { + get { return pscAllowedProjects_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PrivateConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PrivateConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsPrivate != other.IsPrivate) return false; + if (CaPool != other.CaPool) return false; + if (HttpServiceAttachment != other.HttpServiceAttachment) return false; + if (SshServiceAttachment != other.SshServiceAttachment) return false; + if(!pscAllowedProjects_.Equals(other.pscAllowedProjects_)) 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 (IsPrivate != false) hash ^= IsPrivate.GetHashCode(); + if (CaPool.Length != 0) hash ^= CaPool.GetHashCode(); + if (HttpServiceAttachment.Length != 0) hash ^= HttpServiceAttachment.GetHashCode(); + if (SshServiceAttachment.Length != 0) hash ^= SshServiceAttachment.GetHashCode(); + hash ^= pscAllowedProjects_.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 (IsPrivate != false) { + output.WriteRawTag(8); + output.WriteBool(IsPrivate); + } + if (CaPool.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CaPool); + } + if (HttpServiceAttachment.Length != 0) { + output.WriteRawTag(26); + output.WriteString(HttpServiceAttachment); + } + if (SshServiceAttachment.Length != 0) { + output.WriteRawTag(34); + output.WriteString(SshServiceAttachment); + } + pscAllowedProjects_.WriteTo(output, _repeated_pscAllowedProjects_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) { + if (IsPrivate != false) { + output.WriteRawTag(8); + output.WriteBool(IsPrivate); + } + if (CaPool.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CaPool); + } + if (HttpServiceAttachment.Length != 0) { + output.WriteRawTag(26); + output.WriteString(HttpServiceAttachment); + } + if (SshServiceAttachment.Length != 0) { + output.WriteRawTag(34); + output.WriteString(SshServiceAttachment); + } + pscAllowedProjects_.WriteTo(ref output, _repeated_pscAllowedProjects_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; + if (IsPrivate != false) { + size += 1 + 1; + } + if (CaPool.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CaPool); + } + if (HttpServiceAttachment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HttpServiceAttachment); + } + if (SshServiceAttachment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SshServiceAttachment); + } + size += pscAllowedProjects_.CalculateSize(_repeated_pscAllowedProjects_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PrivateConfig other) { + if (other == null) { + return; + } + if (other.IsPrivate != false) { + IsPrivate = other.IsPrivate; + } + if (other.CaPool.Length != 0) { + CaPool = other.CaPool; + } + if (other.HttpServiceAttachment.Length != 0) { + HttpServiceAttachment = other.HttpServiceAttachment; + } + if (other.SshServiceAttachment.Length != 0) { + SshServiceAttachment = other.SshServiceAttachment; + } + pscAllowedProjects_.Add(other.pscAllowedProjects_); + _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 8: { + IsPrivate = input.ReadBool(); + break; + } + case 18: { + CaPool = input.ReadString(); + break; + } + case 26: { + HttpServiceAttachment = input.ReadString(); + break; + } + case 34: { + SshServiceAttachment = input.ReadString(); + break; + } + case 50: { + pscAllowedProjects_.AddEntriesFrom(input, _repeated_pscAllowedProjects_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 8: { + IsPrivate = input.ReadBool(); + break; + } + case 18: { + CaPool = input.ReadString(); + break; + } + case 26: { + HttpServiceAttachment = input.ReadString(); + break; + } + case 34: { + SshServiceAttachment = input.ReadString(); + break; + } + case 50: { + pscAllowedProjects_.AddEntriesFrom(ref input, _repeated_pscAllowedProjects_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Metadata of a Secure Source Manager repository. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Repository : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Repository()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 Repository() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Repository(Repository other) : this() { + name_ = other.name_; + description_ = other.description_; + instance_ = other.instance_; + uid_ = other.uid_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + etag_ = other.etag_; + uris_ = other.uris_ != null ? other.uris_.Clone() : null; + initialConfig_ = other.initialConfig_ != null ? other.initialConfig_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Repository Clone() { + return new Repository(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Optional. A unique identifier for a repository. The name should be of the + /// format: + /// `projects/{project}/locations/{location_id}/repositories/{repository_id}` + /// + [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 "description" field. + public const int DescriptionFieldNumber = 2; + private string description_ = ""; + /// + /// Optional. Description of the repository, which cannot exceed 500 + /// characters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "instance" field. + public const int InstanceFieldNumber = 3; + private string instance_ = ""; + /// + /// Optional. The name of the instance in which the repository is hosted, + /// formatted as + /// `projects/{project_number}/locations/{location_id}/instances/{instance_id}` + /// When creating repository via + /// securesourcemanager.googleapis.com (Control Plane API), this field is used + /// as input. When creating repository via *.sourcemanager.dev (Data Plane + /// API), this field is output only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Instance { + get { return instance_; } + set { + instance_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 4; + private string uid_ = ""; + /// + /// Output only. Unique identifier of the repository. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uid { + get { return uid_; } + set { + uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Create timestamp. + /// + [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 "update_time" field. + public const int UpdateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 8; + private string etag_ = ""; + /// + /// Optional. This checksum is computed by the server based on the value of + /// other fields, and may be sent on update and delete requests to ensure the + /// client has an up-to-date value before proceeding. + /// + [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 "uris" field. + public const int UrisFieldNumber = 9; + private global::Google.Cloud.SecureSourceManager.V1.Repository.Types.URIs uris_; + /// + /// Output only. URIs for the repository. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecureSourceManager.V1.Repository.Types.URIs Uris { + get { return uris_; } + set { + uris_ = value; + } + } + + /// Field number for the "initial_config" field. + public const int InitialConfigFieldNumber = 10; + private global::Google.Cloud.SecureSourceManager.V1.Repository.Types.InitialConfig initialConfig_; + /// + /// Input only. Initial configurations for the repository. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecureSourceManager.V1.Repository.Types.InitialConfig InitialConfig { + get { return initialConfig_; } + set { + initialConfig_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Repository); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Repository other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (Instance != other.Instance) return false; + if (Uid != other.Uid) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (Etag != other.Etag) return false; + if (!object.Equals(Uris, other.Uris)) return false; + if (!object.Equals(InitialConfig, other.InitialConfig)) 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 (Description.Length != 0) hash ^= Description.GetHashCode(); + if (Instance.Length != 0) hash ^= Instance.GetHashCode(); + if (Uid.Length != 0) hash ^= Uid.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (uris_ != null) hash ^= Uris.GetHashCode(); + if (initialConfig_ != null) hash ^= InitialConfig.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 (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (Instance.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Instance); + } + if (Uid.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Uid); + } + if (createTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateTime); + } + if (Etag.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Etag); + } + if (uris_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Uris); + } + if (initialConfig_ != null) { + output.WriteRawTag(82); + output.WriteMessage(InitialConfig); + } + 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 (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (Instance.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Instance); + } + if (Uid.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Uid); + } + if (createTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateTime); + } + if (Etag.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Etag); + } + if (uris_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Uris); + } + if (initialConfig_ != null) { + output.WriteRawTag(82); + output.WriteMessage(InitialConfig); + } + 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 (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (Instance.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Instance); + } + if (Uid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (uris_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Uris); + } + if (initialConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InitialConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Repository other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.Instance.Length != 0) { + Instance = other.Instance; + } + if (other.Uid.Length != 0) { + Uid = other.Uid; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + if (other.uris_ != null) { + if (uris_ == null) { + Uris = new global::Google.Cloud.SecureSourceManager.V1.Repository.Types.URIs(); + } + Uris.MergeFrom(other.Uris); + } + if (other.initialConfig_ != null) { + if (initialConfig_ == null) { + InitialConfig = new global::Google.Cloud.SecureSourceManager.V1.Repository.Types.InitialConfig(); + } + InitialConfig.MergeFrom(other.InitialConfig); + } + _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: { + Description = input.ReadString(); + break; + } + case 26: { + Instance = input.ReadString(); + break; + } + case 34: { + Uid = input.ReadString(); + break; + } + case 42: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 50: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 66: { + Etag = input.ReadString(); + break; + } + case 74: { + if (uris_ == null) { + Uris = new global::Google.Cloud.SecureSourceManager.V1.Repository.Types.URIs(); + } + input.ReadMessage(Uris); + break; + } + case 82: { + if (initialConfig_ == null) { + InitialConfig = new global::Google.Cloud.SecureSourceManager.V1.Repository.Types.InitialConfig(); + } + input.ReadMessage(InitialConfig); + 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: { + Description = input.ReadString(); + break; + } + case 26: { + Instance = input.ReadString(); + break; + } + case 34: { + Uid = input.ReadString(); + break; + } + case 42: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 50: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 66: { + Etag = input.ReadString(); + break; + } + case 74: { + if (uris_ == null) { + Uris = new global::Google.Cloud.SecureSourceManager.V1.Repository.Types.URIs(); + } + input.ReadMessage(Uris); + break; + } + case 82: { + if (initialConfig_ == null) { + InitialConfig = new global::Google.Cloud.SecureSourceManager.V1.Repository.Types.InitialConfig(); + } + input.ReadMessage(InitialConfig); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Repository message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// URIs for the repository. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class URIs : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new URIs()); + 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.SecureSourceManager.V1.Repository.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 URIs() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public URIs(URIs other) : this() { + html_ = other.html_; + gitHttps_ = other.gitHttps_; + api_ = other.api_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public URIs Clone() { + return new URIs(this); + } + + /// Field number for the "html" field. + public const int HtmlFieldNumber = 1; + private string html_ = ""; + /// + /// Output only. HTML is the URI for user to view the repository in a + /// browser. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Html { + get { return html_; } + set { + html_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "git_https" field. + public const int GitHttpsFieldNumber = 2; + private string gitHttps_ = ""; + /// + /// Output only. git_https is the git HTTPS URI for git operations. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GitHttps { + get { return gitHttps_; } + set { + gitHttps_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "api" field. + public const int ApiFieldNumber = 3; + private string api_ = ""; + /// + /// Output only. API is the URI for API access. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Api { + get { return api_; } + set { + api_ = 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 URIs); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(URIs other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Html != other.Html) return false; + if (GitHttps != other.GitHttps) return false; + if (Api != other.Api) 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 (Html.Length != 0) hash ^= Html.GetHashCode(); + if (GitHttps.Length != 0) hash ^= GitHttps.GetHashCode(); + if (Api.Length != 0) hash ^= Api.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 (Html.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Html); + } + if (GitHttps.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GitHttps); + } + if (Api.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Api); + } + 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 (Html.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Html); + } + if (GitHttps.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GitHttps); + } + if (Api.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Api); + } + 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 (Html.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Html); + } + if (GitHttps.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GitHttps); + } + if (Api.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Api); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(URIs other) { + if (other == null) { + return; + } + if (other.Html.Length != 0) { + Html = other.Html; + } + if (other.GitHttps.Length != 0) { + GitHttps = other.GitHttps; + } + if (other.Api.Length != 0) { + Api = other.Api; + } + _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: { + Html = input.ReadString(); + break; + } + case 18: { + GitHttps = input.ReadString(); + break; + } + case 26: { + Api = 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: { + Html = input.ReadString(); + break; + } + case 18: { + GitHttps = input.ReadString(); + break; + } + case 26: { + Api = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Repository initialization configuration. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InitialConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitialConfig()); + 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.SecureSourceManager.V1.Repository.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 InitialConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InitialConfig(InitialConfig other) : this() { + defaultBranch_ = other.defaultBranch_; + gitignores_ = other.gitignores_.Clone(); + license_ = other.license_; + readme_ = other.readme_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InitialConfig Clone() { + return new InitialConfig(this); + } + + /// Field number for the "default_branch" field. + public const int DefaultBranchFieldNumber = 1; + private string defaultBranch_ = ""; + /// + /// Default branch name of the repository. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DefaultBranch { + get { return defaultBranch_; } + set { + defaultBranch_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gitignores" field. + public const int GitignoresFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_gitignores_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField gitignores_ = new pbc::RepeatedField(); + /// + /// List of gitignore template names user can choose from. + /// Valid values: actionscript, ada, agda, android, + /// anjuta, ansible, appcelerator-titanium, app-engine, archives, + /// arch-linux-packages, atmel-studio, autotools, backup, bazaar, bazel, + /// bitrix, bricx-cc, c, cake-php, calabash, cf-wheels, chef-cookbook, + /// clojure, cloud9, c-make, code-igniter, code-kit, code-sniffer, + /// common-lisp, composer, concrete5, coq, cordova, cpp, craft-cms, cuda, + /// cvs, d, dart, dart-editor, delphi, diff, dm, dreamweaver, dropbox, + /// drupal, drupal-7, eagle, eclipse, eiffel-studio, elisp, elixir, elm, + /// emacs, ensime, epi-server, erlang, esp-idf, espresso, exercism, + /// expression-engine, ext-js, fancy, finale, flex-builder, force-dot-com, + /// fortran, fuel-php, gcov, git-book, gnome-shell-extension, go, godot, gpg, + /// gradle, grails, gwt, haskell, hugo, iar-ewarm, idris, igor-pro, images, + /// infor-cms, java, jboss, jboss-4, jboss-6, jdeveloper, jekyll, + /// jenkins-home, jenv, jet-brains, jigsaw, joomla, julia, jupyter-notebooks, + /// kate, kdevelop4, kentico, ki-cad, kohana, kotlin, lab-view, laravel, + /// lazarus, leiningen, lemon-stand, libre-office, lilypond, linux, lithium, + /// logtalk, lua, lyx, mac-os, magento, magento-1, magento-2, matlab, maven, + /// mercurial, mercury, metals, meta-programming-system, meteor, + /// microsoft-office, model-sim, momentics, mono-develop, nanoc, net-beans, + /// nikola, nim, ninja, node, notepad-pp, nwjs, objective--c, ocaml, octave, + /// opa, open-cart, openssl, oracle-forms, otto, packer, patch, perl, perl6, + /// phalcon, phoenix, pimcore, play-framework, plone, prestashop, processing, + /// psoc-creator, puppet, pure-script, putty, python, qooxdoo, qt, r, racket, + /// rails, raku, red, redcar, redis, rhodes-rhomobile, ros, ruby, rust, sam, + /// sass, sbt, scala, scheme, scons, scrivener, sdcc, seam-gen, sketch-up, + /// slick-edit, smalltalk, snap, splunk, stata, stella, sublime-text, + /// sugar-crm, svn, swift, symfony, symphony-cms, synopsys-vcs, tags, + /// terraform, tex, text-mate, textpattern, think-php, tortoise-git, + /// turbo-gears-2, typo3, umbraco, unity, unreal-engine, vagrant, vim, + /// virtual-env, virtuoso, visual-studio, visual-studio-code, vue, vvvv, waf, + /// web-methods, windows, word-press, xcode, xilinx, xilinx-ise, xojo, + /// yeoman, yii, zend-framework, zephir. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Gitignores { + get { return gitignores_; } + } + + /// Field number for the "license" field. + public const int LicenseFieldNumber = 3; + private string license_ = ""; + /// + /// License template name user can choose from. + /// Valid values: license-0bsd, license-389-exception, aal, abstyles, + /// adobe-2006, adobe-glyph, adsl, afl-1-1, afl-1-2, afl-2-0, afl-2-1, + /// afl-3-0, afmparse, agpl-1-0, agpl-1-0-only, agpl-1-0-or-later, + /// agpl-3-0-only, agpl-3-0-or-later, aladdin, amdplpa, aml, ampas, antlr-pd, + /// antlr-pd-fallback, apache-1-0, apache-1-1, apache-2-0, apafml, apl-1-0, + /// apsl-1-0, apsl-1-1, apsl-1-2, apsl-2-0, artistic-1-0, artistic-1-0-cl8, + /// artistic-1-0-perl, artistic-2-0, autoconf-exception-2-0, + /// autoconf-exception-3-0, bahyph, barr, beerware, bison-exception-2-2, + /// bittorrent-1-0, bittorrent-1-1, blessing, blueoak-1-0-0, + /// bootloader-exception, borceux, bsd-1-clause, bsd-2-clause, + /// bsd-2-clause-freebsd, bsd-2-clause-netbsd, bsd-2-clause-patent, + /// bsd-2-clause-views, bsd-3-clause, bsd-3-clause-attribution, + /// bsd-3-clause-clear, bsd-3-clause-lbnl, bsd-3-clause-modification, + /// bsd-3-clause-no-nuclear-license, bsd-3-clause-no-nuclear-license-2014, + /// bsd-3-clause-no-nuclear-warranty, bsd-3-clause-open-mpi, bsd-4-clause, + /// bsd-4-clause-shortened, bsd-4-clause-uc, bsd-protection, bsd-source-code, + /// bsl-1-0, busl-1-1, cal-1-0, cal-1-0-combined-work-exception, caldera, + /// catosl-1-1, cc0-1-0, cc-by-1-0, cc-by-2-0, cc-by-3-0, cc-by-3-0-at, + /// cc-by-3-0-us, cc-by-4-0, cc-by-nc-1-0, cc-by-nc-2-0, cc-by-nc-3-0, + /// cc-by-nc-4-0, cc-by-nc-nd-1-0, cc-by-nc-nd-2-0, cc-by-nc-nd-3-0, + /// cc-by-nc-nd-3-0-igo, cc-by-nc-nd-4-0, cc-by-nc-sa-1-0, cc-by-nc-sa-2-0, + /// cc-by-nc-sa-3-0, cc-by-nc-sa-4-0, cc-by-nd-1-0, cc-by-nd-2-0, + /// cc-by-nd-3-0, cc-by-nd-4-0, cc-by-sa-1-0, cc-by-sa-2-0, cc-by-sa-2-0-uk, + /// cc-by-sa-2-1-jp, cc-by-sa-3-0, cc-by-sa-3-0-at, cc-by-sa-4-0, cc-pddc, + /// cddl-1-0, cddl-1-1, cdla-permissive-1-0, cdla-sharing-1-0, cecill-1-0, + /// cecill-1-1, cecill-2-0, cecill-2-1, cecill-b, cecill-c, cern-ohl-1-1, + /// cern-ohl-1-2, cern-ohl-p-2-0, cern-ohl-s-2-0, cern-ohl-w-2-0, clartistic, + /// classpath-exception-2-0, clisp-exception-2-0, cnri-jython, cnri-python, + /// cnri-python-gpl-compatible, condor-1-1, copyleft-next-0-3-0, + /// copyleft-next-0-3-1, cpal-1-0, cpl-1-0, cpol-1-02, crossword, + /// crystal-stacker, cua-opl-1-0, cube, c-uda-1-0, curl, d-fsl-1-0, diffmark, + /// digirule-foss-exception, doc, dotseqn, drl-1-0, dsdp, dvipdfm, ecl-1-0, + /// ecl-2-0, ecos-exception-2-0, efl-1-0, efl-2-0, egenix, entessa, epics, + /// epl-1-0, epl-2-0, erlpl-1-1, etalab-2-0, eu-datagrid, eupl-1-0, eupl-1-1, + /// eupl-1-2, eurosym, fair, fawkes-runtime-exception, fltk-exception, + /// font-exception-2-0, frameworx-1-0, freebsd-doc, freeimage, + /// freertos-exception-2-0, fsfap, fsful, fsfullr, ftl, gcc-exception-2-0, + /// gcc-exception-3-1, gd, gfdl-1-1-invariants-only, + /// gfdl-1-1-invariants-or-later, gfdl-1-1-no-invariants-only, + /// gfdl-1-1-no-invariants-or-later, gfdl-1-1-only, gfdl-1-1-or-later, + /// gfdl-1-2-invariants-only, gfdl-1-2-invariants-or-later, + /// gfdl-1-2-no-invariants-only, gfdl-1-2-no-invariants-or-later, + /// gfdl-1-2-only, gfdl-1-2-or-later, gfdl-1-3-invariants-only, + /// gfdl-1-3-invariants-or-later, gfdl-1-3-no-invariants-only, + /// gfdl-1-3-no-invariants-or-later, gfdl-1-3-only, gfdl-1-3-or-later, + /// giftware, gl2ps, glide, glulxe, glwtpl, gnu-javamail-exception, gnuplot, + /// gpl-1-0-only, gpl-1-0-or-later, gpl-2-0-only, gpl-2-0-or-later, + /// gpl-3-0-linking-exception, gpl-3-0-linking-source-exception, + /// gpl-3-0-only, gpl-3-0-or-later, gpl-cc-1-0, gsoap-1-3b, haskell-report, + /// hippocratic-2-1, hpnd, hpnd-sell-variant, htmltidy, + /// i2p-gpl-java-exception, ibm-pibs, icu, ijg, image-magick, imatix, imlib2, + /// info-zip, intel, intel-acpi, interbase-1-0, ipa, ipl-1-0, isc, + /// jasper-2-0, jpnic, json, lal-1-2, lal-1-3, latex2e, leptonica, + /// lgpl-2-0-only, lgpl-2-0-or-later, lgpl-2-1-only, lgpl-2-1-or-later, + /// lgpl-3-0-linking-exception, lgpl-3-0-only, lgpl-3-0-or-later, lgpllr, + /// libpng, libpng-2-0, libselinux-1-0, libtiff, libtool-exception, + /// liliq-p-1-1, liliq-r-1-1, liliq-rplus-1-1, linux-openib, + /// linux-syscall-note, llvm-exception, lpl-1-0, lpl-1-02, lppl-1-0, + /// lppl-1-1, lppl-1-2, lppl-1-3a, lppl-1-3c, lzma-exception, make-index, + /// mif-exception, miros, mit, mit-0, mit-advertising, mit-cmu, mit-enna, + /// mit-feh, mit-modern-variant, mitnfa, mit-open-group, motosoto, mpich2, + /// mpl-1-0, mpl-1-1, mpl-2-0, mpl-2-0-no-copyleft-exception, ms-pl, ms-rl, + /// mtll, mulanpsl-1-0, mulanpsl-2-0, multics, mup, naist-2003, nasa-1-3, + /// naumen, nbpl-1-0, ncgl-uk-2-0, ncsa, netcdf, net-snmp, newsletr, ngpl, + /// nist-pd, nist-pd-fallback, nlod-1-0, nlpl, nokia, nokia-qt-exception-1-1, + /// nosl, noweb, npl-1-0, npl-1-1, nposl-3-0, nrl, ntp, ntp-0, + /// ocaml-lgpl-linking-exception, occt-exception-1-0, occt-pl, oclc-2-0, + /// odbl-1-0, odc-by-1-0, ofl-1-0, ofl-1-0-no-rfn, ofl-1-0-rfn, ofl-1-1, + /// ofl-1-1-no-rfn, ofl-1-1-rfn, ogc-1-0, ogdl-taiwan-1-0, ogl-canada-2-0, + /// ogl-uk-1-0, ogl-uk-2-0, ogl-uk-3-0, ogtsl, oldap-1-1, oldap-1-2, + /// oldap-1-3, oldap-1-4, oldap-2-0, oldap-2-0-1, oldap-2-1, oldap-2-2, + /// oldap-2-2-1, oldap-2-2-2, oldap-2-3, oldap-2-4, oldap-2-7, oml, + /// openjdk-assembly-exception-1-0, openssl, openvpn-openssl-exception, + /// opl-1-0, oset-pl-2-1, osl-1-0, osl-1-1, osl-2-0, osl-2-1, osl-3-0, + /// o-uda-1-0, parity-6-0-0, parity-7-0-0, pddl-1-0, php-3-0, php-3-01, + /// plexus, polyform-noncommercial-1-0-0, polyform-small-business-1-0-0, + /// postgresql, psf-2-0, psfrag, ps-or-pdf-font-exception-20170817, psutils, + /// python-2-0, qhull, qpl-1-0, qt-gpl-exception-1-0, qt-lgpl-exception-1-1, + /// qwt-exception-1-0, rdisc, rhecos-1-1, rpl-1-1, rpsl-1-0, rsa-md, rscpl, + /// ruby, saxpath, sax-pd, scea, sendmail, sendmail-8-23, sgi-b-1-0, + /// sgi-b-1-1, sgi-b-2-0, shl-0-51, shl-2-0, shl-2-1, simpl-2-0, sissl, + /// sissl-1-2, sleepycat, smlnj, smppl, snia, spencer-86, spencer-94, + /// spencer-99, spl-1-0, ssh-openssh, ssh-short, sspl-1-0, sugarcrm-1-1-3, + /// swift-exception, swl, tapr-ohl-1-0, tcl, tcp-wrappers, tmate, torque-1-1, + /// tosl, tu-berlin-1-0, tu-berlin-2-0, u-boot-exception-2-0, ucl-1-0, + /// unicode-dfs-2015, unicode-dfs-2016, unicode-tou, + /// universal-foss-exception-1-0, unlicense, upl-1-0, vim, vostrom, vsl-1-0, + /// w3c, w3c-19980720, w3c-20150513, watcom-1-0, wsuipa, wtfpl, + /// wxwindows-exception-3-1, x11, xerox, xfree86-1-1, xinetd, xnet, xpp, + /// xskat, ypl-1-0, ypl-1-1, zed, zend-2-0, zimbra-1-3, zimbra-1-4, zlib, + /// zlib-acknowledgement, zpl-1-1, zpl-2-0, zpl-2-1. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string License { + get { return license_; } + set { + license_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "readme" field. + public const int ReadmeFieldNumber = 4; + private string readme_ = ""; + /// + /// README template name. + /// Valid template name(s) are: default. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Readme { + get { return readme_; } + set { + readme_ = 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 InitialConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InitialConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DefaultBranch != other.DefaultBranch) return false; + if(!gitignores_.Equals(other.gitignores_)) return false; + if (License != other.License) return false; + if (Readme != other.Readme) 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 (DefaultBranch.Length != 0) hash ^= DefaultBranch.GetHashCode(); + hash ^= gitignores_.GetHashCode(); + if (License.Length != 0) hash ^= License.GetHashCode(); + if (Readme.Length != 0) hash ^= Readme.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 (DefaultBranch.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DefaultBranch); + } + gitignores_.WriteTo(output, _repeated_gitignores_codec); + if (License.Length != 0) { + output.WriteRawTag(26); + output.WriteString(License); + } + if (Readme.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Readme); + } + 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 (DefaultBranch.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DefaultBranch); + } + gitignores_.WriteTo(ref output, _repeated_gitignores_codec); + if (License.Length != 0) { + output.WriteRawTag(26); + output.WriteString(License); + } + if (Readme.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Readme); + } + 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 (DefaultBranch.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultBranch); + } + size += gitignores_.CalculateSize(_repeated_gitignores_codec); + if (License.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(License); + } + if (Readme.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Readme); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InitialConfig other) { + if (other == null) { + return; + } + if (other.DefaultBranch.Length != 0) { + DefaultBranch = other.DefaultBranch; + } + gitignores_.Add(other.gitignores_); + if (other.License.Length != 0) { + License = other.License; + } + if (other.Readme.Length != 0) { + Readme = other.Readme; + } + _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: { + DefaultBranch = input.ReadString(); + break; + } + case 18: { + gitignores_.AddEntriesFrom(input, _repeated_gitignores_codec); + break; + } + case 26: { + License = input.ReadString(); + break; + } + case 34: { + Readme = 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: { + DefaultBranch = input.ReadString(); + break; + } + case 18: { + gitignores_.AddEntriesFrom(ref input, _repeated_gitignores_codec); + break; + } + case 26: { + License = input.ReadString(); + break; + } + case 34: { + Readme = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Metadata of a BranchRule. BranchRule is the protection rule to enforce + /// pre-defined rules on desginated branches within a repository. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BranchRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BranchRule()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 BranchRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BranchRule(BranchRule other) : this() { + name_ = other.name_; + uid_ = other.uid_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + annotations_ = other.annotations_.Clone(); + etag_ = other.etag_; + includePattern_ = other.includePattern_; + disabled_ = other.disabled_; + requirePullRequest_ = other.requirePullRequest_; + minimumReviewsCount_ = other.minimumReviewsCount_; + minimumApprovalsCount_ = other.minimumApprovalsCount_; + requireCommentsResolved_ = other.requireCommentsResolved_; + allowStaleReviews_ = other.allowStaleReviews_; + requireLinearHistory_ = other.requireLinearHistory_; + requiredStatusChecks_ = other.requiredStatusChecks_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BranchRule Clone() { + return new BranchRule(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Optional. A unique identifier for a BranchRule. The name should be of the + /// format: + /// `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}` + /// + [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 "uid" field. + public const int UidFieldNumber = 2; + private string uid_ = ""; + /// + /// Output only. Unique identifier of the repository. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uid { + get { return uid_; } + set { + uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Create timestamp. + /// + [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 "update_time" field. + public const int UpdateTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Update timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "annotations" field. + public const int AnnotationsFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_annotations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); + private readonly pbc::MapField annotations_ = new pbc::MapField(); + /// + /// Optional. User annotations. These attributes can only be set and used by + /// the user. See https://google.aip.dev/128#annotations for more details such + /// as format and size limitations. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Annotations { + get { return annotations_; } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 6; + private string etag_ = ""; + /// + /// Optional. This checksum is computed by the server based on the value of + /// other fields, and may be sent on update and delete requests to ensure the + /// client has an up-to-date value before proceeding. + /// + [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 "include_pattern" field. + public const int IncludePatternFieldNumber = 7; + private string includePattern_ = ""; + /// + /// Optional. The pattern of the branch that can match to this BranchRule. + /// Specified as regex. + /// .* for all branches. Examples: main, (main|release.*). + /// Current MVP phase only support `.*` for wildcard. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IncludePattern { + get { return includePattern_; } + set { + includePattern_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "disabled" field. + public const int DisabledFieldNumber = 8; + private bool disabled_; + /// + /// Optional. Determines if the branch rule is disabled or not. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Disabled { + get { return disabled_; } + set { + disabled_ = value; + } + } + + /// Field number for the "require_pull_request" field. + public const int RequirePullRequestFieldNumber = 9; + private bool requirePullRequest_; + /// + /// Optional. Determines if the branch rule requires a pull request or not. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool RequirePullRequest { + get { return requirePullRequest_; } + set { + requirePullRequest_ = value; + } + } + + /// Field number for the "minimum_reviews_count" field. + public const int MinimumReviewsCountFieldNumber = 10; + private int minimumReviewsCount_; + /// + /// Optional. The minimum number of reviews required for the branch rule to be + /// matched. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MinimumReviewsCount { + get { return minimumReviewsCount_; } + set { + minimumReviewsCount_ = value; + } + } + + /// Field number for the "minimum_approvals_count" field. + public const int MinimumApprovalsCountFieldNumber = 11; + private int minimumApprovalsCount_; + /// + /// Optional. The minimum number of approvals required for the branch rule to + /// be matched. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MinimumApprovalsCount { + get { return minimumApprovalsCount_; } + set { + minimumApprovalsCount_ = value; + } + } + + /// Field number for the "require_comments_resolved" field. + public const int RequireCommentsResolvedFieldNumber = 12; + private bool requireCommentsResolved_; + /// + /// Optional. Determines if require comments resolved before merging to the + /// branch. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool RequireCommentsResolved { + get { return requireCommentsResolved_; } + set { + requireCommentsResolved_ = value; + } + } + + /// Field number for the "allow_stale_reviews" field. + public const int AllowStaleReviewsFieldNumber = 15; + private bool allowStaleReviews_; + /// + /// Optional. Determines if allow stale reviews or approvals before merging to + /// the branch. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowStaleReviews { + get { return allowStaleReviews_; } + set { + allowStaleReviews_ = value; + } + } + + /// Field number for the "require_linear_history" field. + public const int RequireLinearHistoryFieldNumber = 13; + private bool requireLinearHistory_; + /// + /// Optional. Determines if require linear history before merging to the + /// branch. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool RequireLinearHistory { + get { return requireLinearHistory_; } + set { + requireLinearHistory_ = value; + } + } + + /// Field number for the "required_status_checks" field. + public const int RequiredStatusChecksFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_requiredStatusChecks_codec + = pb::FieldCodec.ForMessage(114, global::Google.Cloud.SecureSourceManager.V1.BranchRule.Types.Check.Parser); + private readonly pbc::RepeatedField requiredStatusChecks_ = new pbc::RepeatedField(); + /// + /// Optional. List of required status checks before merging to the branch. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RequiredStatusChecks { + get { return requiredStatusChecks_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BranchRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BranchRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Uid != other.Uid) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Annotations.Equals(other.Annotations)) return false; + if (Etag != other.Etag) return false; + if (IncludePattern != other.IncludePattern) return false; + if (Disabled != other.Disabled) return false; + if (RequirePullRequest != other.RequirePullRequest) return false; + if (MinimumReviewsCount != other.MinimumReviewsCount) return false; + if (MinimumApprovalsCount != other.MinimumApprovalsCount) return false; + if (RequireCommentsResolved != other.RequireCommentsResolved) return false; + if (AllowStaleReviews != other.AllowStaleReviews) return false; + if (RequireLinearHistory != other.RequireLinearHistory) return false; + if(!requiredStatusChecks_.Equals(other.requiredStatusChecks_)) 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 (Uid.Length != 0) hash ^= Uid.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Annotations.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (IncludePattern.Length != 0) hash ^= IncludePattern.GetHashCode(); + if (Disabled != false) hash ^= Disabled.GetHashCode(); + if (RequirePullRequest != false) hash ^= RequirePullRequest.GetHashCode(); + if (MinimumReviewsCount != 0) hash ^= MinimumReviewsCount.GetHashCode(); + if (MinimumApprovalsCount != 0) hash ^= MinimumApprovalsCount.GetHashCode(); + if (RequireCommentsResolved != false) hash ^= RequireCommentsResolved.GetHashCode(); + if (AllowStaleReviews != false) hash ^= AllowStaleReviews.GetHashCode(); + if (RequireLinearHistory != false) hash ^= RequireLinearHistory.GetHashCode(); + hash ^= requiredStatusChecks_.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 (Uid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uid); + } + if (createTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(UpdateTime); + } + annotations_.WriteTo(output, _map_annotations_codec); + if (Etag.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Etag); + } + if (IncludePattern.Length != 0) { + output.WriteRawTag(58); + output.WriteString(IncludePattern); + } + if (Disabled != false) { + output.WriteRawTag(64); + output.WriteBool(Disabled); + } + if (RequirePullRequest != false) { + output.WriteRawTag(72); + output.WriteBool(RequirePullRequest); + } + if (MinimumReviewsCount != 0) { + output.WriteRawTag(80); + output.WriteInt32(MinimumReviewsCount); + } + if (MinimumApprovalsCount != 0) { + output.WriteRawTag(88); + output.WriteInt32(MinimumApprovalsCount); + } + if (RequireCommentsResolved != false) { + output.WriteRawTag(96); + output.WriteBool(RequireCommentsResolved); + } + if (RequireLinearHistory != false) { + output.WriteRawTag(104); + output.WriteBool(RequireLinearHistory); + } + requiredStatusChecks_.WriteTo(output, _repeated_requiredStatusChecks_codec); + if (AllowStaleReviews != false) { + output.WriteRawTag(120); + output.WriteBool(AllowStaleReviews); + } + 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 (Uid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uid); + } + if (createTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(UpdateTime); + } + annotations_.WriteTo(ref output, _map_annotations_codec); + if (Etag.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Etag); + } + if (IncludePattern.Length != 0) { + output.WriteRawTag(58); + output.WriteString(IncludePattern); + } + if (Disabled != false) { + output.WriteRawTag(64); + output.WriteBool(Disabled); + } + if (RequirePullRequest != false) { + output.WriteRawTag(72); + output.WriteBool(RequirePullRequest); + } + if (MinimumReviewsCount != 0) { + output.WriteRawTag(80); + output.WriteInt32(MinimumReviewsCount); + } + if (MinimumApprovalsCount != 0) { + output.WriteRawTag(88); + output.WriteInt32(MinimumApprovalsCount); + } + if (RequireCommentsResolved != false) { + output.WriteRawTag(96); + output.WriteBool(RequireCommentsResolved); + } + if (RequireLinearHistory != false) { + output.WriteRawTag(104); + output.WriteBool(RequireLinearHistory); + } + requiredStatusChecks_.WriteTo(ref output, _repeated_requiredStatusChecks_codec); + if (AllowStaleReviews != false) { + output.WriteRawTag(120); + output.WriteBool(AllowStaleReviews); + } + 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 (Uid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += annotations_.CalculateSize(_map_annotations_codec); + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (IncludePattern.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IncludePattern); + } + if (Disabled != false) { + size += 1 + 1; + } + if (RequirePullRequest != false) { + size += 1 + 1; + } + if (MinimumReviewsCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinimumReviewsCount); + } + if (MinimumApprovalsCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinimumApprovalsCount); + } + if (RequireCommentsResolved != false) { + size += 1 + 1; + } + if (AllowStaleReviews != false) { + size += 1 + 1; + } + if (RequireLinearHistory != false) { + size += 1 + 1; + } + size += requiredStatusChecks_.CalculateSize(_repeated_requiredStatusChecks_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BranchRule other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Uid.Length != 0) { + Uid = other.Uid; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + annotations_.MergeFrom(other.annotations_); + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + if (other.IncludePattern.Length != 0) { + IncludePattern = other.IncludePattern; + } + if (other.Disabled != false) { + Disabled = other.Disabled; + } + if (other.RequirePullRequest != false) { + RequirePullRequest = other.RequirePullRequest; + } + if (other.MinimumReviewsCount != 0) { + MinimumReviewsCount = other.MinimumReviewsCount; + } + if (other.MinimumApprovalsCount != 0) { + MinimumApprovalsCount = other.MinimumApprovalsCount; + } + if (other.RequireCommentsResolved != false) { + RequireCommentsResolved = other.RequireCommentsResolved; + } + if (other.AllowStaleReviews != false) { + AllowStaleReviews = other.AllowStaleReviews; + } + if (other.RequireLinearHistory != false) { + RequireLinearHistory = other.RequireLinearHistory; + } + requiredStatusChecks_.Add(other.requiredStatusChecks_); + _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: { + Uid = input.ReadString(); + break; + } + case 26: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 34: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 42: { + annotations_.AddEntriesFrom(input, _map_annotations_codec); + break; + } + case 50: { + Etag = input.ReadString(); + break; + } + case 58: { + IncludePattern = input.ReadString(); + break; + } + case 64: { + Disabled = input.ReadBool(); + break; + } + case 72: { + RequirePullRequest = input.ReadBool(); + break; + } + case 80: { + MinimumReviewsCount = input.ReadInt32(); + break; + } + case 88: { + MinimumApprovalsCount = input.ReadInt32(); + break; + } + case 96: { + RequireCommentsResolved = input.ReadBool(); + break; + } + case 104: { + RequireLinearHistory = input.ReadBool(); + break; + } + case 114: { + requiredStatusChecks_.AddEntriesFrom(input, _repeated_requiredStatusChecks_codec); + break; + } + case 120: { + AllowStaleReviews = input.ReadBool(); + 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: { + Uid = input.ReadString(); + break; + } + case 26: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 34: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 42: { + annotations_.AddEntriesFrom(ref input, _map_annotations_codec); + break; + } + case 50: { + Etag = input.ReadString(); + break; + } + case 58: { + IncludePattern = input.ReadString(); + break; + } + case 64: { + Disabled = input.ReadBool(); + break; + } + case 72: { + RequirePullRequest = input.ReadBool(); + break; + } + case 80: { + MinimumReviewsCount = input.ReadInt32(); + break; + } + case 88: { + MinimumApprovalsCount = input.ReadInt32(); + break; + } + case 96: { + RequireCommentsResolved = input.ReadBool(); + break; + } + case 104: { + RequireLinearHistory = input.ReadBool(); + break; + } + case 114: { + requiredStatusChecks_.AddEntriesFrom(ref input, _repeated_requiredStatusChecks_codec); + break; + } + case 120: { + AllowStaleReviews = input.ReadBool(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the BranchRule message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Check is a type for status check. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Check : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Check()); + 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.SecureSourceManager.V1.BranchRule.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 Check() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Check(Check other) : this() { + context_ = other.context_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Check Clone() { + return new Check(this); + } + + /// Field number for the "context" field. + public const int ContextFieldNumber = 1; + private string context_ = ""; + /// + /// Required. The context of the check. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Context { + get { return context_; } + set { + context_ = 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 Check); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Check other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Context != other.Context) 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 (Context.Length != 0) hash ^= Context.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 (Context.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Context); + } + 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 (Context.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Context); + } + 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 (Context.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Context); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Check other) { + if (other == null) { + return; + } + if (other.Context.Length != 0) { + Context = other.Context; + } + _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: { + Context = 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: { + Context = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// ListInstancesRequest is the request to list instances. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListInstancesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListInstancesRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 ListInstancesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListInstancesRequest(ListInstancesRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + orderBy_ = other.orderBy_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListInstancesRequest Clone() { + return new ListInstancesRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent value for ListInstancesRequest. + /// + [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_; + /// + /// Requested page size. Server may return fewer items than requested. + /// If unspecified, server will pick an appropriate default. + /// + [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_ = ""; + /// + /// A token identifying a page of results the server should return. + /// + [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_ = ""; + /// + /// Filter for filtering results. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "order_by" field. + public const int OrderByFieldNumber = 5; + private string orderBy_ = ""; + /// + /// Hint for how to order the results. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrderBy { + get { return orderBy_; } + set { + orderBy_ = 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 ListInstancesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListInstancesRequest 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; + if (OrderBy != other.OrderBy) 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 (OrderBy.Length != 0) hash ^= OrderBy.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 (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + 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 (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + 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 (OrderBy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderBy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListInstancesRequest 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; + } + if (other.OrderBy.Length != 0) { + OrderBy = other.OrderBy; + } + _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; + } + case 42: { + OrderBy = 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; + } + case 42: { + OrderBy = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListInstancesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListInstancesResponse()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 ListInstancesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListInstancesResponse(ListInstancesResponse other) : this() { + instances_ = other.instances_.Clone(); + nextPageToken_ = other.nextPageToken_; + unreachable_ = other.unreachable_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListInstancesResponse Clone() { + return new ListInstancesResponse(this); + } + + /// Field number for the "instances" field. + public const int InstancesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_instances_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecureSourceManager.V1.Instance.Parser); + private readonly pbc::RepeatedField instances_ = new pbc::RepeatedField(); + /// + /// The list of instances. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Instances { + get { return instances_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token identifying a page of results the server should return. + /// + [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 "unreachable" field. + public const int UnreachableFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_unreachable_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField unreachable_ = new pbc::RepeatedField(); + /// + /// Locations that could not be reached. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Unreachable { + get { return unreachable_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListInstancesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListInstancesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!instances_.Equals(other.instances_)) return false; + if (NextPageToken != other.NextPageToken) return false; + if(!unreachable_.Equals(other.unreachable_)) 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 ^= instances_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + hash ^= unreachable_.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 + instances_.WriteTo(output, _repeated_instances_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(output, _repeated_unreachable_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) { + instances_.WriteTo(ref output, _repeated_instances_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(ref output, _repeated_unreachable_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 += instances_.CalculateSize(_repeated_instances_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + size += unreachable_.CalculateSize(_repeated_unreachable_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListInstancesResponse other) { + if (other == null) { + return; + } + instances_.Add(other.instances_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + unreachable_.Add(other.unreachable_); + _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: { + instances_.AddEntriesFrom(input, _repeated_instances_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(input, _repeated_unreachable_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: { + instances_.AddEntriesFrom(ref input, _repeated_instances_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(ref input, _repeated_unreachable_codec); + break; + } + } + } + } + #endif + + } + + /// + /// GetInstanceRequest is the request for getting an instance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetInstanceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInstanceRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 GetInstanceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetInstanceRequest(GetInstanceRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetInstanceRequest Clone() { + return new GetInstanceRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Name of the resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetInstanceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetInstanceRequest 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(GetInstanceRequest 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 + + } + + /// + /// CreateInstanceRequest is the request for creating an instance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateInstanceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateInstanceRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 CreateInstanceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateInstanceRequest(CreateInstanceRequest other) : this() { + parent_ = other.parent_; + instanceId_ = other.instanceId_; + instance_ = other.instance_ != null ? other.instance_.Clone() : null; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateInstanceRequest Clone() { + return new CreateInstanceRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Value for parent. + /// + [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 "instance_id" field. + public const int InstanceIdFieldNumber = 2; + private string instanceId_ = ""; + /// + /// Required. ID of the instance to be created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InstanceId { + get { return instanceId_; } + set { + instanceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "instance" field. + public const int InstanceFieldNumber = 3; + private global::Google.Cloud.SecureSourceManager.V1.Instance instance_; + /// + /// Required. The resource being created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecureSourceManager.V1.Instance Instance { + get { return instance_; } + set { + instance_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 4; + private string requestId_ = ""; + /// + /// Optional. An optional request ID to identify requests. Specify a unique + /// request ID so that if you must retry your request, the server will know to + /// ignore the request if it has already been completed. The server will + /// guarantee that for at least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateInstanceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateInstanceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (InstanceId != other.InstanceId) return false; + if (!object.Equals(Instance, other.Instance)) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (InstanceId.Length != 0) hash ^= InstanceId.GetHashCode(); + if (instance_ != null) hash ^= Instance.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (InstanceId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(InstanceId); + } + if (instance_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Instance); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (InstanceId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(InstanceId); + } + if (instance_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Instance); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (InstanceId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InstanceId); + } + if (instance_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Instance); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateInstanceRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.InstanceId.Length != 0) { + InstanceId = other.InstanceId; + } + if (other.instance_ != null) { + if (instance_ == null) { + Instance = new global::Google.Cloud.SecureSourceManager.V1.Instance(); + } + Instance.MergeFrom(other.Instance); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + InstanceId = input.ReadString(); + break; + } + case 26: { + if (instance_ == null) { + Instance = new global::Google.Cloud.SecureSourceManager.V1.Instance(); + } + input.ReadMessage(Instance); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + InstanceId = input.ReadString(); + break; + } + case 26: { + if (instance_ == null) { + Instance = new global::Google.Cloud.SecureSourceManager.V1.Instance(); + } + input.ReadMessage(Instance); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// DeleteInstanceRequest is the request for deleting an instance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteInstanceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteInstanceRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 DeleteInstanceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteInstanceRequest(DeleteInstanceRequest other) : this() { + name_ = other.name_; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteInstanceRequest Clone() { + return new DeleteInstanceRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Name of the resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 2; + private string requestId_ = ""; + /// + /// Optional. An optional request ID to identify requests. Specify a unique + /// request ID so that if you must retry your request, the server will know to + /// ignore the request if it has already been completed. The server will + /// guarantee that for at least 60 minutes after the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteInstanceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteInstanceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteInstanceRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the metadata of the long-running operation. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OperationMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OperationMetadata()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 OperationMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OperationMetadata(OperationMetadata other) : this() { + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + target_ = other.target_; + verb_ = other.verb_; + statusMessage_ = other.statusMessage_; + requestedCancellation_ = other.requestedCancellation_; + apiVersion_ = other.apiVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OperationMetadata Clone() { + return new OperationMetadata(this); + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time the operation 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 "end_time" field. + public const int EndTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. The time the operation finished running. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 3; + private string target_ = ""; + /// + /// Output only. Server-defined resource path for the target of the operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Target { + get { return target_; } + set { + target_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "verb" field. + public const int VerbFieldNumber = 4; + private string verb_ = ""; + /// + /// Output only. Name of the verb executed by the operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Verb { + get { return verb_; } + set { + verb_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "status_message" field. + public const int StatusMessageFieldNumber = 5; + private string statusMessage_ = ""; + /// + /// Output only. Human-readable status of the operation, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StatusMessage { + get { return statusMessage_; } + set { + statusMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "requested_cancellation" field. + public const int RequestedCancellationFieldNumber = 6; + private bool requestedCancellation_; + /// + /// Output only. Identifies whether the user has requested cancellation + /// of the operation. Operations that have successfully been cancelled + /// have [Operation.error][] value with a + /// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + /// `Code.CANCELLED`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool RequestedCancellation { + get { return requestedCancellation_; } + set { + requestedCancellation_ = value; + } + } + + /// Field number for the "api_version" field. + public const int ApiVersionFieldNumber = 7; + private string apiVersion_ = ""; + /// + /// Output only. API version used to start the operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApiVersion { + get { return apiVersion_; } + set { + apiVersion_ = 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 OperationMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OperationMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (Target != other.Target) return false; + if (Verb != other.Verb) return false; + if (StatusMessage != other.StatusMessage) return false; + if (RequestedCancellation != other.RequestedCancellation) return false; + if (ApiVersion != other.ApiVersion) 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 (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (Target.Length != 0) hash ^= Target.GetHashCode(); + if (Verb.Length != 0) hash ^= Verb.GetHashCode(); + if (StatusMessage.Length != 0) hash ^= StatusMessage.GetHashCode(); + if (RequestedCancellation != false) hash ^= RequestedCancellation.GetHashCode(); + if (ApiVersion.Length != 0) hash ^= ApiVersion.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 (createTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreateTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (Target.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Target); + } + if (Verb.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Verb); + } + if (StatusMessage.Length != 0) { + output.WriteRawTag(42); + output.WriteString(StatusMessage); + } + if (RequestedCancellation != false) { + output.WriteRawTag(48); + output.WriteBool(RequestedCancellation); + } + if (ApiVersion.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ApiVersion); + } + 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 (createTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreateTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (Target.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Target); + } + if (Verb.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Verb); + } + if (StatusMessage.Length != 0) { + output.WriteRawTag(42); + output.WriteString(StatusMessage); + } + if (RequestedCancellation != false) { + output.WriteRawTag(48); + output.WriteBool(RequestedCancellation); + } + if (ApiVersion.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ApiVersion); + } + 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 (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (Target.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Target); + } + if (Verb.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Verb); + } + if (StatusMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StatusMessage); + } + if (RequestedCancellation != false) { + size += 1 + 1; + } + if (ApiVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApiVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OperationMetadata other) { + if (other == null) { + return; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.Target.Length != 0) { + Target = other.Target; + } + if (other.Verb.Length != 0) { + Verb = other.Verb; + } + if (other.StatusMessage.Length != 0) { + StatusMessage = other.StatusMessage; + } + if (other.RequestedCancellation != false) { + RequestedCancellation = other.RequestedCancellation; + } + if (other.ApiVersion.Length != 0) { + ApiVersion = other.ApiVersion; + } + _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 (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 26: { + Target = input.ReadString(); + break; + } + case 34: { + Verb = input.ReadString(); + break; + } + case 42: { + StatusMessage = input.ReadString(); + break; + } + case 48: { + RequestedCancellation = input.ReadBool(); + break; + } + case 58: { + ApiVersion = 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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 26: { + Target = input.ReadString(); + break; + } + case 34: { + Verb = input.ReadString(); + break; + } + case 42: { + StatusMessage = input.ReadString(); + break; + } + case 48: { + RequestedCancellation = input.ReadBool(); + break; + } + case 58: { + ApiVersion = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// ListRepositoriesRequest is request to list repositories. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListRepositoriesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListRepositoriesRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 ListRepositoriesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListRepositoriesRequest(ListRepositoriesRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + instance_ = other.instance_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListRepositoriesRequest Clone() { + return new ListRepositoriesRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent value for ListRepositoriesRequest. + /// + [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. Requested page size. Server may return fewer items than + /// requested. If unspecified, server will pick an appropriate default. + /// + [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_ = ""; + /// + /// A token identifying a page of results the server should return. + /// + [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 results. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "instance" field. + public const int InstanceFieldNumber = 5; + private string instance_ = ""; + /// + /// Optional. The name of the instance in which the repository is hosted, + /// formatted as + /// `projects/{project_number}/locations/{location_id}/instances/{instance_id}`. + /// When listing repositories via + /// securesourcemanager.googleapis.com (Control Plane API), this field is + /// required. When listing repositories via *.sourcemanager.dev (Data Plane + /// API), this field is ignored. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Instance { + get { return instance_; } + set { + instance_ = 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 ListRepositoriesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListRepositoriesRequest 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; + if (Instance != other.Instance) 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 (Instance.Length != 0) hash ^= Instance.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 (Instance.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Instance); + } + 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 (Instance.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Instance); + } + 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 (Instance.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Instance); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListRepositoriesRequest 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; + } + if (other.Instance.Length != 0) { + Instance = other.Instance; + } + _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; + } + case 42: { + Instance = 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; + } + case 42: { + Instance = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListRepositoriesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListRepositoriesResponse()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 ListRepositoriesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListRepositoriesResponse(ListRepositoriesResponse other) : this() { + repositories_ = other.repositories_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListRepositoriesResponse Clone() { + return new ListRepositoriesResponse(this); + } + + /// Field number for the "repositories" field. + public const int RepositoriesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_repositories_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecureSourceManager.V1.Repository.Parser); + private readonly pbc::RepeatedField repositories_ = new pbc::RepeatedField(); + /// + /// The list of repositories. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Repositories { + get { return repositories_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token identifying a page of results the server should return. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = 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 ListRepositoriesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListRepositoriesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!repositories_.Equals(other.repositories_)) return false; + if (NextPageToken != other.NextPageToken) 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 ^= repositories_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.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 + repositories_.WriteTo(output, _repeated_repositories_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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) { + repositories_.WriteTo(ref output, _repeated_repositories_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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 += repositories_.CalculateSize(_repeated_repositories_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListRepositoriesResponse other) { + if (other == null) { + return; + } + repositories_.Add(other.repositories_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _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: { + repositories_.AddEntriesFrom(input, _repeated_repositories_codec); + break; + } + case 18: { + NextPageToken = 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: { + repositories_.AddEntriesFrom(ref input, _repeated_repositories_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// GetRepositoryRequest is the request for getting a repository. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetRepositoryRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRepositoryRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 GetRepositoryRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRepositoryRequest(GetRepositoryRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRepositoryRequest Clone() { + return new GetRepositoryRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. + /// + [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 GetRepositoryRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRepositoryRequest 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(GetRepositoryRequest 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 + + } + + /// + /// CreateRepositoryRequest is the request for creating a repository. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateRepositoryRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateRepositoryRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 CreateRepositoryRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateRepositoryRequest(CreateRepositoryRequest other) : this() { + parent_ = other.parent_; + repository_ = other.repository_ != null ? other.repository_.Clone() : null; + repositoryId_ = other.repositoryId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateRepositoryRequest Clone() { + return new CreateRepositoryRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The project in which to create the repository. Values are of the + /// form `projects/{project_number}/locations/{location_id}` + /// + [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 "repository" field. + public const int RepositoryFieldNumber = 2; + private global::Google.Cloud.SecureSourceManager.V1.Repository repository_; + /// + /// Required. The resource being created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecureSourceManager.V1.Repository Repository { + get { return repository_; } + set { + repository_ = value; + } + } + + /// Field number for the "repository_id" field. + public const int RepositoryIdFieldNumber = 3; + private string repositoryId_ = ""; + /// + /// Required. The ID to use for the repository, which will become the final + /// component of the repository's resource name. This value should be 4-63 + /// characters, and valid characters are /[a-z][0-9]-/. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RepositoryId { + get { return repositoryId_; } + set { + repositoryId_ = 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 CreateRepositoryRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateRepositoryRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(Repository, other.Repository)) return false; + if (RepositoryId != other.RepositoryId) 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 (repository_ != null) hash ^= Repository.GetHashCode(); + if (RepositoryId.Length != 0) hash ^= RepositoryId.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 (repository_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Repository); + } + if (RepositoryId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RepositoryId); + } + 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 (repository_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Repository); + } + if (RepositoryId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RepositoryId); + } + 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 (repository_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Repository); + } + if (RepositoryId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RepositoryId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateRepositoryRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.repository_ != null) { + if (repository_ == null) { + Repository = new global::Google.Cloud.SecureSourceManager.V1.Repository(); + } + Repository.MergeFrom(other.Repository); + } + if (other.RepositoryId.Length != 0) { + RepositoryId = other.RepositoryId; + } + _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 (repository_ == null) { + Repository = new global::Google.Cloud.SecureSourceManager.V1.Repository(); + } + input.ReadMessage(Repository); + break; + } + case 26: { + RepositoryId = 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 18: { + if (repository_ == null) { + Repository = new global::Google.Cloud.SecureSourceManager.V1.Repository(); + } + input.ReadMessage(Repository); + break; + } + case 26: { + RepositoryId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// DeleteRepositoryRequest is the request to delete a repository. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteRepositoryRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRepositoryRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 DeleteRepositoryRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteRepositoryRequest(DeleteRepositoryRequest other) : this() { + name_ = other.name_; + allowMissing_ = other.allowMissing_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteRepositoryRequest Clone() { + return new DeleteRepositoryRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Name of the repository to delete. + /// The format is + /// projects/{project_number}/locations/{location_id}/repositories/{repository_id}. + /// + [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 "allow_missing" field. + public const int AllowMissingFieldNumber = 2; + private bool allowMissing_; + /// + /// Optional. If set to true, and the repository is not found, the request will + /// succeed but no action will be taken on the server. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowMissing { + get { return allowMissing_; } + set { + allowMissing_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteRepositoryRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteRepositoryRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (AllowMissing != other.AllowMissing) 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 (AllowMissing != false) hash ^= AllowMissing.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 (AllowMissing != false) { + output.WriteRawTag(16); + output.WriteBool(AllowMissing); + } + 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 (AllowMissing != false) { + output.WriteRawTag(16); + output.WriteBool(AllowMissing); + } + 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 (AllowMissing != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteRepositoryRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.AllowMissing != false) { + AllowMissing = other.AllowMissing; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + AllowMissing = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + AllowMissing = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// GetBranchRuleRequest is the request for getting a branch rule. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetBranchRuleRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBranchRuleRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.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 GetBranchRuleRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetBranchRuleRequest(GetBranchRuleRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetBranchRuleRequest Clone() { + return new GetBranchRuleRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`. + /// + [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 GetBranchRuleRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetBranchRuleRequest 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(GetBranchRuleRequest 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 + + } + + /// + /// CreateBranchRuleRequest is the request to create a branch rule. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateBranchRuleRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateBranchRuleRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.Descriptor.MessageTypes[15]; } + } + + [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 CreateBranchRuleRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateBranchRuleRequest(CreateBranchRuleRequest other) : this() { + parent_ = other.parent_; + branchRule_ = other.branchRule_ != null ? other.branchRule_.Clone() : null; + branchRuleId_ = other.branchRuleId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateBranchRuleRequest Clone() { + return new CreateBranchRuleRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + [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 "branch_rule" field. + public const int BranchRuleFieldNumber = 2; + private global::Google.Cloud.SecureSourceManager.V1.BranchRule branchRule_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecureSourceManager.V1.BranchRule BranchRule { + get { return branchRule_; } + set { + branchRule_ = value; + } + } + + /// Field number for the "branch_rule_id" field. + public const int BranchRuleIdFieldNumber = 3; + private string branchRuleId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BranchRuleId { + get { return branchRuleId_; } + set { + branchRuleId_ = 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 CreateBranchRuleRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateBranchRuleRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(BranchRule, other.BranchRule)) return false; + if (BranchRuleId != other.BranchRuleId) 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 (branchRule_ != null) hash ^= BranchRule.GetHashCode(); + if (BranchRuleId.Length != 0) hash ^= BranchRuleId.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 (branchRule_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BranchRule); + } + if (BranchRuleId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(BranchRuleId); + } + 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 (branchRule_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BranchRule); + } + if (BranchRuleId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(BranchRuleId); + } + 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 (branchRule_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BranchRule); + } + if (BranchRuleId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BranchRuleId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateBranchRuleRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.branchRule_ != null) { + if (branchRule_ == null) { + BranchRule = new global::Google.Cloud.SecureSourceManager.V1.BranchRule(); + } + BranchRule.MergeFrom(other.BranchRule); + } + if (other.BranchRuleId.Length != 0) { + BranchRuleId = other.BranchRuleId; + } + _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 (branchRule_ == null) { + BranchRule = new global::Google.Cloud.SecureSourceManager.V1.BranchRule(); + } + input.ReadMessage(BranchRule); + break; + } + case 26: { + BranchRuleId = 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 18: { + if (branchRule_ == null) { + BranchRule = new global::Google.Cloud.SecureSourceManager.V1.BranchRule(); + } + input.ReadMessage(BranchRule); + break; + } + case 26: { + BranchRuleId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// ListBranchRulesRequest is the request to list branch rules. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListBranchRulesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListBranchRulesRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.Descriptor.MessageTypes[16]; } + } + + [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 ListBranchRulesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListBranchRulesRequest(ListBranchRulesRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListBranchRulesRequest Clone() { + return new ListBranchRulesRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + [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_; + [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_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = 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 ListBranchRulesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListBranchRulesRequest 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; + 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListBranchRulesRequest 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; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + /// + /// DeleteBranchRuleRequest is the request to delete a branch rule. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteBranchRuleRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteBranchRuleRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.Descriptor.MessageTypes[17]; } + } + + [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 DeleteBranchRuleRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteBranchRuleRequest(DeleteBranchRuleRequest other) : this() { + name_ = other.name_; + allowMissing_ = other.allowMissing_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteBranchRuleRequest Clone() { + return new DeleteBranchRuleRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + [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 "allow_missing" field. + public const int AllowMissingFieldNumber = 2; + private bool allowMissing_; + /// + /// Optional. If set to true, and the branch rule is not found, the request + /// will succeed but no action will be taken on the server. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowMissing { + get { return allowMissing_; } + set { + allowMissing_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteBranchRuleRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteBranchRuleRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (AllowMissing != other.AllowMissing) 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 (AllowMissing != false) hash ^= AllowMissing.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 (AllowMissing != false) { + output.WriteRawTag(16); + output.WriteBool(AllowMissing); + } + 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 (AllowMissing != false) { + output.WriteRawTag(16); + output.WriteBool(AllowMissing); + } + 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 (AllowMissing != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteBranchRuleRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.AllowMissing != false) { + AllowMissing = other.AllowMissing; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + AllowMissing = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + AllowMissing = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// UpdateBranchRuleRequest is the request to update a branchRule. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateBranchRuleRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateBranchRuleRequest()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.Descriptor.MessageTypes[18]; } + } + + [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 UpdateBranchRuleRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateBranchRuleRequest(UpdateBranchRuleRequest other) : this() { + branchRule_ = other.branchRule_ != null ? other.branchRule_.Clone() : null; + validateOnly_ = other.validateOnly_; + 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 UpdateBranchRuleRequest Clone() { + return new UpdateBranchRuleRequest(this); + } + + /// Field number for the "branch_rule" field. + public const int BranchRuleFieldNumber = 1; + private global::Google.Cloud.SecureSourceManager.V1.BranchRule branchRule_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecureSourceManager.V1.BranchRule BranchRule { + get { return branchRule_; } + set { + branchRule_ = value; + } + } + + /// Field number for the "validate_only" field. + public const int ValidateOnlyFieldNumber = 2; + private bool validateOnly_; + /// + /// Optional. If set, validate the request and preview the review, but do not + /// actually post it. (https://google.aip.dev/163, for declarative friendly) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ValidateOnly { + get { return validateOnly_; } + set { + validateOnly_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Required. Field mask is used to specify the fields to be overwritten in the + /// branchRule resource by the update. + /// The fields specified in the update_mask are relative to the resource, not + /// the full request. A field will be overwritten if it is in the mask. + /// The special value "*" means full replacement. + /// + [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 UpdateBranchRuleRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateBranchRuleRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BranchRule, other.BranchRule)) return false; + if (ValidateOnly != other.ValidateOnly) 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 (branchRule_ != null) hash ^= BranchRule.GetHashCode(); + if (ValidateOnly != false) hash ^= ValidateOnly.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 (branchRule_ != null) { + output.WriteRawTag(10); + output.WriteMessage(BranchRule); + } + if (ValidateOnly != false) { + output.WriteRawTag(16); + output.WriteBool(ValidateOnly); + } + if (updateMask_ != null) { + output.WriteRawTag(26); + 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 (branchRule_ != null) { + output.WriteRawTag(10); + output.WriteMessage(BranchRule); + } + if (ValidateOnly != false) { + output.WriteRawTag(16); + output.WriteBool(ValidateOnly); + } + if (updateMask_ != null) { + output.WriteRawTag(26); + 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 (branchRule_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BranchRule); + } + if (ValidateOnly != false) { + size += 1 + 1; + } + 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(UpdateBranchRuleRequest other) { + if (other == null) { + return; + } + if (other.branchRule_ != null) { + if (branchRule_ == null) { + BranchRule = new global::Google.Cloud.SecureSourceManager.V1.BranchRule(); + } + BranchRule.MergeFrom(other.BranchRule); + } + if (other.ValidateOnly != false) { + ValidateOnly = other.ValidateOnly; + } + 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 (branchRule_ == null) { + BranchRule = new global::Google.Cloud.SecureSourceManager.V1.BranchRule(); + } + input.ReadMessage(BranchRule); + break; + } + case 16: { + ValidateOnly = input.ReadBool(); + break; + } + case 26: { + 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 (branchRule_ == null) { + BranchRule = new global::Google.Cloud.SecureSourceManager.V1.BranchRule(); + } + input.ReadMessage(BranchRule); + break; + } + case 16: { + ValidateOnly = input.ReadBool(); + break; + } + case 26: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// ListBranchRulesResponse is the response to listing branchRules. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListBranchRulesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListBranchRulesResponse()); + 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.SecureSourceManager.V1.SecureSourceManagerReflection.Descriptor.MessageTypes[19]; } + } + + [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 ListBranchRulesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListBranchRulesResponse(ListBranchRulesResponse other) : this() { + branchRules_ = other.branchRules_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListBranchRulesResponse Clone() { + return new ListBranchRulesResponse(this); + } + + /// Field number for the "branch_rules" field. + public const int BranchRulesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_branchRules_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecureSourceManager.V1.BranchRule.Parser); + private readonly pbc::RepeatedField branchRules_ = new pbc::RepeatedField(); + /// + /// The list of branch rules. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BranchRules { + get { return branchRules_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token identifying a page of results the server should return. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = 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 ListBranchRulesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListBranchRulesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!branchRules_.Equals(other.branchRules_)) return false; + if (NextPageToken != other.NextPageToken) 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 ^= branchRules_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.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 + branchRules_.WriteTo(output, _repeated_branchRules_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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) { + branchRules_.WriteTo(ref output, _repeated_branchRules_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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 += branchRules_.CalculateSize(_repeated_branchRules_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListBranchRulesResponse other) { + if (other == null) { + return; + } + branchRules_.Add(other.branchRules_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _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: { + branchRules_.AddEntriesFrom(input, _repeated_branchRules_codec); + break; + } + case 18: { + NextPageToken = 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: { + branchRules_.AddEntriesFrom(ref input, _repeated_branchRules_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManagerClient.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManagerClient.g.cs new file mode 100755 index 000000000000..2b917987e97e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManagerClient.g.cs @@ -0,0 +1,3558 @@ +// 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 lro = Google.LongRunning; +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.SecureSourceManager.V1 +{ + /// Settings for instances. + public sealed partial class SecureSourceManagerSettings : gaxgrpc::ServiceSettingsBase + { + /// Get a new instance of the default . + /// A new instance of the default . + public static SecureSourceManagerSettings GetDefault() => new SecureSourceManagerSettings(); + + /// Constructs a new object with default settings. + public SecureSourceManagerSettings() + { + } + + private SecureSourceManagerSettings(SecureSourceManagerSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + ListInstancesSettings = existing.ListInstancesSettings; + GetInstanceSettings = existing.GetInstanceSettings; + CreateInstanceSettings = existing.CreateInstanceSettings; + CreateInstanceOperationsSettings = existing.CreateInstanceOperationsSettings.Clone(); + DeleteInstanceSettings = existing.DeleteInstanceSettings; + DeleteInstanceOperationsSettings = existing.DeleteInstanceOperationsSettings.Clone(); + ListRepositoriesSettings = existing.ListRepositoriesSettings; + GetRepositorySettings = existing.GetRepositorySettings; + CreateRepositorySettings = existing.CreateRepositorySettings; + CreateRepositoryOperationsSettings = existing.CreateRepositoryOperationsSettings.Clone(); + DeleteRepositorySettings = existing.DeleteRepositorySettings; + DeleteRepositoryOperationsSettings = existing.DeleteRepositoryOperationsSettings.Clone(); + GetIamPolicyRepoSettings = existing.GetIamPolicyRepoSettings; + SetIamPolicyRepoSettings = existing.SetIamPolicyRepoSettings; + TestIamPermissionsRepoSettings = existing.TestIamPermissionsRepoSettings; + CreateBranchRuleSettings = existing.CreateBranchRuleSettings; + CreateBranchRuleOperationsSettings = existing.CreateBranchRuleOperationsSettings.Clone(); + ListBranchRulesSettings = existing.ListBranchRulesSettings; + GetBranchRuleSettings = existing.GetBranchRuleSettings; + UpdateBranchRuleSettings = existing.UpdateBranchRuleSettings; + UpdateBranchRuleOperationsSettings = existing.UpdateBranchRuleOperationsSettings.Clone(); + DeleteBranchRuleSettings = existing.DeleteBranchRuleSettings; + DeleteBranchRuleOperationsSettings = existing.DeleteBranchRuleOperationsSettings.Clone(); + LocationsSettings = existing.LocationsSettings; + IAMPolicySettings = existing.IAMPolicySettings; + OnCopy(existing); + } + + partial void OnCopy(SecureSourceManagerSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.ListInstances and SecureSourceManagerClient.ListInstancesAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListInstancesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.GetInstance and SecureSourceManagerClient.GetInstanceAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetInstanceSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.CreateInstance and SecureSourceManagerClient.CreateInstanceAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings CreateInstanceSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to SecureSourceManagerClient.CreateInstance and + /// SecureSourceManagerClient.CreateInstanceAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateInstanceOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.DeleteInstance and SecureSourceManagerClient.DeleteInstanceAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings DeleteInstanceSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to SecureSourceManagerClient.DeleteInstance and + /// SecureSourceManagerClient.DeleteInstanceAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings DeleteInstanceOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.ListRepositories and SecureSourceManagerClient.ListRepositoriesAsync + /// . + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListRepositoriesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.GetRepository and SecureSourceManagerClient.GetRepositoryAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetRepositorySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.CreateRepository and SecureSourceManagerClient.CreateRepositoryAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings CreateRepositorySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to SecureSourceManagerClient.CreateRepository and + /// SecureSourceManagerClient.CreateRepositoryAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateRepositoryOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.DeleteRepository and SecureSourceManagerClient.DeleteRepositoryAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings DeleteRepositorySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to SecureSourceManagerClient.DeleteRepository and + /// SecureSourceManagerClient.DeleteRepositoryAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings DeleteRepositoryOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.GetIamPolicyRepo and SecureSourceManagerClient.GetIamPolicyRepoAsync + /// . + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetIamPolicyRepoSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.SetIamPolicyRepo and SecureSourceManagerClient.SetIamPolicyRepoAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings SetIamPolicyRepoSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.TestIamPermissionsRepo and + /// SecureSourceManagerClient.TestIamPermissionsRepoAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings TestIamPermissionsRepoSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.CreateBranchRule and SecureSourceManagerClient.CreateBranchRuleAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings CreateBranchRuleSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to SecureSourceManagerClient.CreateBranchRule and + /// SecureSourceManagerClient.CreateBranchRuleAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateBranchRuleOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.ListBranchRules and SecureSourceManagerClient.ListBranchRulesAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings ListBranchRulesSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.GetBranchRule and SecureSourceManagerClient.GetBranchRuleAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings GetBranchRuleSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.UpdateBranchRule and SecureSourceManagerClient.UpdateBranchRuleAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings UpdateBranchRuleSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to SecureSourceManagerClient.UpdateBranchRule and + /// SecureSourceManagerClient.UpdateBranchRuleAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UpdateBranchRuleOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// SecureSourceManagerClient.DeleteBranchRule and SecureSourceManagerClient.DeleteBranchRuleAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings DeleteBranchRuleSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to SecureSourceManagerClient.DeleteBranchRule and + /// SecureSourceManagerClient.DeleteBranchRuleAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings DeleteBranchRuleOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// The settings to use for the associated with the client. + /// + public gcl::LocationsSettings LocationsSettings { get; set; } = gcl::LocationsSettings.GetDefault(); + + /// + /// The settings to use for the associated with the client. + /// + public gciv::IAMPolicySettings IAMPolicySettings { get; set; } = gciv::IAMPolicySettings.GetDefault(); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public SecureSourceManagerSettings Clone() => new SecureSourceManagerSettings(this); + } + + /// + /// Builder class for to provide simple configuration of credentials, + /// endpoint etc. + /// + public sealed partial class SecureSourceManagerClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public SecureSourceManagerSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public SecureSourceManagerClientBuilder() : base(SecureSourceManagerClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref SecureSourceManagerClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override SecureSourceManagerClient Build() + { + SecureSourceManagerClient 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 SecureSourceManagerClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return SecureSourceManagerClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return SecureSourceManagerClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => SecureSourceManagerClient.ChannelPool; + } + + /// SecureSourceManager client wrapper, for convenient use. + /// + /// Secure Source Manager API + /// + /// Access Secure Source Manager instances, resources, and repositories. + /// + /// This API is split across two servers: the Control Plane and the Data Plane. + /// + /// Data Plane endpoints are hosted directly by your Secure Source Manager + /// instance, so you must connect to your instance's API hostname to access + /// them. The API hostname looks like the following: + /// + /// https://[instance-id]-[project-number]-api.[location].sourcemanager.dev + /// + /// For example, + /// + /// https://my-instance-702770452863-api.us-central1.sourcemanager.dev + /// + /// Data Plane endpoints are denoted with **Host: Data Plane**. + /// + /// All other endpoints are found in the normal Cloud API location, namely, + /// `securcesourcemanager.googleapis.com`. + /// + public abstract partial class SecureSourceManagerClient + { + /// + /// The default endpoint for the SecureSourceManager service, which is a host of + /// "securesourcemanager.googleapis.com" and a port of 443. + /// + public static string DefaultEndpoint { get; } = "securesourcemanager.googleapis.com:443"; + + /// The default SecureSourceManager scopes. + /// + /// The default SecureSourceManager 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(SecureSourceManager.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 SecureSourceManagerClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use + /// . + /// + /// The created . + public static SecureSourceManagerClient Create() => new SecureSourceManagerClientBuilder().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 SecureSourceManagerClient Create(grpccore::CallInvoker callInvoker, SecureSourceManagerSettings 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); + } + SecureSourceManager.SecureSourceManagerClient grpcClient = new SecureSourceManager.SecureSourceManagerClient(callInvoker); + return new SecureSourceManagerClientImpl(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 SecureSourceManager client + public virtual SecureSourceManager.SecureSourceManagerClient GrpcClient => throw new sys::NotImplementedException(); + + /// The associated with this client. + public virtual gcl::LocationsClient LocationsClient => throw new sys::NotImplementedException(); + + /// The associated with this client. + public virtual gciv::IAMPolicyClient IAMPolicyClient => throw new sys::NotImplementedException(); + + /// + /// Lists Instances in a given project and location. + /// + /// 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 ListInstances(ListInstancesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists Instances in a given project and location. + /// + /// 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 ListInstancesAsync(ListInstancesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists Instances in a given project and location. + /// + /// + /// Required. Parent value for ListInstancesRequest. + /// + /// + /// 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 ListInstances(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListInstancesRequest request = new ListInstancesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListInstances(request, callSettings); + } + + /// + /// Lists Instances in a given project and location. + /// + /// + /// Required. Parent value for ListInstancesRequest. + /// + /// + /// 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 ListInstancesAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListInstancesRequest request = new ListInstancesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListInstancesAsync(request, callSettings); + } + + /// + /// Lists Instances in a given project and location. + /// + /// + /// Required. Parent value for ListInstancesRequest. + /// + /// + /// 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 ListInstances(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListInstancesRequest request = new ListInstancesRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListInstances(request, callSettings); + } + + /// + /// Lists Instances in a given project and location. + /// + /// + /// Required. Parent value for ListInstancesRequest. + /// + /// + /// 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 ListInstancesAsync(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListInstancesRequest request = new ListInstancesRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListInstancesAsync(request, callSettings); + } + + /// + /// Gets details of a single instance. + /// + /// 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 Instance GetInstance(GetInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets details of a single instance. + /// + /// 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 GetInstanceAsync(GetInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets details of a single instance. + /// + /// 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 GetInstanceAsync(GetInstanceRequest request, st::CancellationToken cancellationToken) => + GetInstanceAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets details of a single instance. + /// + /// + /// Required. Name of the resource. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Instance GetInstance(string name, gaxgrpc::CallSettings callSettings = null) => + GetInstance(new GetInstanceRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets details of a single instance. + /// + /// + /// Required. Name of the resource. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetInstanceAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetInstanceAsync(new GetInstanceRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets details of a single instance. + /// + /// + /// Required. Name of the resource. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetInstanceAsync(string name, st::CancellationToken cancellationToken) => + GetInstanceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets details of a single instance. + /// + /// + /// Required. Name of the resource. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Instance GetInstance(InstanceName name, gaxgrpc::CallSettings callSettings = null) => + GetInstance(new GetInstanceRequest + { + InstanceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets details of a single instance. + /// + /// + /// Required. Name of the resource. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetInstanceAsync(InstanceName name, gaxgrpc::CallSettings callSettings = null) => + GetInstanceAsync(new GetInstanceRequest + { + InstanceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets details of a single instance. + /// + /// + /// Required. Name of the resource. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetInstanceAsync(InstanceName name, st::CancellationToken cancellationToken) => + GetInstanceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new instance in a given project and location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateInstance(CreateInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new instance in a given project and location. + /// + /// 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> CreateInstanceAsync(CreateInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new instance in a given project and location. + /// + /// 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> CreateInstanceAsync(CreateInstanceRequest request, st::CancellationToken cancellationToken) => + CreateInstanceAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateInstance. + public virtual lro::OperationsClient CreateInstanceOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of CreateInstance. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateInstance(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateInstanceOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateInstance. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateInstanceAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateInstanceOperationsClient, callSettings); + + /// + /// Creates a new instance in a given project and location. + /// + /// + /// Required. Value for parent. + /// + /// + /// Required. The resource being created. + /// + /// + /// Required. ID of the instance to be created. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateInstance(string parent, Instance instance, string instanceId, gaxgrpc::CallSettings callSettings = null) => + CreateInstance(new CreateInstanceRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + InstanceId = gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), + Instance = gax::GaxPreconditions.CheckNotNull(instance, nameof(instance)), + }, callSettings); + + /// + /// Creates a new instance in a given project and location. + /// + /// + /// Required. Value for parent. + /// + /// + /// Required. The resource being created. + /// + /// + /// Required. ID of the instance to be created. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateInstanceAsync(string parent, Instance instance, string instanceId, gaxgrpc::CallSettings callSettings = null) => + CreateInstanceAsync(new CreateInstanceRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + InstanceId = gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), + Instance = gax::GaxPreconditions.CheckNotNull(instance, nameof(instance)), + }, callSettings); + + /// + /// Creates a new instance in a given project and location. + /// + /// + /// Required. Value for parent. + /// + /// + /// Required. The resource being created. + /// + /// + /// Required. ID of the instance to be created. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateInstanceAsync(string parent, Instance instance, string instanceId, st::CancellationToken cancellationToken) => + CreateInstanceAsync(parent, instance, instanceId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new instance in a given project and location. + /// + /// + /// Required. Value for parent. + /// + /// + /// Required. The resource being created. + /// + /// + /// Required. ID of the instance to be created. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateInstance(gagr::LocationName parent, Instance instance, string instanceId, gaxgrpc::CallSettings callSettings = null) => + CreateInstance(new CreateInstanceRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + InstanceId = gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), + Instance = gax::GaxPreconditions.CheckNotNull(instance, nameof(instance)), + }, callSettings); + + /// + /// Creates a new instance in a given project and location. + /// + /// + /// Required. Value for parent. + /// + /// + /// Required. The resource being created. + /// + /// + /// Required. ID of the instance to be created. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateInstanceAsync(gagr::LocationName parent, Instance instance, string instanceId, gaxgrpc::CallSettings callSettings = null) => + CreateInstanceAsync(new CreateInstanceRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + InstanceId = gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), + Instance = gax::GaxPreconditions.CheckNotNull(instance, nameof(instance)), + }, callSettings); + + /// + /// Creates a new instance in a given project and location. + /// + /// + /// Required. Value for parent. + /// + /// + /// Required. The resource being created. + /// + /// + /// Required. ID of the instance to be created. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateInstanceAsync(gagr::LocationName parent, Instance instance, string instanceId, st::CancellationToken cancellationToken) => + CreateInstanceAsync(parent, instance, instanceId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a single instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteInstance(DeleteInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a single instance. + /// + /// 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> DeleteInstanceAsync(DeleteInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a single instance. + /// + /// 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> DeleteInstanceAsync(DeleteInstanceRequest request, st::CancellationToken cancellationToken) => + DeleteInstanceAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for DeleteInstance. + public virtual lro::OperationsClient DeleteInstanceOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of DeleteInstance. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceDeleteInstance(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteInstanceOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// DeleteInstance. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceDeleteInstanceAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteInstanceOperationsClient, callSettings); + + /// + /// Deletes a single instance. + /// + /// + /// Required. Name of the resource. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteInstance(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteInstance(new DeleteInstanceRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a single instance. + /// + /// + /// Required. Name of the resource. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteInstanceAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteInstanceAsync(new DeleteInstanceRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a single instance. + /// + /// + /// Required. Name of the resource. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteInstanceAsync(string name, st::CancellationToken cancellationToken) => + DeleteInstanceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a single instance. + /// + /// + /// Required. Name of the resource. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteInstance(InstanceName name, gaxgrpc::CallSettings callSettings = null) => + DeleteInstance(new DeleteInstanceRequest + { + InstanceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a single instance. + /// + /// + /// Required. Name of the resource. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteInstanceAsync(InstanceName name, gaxgrpc::CallSettings callSettings = null) => + DeleteInstanceAsync(new DeleteInstanceRequest + { + InstanceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a single instance. + /// + /// + /// Required. Name of the resource. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteInstanceAsync(InstanceName name, st::CancellationToken cancellationToken) => + DeleteInstanceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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 ListRepositories(ListRepositoriesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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 ListRepositoriesAsync(ListRepositoriesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Parent value for ListRepositoriesRequest. + /// + /// + /// 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 ListRepositories(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListRepositoriesRequest request = new ListRepositoriesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListRepositories(request, callSettings); + } + + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Parent value for ListRepositoriesRequest. + /// + /// + /// 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 ListRepositoriesAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListRepositoriesRequest request = new ListRepositoriesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListRepositoriesAsync(request, callSettings); + } + + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Parent value for ListRepositoriesRequest. + /// + /// + /// 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 ListRepositories(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListRepositoriesRequest request = new ListRepositoriesRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListRepositories(request, callSettings); + } + + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Parent value for ListRepositoriesRequest. + /// + /// + /// 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 ListRepositoriesAsync(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListRepositoriesRequest request = new ListRepositoriesRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListRepositoriesAsync(request, callSettings); + } + + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// 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 Repository GetRepository(GetRepositoryRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// 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 GetRepositoryAsync(GetRepositoryRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// 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 GetRepositoryAsync(GetRepositoryRequest request, st::CancellationToken cancellationToken) => + GetRepositoryAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Repository GetRepository(string name, gaxgrpc::CallSettings callSettings = null) => + GetRepository(new GetRepositoryRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetRepositoryAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetRepositoryAsync(new GetRepositoryRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetRepositoryAsync(string name, st::CancellationToken cancellationToken) => + GetRepositoryAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Repository GetRepository(RepositoryName name, gaxgrpc::CallSettings callSettings = null) => + GetRepository(new GetRepositoryRequest + { + RepositoryName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetRepositoryAsync(RepositoryName name, gaxgrpc::CallSettings callSettings = null) => + GetRepositoryAsync(new GetRepositoryRequest + { + RepositoryName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetRepositoryAsync(RepositoryName name, st::CancellationToken cancellationToken) => + GetRepositoryAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateRepository(CreateRepositoryRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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> CreateRepositoryAsync(CreateRepositoryRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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> CreateRepositoryAsync(CreateRepositoryRequest request, st::CancellationToken cancellationToken) => + CreateRepositoryAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateRepository. + public virtual lro::OperationsClient CreateRepositoryOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of CreateRepository. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateRepository(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateRepositoryOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateRepository. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateRepositoryAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateRepositoryOperationsClient, callSettings); + + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// + /// Required. The project in which to create the repository. Values are of the + /// form `projects/{project_number}/locations/{location_id}` + /// + /// + /// Required. The resource being created. + /// + /// + /// Required. The ID to use for the repository, which will become the final + /// component of the repository's resource name. This value should be 4-63 + /// characters, and valid characters are /[a-z][0-9]-/. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateRepository(string parent, Repository repository, string repositoryId, gaxgrpc::CallSettings callSettings = null) => + CreateRepository(new CreateRepositoryRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + Repository = gax::GaxPreconditions.CheckNotNull(repository, nameof(repository)), + RepositoryId = gax::GaxPreconditions.CheckNotNullOrEmpty(repositoryId, nameof(repositoryId)), + }, callSettings); + + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// + /// Required. The project in which to create the repository. Values are of the + /// form `projects/{project_number}/locations/{location_id}` + /// + /// + /// Required. The resource being created. + /// + /// + /// Required. The ID to use for the repository, which will become the final + /// component of the repository's resource name. This value should be 4-63 + /// characters, and valid characters are /[a-z][0-9]-/. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateRepositoryAsync(string parent, Repository repository, string repositoryId, gaxgrpc::CallSettings callSettings = null) => + CreateRepositoryAsync(new CreateRepositoryRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + Repository = gax::GaxPreconditions.CheckNotNull(repository, nameof(repository)), + RepositoryId = gax::GaxPreconditions.CheckNotNullOrEmpty(repositoryId, nameof(repositoryId)), + }, callSettings); + + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// + /// Required. The project in which to create the repository. Values are of the + /// form `projects/{project_number}/locations/{location_id}` + /// + /// + /// Required. The resource being created. + /// + /// + /// Required. The ID to use for the repository, which will become the final + /// component of the repository's resource name. This value should be 4-63 + /// characters, and valid characters are /[a-z][0-9]-/. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateRepositoryAsync(string parent, Repository repository, string repositoryId, st::CancellationToken cancellationToken) => + CreateRepositoryAsync(parent, repository, repositoryId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// + /// Required. The project in which to create the repository. Values are of the + /// form `projects/{project_number}/locations/{location_id}` + /// + /// + /// Required. The resource being created. + /// + /// + /// Required. The ID to use for the repository, which will become the final + /// component of the repository's resource name. This value should be 4-63 + /// characters, and valid characters are /[a-z][0-9]-/. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateRepository(gagr::LocationName parent, Repository repository, string repositoryId, gaxgrpc::CallSettings callSettings = null) => + CreateRepository(new CreateRepositoryRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + Repository = gax::GaxPreconditions.CheckNotNull(repository, nameof(repository)), + RepositoryId = gax::GaxPreconditions.CheckNotNullOrEmpty(repositoryId, nameof(repositoryId)), + }, callSettings); + + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// + /// Required. The project in which to create the repository. Values are of the + /// form `projects/{project_number}/locations/{location_id}` + /// + /// + /// Required. The resource being created. + /// + /// + /// Required. The ID to use for the repository, which will become the final + /// component of the repository's resource name. This value should be 4-63 + /// characters, and valid characters are /[a-z][0-9]-/. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateRepositoryAsync(gagr::LocationName parent, Repository repository, string repositoryId, gaxgrpc::CallSettings callSettings = null) => + CreateRepositoryAsync(new CreateRepositoryRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + Repository = gax::GaxPreconditions.CheckNotNull(repository, nameof(repository)), + RepositoryId = gax::GaxPreconditions.CheckNotNullOrEmpty(repositoryId, nameof(repositoryId)), + }, callSettings); + + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// + /// Required. The project in which to create the repository. Values are of the + /// form `projects/{project_number}/locations/{location_id}` + /// + /// + /// Required. The resource being created. + /// + /// + /// Required. The ID to use for the repository, which will become the final + /// component of the repository's resource name. This value should be 4-63 + /// characters, and valid characters are /[a-z][0-9]-/. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateRepositoryAsync(gagr::LocationName parent, Repository repository, string repositoryId, st::CancellationToken cancellationToken) => + CreateRepositoryAsync(parent, repository, repositoryId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteRepository(DeleteRepositoryRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// 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> DeleteRepositoryAsync(DeleteRepositoryRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// 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> DeleteRepositoryAsync(DeleteRepositoryRequest request, st::CancellationToken cancellationToken) => + DeleteRepositoryAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for DeleteRepository. + public virtual lro::OperationsClient DeleteRepositoryOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of DeleteRepository. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceDeleteRepository(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteRepositoryOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// DeleteRepository. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceDeleteRepositoryAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteRepositoryOperationsClient, callSettings); + + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Name of the repository to delete. + /// The format is + /// projects/{project_number}/locations/{location_id}/repositories/{repository_id}. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteRepository(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteRepository(new DeleteRepositoryRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Name of the repository to delete. + /// The format is + /// projects/{project_number}/locations/{location_id}/repositories/{repository_id}. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteRepositoryAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteRepositoryAsync(new DeleteRepositoryRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Name of the repository to delete. + /// The format is + /// projects/{project_number}/locations/{location_id}/repositories/{repository_id}. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteRepositoryAsync(string name, st::CancellationToken cancellationToken) => + DeleteRepositoryAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Name of the repository to delete. + /// The format is + /// projects/{project_number}/locations/{location_id}/repositories/{repository_id}. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteRepository(RepositoryName name, gaxgrpc::CallSettings callSettings = null) => + DeleteRepository(new DeleteRepositoryRequest + { + RepositoryName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Name of the repository to delete. + /// The format is + /// projects/{project_number}/locations/{location_id}/repositories/{repository_id}. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteRepositoryAsync(RepositoryName name, gaxgrpc::CallSettings callSettings = null) => + DeleteRepositoryAsync(new DeleteRepositoryRequest + { + RepositoryName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// + /// Required. Name of the repository to delete. + /// The format is + /// projects/{project_number}/locations/{location_id}/repositories/{repository_id}. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteRepositoryAsync(RepositoryName name, st::CancellationToken cancellationToken) => + DeleteRepositoryAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Get IAM policy for a repository. + /// + /// 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 GetIamPolicyRepo(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Get IAM policy for a repository. + /// + /// 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 GetIamPolicyRepoAsync(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Get IAM policy for a repository. + /// + /// 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 GetIamPolicyRepoAsync(gciv::GetIamPolicyRequest request, st::CancellationToken cancellationToken) => + GetIamPolicyRepoAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Get IAM policy for a repository. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy GetIamPolicyRepo(string resource, gaxgrpc::CallSettings callSettings = null) => + GetIamPolicyRepo(new gciv::GetIamPolicyRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + }, callSettings); + + /// + /// Get IAM policy for a repository. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyRepoAsync(string resource, gaxgrpc::CallSettings callSettings = null) => + GetIamPolicyRepoAsync(new gciv::GetIamPolicyRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + }, callSettings); + + /// + /// Get IAM policy for a repository. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyRepoAsync(string resource, st::CancellationToken cancellationToken) => + GetIamPolicyRepoAsync(resource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Get IAM policy for a repository. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy GetIamPolicyRepo(gax::IResourceName resource, gaxgrpc::CallSettings callSettings = null) => + GetIamPolicyRepo(new gciv::GetIamPolicyRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + }, callSettings); + + /// + /// Get IAM policy for a repository. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyRepoAsync(gax::IResourceName resource, gaxgrpc::CallSettings callSettings = null) => + GetIamPolicyRepoAsync(new gciv::GetIamPolicyRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + }, callSettings); + + /// + /// Get IAM policy for a repository. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyRepoAsync(gax::IResourceName resource, st::CancellationToken cancellationToken) => + GetIamPolicyRepoAsync(resource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Set IAM policy on a repository. + /// + /// 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 SetIamPolicyRepo(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Set IAM policy on a repository. + /// + /// 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 SetIamPolicyRepoAsync(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Set IAM policy on a repository. + /// + /// 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 SetIamPolicyRepoAsync(gciv::SetIamPolicyRequest request, st::CancellationToken cancellationToken) => + SetIamPolicyRepoAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Set IAM policy on a repository. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy SetIamPolicyRepo(string resource, gaxgrpc::CallSettings callSettings = null) => + SetIamPolicyRepo(new gciv::SetIamPolicyRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + }, callSettings); + + /// + /// Set IAM policy on a repository. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyRepoAsync(string resource, gaxgrpc::CallSettings callSettings = null) => + SetIamPolicyRepoAsync(new gciv::SetIamPolicyRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + }, callSettings); + + /// + /// Set IAM policy on a repository. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyRepoAsync(string resource, st::CancellationToken cancellationToken) => + SetIamPolicyRepoAsync(resource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Set IAM policy on a repository. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy SetIamPolicyRepo(gax::IResourceName resource, gaxgrpc::CallSettings callSettings = null) => + SetIamPolicyRepo(new gciv::SetIamPolicyRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + }, callSettings); + + /// + /// Set IAM policy on a repository. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyRepoAsync(gax::IResourceName resource, gaxgrpc::CallSettings callSettings = null) => + SetIamPolicyRepoAsync(new gciv::SetIamPolicyRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + }, callSettings); + + /// + /// Set IAM policy on a repository. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyRepoAsync(gax::IResourceName resource, st::CancellationToken cancellationToken) => + SetIamPolicyRepoAsync(resource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// 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 TestIamPermissionsRepo(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// 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 TestIamPermissionsRepoAsync(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// 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 TestIamPermissionsRepoAsync(gciv::TestIamPermissionsRequest request, st::CancellationToken cancellationToken) => + TestIamPermissionsRepoAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::TestIamPermissionsResponse TestIamPermissionsRepo(string resource, gaxgrpc::CallSettings callSettings = null) => + TestIamPermissionsRepo(new gciv::TestIamPermissionsRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + }, callSettings); + + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsRepoAsync(string resource, gaxgrpc::CallSettings callSettings = null) => + TestIamPermissionsRepoAsync(new gciv::TestIamPermissionsRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + }, callSettings); + + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsRepoAsync(string resource, st::CancellationToken cancellationToken) => + TestIamPermissionsRepoAsync(resource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::TestIamPermissionsResponse TestIamPermissionsRepo(gax::IResourceName resource, gaxgrpc::CallSettings callSettings = null) => + TestIamPermissionsRepo(new gciv::TestIamPermissionsRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + }, callSettings); + + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsRepoAsync(gax::IResourceName resource, gaxgrpc::CallSettings callSettings = null) => + TestIamPermissionsRepoAsync(new gciv::TestIamPermissionsRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + }, callSettings); + + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsRepoAsync(gax::IResourceName resource, st::CancellationToken cancellationToken) => + TestIamPermissionsRepoAsync(resource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateBranchRule(CreateBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// 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> CreateBranchRuleAsync(CreateBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// 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> CreateBranchRuleAsync(CreateBranchRuleRequest request, st::CancellationToken cancellationToken) => + CreateBranchRuleAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateBranchRule. + public virtual lro::OperationsClient CreateBranchRuleOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of CreateBranchRule. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateBranchRule(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateBranchRuleOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateBranchRule. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateBranchRuleAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateBranchRuleOperationsClient, callSettings); + + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// + /// + /// + /// + /// + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateBranchRule(string parent, BranchRule branchRule, string branchRuleId, gaxgrpc::CallSettings callSettings = null) => + CreateBranchRule(new CreateBranchRuleRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + BranchRule = gax::GaxPreconditions.CheckNotNull(branchRule, nameof(branchRule)), + BranchRuleId = gax::GaxPreconditions.CheckNotNullOrEmpty(branchRuleId, nameof(branchRuleId)), + }, callSettings); + + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// + /// + /// + /// + /// + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateBranchRuleAsync(string parent, BranchRule branchRule, string branchRuleId, gaxgrpc::CallSettings callSettings = null) => + CreateBranchRuleAsync(new CreateBranchRuleRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + BranchRule = gax::GaxPreconditions.CheckNotNull(branchRule, nameof(branchRule)), + BranchRuleId = gax::GaxPreconditions.CheckNotNullOrEmpty(branchRuleId, nameof(branchRuleId)), + }, callSettings); + + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// + /// + /// + /// + /// + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateBranchRuleAsync(string parent, BranchRule branchRule, string branchRuleId, st::CancellationToken cancellationToken) => + CreateBranchRuleAsync(parent, branchRule, branchRuleId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// + /// + /// + /// + /// + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateBranchRule(RepositoryName parent, BranchRule branchRule, string branchRuleId, gaxgrpc::CallSettings callSettings = null) => + CreateBranchRule(new CreateBranchRuleRequest + { + ParentAsRepositoryName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + BranchRule = gax::GaxPreconditions.CheckNotNull(branchRule, nameof(branchRule)), + BranchRuleId = gax::GaxPreconditions.CheckNotNullOrEmpty(branchRuleId, nameof(branchRuleId)), + }, callSettings); + + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// + /// + /// + /// + /// + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateBranchRuleAsync(RepositoryName parent, BranchRule branchRule, string branchRuleId, gaxgrpc::CallSettings callSettings = null) => + CreateBranchRuleAsync(new CreateBranchRuleRequest + { + ParentAsRepositoryName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + BranchRule = gax::GaxPreconditions.CheckNotNull(branchRule, nameof(branchRule)), + BranchRuleId = gax::GaxPreconditions.CheckNotNullOrEmpty(branchRuleId, nameof(branchRuleId)), + }, callSettings); + + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// + /// + /// + /// + /// + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateBranchRuleAsync(RepositoryName parent, BranchRule branchRule, string branchRuleId, st::CancellationToken cancellationToken) => + CreateBranchRuleAsync(parent, branchRule, branchRuleId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// 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 ListBranchRules(ListBranchRulesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// 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 ListBranchRulesAsync(ListBranchRulesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// + /// + /// + /// 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 ListBranchRules(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListBranchRulesRequest request = new ListBranchRulesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListBranchRules(request, callSettings); + } + + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// + /// + /// + /// 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 ListBranchRulesAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListBranchRulesRequest request = new ListBranchRulesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListBranchRulesAsync(request, callSettings); + } + + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// + /// + /// + /// 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 ListBranchRules(RepositoryName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListBranchRulesRequest request = new ListBranchRulesRequest + { + ParentAsRepositoryName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListBranchRules(request, callSettings); + } + + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// + /// + /// + /// 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 ListBranchRulesAsync(RepositoryName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListBranchRulesRequest request = new ListBranchRulesRequest + { + ParentAsRepositoryName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListBranchRulesAsync(request, callSettings); + } + + /// + /// GetBranchRule gets a branch rule. + /// + /// 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 BranchRule GetBranchRule(GetBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// GetBranchRule gets a branch rule. + /// + /// 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 GetBranchRuleAsync(GetBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// GetBranchRule gets a branch rule. + /// + /// 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 GetBranchRuleAsync(GetBranchRuleRequest request, st::CancellationToken cancellationToken) => + GetBranchRuleAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// GetBranchRule gets a branch rule. + /// + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual BranchRule GetBranchRule(string name, gaxgrpc::CallSettings callSettings = null) => + GetBranchRule(new GetBranchRuleRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// GetBranchRule gets a branch rule. + /// + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetBranchRuleAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetBranchRuleAsync(new GetBranchRuleRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// GetBranchRule gets a branch rule. + /// + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetBranchRuleAsync(string name, st::CancellationToken cancellationToken) => + GetBranchRuleAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// GetBranchRule gets a branch rule. + /// + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual BranchRule GetBranchRule(BranchRuleName name, gaxgrpc::CallSettings callSettings = null) => + GetBranchRule(new GetBranchRuleRequest + { + BranchRuleName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// GetBranchRule gets a branch rule. + /// + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetBranchRuleAsync(BranchRuleName name, gaxgrpc::CallSettings callSettings = null) => + GetBranchRuleAsync(new GetBranchRuleRequest + { + BranchRuleName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// GetBranchRule gets a branch rule. + /// + /// + /// Required. Name of the repository to retrieve. + /// The format is + /// `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetBranchRuleAsync(BranchRuleName name, st::CancellationToken cancellationToken) => + GetBranchRuleAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// UpdateBranchRule updates a branch rule. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateBranchRule(UpdateBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// UpdateBranchRule updates a branch rule. + /// + /// 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> UpdateBranchRuleAsync(UpdateBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// UpdateBranchRule updates a branch rule. + /// + /// 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> UpdateBranchRuleAsync(UpdateBranchRuleRequest request, st::CancellationToken cancellationToken) => + UpdateBranchRuleAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UpdateBranchRule. + public virtual lro::OperationsClient UpdateBranchRuleOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of UpdateBranchRule. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUpdateBranchRule(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateBranchRuleOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateBranchRule. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUpdateBranchRuleAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateBranchRuleOperationsClient, callSettings); + + /// + /// UpdateBranchRule updates a branch rule. + /// + /// + /// + /// + /// Required. Field mask is used to specify the fields to be overwritten in the + /// branchRule resource by the update. + /// The fields specified in the update_mask are relative to the resource, not + /// the full request. A field will be overwritten if it is in the mask. + /// The special value "*" means full replacement. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateBranchRule(BranchRule branchRule, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateBranchRule(new UpdateBranchRuleRequest + { + BranchRule = gax::GaxPreconditions.CheckNotNull(branchRule, nameof(branchRule)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// UpdateBranchRule updates a branch rule. + /// + /// + /// + /// + /// Required. Field mask is used to specify the fields to be overwritten in the + /// branchRule resource by the update. + /// The fields specified in the update_mask are relative to the resource, not + /// the full request. A field will be overwritten if it is in the mask. + /// The special value "*" means full replacement. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateBranchRuleAsync(BranchRule branchRule, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateBranchRuleAsync(new UpdateBranchRuleRequest + { + BranchRule = gax::GaxPreconditions.CheckNotNull(branchRule, nameof(branchRule)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// UpdateBranchRule updates a branch rule. + /// + /// + /// + /// + /// Required. Field mask is used to specify the fields to be overwritten in the + /// branchRule resource by the update. + /// The fields specified in the update_mask are relative to the resource, not + /// the full request. A field will be overwritten if it is in the mask. + /// The special value "*" means full replacement. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateBranchRuleAsync(BranchRule branchRule, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateBranchRuleAsync(branchRule, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteBranchRule(DeleteBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// 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> DeleteBranchRuleAsync(DeleteBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// 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> DeleteBranchRuleAsync(DeleteBranchRuleRequest request, st::CancellationToken cancellationToken) => + DeleteBranchRuleAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for DeleteBranchRule. + public virtual lro::OperationsClient DeleteBranchRuleOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of DeleteBranchRule. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceDeleteBranchRule(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteBranchRuleOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// DeleteBranchRule. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceDeleteBranchRuleAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteBranchRuleOperationsClient, callSettings); + + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteBranchRule(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteBranchRule(new DeleteBranchRuleRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteBranchRuleAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteBranchRuleAsync(new DeleteBranchRuleRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteBranchRuleAsync(string name, st::CancellationToken cancellationToken) => + DeleteBranchRuleAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteBranchRule(BranchRuleName name, gaxgrpc::CallSettings callSettings = null) => + DeleteBranchRule(new DeleteBranchRuleRequest + { + BranchRuleName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteBranchRuleAsync(BranchRuleName name, gaxgrpc::CallSettings callSettings = null) => + DeleteBranchRuleAsync(new DeleteBranchRuleRequest + { + BranchRuleName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteBranchRuleAsync(BranchRuleName name, st::CancellationToken cancellationToken) => + DeleteBranchRuleAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + } + + /// SecureSourceManager client wrapper implementation, for convenient use. + /// + /// Secure Source Manager API + /// + /// Access Secure Source Manager instances, resources, and repositories. + /// + /// This API is split across two servers: the Control Plane and the Data Plane. + /// + /// Data Plane endpoints are hosted directly by your Secure Source Manager + /// instance, so you must connect to your instance's API hostname to access + /// them. The API hostname looks like the following: + /// + /// https://[instance-id]-[project-number]-api.[location].sourcemanager.dev + /// + /// For example, + /// + /// https://my-instance-702770452863-api.us-central1.sourcemanager.dev + /// + /// Data Plane endpoints are denoted with **Host: Data Plane**. + /// + /// All other endpoints are found in the normal Cloud API location, namely, + /// `securcesourcemanager.googleapis.com`. + /// + public sealed partial class SecureSourceManagerClientImpl : SecureSourceManagerClient + { + private readonly gaxgrpc::ApiCall _callListInstances; + + private readonly gaxgrpc::ApiCall _callGetInstance; + + private readonly gaxgrpc::ApiCall _callCreateInstance; + + private readonly gaxgrpc::ApiCall _callDeleteInstance; + + private readonly gaxgrpc::ApiCall _callListRepositories; + + private readonly gaxgrpc::ApiCall _callGetRepository; + + private readonly gaxgrpc::ApiCall _callCreateRepository; + + private readonly gaxgrpc::ApiCall _callDeleteRepository; + + private readonly gaxgrpc::ApiCall _callGetIamPolicyRepo; + + private readonly gaxgrpc::ApiCall _callSetIamPolicyRepo; + + private readonly gaxgrpc::ApiCall _callTestIamPermissionsRepo; + + private readonly gaxgrpc::ApiCall _callCreateBranchRule; + + private readonly gaxgrpc::ApiCall _callListBranchRules; + + private readonly gaxgrpc::ApiCall _callGetBranchRule; + + private readonly gaxgrpc::ApiCall _callUpdateBranchRule; + + private readonly gaxgrpc::ApiCall _callDeleteBranchRule; + + /// + /// Constructs a client wrapper for the SecureSourceManager 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 SecureSourceManagerClientImpl(SecureSourceManager.SecureSourceManagerClient grpcClient, SecureSourceManagerSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + SecureSourceManagerSettings effectiveSettings = settings ?? SecureSourceManagerSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + Settings = effectiveSettings, + Logger = logger, + }); + CreateInstanceOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateInstanceOperationsSettings, logger); + DeleteInstanceOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DeleteInstanceOperationsSettings, logger); + CreateRepositoryOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateRepositoryOperationsSettings, logger); + DeleteRepositoryOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DeleteRepositoryOperationsSettings, logger); + CreateBranchRuleOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateBranchRuleOperationsSettings, logger); + UpdateBranchRuleOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateBranchRuleOperationsSettings, logger); + DeleteBranchRuleOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DeleteBranchRuleOperationsSettings, logger); + LocationsClient = new gcl::LocationsClientImpl(grpcClient.CreateLocationsClient(), effectiveSettings.LocationsSettings, logger); + IAMPolicyClient = new gciv::IAMPolicyClientImpl(grpcClient.CreateIAMPolicyClient(), effectiveSettings.IAMPolicySettings, logger); + _callListInstances = clientHelper.BuildApiCall("ListInstances", grpcClient.ListInstancesAsync, grpcClient.ListInstances, effectiveSettings.ListInstancesSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListInstances); + Modify_ListInstancesApiCall(ref _callListInstances); + _callGetInstance = clientHelper.BuildApiCall("GetInstance", grpcClient.GetInstanceAsync, grpcClient.GetInstance, effectiveSettings.GetInstanceSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetInstance); + Modify_GetInstanceApiCall(ref _callGetInstance); + _callCreateInstance = clientHelper.BuildApiCall("CreateInstance", grpcClient.CreateInstanceAsync, grpcClient.CreateInstance, effectiveSettings.CreateInstanceSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateInstance); + Modify_CreateInstanceApiCall(ref _callCreateInstance); + _callDeleteInstance = clientHelper.BuildApiCall("DeleteInstance", grpcClient.DeleteInstanceAsync, grpcClient.DeleteInstance, effectiveSettings.DeleteInstanceSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteInstance); + Modify_DeleteInstanceApiCall(ref _callDeleteInstance); + _callListRepositories = clientHelper.BuildApiCall("ListRepositories", grpcClient.ListRepositoriesAsync, grpcClient.ListRepositories, effectiveSettings.ListRepositoriesSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListRepositories); + Modify_ListRepositoriesApiCall(ref _callListRepositories); + _callGetRepository = clientHelper.BuildApiCall("GetRepository", grpcClient.GetRepositoryAsync, grpcClient.GetRepository, effectiveSettings.GetRepositorySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetRepository); + Modify_GetRepositoryApiCall(ref _callGetRepository); + _callCreateRepository = clientHelper.BuildApiCall("CreateRepository", grpcClient.CreateRepositoryAsync, grpcClient.CreateRepository, effectiveSettings.CreateRepositorySettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateRepository); + Modify_CreateRepositoryApiCall(ref _callCreateRepository); + _callDeleteRepository = clientHelper.BuildApiCall("DeleteRepository", grpcClient.DeleteRepositoryAsync, grpcClient.DeleteRepository, effectiveSettings.DeleteRepositorySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteRepository); + Modify_DeleteRepositoryApiCall(ref _callDeleteRepository); + _callGetIamPolicyRepo = clientHelper.BuildApiCall("GetIamPolicyRepo", grpcClient.GetIamPolicyRepoAsync, grpcClient.GetIamPolicyRepo, effectiveSettings.GetIamPolicyRepoSettings).WithGoogleRequestParam("resource", request => request.Resource); + Modify_ApiCall(ref _callGetIamPolicyRepo); + Modify_GetIamPolicyRepoApiCall(ref _callGetIamPolicyRepo); + _callSetIamPolicyRepo = clientHelper.BuildApiCall("SetIamPolicyRepo", grpcClient.SetIamPolicyRepoAsync, grpcClient.SetIamPolicyRepo, effectiveSettings.SetIamPolicyRepoSettings).WithGoogleRequestParam("resource", request => request.Resource); + Modify_ApiCall(ref _callSetIamPolicyRepo); + Modify_SetIamPolicyRepoApiCall(ref _callSetIamPolicyRepo); + _callTestIamPermissionsRepo = clientHelper.BuildApiCall("TestIamPermissionsRepo", grpcClient.TestIamPermissionsRepoAsync, grpcClient.TestIamPermissionsRepo, effectiveSettings.TestIamPermissionsRepoSettings).WithGoogleRequestParam("resource", request => request.Resource); + Modify_ApiCall(ref _callTestIamPermissionsRepo); + Modify_TestIamPermissionsRepoApiCall(ref _callTestIamPermissionsRepo); + _callCreateBranchRule = clientHelper.BuildApiCall("CreateBranchRule", grpcClient.CreateBranchRuleAsync, grpcClient.CreateBranchRule, effectiveSettings.CreateBranchRuleSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateBranchRule); + Modify_CreateBranchRuleApiCall(ref _callCreateBranchRule); + _callListBranchRules = clientHelper.BuildApiCall("ListBranchRules", grpcClient.ListBranchRulesAsync, grpcClient.ListBranchRules, effectiveSettings.ListBranchRulesSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListBranchRules); + Modify_ListBranchRulesApiCall(ref _callListBranchRules); + _callGetBranchRule = clientHelper.BuildApiCall("GetBranchRule", grpcClient.GetBranchRuleAsync, grpcClient.GetBranchRule, effectiveSettings.GetBranchRuleSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetBranchRule); + Modify_GetBranchRuleApiCall(ref _callGetBranchRule); + _callUpdateBranchRule = clientHelper.BuildApiCall("UpdateBranchRule", grpcClient.UpdateBranchRuleAsync, grpcClient.UpdateBranchRule, effectiveSettings.UpdateBranchRuleSettings).WithGoogleRequestParam("branch_rule.name", request => request.BranchRule?.Name); + Modify_ApiCall(ref _callUpdateBranchRule); + Modify_UpdateBranchRuleApiCall(ref _callUpdateBranchRule); + _callDeleteBranchRule = clientHelper.BuildApiCall("DeleteBranchRule", grpcClient.DeleteBranchRuleAsync, grpcClient.DeleteBranchRule, effectiveSettings.DeleteBranchRuleSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteBranchRule); + Modify_DeleteBranchRuleApiCall(ref _callDeleteBranchRule); + 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_ListInstancesApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetInstanceApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateInstanceApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteInstanceApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListRepositoriesApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetRepositoryApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateRepositoryApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteRepositoryApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetIamPolicyRepoApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_SetIamPolicyRepoApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_TestIamPermissionsRepoApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateBranchRuleApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListBranchRulesApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetBranchRuleApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateBranchRuleApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteBranchRuleApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(SecureSourceManager.SecureSourceManagerClient grpcClient, SecureSourceManagerSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC SecureSourceManager client + public override SecureSourceManager.SecureSourceManagerClient GrpcClient { get; } + + /// The associated with this client. + public override gcl::LocationsClient LocationsClient { get; } + + /// The associated with this client. + public override gciv::IAMPolicyClient IAMPolicyClient { get; } + + partial void Modify_ListInstancesRequest(ref ListInstancesRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetInstanceRequest(ref GetInstanceRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateInstanceRequest(ref CreateInstanceRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteInstanceRequest(ref DeleteInstanceRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListRepositoriesRequest(ref ListRepositoriesRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetRepositoryRequest(ref GetRepositoryRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateRepositoryRequest(ref CreateRepositoryRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteRepositoryRequest(ref DeleteRepositoryRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetIamPolicyRequest(ref gciv::GetIamPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_SetIamPolicyRequest(ref gciv::SetIamPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_TestIamPermissionsRequest(ref gciv::TestIamPermissionsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateBranchRuleRequest(ref CreateBranchRuleRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListBranchRulesRequest(ref ListBranchRulesRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetBranchRuleRequest(ref GetBranchRuleRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateBranchRuleRequest(ref UpdateBranchRuleRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteBranchRuleRequest(ref DeleteBranchRuleRequest request, ref gaxgrpc::CallSettings settings); + + /// + /// Lists Instances in a given project and location. + /// + /// 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 ListInstances(ListInstancesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListInstancesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListInstances, request, callSettings); + } + + /// + /// Lists Instances in a given project and location. + /// + /// 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 ListInstancesAsync(ListInstancesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListInstancesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListInstances, request, callSettings); + } + + /// + /// Gets details of a single instance. + /// + /// 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 Instance GetInstance(GetInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetInstanceRequest(ref request, ref callSettings); + return _callGetInstance.Sync(request, callSettings); + } + + /// + /// Gets details of a single instance. + /// + /// 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 GetInstanceAsync(GetInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetInstanceRequest(ref request, ref callSettings); + return _callGetInstance.Async(request, callSettings); + } + + /// The long-running operations client for CreateInstance. + public override lro::OperationsClient CreateInstanceOperationsClient { get; } + + /// + /// Creates a new instance in a given project and location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateInstance(CreateInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateInstanceRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateInstance.Sync(request, callSettings), CreateInstanceOperationsClient); + } + + /// + /// Creates a new instance in a given project and location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateInstanceAsync(CreateInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateInstanceRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateInstance.Async(request, callSettings).ConfigureAwait(false), CreateInstanceOperationsClient); + } + + /// The long-running operations client for DeleteInstance. + public override lro::OperationsClient DeleteInstanceOperationsClient { get; } + + /// + /// Deletes a single instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation DeleteInstance(DeleteInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteInstanceRequest(ref request, ref callSettings); + return new lro::Operation(_callDeleteInstance.Sync(request, callSettings), DeleteInstanceOperationsClient); + } + + /// + /// Deletes a single instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> DeleteInstanceAsync(DeleteInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteInstanceRequest(ref request, ref callSettings); + return new lro::Operation(await _callDeleteInstance.Async(request, callSettings).ConfigureAwait(false), DeleteInstanceOperationsClient); + } + + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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 ListRepositories(ListRepositoriesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListRepositoriesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListRepositories, request, callSettings); + } + + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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 ListRepositoriesAsync(ListRepositoriesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListRepositoriesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListRepositories, request, callSettings); + } + + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// 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 Repository GetRepository(GetRepositoryRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetRepositoryRequest(ref request, ref callSettings); + return _callGetRepository.Sync(request, callSettings); + } + + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// 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 GetRepositoryAsync(GetRepositoryRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetRepositoryRequest(ref request, ref callSettings); + return _callGetRepository.Async(request, callSettings); + } + + /// The long-running operations client for CreateRepository. + public override lro::OperationsClient CreateRepositoryOperationsClient { get; } + + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateRepository(CreateRepositoryRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateRepositoryRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateRepository.Sync(request, callSettings), CreateRepositoryOperationsClient); + } + + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateRepositoryAsync(CreateRepositoryRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateRepositoryRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateRepository.Async(request, callSettings).ConfigureAwait(false), CreateRepositoryOperationsClient); + } + + /// The long-running operations client for DeleteRepository. + public override lro::OperationsClient DeleteRepositoryOperationsClient { get; } + + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation DeleteRepository(DeleteRepositoryRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteRepositoryRequest(ref request, ref callSettings); + return new lro::Operation(_callDeleteRepository.Sync(request, callSettings), DeleteRepositoryOperationsClient); + } + + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> DeleteRepositoryAsync(DeleteRepositoryRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteRepositoryRequest(ref request, ref callSettings); + return new lro::Operation(await _callDeleteRepository.Async(request, callSettings).ConfigureAwait(false), DeleteRepositoryOperationsClient); + } + + /// + /// Get IAM policy for a repository. + /// + /// 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 GetIamPolicyRepo(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetIamPolicyRequest(ref request, ref callSettings); + return _callGetIamPolicyRepo.Sync(request, callSettings); + } + + /// + /// Get IAM policy for a repository. + /// + /// 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 GetIamPolicyRepoAsync(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetIamPolicyRequest(ref request, ref callSettings); + return _callGetIamPolicyRepo.Async(request, callSettings); + } + + /// + /// Set IAM policy on a repository. + /// + /// 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 SetIamPolicyRepo(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SetIamPolicyRequest(ref request, ref callSettings); + return _callSetIamPolicyRepo.Sync(request, callSettings); + } + + /// + /// Set IAM policy on a repository. + /// + /// 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 SetIamPolicyRepoAsync(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SetIamPolicyRequest(ref request, ref callSettings); + return _callSetIamPolicyRepo.Async(request, callSettings); + } + + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// 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 TestIamPermissionsRepo(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_TestIamPermissionsRequest(ref request, ref callSettings); + return _callTestIamPermissionsRepo.Sync(request, callSettings); + } + + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// 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 TestIamPermissionsRepoAsync(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_TestIamPermissionsRequest(ref request, ref callSettings); + return _callTestIamPermissionsRepo.Async(request, callSettings); + } + + /// The long-running operations client for CreateBranchRule. + public override lro::OperationsClient CreateBranchRuleOperationsClient { get; } + + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateBranchRule(CreateBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateBranchRuleRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateBranchRule.Sync(request, callSettings), CreateBranchRuleOperationsClient); + } + + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateBranchRuleAsync(CreateBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateBranchRuleRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateBranchRule.Async(request, callSettings).ConfigureAwait(false), CreateBranchRuleOperationsClient); + } + + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// 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 ListBranchRules(ListBranchRulesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListBranchRulesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListBranchRules, request, callSettings); + } + + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// 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 ListBranchRulesAsync(ListBranchRulesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListBranchRulesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListBranchRules, request, callSettings); + } + + /// + /// GetBranchRule gets a branch rule. + /// + /// 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 BranchRule GetBranchRule(GetBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetBranchRuleRequest(ref request, ref callSettings); + return _callGetBranchRule.Sync(request, callSettings); + } + + /// + /// GetBranchRule gets a branch rule. + /// + /// 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 GetBranchRuleAsync(GetBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetBranchRuleRequest(ref request, ref callSettings); + return _callGetBranchRule.Async(request, callSettings); + } + + /// The long-running operations client for UpdateBranchRule. + public override lro::OperationsClient UpdateBranchRuleOperationsClient { get; } + + /// + /// UpdateBranchRule updates a branch rule. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UpdateBranchRule(UpdateBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateBranchRuleRequest(ref request, ref callSettings); + return new lro::Operation(_callUpdateBranchRule.Sync(request, callSettings), UpdateBranchRuleOperationsClient); + } + + /// + /// UpdateBranchRule updates a branch rule. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UpdateBranchRuleAsync(UpdateBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateBranchRuleRequest(ref request, ref callSettings); + return new lro::Operation(await _callUpdateBranchRule.Async(request, callSettings).ConfigureAwait(false), UpdateBranchRuleOperationsClient); + } + + /// The long-running operations client for DeleteBranchRule. + public override lro::OperationsClient DeleteBranchRuleOperationsClient { get; } + + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation DeleteBranchRule(DeleteBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteBranchRuleRequest(ref request, ref callSettings); + return new lro::Operation(_callDeleteBranchRule.Sync(request, callSettings), DeleteBranchRuleOperationsClient); + } + + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> DeleteBranchRuleAsync(DeleteBranchRuleRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteBranchRuleRequest(ref request, ref callSettings); + return new lro::Operation(await _callDeleteBranchRule.Async(request, callSettings).ConfigureAwait(false), DeleteBranchRuleOperationsClient); + } + } + + public partial class ListInstancesRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListRepositoriesRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListBranchRulesRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListInstancesResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => Instances.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListRepositoriesResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => Repositories.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListBranchRulesResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => BranchRules.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public static partial class SecureSourceManager + { + public partial class SecureSourceManagerClient + { + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// A new Operations client for the same target as this client. + public virtual lro::Operations.OperationsClient CreateOperationsClient() => + new lro::Operations.OperationsClient(CallInvoker); + } + } + + public static partial class SecureSourceManager + { + public partial class SecureSourceManagerClient + { + /// + /// 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); + + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// + /// A new for the same target as this client. + /// + public virtual gciv::IAMPolicy.IAMPolicyClient CreateIAMPolicyClient() => + new gciv::IAMPolicy.IAMPolicyClient(CallInvoker); + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManagerGrpc.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManagerGrpc.g.cs new file mode 100755 index 000000000000..5b93a570de56 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManagerGrpc.g.cs @@ -0,0 +1,1367 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securesourcemanager/v1/secure_source_manager.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.SecureSourceManager.V1 { + /// + /// Secure Source Manager API + /// + /// Access Secure Source Manager instances, resources, and repositories. + /// + /// This API is split across two servers: the Control Plane and the Data Plane. + /// + /// Data Plane endpoints are hosted directly by your Secure Source Manager + /// instance, so you must connect to your instance's API hostname to access + /// them. The API hostname looks like the following: + /// + /// https://[instance-id]-[project-number]-api.[location].sourcemanager.dev + /// + /// For example, + /// + /// https://my-instance-702770452863-api.us-central1.sourcemanager.dev + /// + /// Data Plane endpoints are denoted with **Host: Data Plane**. + /// + /// All other endpoints are found in the normal Cloud API location, namely, + /// `securcesourcemanager.googleapis.com`. + /// + public static partial class SecureSourceManager + { + static readonly string __ServiceName = "google.cloud.securesourcemanager.v1.SecureSourceManager"; + + [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_securesourcemanager_v1_ListInstancesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.ListInstancesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_ListInstancesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.ListInstancesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_GetInstanceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.GetInstanceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_Instance = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.Instance.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_CreateInstanceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.CreateInstanceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_longrunning_Operation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.LongRunning.Operation.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_DeleteInstanceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.DeleteInstanceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_ListRepositoriesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.ListRepositoriesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_ListRepositoriesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.ListRepositoriesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_GetRepositoryRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.GetRepositoryRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_Repository = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.Repository.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_CreateRepositoryRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.CreateRepositoryRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_DeleteRepositoryRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.DeleteRepositoryRequest.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_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_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_TestIamPermissionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.TestIamPermissionsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_TestIamPermissionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.TestIamPermissionsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_CreateBranchRuleRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.CreateBranchRuleRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_ListBranchRulesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.ListBranchRulesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_ListBranchRulesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.ListBranchRulesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_GetBranchRuleRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.GetBranchRuleRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_BranchRule = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.BranchRule.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_UpdateBranchRuleRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.UpdateBranchRuleRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securesourcemanager_v1_DeleteBranchRuleRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecureSourceManager.V1.DeleteBranchRuleRequest.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListInstances = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListInstances", + __Marshaller_google_cloud_securesourcemanager_v1_ListInstancesRequest, + __Marshaller_google_cloud_securesourcemanager_v1_ListInstancesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetInstance = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetInstance", + __Marshaller_google_cloud_securesourcemanager_v1_GetInstanceRequest, + __Marshaller_google_cloud_securesourcemanager_v1_Instance); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateInstance = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateInstance", + __Marshaller_google_cloud_securesourcemanager_v1_CreateInstanceRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteInstance = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteInstance", + __Marshaller_google_cloud_securesourcemanager_v1_DeleteInstanceRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListRepositories = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListRepositories", + __Marshaller_google_cloud_securesourcemanager_v1_ListRepositoriesRequest, + __Marshaller_google_cloud_securesourcemanager_v1_ListRepositoriesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetRepository = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetRepository", + __Marshaller_google_cloud_securesourcemanager_v1_GetRepositoryRequest, + __Marshaller_google_cloud_securesourcemanager_v1_Repository); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateRepository = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateRepository", + __Marshaller_google_cloud_securesourcemanager_v1_CreateRepositoryRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteRepository = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteRepository", + __Marshaller_google_cloud_securesourcemanager_v1_DeleteRepositoryRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetIamPolicyRepo = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetIamPolicyRepo", + __Marshaller_google_iam_v1_GetIamPolicyRequest, + __Marshaller_google_iam_v1_Policy); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_SetIamPolicyRepo = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "SetIamPolicyRepo", + __Marshaller_google_iam_v1_SetIamPolicyRequest, + __Marshaller_google_iam_v1_Policy); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_TestIamPermissionsRepo = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "TestIamPermissionsRepo", + __Marshaller_google_iam_v1_TestIamPermissionsRequest, + __Marshaller_google_iam_v1_TestIamPermissionsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateBranchRule = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateBranchRule", + __Marshaller_google_cloud_securesourcemanager_v1_CreateBranchRuleRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListBranchRules = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListBranchRules", + __Marshaller_google_cloud_securesourcemanager_v1_ListBranchRulesRequest, + __Marshaller_google_cloud_securesourcemanager_v1_ListBranchRulesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetBranchRule = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetBranchRule", + __Marshaller_google_cloud_securesourcemanager_v1_GetBranchRuleRequest, + __Marshaller_google_cloud_securesourcemanager_v1_BranchRule); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateBranchRule = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateBranchRule", + __Marshaller_google_cloud_securesourcemanager_v1_UpdateBranchRuleRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteBranchRule = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteBranchRule", + __Marshaller_google_cloud_securesourcemanager_v1_DeleteBranchRuleRequest, + __Marshaller_google_longrunning_Operation); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Cloud.SecureSourceManager.V1.SecureSourceManagerReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of SecureSourceManager + [grpc::BindServiceMethod(typeof(SecureSourceManager), "BindService")] + public abstract partial class SecureSourceManagerBase + { + /// + /// Lists Instances in a given project and location. + /// + /// 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 ListInstances(global::Google.Cloud.SecureSourceManager.V1.ListInstancesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets details of a single instance. + /// + /// 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 GetInstance(global::Google.Cloud.SecureSourceManager.V1.GetInstanceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a new instance in a given project and location. + /// + /// 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 CreateInstance(global::Google.Cloud.SecureSourceManager.V1.CreateInstanceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes a single instance. + /// + /// 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 DeleteInstance(global::Google.Cloud.SecureSourceManager.V1.DeleteInstanceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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 ListRepositories(global::Google.Cloud.SecureSourceManager.V1.ListRepositoriesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// 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 GetRepository(global::Google.Cloud.SecureSourceManager.V1.GetRepositoryRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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 CreateRepository(global::Google.Cloud.SecureSourceManager.V1.CreateRepositoryRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// 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 DeleteRepository(global::Google.Cloud.SecureSourceManager.V1.DeleteRepositoryRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Get IAM policy for a repository. + /// + /// 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 GetIamPolicyRepo(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Set IAM policy on a repository. + /// + /// 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 SetIamPolicyRepo(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// 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 TestIamPermissionsRepo(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// 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 CreateBranchRule(global::Google.Cloud.SecureSourceManager.V1.CreateBranchRuleRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// 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 ListBranchRules(global::Google.Cloud.SecureSourceManager.V1.ListBranchRulesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// GetBranchRule gets a branch rule. + /// + /// 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 GetBranchRule(global::Google.Cloud.SecureSourceManager.V1.GetBranchRuleRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// UpdateBranchRule updates a branch rule. + /// + /// 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 UpdateBranchRule(global::Google.Cloud.SecureSourceManager.V1.UpdateBranchRuleRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// 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 DeleteBranchRule(global::Google.Cloud.SecureSourceManager.V1.DeleteBranchRuleRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for SecureSourceManager + public partial class SecureSourceManagerClient : grpc::ClientBase + { + /// Creates a new client for SecureSourceManager + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public SecureSourceManagerClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for SecureSourceManager that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public SecureSourceManagerClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected SecureSourceManagerClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected SecureSourceManagerClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Lists Instances in a given project and location. + /// + /// 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.SecureSourceManager.V1.ListInstancesResponse ListInstances(global::Google.Cloud.SecureSourceManager.V1.ListInstancesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListInstances(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists Instances in a given project and location. + /// + /// 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.SecureSourceManager.V1.ListInstancesResponse ListInstances(global::Google.Cloud.SecureSourceManager.V1.ListInstancesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListInstances, null, options, request); + } + /// + /// Lists Instances in a given project and location. + /// + /// 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 ListInstancesAsync(global::Google.Cloud.SecureSourceManager.V1.ListInstancesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListInstancesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists Instances in a given project and location. + /// + /// 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 ListInstancesAsync(global::Google.Cloud.SecureSourceManager.V1.ListInstancesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListInstances, null, options, request); + } + /// + /// Gets details of a single instance. + /// + /// 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.SecureSourceManager.V1.Instance GetInstance(global::Google.Cloud.SecureSourceManager.V1.GetInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetInstance(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets details of a single instance. + /// + /// 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.SecureSourceManager.V1.Instance GetInstance(global::Google.Cloud.SecureSourceManager.V1.GetInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetInstance, null, options, request); + } + /// + /// Gets details of a single instance. + /// + /// 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 GetInstanceAsync(global::Google.Cloud.SecureSourceManager.V1.GetInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetInstanceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets details of a single instance. + /// + /// 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 GetInstanceAsync(global::Google.Cloud.SecureSourceManager.V1.GetInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetInstance, null, options, request); + } + /// + /// Creates a new instance in a given project and location. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateInstance(global::Google.Cloud.SecureSourceManager.V1.CreateInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateInstance(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new instance in a given project and location. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateInstance(global::Google.Cloud.SecureSourceManager.V1.CreateInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateInstance, null, options, request); + } + /// + /// Creates a new instance in a given project and location. + /// + /// 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 CreateInstanceAsync(global::Google.Cloud.SecureSourceManager.V1.CreateInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateInstanceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new instance in a given project and location. + /// + /// 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 CreateInstanceAsync(global::Google.Cloud.SecureSourceManager.V1.CreateInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateInstance, null, options, request); + } + /// + /// Deletes a single instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteInstance(global::Google.Cloud.SecureSourceManager.V1.DeleteInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteInstance(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a single instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteInstance(global::Google.Cloud.SecureSourceManager.V1.DeleteInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteInstance, null, options, request); + } + /// + /// Deletes a single instance. + /// + /// 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 DeleteInstanceAsync(global::Google.Cloud.SecureSourceManager.V1.DeleteInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteInstanceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a single instance. + /// + /// 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 DeleteInstanceAsync(global::Google.Cloud.SecureSourceManager.V1.DeleteInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteInstance, null, options, request); + } + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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.SecureSourceManager.V1.ListRepositoriesResponse ListRepositories(global::Google.Cloud.SecureSourceManager.V1.ListRepositoriesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListRepositories(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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.SecureSourceManager.V1.ListRepositoriesResponse ListRepositories(global::Google.Cloud.SecureSourceManager.V1.ListRepositoriesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListRepositories, null, options, request); + } + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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 ListRepositoriesAsync(global::Google.Cloud.SecureSourceManager.V1.ListRepositoriesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListRepositoriesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists Repositories in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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 ListRepositoriesAsync(global::Google.Cloud.SecureSourceManager.V1.ListRepositoriesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListRepositories, null, options, request); + } + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// 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.SecureSourceManager.V1.Repository GetRepository(global::Google.Cloud.SecureSourceManager.V1.GetRepositoryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetRepository(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// 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.SecureSourceManager.V1.Repository GetRepository(global::Google.Cloud.SecureSourceManager.V1.GetRepositoryRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetRepository, null, options, request); + } + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// 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 GetRepositoryAsync(global::Google.Cloud.SecureSourceManager.V1.GetRepositoryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetRepositoryAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets metadata of a repository. + /// + /// **Host: Data Plane** + /// + /// 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 GetRepositoryAsync(global::Google.Cloud.SecureSourceManager.V1.GetRepositoryRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetRepository, null, options, request); + } + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateRepository(global::Google.Cloud.SecureSourceManager.V1.CreateRepositoryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateRepository(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateRepository(global::Google.Cloud.SecureSourceManager.V1.CreateRepositoryRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateRepository, null, options, request); + } + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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 CreateRepositoryAsync(global::Google.Cloud.SecureSourceManager.V1.CreateRepositoryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateRepositoryAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new repository in a given project and location. + /// + /// **Host: Data Plane** + /// + /// 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 CreateRepositoryAsync(global::Google.Cloud.SecureSourceManager.V1.CreateRepositoryRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateRepository, null, options, request); + } + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteRepository(global::Google.Cloud.SecureSourceManager.V1.DeleteRepositoryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteRepository(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteRepository(global::Google.Cloud.SecureSourceManager.V1.DeleteRepositoryRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteRepository, null, options, request); + } + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// 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 DeleteRepositoryAsync(global::Google.Cloud.SecureSourceManager.V1.DeleteRepositoryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteRepositoryAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a Repository. + /// + /// **Host: Data Plane** + /// + /// 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 DeleteRepositoryAsync(global::Google.Cloud.SecureSourceManager.V1.DeleteRepositoryRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteRepository, null, options, request); + } + /// + /// Get IAM policy for a repository. + /// + /// 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 GetIamPolicyRepo(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 GetIamPolicyRepo(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get IAM policy for a repository. + /// + /// 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 GetIamPolicyRepo(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetIamPolicyRepo, null, options, request); + } + /// + /// Get IAM policy for a repository. + /// + /// 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 GetIamPolicyRepoAsync(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 GetIamPolicyRepoAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Get IAM policy for a repository. + /// + /// 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 GetIamPolicyRepoAsync(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetIamPolicyRepo, null, options, request); + } + /// + /// Set IAM policy on a repository. + /// + /// 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 SetIamPolicyRepo(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 SetIamPolicyRepo(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Set IAM policy on a repository. + /// + /// 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 SetIamPolicyRepo(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_SetIamPolicyRepo, null, options, request); + } + /// + /// Set IAM policy on a repository. + /// + /// 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 SetIamPolicyRepoAsync(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 SetIamPolicyRepoAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Set IAM policy on a repository. + /// + /// 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 SetIamPolicyRepoAsync(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_SetIamPolicyRepo, null, options, request); + } + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// 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 TestIamPermissionsRepo(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 TestIamPermissionsRepo(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// 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 TestIamPermissionsRepo(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_TestIamPermissionsRepo, null, options, request); + } + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// 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 TestIamPermissionsRepoAsync(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 TestIamPermissionsRepoAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Test IAM permissions on a repository. + /// IAM permission checks are not required on this method. + /// + /// 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 TestIamPermissionsRepoAsync(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_TestIamPermissionsRepo, null, options, request); + } + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateBranchRule(global::Google.Cloud.SecureSourceManager.V1.CreateBranchRuleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateBranchRule(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateBranchRule(global::Google.Cloud.SecureSourceManager.V1.CreateBranchRuleRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateBranchRule, null, options, request); + } + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// 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 CreateBranchRuleAsync(global::Google.Cloud.SecureSourceManager.V1.CreateBranchRuleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateBranchRuleAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CreateBranchRule creates a branch rule in a given repository. + /// + /// 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 CreateBranchRuleAsync(global::Google.Cloud.SecureSourceManager.V1.CreateBranchRuleRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateBranchRule, null, options, request); + } + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// 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.SecureSourceManager.V1.ListBranchRulesResponse ListBranchRules(global::Google.Cloud.SecureSourceManager.V1.ListBranchRulesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListBranchRules(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// 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.SecureSourceManager.V1.ListBranchRulesResponse ListBranchRules(global::Google.Cloud.SecureSourceManager.V1.ListBranchRulesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListBranchRules, null, options, request); + } + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// 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 ListBranchRulesAsync(global::Google.Cloud.SecureSourceManager.V1.ListBranchRulesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListBranchRulesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// ListBranchRules lists branch rules in a given repository. + /// + /// 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 ListBranchRulesAsync(global::Google.Cloud.SecureSourceManager.V1.ListBranchRulesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListBranchRules, null, options, request); + } + /// + /// GetBranchRule gets a branch rule. + /// + /// 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.SecureSourceManager.V1.BranchRule GetBranchRule(global::Google.Cloud.SecureSourceManager.V1.GetBranchRuleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetBranchRule(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetBranchRule gets a branch rule. + /// + /// 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.SecureSourceManager.V1.BranchRule GetBranchRule(global::Google.Cloud.SecureSourceManager.V1.GetBranchRuleRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetBranchRule, null, options, request); + } + /// + /// GetBranchRule gets a branch rule. + /// + /// 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 GetBranchRuleAsync(global::Google.Cloud.SecureSourceManager.V1.GetBranchRuleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetBranchRuleAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetBranchRule gets a branch rule. + /// + /// 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 GetBranchRuleAsync(global::Google.Cloud.SecureSourceManager.V1.GetBranchRuleRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetBranchRule, null, options, request); + } + /// + /// UpdateBranchRule updates a branch rule. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateBranchRule(global::Google.Cloud.SecureSourceManager.V1.UpdateBranchRuleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateBranchRule(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateBranchRule updates a branch rule. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateBranchRule(global::Google.Cloud.SecureSourceManager.V1.UpdateBranchRuleRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateBranchRule, null, options, request); + } + /// + /// UpdateBranchRule updates a branch rule. + /// + /// 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 UpdateBranchRuleAsync(global::Google.Cloud.SecureSourceManager.V1.UpdateBranchRuleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateBranchRuleAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// UpdateBranchRule updates a branch rule. + /// + /// 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 UpdateBranchRuleAsync(global::Google.Cloud.SecureSourceManager.V1.UpdateBranchRuleRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateBranchRule, null, options, request); + } + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteBranchRule(global::Google.Cloud.SecureSourceManager.V1.DeleteBranchRuleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteBranchRule(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteBranchRule(global::Google.Cloud.SecureSourceManager.V1.DeleteBranchRuleRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteBranchRule, null, options, request); + } + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// 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 DeleteBranchRuleAsync(global::Google.Cloud.SecureSourceManager.V1.DeleteBranchRuleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteBranchRuleAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteBranchRule deletes a branch rule. + /// + /// 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 DeleteBranchRuleAsync(global::Google.Cloud.SecureSourceManager.V1.DeleteBranchRuleRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteBranchRule, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override SecureSourceManagerClient NewInstance(ClientBaseConfiguration configuration) + { + return new SecureSourceManagerClient(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(SecureSourceManagerBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_ListInstances, serviceImpl.ListInstances) + .AddMethod(__Method_GetInstance, serviceImpl.GetInstance) + .AddMethod(__Method_CreateInstance, serviceImpl.CreateInstance) + .AddMethod(__Method_DeleteInstance, serviceImpl.DeleteInstance) + .AddMethod(__Method_ListRepositories, serviceImpl.ListRepositories) + .AddMethod(__Method_GetRepository, serviceImpl.GetRepository) + .AddMethod(__Method_CreateRepository, serviceImpl.CreateRepository) + .AddMethod(__Method_DeleteRepository, serviceImpl.DeleteRepository) + .AddMethod(__Method_GetIamPolicyRepo, serviceImpl.GetIamPolicyRepo) + .AddMethod(__Method_SetIamPolicyRepo, serviceImpl.SetIamPolicyRepo) + .AddMethod(__Method_TestIamPermissionsRepo, serviceImpl.TestIamPermissionsRepo) + .AddMethod(__Method_CreateBranchRule, serviceImpl.CreateBranchRule) + .AddMethod(__Method_ListBranchRules, serviceImpl.ListBranchRules) + .AddMethod(__Method_GetBranchRule, serviceImpl.GetBranchRule) + .AddMethod(__Method_UpdateBranchRule, serviceImpl.UpdateBranchRule) + .AddMethod(__Method_DeleteBranchRule, serviceImpl.DeleteBranchRule).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, SecureSourceManagerBase serviceImpl) + { + serviceBinder.AddMethod(__Method_ListInstances, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListInstances)); + serviceBinder.AddMethod(__Method_GetInstance, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetInstance)); + serviceBinder.AddMethod(__Method_CreateInstance, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateInstance)); + serviceBinder.AddMethod(__Method_DeleteInstance, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteInstance)); + serviceBinder.AddMethod(__Method_ListRepositories, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListRepositories)); + serviceBinder.AddMethod(__Method_GetRepository, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRepository)); + serviceBinder.AddMethod(__Method_CreateRepository, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateRepository)); + serviceBinder.AddMethod(__Method_DeleteRepository, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteRepository)); + serviceBinder.AddMethod(__Method_GetIamPolicyRepo, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetIamPolicyRepo)); + serviceBinder.AddMethod(__Method_SetIamPolicyRepo, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetIamPolicyRepo)); + serviceBinder.AddMethod(__Method_TestIamPermissionsRepo, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.TestIamPermissionsRepo)); + serviceBinder.AddMethod(__Method_CreateBranchRule, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateBranchRule)); + serviceBinder.AddMethod(__Method_ListBranchRules, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListBranchRules)); + serviceBinder.AddMethod(__Method_GetBranchRule, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetBranchRule)); + serviceBinder.AddMethod(__Method_UpdateBranchRule, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateBranchRule)); + serviceBinder.AddMethod(__Method_DeleteBranchRule, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteBranchRule)); + } + + } +} +#endregion diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManagerResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManagerResourceNames.g.cs new file mode 100755 index 000000000000..a02fca3f6c5f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/SecureSourceManagerResourceNames.g.cs @@ -0,0 +1,1802 @@ +// 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.SecureSourceManager.V1; +using sys = System; + +namespace Google.Cloud.SecureSourceManager.V1 +{ + /// Resource name for the Instance resource. + public sealed partial class InstanceName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern projects/{project}/locations/{location}/instances/{instance}. + /// + ProjectLocationInstance = 1, + } + + private static gax::PathTemplate s_projectLocationInstance = new gax::PathTemplate("projects/{project}/locations/{location}/instances/{instance}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static InstanceName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new InstanceName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/instances/{instance}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static InstanceName FromProjectLocationInstance(string projectId, string locationId, string instanceId) => + new InstanceName(ResourceNameType.ProjectLocationInstance, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/instances/{instance}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/instances/{instance}. + /// + public static string Format(string projectId, string locationId, string instanceId) => + FormatProjectLocationInstance(projectId, locationId, instanceId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/instances/{instance}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/instances/{instance}. + /// + public static string FormatProjectLocationInstance(string projectId, string locationId, string instanceId) => + s_projectLocationInstance.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId))); + + /// 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}/locations/{location}/instances/{instance} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static InstanceName Parse(string instanceName) => Parse(instanceName, 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}/locations/{location}/instances/{instance} + /// + /// 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 InstanceName Parse(string instanceName, bool allowUnparsed) => + TryParse(instanceName, allowUnparsed, out InstanceName 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}/locations/{location}/instances/{instance} + /// + /// + /// 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 instanceName, out InstanceName result) => TryParse(instanceName, 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}/locations/{location}/instances/{instance} + /// + /// 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 instanceName, bool allowUnparsed, out InstanceName result) + { + gax::GaxPreconditions.CheckNotNull(instanceName, nameof(instanceName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationInstance.TryParseName(instanceName, out resourceName)) + { + result = FromProjectLocationInstance(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(instanceName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private InstanceName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string instanceId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + InstanceId = instanceId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/locations/{location}/instances/{instance} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + public InstanceName(string projectId, string locationId, string instanceId) : this(ResourceNameType.ProjectLocationInstance, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId))) + { + } + + /// 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 Instance ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string InstanceId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { 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.ProjectLocationInstance: return s_projectLocationInstance.Expand(ProjectId, LocationId, InstanceId); + 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 InstanceName); + + /// + public bool Equals(InstanceName 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 ==(InstanceName a, InstanceName 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 !=(InstanceName a, InstanceName b) => !(a == b); + } + + /// Resource name for the Repository resource. + public sealed partial class RepositoryName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern projects/{project}/locations/{location}/repositories/{repository}. + /// + ProjectLocationRepository = 1, + } + + private static gax::PathTemplate s_projectLocationRepository = new gax::PathTemplate("projects/{project}/locations/{location}/repositories/{repository}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static RepositoryName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new RepositoryName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/repositories/{repository}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Repository ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static RepositoryName FromProjectLocationRepository(string projectId, string locationId, string repositoryId) => + new RepositoryName(ResourceNameType.ProjectLocationRepository, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), repositoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(repositoryId, nameof(repositoryId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/repositories/{repository}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Repository ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/repositories/{repository}. + /// + public static string Format(string projectId, string locationId, string repositoryId) => + FormatProjectLocationRepository(projectId, locationId, repositoryId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/repositories/{repository}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Repository ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/repositories/{repository}. + /// + public static string FormatProjectLocationRepository(string projectId, string locationId, string repositoryId) => + s_projectLocationRepository.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(repositoryId, nameof(repositoryId))); + + /// 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}/locations/{location}/repositories/{repository} + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static RepositoryName Parse(string repositoryName) => Parse(repositoryName, 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}/locations/{location}/repositories/{repository} + /// + /// + /// 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 RepositoryName Parse(string repositoryName, bool allowUnparsed) => + TryParse(repositoryName, allowUnparsed, out RepositoryName 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}/locations/{location}/repositories/{repository} + /// + /// + /// + /// 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 repositoryName, out RepositoryName result) => + TryParse(repositoryName, 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}/locations/{location}/repositories/{repository} + /// + /// + /// 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 repositoryName, bool allowUnparsed, out RepositoryName result) + { + gax::GaxPreconditions.CheckNotNull(repositoryName, nameof(repositoryName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationRepository.TryParseName(repositoryName, out resourceName)) + { + result = FromProjectLocationRepository(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(repositoryName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private RepositoryName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string locationId = null, string projectId = null, string repositoryId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + LocationId = locationId; + ProjectId = projectId; + RepositoryId = repositoryId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/locations/{location}/repositories/{repository} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Repository ID. Must not be null or empty. + public RepositoryName(string projectId, string locationId, string repositoryId) : this(ResourceNameType.ProjectLocationRepository, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), repositoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(repositoryId, nameof(repositoryId))) + { + } + + /// 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. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// + /// The Repository ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string RepositoryId { 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.ProjectLocationRepository: return s_projectLocationRepository.Expand(ProjectId, LocationId, RepositoryId); + 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 RepositoryName); + + /// + public bool Equals(RepositoryName 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 ==(RepositoryName a, RepositoryName 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 !=(RepositoryName a, RepositoryName b) => !(a == b); + } + + /// Resource name for the BranchRule resource. + public sealed partial class BranchRuleName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}. + /// + ProjectLocationRepositoryBranchRule = 1, + } + + private static gax::PathTemplate s_projectLocationRepositoryBranchRule = new gax::PathTemplate("projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static BranchRuleName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new BranchRuleName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Repository ID. Must not be null or empty. + /// The BranchRule ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static BranchRuleName FromProjectLocationRepositoryBranchRule(string projectId, string locationId, string repositoryId, string branchRuleId) => + new BranchRuleName(ResourceNameType.ProjectLocationRepositoryBranchRule, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), repositoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(repositoryId, nameof(repositoryId)), branchRuleId: gax::GaxPreconditions.CheckNotNullOrEmpty(branchRuleId, nameof(branchRuleId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Repository ID. Must not be null or empty. + /// The BranchRule ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}. + /// + public static string Format(string projectId, string locationId, string repositoryId, string branchRuleId) => + FormatProjectLocationRepositoryBranchRule(projectId, locationId, repositoryId, branchRuleId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Repository ID. Must not be null or empty. + /// The BranchRule ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}. + /// + public static string FormatProjectLocationRepositoryBranchRule(string projectId, string locationId, string repositoryId, string branchRuleId) => + s_projectLocationRepositoryBranchRule.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(repositoryId, nameof(repositoryId)), gax::GaxPreconditions.CheckNotNullOrEmpty(branchRuleId, nameof(branchRuleId))); + + /// 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}/locations/{location}/repositories/{repository}/branchRules/{branch_rule} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static BranchRuleName Parse(string branchRuleName) => Parse(branchRuleName, 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}/locations/{location}/repositories/{repository}/branchRules/{branch_rule} + /// + /// + /// + /// 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 BranchRuleName Parse(string branchRuleName, bool allowUnparsed) => + TryParse(branchRuleName, allowUnparsed, out BranchRuleName 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}/locations/{location}/repositories/{repository}/branchRules/{branch_rule} + /// + /// + /// + /// + /// 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 branchRuleName, out BranchRuleName result) => + TryParse(branchRuleName, 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}/locations/{location}/repositories/{repository}/branchRules/{branch_rule} + /// + /// + /// + /// 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 branchRuleName, bool allowUnparsed, out BranchRuleName result) + { + gax::GaxPreconditions.CheckNotNull(branchRuleName, nameof(branchRuleName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationRepositoryBranchRule.TryParseName(branchRuleName, out resourceName)) + { + result = FromProjectLocationRepositoryBranchRule(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(branchRuleName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private BranchRuleName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string branchRuleId = null, string locationId = null, string projectId = null, string repositoryId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + BranchRuleId = branchRuleId; + LocationId = locationId; + ProjectId = projectId; + RepositoryId = repositoryId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Repository ID. Must not be null or empty. + /// The BranchRule ID. Must not be null or empty. + public BranchRuleName(string projectId, string locationId, string repositoryId, string branchRuleId) : this(ResourceNameType.ProjectLocationRepositoryBranchRule, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), repositoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(repositoryId, nameof(repositoryId)), branchRuleId: gax::GaxPreconditions.CheckNotNullOrEmpty(branchRuleId, nameof(branchRuleId))) + { + } + + /// 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 BranchRule ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string BranchRuleId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// + /// The Repository ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string RepositoryId { 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.ProjectLocationRepositoryBranchRule: return s_projectLocationRepositoryBranchRule.Expand(ProjectId, LocationId, RepositoryId, BranchRuleId); + 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 BranchRuleName); + + /// + public bool Equals(BranchRuleName 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 ==(BranchRuleName a, BranchRuleName 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 !=(BranchRuleName a, BranchRuleName b) => !(a == b); + } + + /// Resource name for the CryptoKey resource. + public sealed partial class CryptoKeyName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + /// + ProjectLocationKeyRingCryptoKey = 1, + } + + private static gax::PathTemplate s_projectLocationKeyRingCryptoKey = new gax::PathTemplate("projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static CryptoKeyName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new CryptoKeyName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The KeyRing ID. Must not be null or empty. + /// The CryptoKey ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static CryptoKeyName FromProjectLocationKeyRingCryptoKey(string projectId, string locationId, string keyRingId, string cryptoKeyId) => + new CryptoKeyName(ResourceNameType.ProjectLocationKeyRingCryptoKey, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), keyRingId: gax::GaxPreconditions.CheckNotNullOrEmpty(keyRingId, nameof(keyRingId)), cryptoKeyId: gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyId, nameof(cryptoKeyId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The KeyRing ID. Must not be null or empty. + /// The CryptoKey ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + /// + public static string Format(string projectId, string locationId, string keyRingId, string cryptoKeyId) => + FormatProjectLocationKeyRingCryptoKey(projectId, locationId, keyRingId, cryptoKeyId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The KeyRing ID. Must not be null or empty. + /// The CryptoKey ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + /// + public static string FormatProjectLocationKeyRingCryptoKey(string projectId, string locationId, string keyRingId, string cryptoKeyId) => + s_projectLocationKeyRingCryptoKey.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(keyRingId, nameof(keyRingId)), gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyId, nameof(cryptoKeyId))); + + /// 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}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static CryptoKeyName Parse(string cryptoKeyName) => Parse(cryptoKeyName, 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}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + /// + /// + /// + /// 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 CryptoKeyName Parse(string cryptoKeyName, bool allowUnparsed) => + TryParse(cryptoKeyName, allowUnparsed, out CryptoKeyName 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}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + /// + /// + /// + /// + /// 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 cryptoKeyName, out CryptoKeyName result) => TryParse(cryptoKeyName, 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}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + /// + /// + /// + /// 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 cryptoKeyName, bool allowUnparsed, out CryptoKeyName result) + { + gax::GaxPreconditions.CheckNotNull(cryptoKeyName, nameof(cryptoKeyName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationKeyRingCryptoKey.TryParseName(cryptoKeyName, out resourceName)) + { + result = FromProjectLocationKeyRingCryptoKey(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(cryptoKeyName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private CryptoKeyName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string cryptoKeyId = null, string keyRingId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + CryptoKeyId = cryptoKeyId; + KeyRingId = keyRingId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The KeyRing ID. Must not be null or empty. + /// The CryptoKey ID. Must not be null or empty. + public CryptoKeyName(string projectId, string locationId, string keyRingId, string cryptoKeyId) : this(ResourceNameType.ProjectLocationKeyRingCryptoKey, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), keyRingId: gax::GaxPreconditions.CheckNotNullOrEmpty(keyRingId, nameof(keyRingId)), cryptoKeyId: gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyId, nameof(cryptoKeyId))) + { + } + + /// 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 CryptoKey ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string CryptoKeyId { get; } + + /// + /// The KeyRing ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string KeyRingId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { 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.ProjectLocationKeyRingCryptoKey: return s_projectLocationKeyRingCryptoKey.Expand(ProjectId, LocationId, KeyRingId, CryptoKeyId); + 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 CryptoKeyName); + + /// + public bool Equals(CryptoKeyName 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 ==(CryptoKeyName a, CryptoKeyName 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 !=(CryptoKeyName a, CryptoKeyName b) => !(a == b); + } + + /// Resource name for the CaPool resource. + public sealed partial class CaPoolName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern projects/{project}/locations/{location}/caPools/{ca_pool}. + /// + ProjectLocationCaPool = 1, + } + + private static gax::PathTemplate s_projectLocationCaPool = new gax::PathTemplate("projects/{project}/locations/{location}/caPools/{ca_pool}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static CaPoolName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new CaPoolName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static CaPoolName FromProjectLocationCaPool(string projectId, string locationId, string caPoolId) => + new CaPoolName(ResourceNameType.ProjectLocationCaPool, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), caPoolId: gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}. + /// + public static string Format(string projectId, string locationId, string caPoolId) => + FormatProjectLocationCaPool(projectId, locationId, caPoolId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}. + /// + public static string FormatProjectLocationCaPool(string projectId, string locationId, string caPoolId) => + s_projectLocationCaPool.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId))); + + /// 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}/locations/{location}/caPools/{ca_pool} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static CaPoolName Parse(string caPoolName) => Parse(caPoolName, 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}/locations/{location}/caPools/{ca_pool} + /// + /// 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 CaPoolName Parse(string caPoolName, bool allowUnparsed) => + TryParse(caPoolName, allowUnparsed, out CaPoolName 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}/locations/{location}/caPools/{ca_pool} + /// + /// + /// 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 caPoolName, out CaPoolName result) => TryParse(caPoolName, 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}/locations/{location}/caPools/{ca_pool} + /// + /// 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 caPoolName, bool allowUnparsed, out CaPoolName result) + { + gax::GaxPreconditions.CheckNotNull(caPoolName, nameof(caPoolName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationCaPool.TryParseName(caPoolName, out resourceName)) + { + result = FromProjectLocationCaPool(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(caPoolName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private CaPoolName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string caPoolId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + CaPoolId = caPoolId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + public CaPoolName(string projectId, string locationId, string caPoolId) : this(ResourceNameType.ProjectLocationCaPool, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), caPoolId: gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId))) + { + } + + /// 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 CaPool ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string CaPoolId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { 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.ProjectLocationCaPool: return s_projectLocationCaPool.Expand(ProjectId, LocationId, CaPoolId); + 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 CaPoolName); + + /// + public bool Equals(CaPoolName 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 ==(CaPoolName a, CaPoolName 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 !=(CaPoolName a, CaPoolName b) => !(a == b); + } + + /// Resource name for the ServiceAttachment resource. + public sealed partial class ServiceAttachmentName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/regions/{region}/serviceAttachments/{service_attachment}. + /// + ProjectRegionServiceAttachment = 1, + } + + private static gax::PathTemplate s_projectRegionServiceAttachment = new gax::PathTemplate("projects/{project}/regions/{region}/serviceAttachments/{service_attachment}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static ServiceAttachmentName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new ServiceAttachmentName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/regions/{region}/serviceAttachments/{service_attachment}. + /// + /// The Project ID. Must not be null or empty. + /// The Region ID. Must not be null or empty. + /// The ServiceAttachment ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ServiceAttachmentName FromProjectRegionServiceAttachment(string projectId, string regionId, string serviceAttachmentId) => + new ServiceAttachmentName(ResourceNameType.ProjectRegionServiceAttachment, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), regionId: gax::GaxPreconditions.CheckNotNullOrEmpty(regionId, nameof(regionId)), serviceAttachmentId: gax::GaxPreconditions.CheckNotNullOrEmpty(serviceAttachmentId, nameof(serviceAttachmentId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/regions/{region}/serviceAttachments/{service_attachment}. + /// + /// The Project ID. Must not be null or empty. + /// The Region ID. Must not be null or empty. + /// The ServiceAttachment ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/regions/{region}/serviceAttachments/{service_attachment}. + /// + public static string Format(string projectId, string regionId, string serviceAttachmentId) => + FormatProjectRegionServiceAttachment(projectId, regionId, serviceAttachmentId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/regions/{region}/serviceAttachments/{service_attachment}. + /// + /// The Project ID. Must not be null or empty. + /// The Region ID. Must not be null or empty. + /// The ServiceAttachment ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/regions/{region}/serviceAttachments/{service_attachment}. + /// + public static string FormatProjectRegionServiceAttachment(string projectId, string regionId, string serviceAttachmentId) => + s_projectRegionServiceAttachment.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(regionId, nameof(regionId)), gax::GaxPreconditions.CheckNotNullOrEmpty(serviceAttachmentId, nameof(serviceAttachmentId))); + + /// + /// 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}/regions/{region}/serviceAttachments/{service_attachment} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static ServiceAttachmentName Parse(string serviceAttachmentName) => Parse(serviceAttachmentName, 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}/regions/{region}/serviceAttachments/{service_attachment} + /// + /// + /// + /// 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 ServiceAttachmentName Parse(string serviceAttachmentName, bool allowUnparsed) => + TryParse(serviceAttachmentName, allowUnparsed, out ServiceAttachmentName 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}/regions/{region}/serviceAttachments/{service_attachment} + /// + /// + /// + /// + /// 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 serviceAttachmentName, out ServiceAttachmentName result) => + TryParse(serviceAttachmentName, 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}/regions/{region}/serviceAttachments/{service_attachment} + /// + /// + /// + /// 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 serviceAttachmentName, bool allowUnparsed, out ServiceAttachmentName result) + { + gax::GaxPreconditions.CheckNotNull(serviceAttachmentName, nameof(serviceAttachmentName)); + gax::TemplatedResourceName resourceName; + if (s_projectRegionServiceAttachment.TryParseName(serviceAttachmentName, out resourceName)) + { + result = FromProjectRegionServiceAttachment(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(serviceAttachmentName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private ServiceAttachmentName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string projectId = null, string regionId = null, string serviceAttachmentId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ProjectId = projectId; + RegionId = regionId; + ServiceAttachmentId = serviceAttachmentId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/regions/{region}/serviceAttachments/{service_attachment} + /// + /// The Project ID. Must not be null or empty. + /// The Region ID. Must not be null or empty. + /// The ServiceAttachment ID. Must not be null or empty. + public ServiceAttachmentName(string projectId, string regionId, string serviceAttachmentId) : this(ResourceNameType.ProjectRegionServiceAttachment, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), regionId: gax::GaxPreconditions.CheckNotNullOrEmpty(regionId, nameof(regionId)), serviceAttachmentId: gax::GaxPreconditions.CheckNotNullOrEmpty(serviceAttachmentId, nameof(serviceAttachmentId))) + { + } + + /// 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 Region ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string RegionId { get; } + + /// + /// The ServiceAttachment ID. Will not be null, unless this instance contains an unparsed resource + /// name. + /// + public string ServiceAttachmentId { 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.ProjectRegionServiceAttachment: return s_projectRegionServiceAttachment.Expand(ProjectId, RegionId, ServiceAttachmentId); + 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 ServiceAttachmentName); + + /// + public bool Equals(ServiceAttachmentName 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 ==(ServiceAttachmentName a, ServiceAttachmentName 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 !=(ServiceAttachmentName a, ServiceAttachmentName b) => !(a == b); + } + + public partial class Instance + { + /// + /// -typed view over the resource name property. + /// + public gcsv::InstanceName InstanceName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::InstanceName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public CryptoKeyName KmsKeyAsCryptoKeyName + { + get => string.IsNullOrEmpty(KmsKey) ? null : CryptoKeyName.Parse(KmsKey, allowUnparsed: true); + set => KmsKey = value?.ToString() ?? ""; + } + + public partial class Types + { + public partial class PrivateConfig + { + /// + /// -typed view over the resource name property. + /// + public CaPoolName CaPoolAsCaPoolName + { + get => string.IsNullOrEmpty(CaPool) ? null : CaPoolName.Parse(CaPool, allowUnparsed: true); + set => CaPool = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource + /// name property. + /// + public ServiceAttachmentName HttpServiceAttachmentAsServiceAttachmentName + { + get => string.IsNullOrEmpty(HttpServiceAttachment) ? null : ServiceAttachmentName.Parse(HttpServiceAttachment, allowUnparsed: true); + set => HttpServiceAttachment = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource + /// name property. + /// + public ServiceAttachmentName SshServiceAttachmentAsServiceAttachmentName + { + get => string.IsNullOrEmpty(SshServiceAttachment) ? null : ServiceAttachmentName.Parse(SshServiceAttachment, allowUnparsed: true); + set => SshServiceAttachment = value?.ToString() ?? ""; + } + } + } + } + + public partial class Repository + { + /// + /// -typed view over the resource name property. + /// + public gcsv::RepositoryName RepositoryName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::RepositoryName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public InstanceName InstanceAsInstanceName + { + get => string.IsNullOrEmpty(Instance) ? null : InstanceName.Parse(Instance, allowUnparsed: true); + set => Instance = value?.ToString() ?? ""; + } + } + + public partial class BranchRule + { + /// + /// -typed view over the resource name property. + /// + public gcsv::BranchRuleName BranchRuleName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::BranchRuleName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListInstancesRequest + { + /// + /// -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() ?? ""; + } + } + + public partial class GetInstanceRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::InstanceName InstanceName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::InstanceName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CreateInstanceRequest + { + /// + /// -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() ?? ""; + } + } + + public partial class DeleteInstanceRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::InstanceName InstanceName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::InstanceName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListRepositoriesRequest + { + /// + /// -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 InstanceName InstanceAsInstanceName + { + get => string.IsNullOrEmpty(Instance) ? null : InstanceName.Parse(Instance, allowUnparsed: true); + set => Instance = value?.ToString() ?? ""; + } + } + + public partial class GetRepositoryRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::RepositoryName RepositoryName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::RepositoryName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CreateRepositoryRequest + { + /// + /// -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() ?? ""; + } + } + + public partial class DeleteRepositoryRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::RepositoryName RepositoryName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::RepositoryName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class GetBranchRuleRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::BranchRuleName BranchRuleName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::BranchRuleName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CreateBranchRuleRequest + { + /// + /// -typed view over the resource name property. + /// + public RepositoryName ParentAsRepositoryName + { + get => string.IsNullOrEmpty(Parent) ? null : RepositoryName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class ListBranchRulesRequest + { + /// + /// -typed view over the resource name property. + /// + public RepositoryName ParentAsRepositoryName + { + get => string.IsNullOrEmpty(Parent) ? null : RepositoryName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class DeleteBranchRuleRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::BranchRuleName BranchRuleName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::BranchRuleName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/ServiceCollectionExtensions.g.cs b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/ServiceCollectionExtensions.g.cs new file mode 100755 index 000000000000..a065d555795f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/Google.Cloud.SecureSourceManager.V1/ServiceCollectionExtensions.g.cs @@ -0,0 +1,69 @@ +// 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 gciv = Google.Cloud.Iam.V1; +using gcl = Google.Cloud.Location; +using gcsv = Google.Cloud.SecureSourceManager.V1; +using gpr = Google.Protobuf.Reflection; +using lro = Google.LongRunning; +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 AddSecureSourceManagerClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gcsv::SecureSourceManagerClientBuilder builder = new gcsv::SecureSourceManagerClientBuilder(); + 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 AddSecureSourceManagerClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gcsv::SecureSourceManagerClientBuilder builder = new gcsv::SecureSourceManagerClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + } +} diff --git a/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/gapic_metadata.json b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/gapic_metadata.json new file mode 100755 index 000000000000..ce1f1260aa32 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecureSourceManager.V1/gapic_metadata.json @@ -0,0 +1,114 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "csharp", + "protoPackage": "google.cloud.securesourcemanager.v1", + "libraryPackage": "Google.Cloud.SecureSourceManager.V1", + "services": { + "SecureSourceManager": { + "clients": { + "grpc": { + "libraryClient": "SecureSourceManagerClient", + "rpcs": { + "CreateBranchRule": { + "methods": [ + "CreateBranchRule", + "CreateBranchRuleAsync" + ] + }, + "CreateInstance": { + "methods": [ + "CreateInstance", + "CreateInstanceAsync" + ] + }, + "CreateRepository": { + "methods": [ + "CreateRepository", + "CreateRepositoryAsync" + ] + }, + "DeleteBranchRule": { + "methods": [ + "DeleteBranchRule", + "DeleteBranchRuleAsync" + ] + }, + "DeleteInstance": { + "methods": [ + "DeleteInstance", + "DeleteInstanceAsync" + ] + }, + "DeleteRepository": { + "methods": [ + "DeleteRepository", + "DeleteRepositoryAsync" + ] + }, + "GetBranchRule": { + "methods": [ + "GetBranchRule", + "GetBranchRuleAsync" + ] + }, + "GetIamPolicyRepo": { + "methods": [ + "GetIamPolicyRepo", + "GetIamPolicyRepoAsync" + ] + }, + "GetInstance": { + "methods": [ + "GetInstance", + "GetInstanceAsync" + ] + }, + "GetRepository": { + "methods": [ + "GetRepository", + "GetRepositoryAsync" + ] + }, + "ListBranchRules": { + "methods": [ + "ListBranchRules", + "ListBranchRulesAsync" + ] + }, + "ListInstances": { + "methods": [ + "ListInstances", + "ListInstancesAsync" + ] + }, + "ListRepositories": { + "methods": [ + "ListRepositories", + "ListRepositoriesAsync" + ] + }, + "SetIamPolicyRepo": { + "methods": [ + "SetIamPolicyRepo", + "SetIamPolicyRepoAsync" + ] + }, + "TestIamPermissionsRepo": { + "methods": [ + "TestIamPermissionsRepo", + "TestIamPermissionsRepoAsync" + ] + }, + "UpdateBranchRule": { + "methods": [ + "UpdateBranchRule", + "UpdateBranchRuleAsync" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityAsyncSnippet.g.cs new file mode 100755 index 000000000000..ccc7c9f2642d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ActivateCertificateAuthorityAsync + /// + /// 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 ActivateCertificateAuthorityAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..f5759b1e2156 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityRequestObjectAsyncSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ActivateCertificateAuthorityAsync + /// + /// 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 ActivateCertificateAuthorityRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + PemCaCertificate = "", + SubordinateConfig = new SubordinateConfig(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..1d617b200163 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ActivateCertificateAuthority + /// + /// 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 ActivateCertificateAuthorityRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + PemCaCertificate = "", + SubordinateConfig = new SubordinateConfig(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.ActivateCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..c5f7e024c2a7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ActivateCertificateAuthorityAsync + /// + /// 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 ActivateCertificateAuthorityResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..5b52f31e2b6f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthorityResourceNamesSnippet.g.cs @@ -0,0 +1,60 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ActivateCertificateAuthority + /// + /// 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 ActivateCertificateAuthorityResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = certificateAuthorityServiceClient.ActivateCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthoritySnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthoritySnippet.g.cs new file mode 100755 index 000000000000..4e7ef3ac4372 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ActivateCertificateAuthoritySnippet.g.cs @@ -0,0 +1,60 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ActivateCertificateAuthority + /// + /// 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 ActivateCertificateAuthority() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = certificateAuthorityServiceClient.ActivateCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolAsyncSnippet.g.cs new file mode 100755 index 000000000000..41f5014184a1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCaPool_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCaPoolAsync + /// + /// 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 CreateCaPoolAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + CaPool caPool = new CaPool(); + string caPoolId = ""; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCaPoolAsync(parent, caPool, caPoolId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCaPool_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..69c4ae3f0e0b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,68 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCaPool_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCaPoolAsync + /// + /// 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 CreateCaPoolRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateCaPoolRequest request = new CreateCaPoolRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + CaPoolId = "", + CaPool = new CaPool(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCaPoolAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCaPool_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..8ac8ac5043be --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolRequestObjectSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START privateca_v1_generated_CertificateAuthorityService_CreateCaPool_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCaPool + /// + /// 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 CreateCaPoolRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CreateCaPoolRequest request = new CreateCaPoolRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + CaPoolId = "", + CaPool = new CaPool(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCaPool(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCaPool_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..e6e22d55779a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,64 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCaPool_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCaPoolAsync + /// + /// 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 CreateCaPoolResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + CaPool caPool = new CaPool(); + string caPoolId = ""; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCaPoolAsync(parent, caPool, caPoolId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCaPool_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..c4bceb891c50 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolResourceNamesSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCaPool_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCaPool + /// + /// 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 CreateCaPoolResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + CaPool caPool = new CaPool(); + string caPoolId = ""; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCaPool(parent, caPool, caPoolId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCaPool_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolSnippet.g.cs new file mode 100755 index 000000000000..71f21512548a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCaPoolSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCaPool_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCaPool + /// + /// 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 CreateCaPool() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + CaPool caPool = new CaPool(); + string caPoolId = ""; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCaPool(parent, caPool, caPoolId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCaPool_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAsyncSnippet.g.cs new file mode 100755 index 000000000000..0b292c391e99 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_CreateCertificate_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateAsync + /// + /// 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 CreateCertificateAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + Certificate certificate = new Certificate(); + string certificateId = ""; + // Make the request + Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificate_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityAsyncSnippet.g.cs new file mode 100755 index 000000000000..291e8061f9c7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateAuthorityAsync + /// + /// 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 CreateCertificateAuthorityAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + CertificateAuthority certificateAuthority = new CertificateAuthority(); + string certificateAuthorityId = ""; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2ac47ce476a9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityRequestObjectAsyncSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateAuthorityAsync + /// + /// 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 CreateCertificateAuthorityRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + CertificateAuthorityId = "", + CertificateAuthority = new CertificateAuthority(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..305653f0d38a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateAuthority + /// + /// 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 CreateCertificateAuthorityRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + CertificateAuthorityId = "", + CertificateAuthority = new CertificateAuthority(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..5f15cdb880af --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateAuthorityAsync + /// + /// 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 CreateCertificateAuthorityResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + CertificateAuthority certificateAuthority = new CertificateAuthority(); + string certificateAuthorityId = ""; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..54cc84c4df3c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthorityResourceNamesSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateAuthority + /// + /// 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 CreateCertificateAuthorityResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + CertificateAuthority certificateAuthority = new CertificateAuthority(); + string certificateAuthorityId = ""; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCertificateAuthority(parent, certificateAuthority, certificateAuthorityId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthoritySnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthoritySnippet.g.cs new file mode 100755 index 000000000000..7d718de589d1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateAuthoritySnippet.g.cs @@ -0,0 +1,62 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateAuthority + /// + /// 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 CreateCertificateAuthority() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + CertificateAuthority certificateAuthority = new CertificateAuthority(); + string certificateAuthorityId = ""; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCertificateAuthority(parent, certificateAuthority, certificateAuthorityId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..0507299869ff --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_CreateCertificate_async] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateAsync + /// + /// 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 CreateCertificateRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateCertificateRequest request = new CreateCertificateRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + CertificateId = "", + Certificate = new Certificate(), + RequestId = "", + ValidateOnly = false, + IssuingCertificateAuthorityId = "", + }; + // Make the request + Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificate_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..02453a642e67 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_CreateCertificate_sync] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificate + /// + /// 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 CreateCertificateRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CreateCertificateRequest request = new CreateCertificateRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + CertificateId = "", + Certificate = new Certificate(), + RequestId = "", + ValidateOnly = false, + IssuingCertificateAuthorityId = "", + }; + // Make the request + Certificate response = certificateAuthorityServiceClient.CreateCertificate(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificate_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..cf4f876b42a5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_CreateCertificate_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateAsync + /// + /// 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 CreateCertificateResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + Certificate certificate = new Certificate(); + string certificateId = ""; + // Make the request + Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificate_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..08095719c649 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_CreateCertificate_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificate + /// + /// 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 CreateCertificateResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + Certificate certificate = new Certificate(); + string certificateId = ""; + // Make the request + Certificate response = certificateAuthorityServiceClient.CreateCertificate(parent, certificate, certificateId); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificate_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateSnippet.g.cs new file mode 100755 index 000000000000..5764a8006df2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateSnippet.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 privateca_v1_generated_CertificateAuthorityService_CreateCertificate_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificate + /// + /// 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 CreateCertificate() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + Certificate certificate = new Certificate(); + string certificateId = ""; + // Make the request + Certificate response = certificateAuthorityServiceClient.CreateCertificate(parent, certificate, certificateId); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificate_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateAsyncSnippet.g.cs new file mode 100755 index 000000000000..28d77fc5635d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateTemplateAsync + /// + /// 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 CreateCertificateTemplateAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + CertificateTemplate certificateTemplate = new CertificateTemplate(); + string certificateTemplateId = ""; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..295507e05c50 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,68 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateTemplateAsync + /// + /// 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 CreateCertificateTemplateRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateCertificateTemplateRequest request = new CreateCertificateTemplateRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + CertificateTemplateId = "", + CertificateTemplate = new CertificateTemplate(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..9a47e83347b8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateRequestObjectSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateTemplate + /// + /// 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 CreateCertificateTemplateRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CreateCertificateTemplateRequest request = new CreateCertificateTemplateRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + CertificateTemplateId = "", + CertificateTemplate = new CertificateTemplate(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCertificateTemplate(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..b504d6e021af --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,64 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateTemplateAsync + /// + /// 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 CreateCertificateTemplateResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + CertificateTemplate certificateTemplate = new CertificateTemplate(); + string certificateTemplateId = ""; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..8c86bb394383 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateResourceNamesSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateTemplate + /// + /// 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 CreateCertificateTemplateResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + CertificateTemplate certificateTemplate = new CertificateTemplate(); + string certificateTemplateId = ""; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCertificateTemplate(parent, certificateTemplate, certificateTemplateId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateSnippet.g.cs new file mode 100755 index 000000000000..1123e6bed238 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.CreateCertificateTemplateSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificateTemplate + /// + /// 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 CreateCertificateTemplate() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + CertificateTemplate certificateTemplate = new CertificateTemplate(); + string certificateTemplateId = ""; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCertificateTemplate(parent, certificateTemplate, certificateTemplateId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolAsyncSnippet.g.cs new file mode 100755 index 000000000000..4f55f7daf4ab --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCaPoolAsync + /// + /// 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 DeleteCaPoolAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..c686c36b1532 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolRequestObjectAsyncSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCaPoolAsync + /// + /// 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 DeleteCaPoolRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + DeleteCaPoolRequest request = new DeleteCaPoolRequest + { + CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + RequestId = "", + IgnoreDependentResources = false, + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..bfb939354023 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCaPool + /// + /// 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 DeleteCaPoolRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + DeleteCaPoolRequest request = new DeleteCaPoolRequest + { + CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + RequestId = "", + IgnoreDependentResources = false, + }; + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCaPool(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..a71d3fe824cf --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCaPoolAsync + /// + /// 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 DeleteCaPoolResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..2294282c6b15 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolResourceNamesSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCaPool + /// + /// 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 DeleteCaPoolResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCaPool(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolSnippet.g.cs new file mode 100755 index 000000000000..d2eaa0a7ed78 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCaPoolSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCaPool + /// + /// 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 DeleteCaPool() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCaPool(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityAsyncSnippet.g.cs new file mode 100755 index 000000000000..a79ab73cf49b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCertificateAuthorityAsync + /// + /// 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 DeleteCertificateAuthorityAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..6bed5f8bd947 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,68 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCertificateAuthorityAsync + /// + /// 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 DeleteCertificateAuthorityRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + DeleteCertificateAuthorityRequest request = new DeleteCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + IgnoreActiveCertificates = false, + SkipGracePeriod = false, + IgnoreDependentResources = false, + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..22ad20d6ece5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityRequestObjectSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCertificateAuthority + /// + /// 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 DeleteCertificateAuthorityRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + DeleteCertificateAuthorityRequest request = new DeleteCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + IgnoreActiveCertificates = false, + SkipGracePeriod = false, + IgnoreDependentResources = false, + }; + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..6293d75ce375 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCertificateAuthorityAsync + /// + /// 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 DeleteCertificateAuthorityResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..9f21d5341502 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthorityResourceNamesSnippet.g.cs @@ -0,0 +1,60 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCertificateAuthority + /// + /// 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 DeleteCertificateAuthorityResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthoritySnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthoritySnippet.g.cs new file mode 100755 index 000000000000..00e75a45ceaa --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateAuthoritySnippet.g.cs @@ -0,0 +1,60 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCertificateAuthority + /// + /// 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 DeleteCertificateAuthority() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateAsyncSnippet.g.cs new file mode 100755 index 000000000000..f5d0b0929a8a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCertificateTemplateAsync + /// + /// 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 DeleteCertificateTemplateAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..7d22135e92ea --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCertificateTemplateAsync + /// + /// 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 DeleteCertificateTemplateRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + DeleteCertificateTemplateRequest request = new DeleteCertificateTemplateRequest + { + CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..af0bbd6125c7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCertificateTemplate + /// + /// 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 DeleteCertificateTemplateRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + DeleteCertificateTemplateRequest request = new DeleteCertificateTemplateRequest + { + CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCertificateTemplate(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..889516a25337 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCertificateTemplateAsync + /// + /// 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 DeleteCertificateTemplateResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..a68b75cd1896 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateResourceNamesSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCertificateTemplate + /// + /// 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 DeleteCertificateTemplateResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCertificateTemplate(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateSnippet.g.cs new file mode 100755 index 000000000000..b5ad567ce8dd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DeleteCertificateTemplateSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DeleteCertificateTemplate + /// + /// 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 DeleteCertificateTemplate() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]"; + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCertificateTemplate(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityAsyncSnippet.g.cs new file mode 100755 index 000000000000..12a401b0e629 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DisableCertificateAuthorityAsync + /// + /// 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 DisableCertificateAuthorityAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDisableCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..dc645d9d3e59 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DisableCertificateAuthorityAsync + /// + /// 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 DisableCertificateAuthorityRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + DisableCertificateAuthorityRequest request = new DisableCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + IgnoreDependentResources = false, + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDisableCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..4c2c06b330b8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DisableCertificateAuthority + /// + /// 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 DisableCertificateAuthorityRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + DisableCertificateAuthorityRequest request = new DisableCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + IgnoreDependentResources = false, + }; + // Make the request + Operation response = certificateAuthorityServiceClient.DisableCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDisableCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..251394920485 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DisableCertificateAuthorityAsync + /// + /// 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 DisableCertificateAuthorityResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDisableCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..8b48076b3c80 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthorityResourceNamesSnippet.g.cs @@ -0,0 +1,60 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DisableCertificateAuthority + /// + /// 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 DisableCertificateAuthorityResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = certificateAuthorityServiceClient.DisableCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDisableCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthoritySnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthoritySnippet.g.cs new file mode 100755 index 000000000000..e421bb6e0c6b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.DisableCertificateAuthoritySnippet.g.cs @@ -0,0 +1,60 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for DisableCertificateAuthority + /// + /// 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 DisableCertificateAuthority() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = certificateAuthorityServiceClient.DisableCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDisableCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityAsyncSnippet.g.cs new file mode 100755 index 000000000000..2f74fb681756 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for EnableCertificateAuthorityAsync + /// + /// 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 EnableCertificateAuthorityAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.EnableCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceEnableCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..6648a0c8f913 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,65 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for EnableCertificateAuthorityAsync + /// + /// 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 EnableCertificateAuthorityRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + EnableCertificateAuthorityRequest request = new EnableCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.EnableCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceEnableCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..44975c017caf --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityRequestObjectSnippet.g.cs @@ -0,0 +1,64 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for EnableCertificateAuthority + /// + /// 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 EnableCertificateAuthorityRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + EnableCertificateAuthorityRequest request = new EnableCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.EnableCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceEnableCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..31bc7cc8e7c7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for EnableCertificateAuthorityAsync + /// + /// 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 EnableCertificateAuthorityResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.EnableCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceEnableCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..4a6eefa3b3ef --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthorityResourceNamesSnippet.g.cs @@ -0,0 +1,60 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for EnableCertificateAuthority + /// + /// 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 EnableCertificateAuthorityResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = certificateAuthorityServiceClient.EnableCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceEnableCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthoritySnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthoritySnippet.g.cs new file mode 100755 index 000000000000..2b73717b05a4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.EnableCertificateAuthoritySnippet.g.cs @@ -0,0 +1,60 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for EnableCertificateAuthority + /// + /// 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 EnableCertificateAuthority() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = certificateAuthorityServiceClient.EnableCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceEnableCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsAsyncSnippet.g.cs new file mode 100755 index 000000000000..98813d32df41 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for FetchCaCertsAsync + /// + /// 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 FetchCaCertsAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string caPool = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + FetchCaCertsResponse response = await certificateAuthorityServiceClient.FetchCaCertsAsync(caPool); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..98b7106364ef --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_async] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for FetchCaCertsAsync + /// + /// 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 FetchCaCertsRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + FetchCaCertsRequest request = new FetchCaCertsRequest + { + CaPoolAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + RequestId = "", + }; + // Make the request + FetchCaCertsResponse response = await certificateAuthorityServiceClient.FetchCaCertsAsync(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..470db0305c1c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_sync] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for FetchCaCerts + /// + /// 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 FetchCaCertsRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + FetchCaCertsRequest request = new FetchCaCertsRequest + { + CaPoolAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + RequestId = "", + }; + // Make the request + FetchCaCertsResponse response = certificateAuthorityServiceClient.FetchCaCerts(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..428218b04667 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for FetchCaCertsAsync + /// + /// 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 FetchCaCertsResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName caPool = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + FetchCaCertsResponse response = await certificateAuthorityServiceClient.FetchCaCertsAsync(caPool); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..c4f5417c394f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for FetchCaCerts + /// + /// 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 FetchCaCertsResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName caPool = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + FetchCaCertsResponse response = certificateAuthorityServiceClient.FetchCaCerts(caPool); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsSnippet.g.cs new file mode 100755 index 000000000000..ce3f3bc2918c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCaCertsSnippet.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 privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for FetchCaCerts + /// + /// 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 FetchCaCerts() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string caPool = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + FetchCaCertsResponse response = certificateAuthorityServiceClient.FetchCaCerts(caPool); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsyncSnippet.g.cs new file mode 100755 index 000000000000..f24a697cc04c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for FetchCertificateAuthorityCsrAsync + /// + /// 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 FetchCertificateAuthorityCsrAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..f3ef938415a5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_async] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for FetchCertificateAuthorityCsrAsync + /// + /// 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 FetchCertificateAuthorityCsrRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + FetchCertificateAuthorityCsrRequest request = new FetchCertificateAuthorityCsrRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + }; + // Make the request + FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..116eade16f55 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_sync] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for FetchCertificateAuthorityCsr + /// + /// 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 FetchCertificateAuthorityCsrRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + FetchCertificateAuthorityCsrRequest request = new FetchCertificateAuthorityCsrRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + }; + // Make the request + FetchCertificateAuthorityCsrResponse response = certificateAuthorityServiceClient.FetchCertificateAuthorityCsr(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..5a8a1756bac8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for FetchCertificateAuthorityCsrAsync + /// + /// 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 FetchCertificateAuthorityCsrResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..3e17f2902735 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for FetchCertificateAuthorityCsr + /// + /// 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 FetchCertificateAuthorityCsrResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + FetchCertificateAuthorityCsrResponse response = certificateAuthorityServiceClient.FetchCertificateAuthorityCsr(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrSnippet.g.cs new file mode 100755 index 000000000000..ed8771ff766b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrSnippet.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 privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for FetchCertificateAuthorityCsr + /// + /// 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 FetchCertificateAuthorityCsr() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + FetchCertificateAuthorityCsrResponse response = certificateAuthorityServiceClient.FetchCertificateAuthorityCsr(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolAsyncSnippet.g.cs new file mode 100755 index 000000000000..caf97b35de66 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCaPool_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCaPoolAsync + /// + /// 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 GetCaPoolAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + CaPool response = await certificateAuthorityServiceClient.GetCaPoolAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCaPool_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..f29c43825354 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCaPool_async] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCaPoolAsync + /// + /// 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 GetCaPoolRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + GetCaPoolRequest request = new GetCaPoolRequest + { + CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + }; + // Make the request + CaPool response = await certificateAuthorityServiceClient.GetCaPoolAsync(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCaPool_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..61d60a288923 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCaPool_sync] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCaPool + /// + /// 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 GetCaPoolRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + GetCaPoolRequest request = new GetCaPoolRequest + { + CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + }; + // Make the request + CaPool response = certificateAuthorityServiceClient.GetCaPool(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCaPool_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..5657167b3cb4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCaPool_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCaPoolAsync + /// + /// 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 GetCaPoolResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + CaPool response = await certificateAuthorityServiceClient.GetCaPoolAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCaPool_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..9786c86e2699 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCaPool_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCaPool + /// + /// 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 GetCaPoolResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + CaPool response = certificateAuthorityServiceClient.GetCaPool(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCaPool_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolSnippet.g.cs new file mode 100755 index 000000000000..21a604d52279 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCaPoolSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCaPool_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCaPool + /// + /// 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 GetCaPool() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + CaPool response = certificateAuthorityServiceClient.GetCaPool(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCaPool_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAsyncSnippet.g.cs new file mode 100755 index 000000000000..fa0ed3a05bbb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificate_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateAsync + /// + /// 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 GetCertificateAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificates/[CERTIFICATE]"; + // Make the request + Certificate response = await certificateAuthorityServiceClient.GetCertificateAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificate_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityAsyncSnippet.g.cs new file mode 100755 index 000000000000..ef69ca996467 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateAuthorityAsync + /// + /// 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 GetCertificateAuthorityAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + CertificateAuthority response = await certificateAuthorityServiceClient.GetCertificateAuthorityAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..1bcd8cd2cf24 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_async] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateAuthorityAsync + /// + /// 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 GetCertificateAuthorityRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + GetCertificateAuthorityRequest request = new GetCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + }; + // Make the request + CertificateAuthority response = await certificateAuthorityServiceClient.GetCertificateAuthorityAsync(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..b43acd695b6c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_sync] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateAuthority + /// + /// 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 GetCertificateAuthorityRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + GetCertificateAuthorityRequest request = new GetCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + }; + // Make the request + CertificateAuthority response = certificateAuthorityServiceClient.GetCertificateAuthority(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..e98e203b7a80 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateAuthorityAsync + /// + /// 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 GetCertificateAuthorityResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + CertificateAuthority response = await certificateAuthorityServiceClient.GetCertificateAuthorityAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..8b5751e305de --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthorityResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateAuthority + /// + /// 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 GetCertificateAuthorityResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + CertificateAuthority response = certificateAuthorityServiceClient.GetCertificateAuthority(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthoritySnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthoritySnippet.g.cs new file mode 100755 index 000000000000..fcbcda7efc0c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateAuthoritySnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateAuthority + /// + /// 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 GetCertificateAuthority() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + CertificateAuthority response = certificateAuthorityServiceClient.GetCertificateAuthority(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..5077cdefb489 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificate_async] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateAsync + /// + /// 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 GetCertificateRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + GetCertificateRequest request = new GetCertificateRequest + { + CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"), + }; + // Make the request + Certificate response = await certificateAuthorityServiceClient.GetCertificateAsync(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificate_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..0f65cce167ee --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificate_sync] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificate + /// + /// 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 GetCertificateRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + GetCertificateRequest request = new GetCertificateRequest + { + CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"), + }; + // Make the request + Certificate response = certificateAuthorityServiceClient.GetCertificate(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificate_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..9772847ff16e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificate_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateAsync + /// + /// 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 GetCertificateResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + // Make the request + Certificate response = await certificateAuthorityServiceClient.GetCertificateAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificate_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..b75bb72b92f2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificate_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificate + /// + /// 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 GetCertificateResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + // Make the request + Certificate response = certificateAuthorityServiceClient.GetCertificate(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificate_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListAsyncSnippet.g.cs new file mode 100755 index 000000000000..913aae085932 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateRevocationListAsync + /// + /// 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 GetCertificateRevocationListAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificateRevocationLists/[CERTIFICATE_REVOCATION_LIST]"; + // Make the request + CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2b71011f9c08 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_async] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateRevocationListAsync + /// + /// 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 GetCertificateRevocationListRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + GetCertificateRevocationListRequest request = new GetCertificateRevocationListRequest + { + CertificateRevocationListName = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"), + }; + // Make the request + CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..00b3ef35651f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateRevocationList + /// + /// 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 GetCertificateRevocationListRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + GetCertificateRevocationListRequest request = new GetCertificateRevocationListRequest + { + CertificateRevocationListName = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"), + }; + // Make the request + CertificateRevocationList response = certificateAuthorityServiceClient.GetCertificateRevocationList(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..39c63b6b4a23 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateRevocationListAsync + /// + /// 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 GetCertificateRevocationListResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateRevocationListName name = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"); + // Make the request + CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..f02bc0474f3e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateRevocationList + /// + /// 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 GetCertificateRevocationListResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateRevocationListName name = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"); + // Make the request + CertificateRevocationList response = certificateAuthorityServiceClient.GetCertificateRevocationList(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListSnippet.g.cs new file mode 100755 index 000000000000..014c7c46d9f8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateRevocationListSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateRevocationList + /// + /// 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 GetCertificateRevocationList() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificateRevocationLists/[CERTIFICATE_REVOCATION_LIST]"; + // Make the request + CertificateRevocationList response = certificateAuthorityServiceClient.GetCertificateRevocationList(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateSnippet.g.cs new file mode 100755 index 000000000000..4d7f98869d65 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificate_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificate + /// + /// 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 GetCertificate() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificates/[CERTIFICATE]"; + // Make the request + Certificate response = certificateAuthorityServiceClient.GetCertificate(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificate_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateAsyncSnippet.g.cs new file mode 100755 index 000000000000..2ff2b13a2c04 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateTemplateAsync + /// + /// 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 GetCertificateTemplateAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]"; + // Make the request + CertificateTemplate response = await certificateAuthorityServiceClient.GetCertificateTemplateAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..0aeb0955ccc6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_async] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateTemplateAsync + /// + /// 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 GetCertificateTemplateRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + GetCertificateTemplateRequest request = new GetCertificateTemplateRequest + { + CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"), + }; + // Make the request + CertificateTemplate response = await certificateAuthorityServiceClient.GetCertificateTemplateAsync(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..40ea75c32e17 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_sync] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateTemplate + /// + /// 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 GetCertificateTemplateRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + GetCertificateTemplateRequest request = new GetCertificateTemplateRequest + { + CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"), + }; + // Make the request + CertificateTemplate response = certificateAuthorityServiceClient.GetCertificateTemplate(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..71b438955987 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateTemplateAsync + /// + /// 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 GetCertificateTemplateResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + // Make the request + CertificateTemplate response = await certificateAuthorityServiceClient.GetCertificateTemplateAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..988600f3b0f1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateTemplate + /// + /// 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 GetCertificateTemplateResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + // Make the request + CertificateTemplate response = certificateAuthorityServiceClient.GetCertificateTemplate(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateSnippet.g.cs new file mode 100755 index 000000000000..36da8a16a89a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.GetCertificateTemplateSnippet.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 privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for GetCertificateTemplate + /// + /// 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 GetCertificateTemplate() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]"; + // Make the request + CertificateTemplate response = certificateAuthorityServiceClient.GetCertificateTemplate(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsAsyncSnippet.g.cs new file mode 100755 index 000000000000..b10dc82f7575 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCaPools_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCaPoolsAsync + /// + /// 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 ListCaPoolsAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCaPoolsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CaPool 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((ListCaPoolsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CaPool 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 (CaPool 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 privateca_v1_generated_CertificateAuthorityService_ListCaPools_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..0dec8c550345 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,85 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_ListCaPools_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCaPoolsAsync + /// + /// 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 ListCaPoolsRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + ListCaPoolsRequest request = new ListCaPoolsRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCaPoolsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CaPool 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((ListCaPoolsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CaPool 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 (CaPool 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 privateca_v1_generated_CertificateAuthorityService_ListCaPools_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..39bdfb70942d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCaPools_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCaPools + /// + /// 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 ListCaPoolsRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + ListCaPoolsRequest request = new ListCaPoolsRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCaPools(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CaPool 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 (ListCaPoolsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CaPool 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 (CaPool 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 privateca_v1_generated_CertificateAuthorityService_ListCaPools_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..cef35f127e81 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCaPools_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCaPoolsAsync + /// + /// 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 ListCaPoolsResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCaPoolsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CaPool 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((ListCaPoolsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CaPool 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 (CaPool 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 privateca_v1_generated_CertificateAuthorityService_ListCaPools_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..305f4215ee21 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCaPools_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCaPools + /// + /// 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 ListCaPoolsResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCaPools(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CaPool 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 (ListCaPoolsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CaPool 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 (CaPool 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 privateca_v1_generated_CertificateAuthorityService_ListCaPools_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsSnippet.g.cs new file mode 100755 index 000000000000..21e6ac391924 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCaPoolsSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCaPools_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCaPools + /// + /// 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 ListCaPools() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCaPools(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CaPool 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 (ListCaPoolsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CaPool 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 (CaPool 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 privateca_v1_generated_CertificateAuthorityService_ListCaPools_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesAsyncSnippet.g.cs new file mode 100755 index 000000000000..d7b40ed6e08f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateAuthoritiesAsync + /// + /// 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 ListCertificateAuthoritiesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateAuthoritiesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateAuthority 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((ListCertificateAuthoritiesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateAuthority 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 (CertificateAuthority 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..d981a7c6105c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_async] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateAuthoritiesAsync + /// + /// 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 ListCertificateAuthoritiesRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + ListCertificateAuthoritiesRequest request = new ListCertificateAuthoritiesRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateAuthoritiesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateAuthority 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((ListCertificateAuthoritiesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateAuthority 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 (CertificateAuthority 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..e3d4ecd82a2d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_sync] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateAuthorities + /// + /// 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 ListCertificateAuthoritiesRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + ListCertificateAuthoritiesRequest request = new ListCertificateAuthoritiesRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateAuthorities(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateAuthority 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 (ListCertificateAuthoritiesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateAuthority 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 (CertificateAuthority 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..a183bce85632 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateAuthoritiesAsync + /// + /// 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 ListCertificateAuthoritiesResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateAuthoritiesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateAuthority 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((ListCertificateAuthoritiesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateAuthority 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 (CertificateAuthority 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..7108992fbd8a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateAuthorities + /// + /// 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 ListCertificateAuthoritiesResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateAuthorities(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateAuthority 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 (ListCertificateAuthoritiesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateAuthority 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 (CertificateAuthority 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesSnippet.g.cs new file mode 100755 index 000000000000..311f75d221f2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateAuthoritiesSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateAuthorities + /// + /// 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 ListCertificateAuthorities() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateAuthorities(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateAuthority 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 (ListCertificateAuthoritiesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateAuthority 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 (CertificateAuthority 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsAsyncSnippet.g.cs new file mode 100755 index 000000000000..be14bc407ef3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateRevocationListsAsync + /// + /// 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 ListCertificateRevocationListsAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateRevocationListsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateRevocationList 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((ListCertificateRevocationListsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateRevocationList 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 (CertificateRevocationList 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..4eac9c3992b6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_async] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateRevocationListsAsync + /// + /// 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 ListCertificateRevocationListsRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + ListCertificateRevocationListsRequest request = new ListCertificateRevocationListsRequest + { + ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateRevocationListsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateRevocationList 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((ListCertificateRevocationListsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateRevocationList 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 (CertificateRevocationList 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..74bc11b5a503 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_sync] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateRevocationLists + /// + /// 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 ListCertificateRevocationListsRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + ListCertificateRevocationListsRequest request = new ListCertificateRevocationListsRequest + { + ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateRevocationLists(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateRevocationList 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 (ListCertificateRevocationListsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateRevocationList 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 (CertificateRevocationList 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..3a31262008ac --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateRevocationListsAsync + /// + /// 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 ListCertificateRevocationListsResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateRevocationListsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateRevocationList 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((ListCertificateRevocationListsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateRevocationList 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 (CertificateRevocationList 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..276aaa32d436 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateRevocationLists + /// + /// 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 ListCertificateRevocationListsResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateRevocationLists(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateRevocationList 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 (ListCertificateRevocationListsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateRevocationList 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 (CertificateRevocationList 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsSnippet.g.cs new file mode 100755 index 000000000000..bf4efd37a577 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateRevocationListsSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateRevocationLists + /// + /// 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 ListCertificateRevocationLists() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateRevocationLists(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateRevocationList 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 (ListCertificateRevocationListsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateRevocationList 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 (CertificateRevocationList 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesAsyncSnippet.g.cs new file mode 100755 index 000000000000..970aba842c5f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateTemplatesAsync + /// + /// 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 ListCertificateTemplatesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateTemplatesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateTemplate 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((ListCertificateTemplatesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateTemplate 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 (CertificateTemplate 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..a4eb291b83de --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,85 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateTemplatesAsync + /// + /// 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 ListCertificateTemplatesRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + ListCertificateTemplatesRequest request = new ListCertificateTemplatesRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateTemplatesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateTemplate 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((ListCertificateTemplatesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateTemplate 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 (CertificateTemplate 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..cf82bc8bd1ca --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateTemplates + /// + /// 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 ListCertificateTemplatesRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + ListCertificateTemplatesRequest request = new ListCertificateTemplatesRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateTemplates(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateTemplate 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 (ListCertificateTemplatesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateTemplate 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 (CertificateTemplate 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..5bb32383ceae --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateTemplatesAsync + /// + /// 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 ListCertificateTemplatesResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateTemplatesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateTemplate 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((ListCertificateTemplatesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateTemplate 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 (CertificateTemplate 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..002bf1ccae82 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateTemplates + /// + /// 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 ListCertificateTemplatesResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateTemplates(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateTemplate 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 (ListCertificateTemplatesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateTemplate 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 (CertificateTemplate 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesSnippet.g.cs new file mode 100755 index 000000000000..258f358ac05e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificateTemplatesSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificateTemplates + /// + /// 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 ListCertificateTemplates() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateTemplates(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateTemplate 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 (ListCertificateTemplatesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateTemplate 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 (CertificateTemplate 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 privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesAsyncSnippet.g.cs new file mode 100755 index 000000000000..21bbe907b516 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificates_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificatesAsync + /// + /// 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 ListCertificatesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificatesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Certificate 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((ListCertificatesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Certificate 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 (Certificate 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 privateca_v1_generated_CertificateAuthorityService_ListCertificates_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..467b39d80e5f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificates_async] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificatesAsync + /// + /// 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 ListCertificatesRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + ListCertificatesRequest request = new ListCertificatesRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificatesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Certificate 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((ListCertificatesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Certificate 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 (Certificate 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 privateca_v1_generated_CertificateAuthorityService_ListCertificates_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..1f41910e70e8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificates_sync] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificates + /// + /// 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 ListCertificatesRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + ListCertificatesRequest request = new ListCertificatesRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificates(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Certificate 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 (ListCertificatesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Certificate 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 (Certificate 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 privateca_v1_generated_CertificateAuthorityService_ListCertificates_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..1fcccaa0012e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificates_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificatesAsync + /// + /// 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 ListCertificatesResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificatesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Certificate 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((ListCertificatesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Certificate 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 (Certificate 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 privateca_v1_generated_CertificateAuthorityService_ListCertificates_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..ea104b023257 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificates_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificates + /// + /// 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 ListCertificatesResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificates(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Certificate 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 (ListCertificatesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Certificate 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 (Certificate 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 privateca_v1_generated_CertificateAuthorityService_ListCertificates_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesSnippet.g.cs new file mode 100755 index 000000000000..5e5f2691d81d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.ListCertificatesSnippet.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 privateca_v1_generated_CertificateAuthorityService_ListCertificates_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Security.PrivateCA.V1; + using System; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for ListCertificates + /// + /// 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 ListCertificates() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificates(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Certificate 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 (ListCertificatesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Certificate 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 (Certificate 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 privateca_v1_generated_CertificateAuthorityService_ListCertificates_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateAsyncSnippet.g.cs new file mode 100755 index 000000000000..0451594fa034 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for RevokeCertificateAsync + /// + /// 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 RevokeCertificateAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificates/[CERTIFICATE]"; + // Make the request + Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..19d7dcaae738 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_async] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for RevokeCertificateAsync + /// + /// 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 RevokeCertificateRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + RevokeCertificateRequest request = new RevokeCertificateRequest + { + CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"), + Reason = RevocationReason.Unspecified, + RequestId = "", + }; + // Make the request + Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..1e3e60f757a4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_sync] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for RevokeCertificate + /// + /// 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 RevokeCertificateRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + RevokeCertificateRequest request = new RevokeCertificateRequest + { + CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"), + Reason = RevocationReason.Unspecified, + RequestId = "", + }; + // Make the request + Certificate response = certificateAuthorityServiceClient.RevokeCertificate(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..9707b0738eab --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateResourceNamesAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for RevokeCertificateAsync + /// + /// 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 RevokeCertificateResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + // Make the request + Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..337c4a96e142 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateResourceNamesSnippet.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 privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for RevokeCertificate + /// + /// 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 RevokeCertificateResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + // Make the request + Certificate response = certificateAuthorityServiceClient.RevokeCertificate(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateSnippet.g.cs new file mode 100755 index 000000000000..798fda3feb6c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.RevokeCertificateSnippet.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 privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for RevokeCertificate + /// + /// 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 RevokeCertificate() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificates/[CERTIFICATE]"; + // Make the request + Certificate response = certificateAuthorityServiceClient.RevokeCertificate(name); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityAsyncSnippet.g.cs new file mode 100755 index 000000000000..ff5c5d1faec1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UndeleteCertificateAuthorityAsync + /// + /// 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 UndeleteCertificateAuthorityAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUndeleteCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..fb5965f620dd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,65 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UndeleteCertificateAuthorityAsync + /// + /// 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 UndeleteCertificateAuthorityRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + UndeleteCertificateAuthorityRequest request = new UndeleteCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUndeleteCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..ce3f417dc948 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityRequestObjectSnippet.g.cs @@ -0,0 +1,64 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UndeleteCertificateAuthority + /// + /// 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 UndeleteCertificateAuthorityRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + UndeleteCertificateAuthorityRequest request = new UndeleteCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.UndeleteCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUndeleteCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..af9c0decab11 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_async_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UndeleteCertificateAuthorityAsync + /// + /// 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 UndeleteCertificateAuthorityResourceNamesAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUndeleteCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..5cfc0e424107 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthorityResourceNamesSnippet.g.cs @@ -0,0 +1,60 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_sync_flattened_resourceNames] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UndeleteCertificateAuthority + /// + /// 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 UndeleteCertificateAuthorityResourceNames() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = certificateAuthorityServiceClient.UndeleteCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUndeleteCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthoritySnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthoritySnippet.g.cs new file mode 100755 index 000000000000..1d044de79373 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UndeleteCertificateAuthoritySnippet.g.cs @@ -0,0 +1,60 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UndeleteCertificateAuthority + /// + /// 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 UndeleteCertificateAuthority() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = certificateAuthorityServiceClient.UndeleteCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUndeleteCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolAsyncSnippet.g.cs new file mode 100755 index 000000000000..6fd0b835cfef --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCaPoolAsync + /// + /// 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 UpdateCaPoolAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPool caPool = new CaPool(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCaPoolAsync(caPool, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..a237155c9c32 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolRequestObjectAsyncSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCaPoolAsync + /// + /// 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 UpdateCaPoolRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateCaPoolRequest request = new UpdateCaPoolRequest + { + CaPool = new CaPool(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCaPoolAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..5a9080543d04 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCaPool + /// + /// 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 UpdateCaPoolRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + UpdateCaPoolRequest request = new UpdateCaPoolRequest + { + CaPool = new CaPool(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCaPool(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolSnippet.g.cs new file mode 100755 index 000000000000..faa29994710d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCaPoolSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCaPool + /// + /// 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 UpdateCaPool() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPool caPool = new CaPool(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCaPool(caPool, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAsyncSnippet.g.cs new file mode 100755 index 000000000000..7baae64f700a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateAsync + /// + /// 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 UpdateCertificateAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + Certificate certificate = new Certificate(); + FieldMask updateMask = new FieldMask(); + // Make the request + Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(certificate, updateMask); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthorityAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthorityAsyncSnippet.g.cs new file mode 100755 index 000000000000..67e6cf1272e4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthorityAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateAuthorityAsync + /// + /// 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 UpdateCertificateAuthorityAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthority certificateAuthority = new CertificateAuthority(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCertificateAuthorityAsync(certificateAuthority, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthorityRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthorityRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..d4bc0b03bf87 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthorityRequestObjectAsyncSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateAuthorityAsync + /// + /// 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 UpdateCertificateAuthorityRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateCertificateAuthorityRequest request = new UpdateCertificateAuthorityRequest + { + CertificateAuthority = new CertificateAuthority(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthorityRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthorityRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..773a5f4f7c43 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthorityRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateAuthority + /// + /// 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 UpdateCertificateAuthorityRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + UpdateCertificateAuthorityRequest request = new UpdateCertificateAuthorityRequest + { + CertificateAuthority = new CertificateAuthority(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthoritySnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthoritySnippet.g.cs new file mode 100755 index 000000000000..8cb94658dbeb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateAuthoritySnippet.g.cs @@ -0,0 +1,62 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateAuthority + /// + /// 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 UpdateCertificateAuthority() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthority certificateAuthority = new CertificateAuthority(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCertificateAuthority(certificateAuthority, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..a56a5e238fe7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRequestObjectAsyncSnippet.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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateAsync + /// + /// 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 UpdateCertificateRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateCertificateRequest request = new UpdateCertificateRequest + { + Certificate = new Certificate(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..3de2716db4a3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRequestObjectSnippet.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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificate + /// + /// 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 UpdateCertificateRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + UpdateCertificateRequest request = new UpdateCertificateRequest + { + Certificate = new Certificate(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Certificate response = certificateAuthorityServiceClient.UpdateCertificate(request); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListAsyncSnippet.g.cs new file mode 100755 index 000000000000..fff5647100c3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateRevocationListAsync + /// + /// 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 UpdateCertificateRevocationListAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateRevocationList certificateRevocationList = new CertificateRevocationList(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCertificateRevocationListAsync(certificateRevocationList, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateRevocationList result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationListAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateRevocationList retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..be7d3aa67aa8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListRequestObjectAsyncSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateRevocationListAsync + /// + /// 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 UpdateCertificateRevocationListRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateCertificateRevocationListRequest request = new UpdateCertificateRevocationListRequest + { + CertificateRevocationList = new CertificateRevocationList(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCertificateRevocationListAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateRevocationList result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationListAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateRevocationList retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..e94843bb471b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateRevocationList + /// + /// 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 UpdateCertificateRevocationListRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + UpdateCertificateRevocationListRequest request = new UpdateCertificateRevocationListRequest + { + CertificateRevocationList = new CertificateRevocationList(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCertificateRevocationList(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateRevocationList result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationList(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateRevocationList retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListSnippet.g.cs new file mode 100755 index 000000000000..4578774730d1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateRevocationListSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateRevocationList + /// + /// 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 UpdateCertificateRevocationList() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateRevocationList certificateRevocationList = new CertificateRevocationList(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCertificateRevocationList(certificateRevocationList, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateRevocationList result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationList(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateRevocationList retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateSnippet.g.cs new file mode 100755 index 000000000000..a9a0e5648a12 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateSnippet.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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificate + /// + /// 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 UpdateCertificate() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + Certificate certificate = new Certificate(); + FieldMask updateMask = new FieldMask(); + // Make the request + Certificate response = certificateAuthorityServiceClient.UpdateCertificate(certificate, updateMask); + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateAsyncSnippet.g.cs new file mode 100755 index 000000000000..46a9a7eea65c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_async_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateTemplateAsync + /// + /// 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 UpdateCertificateTemplateAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateTemplate certificateTemplate = new CertificateTemplate(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCertificateTemplateAsync(certificateTemplate, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2dfd2b0b69e4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateRequestObjectAsyncSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_async] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateTemplateAsync + /// + /// 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 UpdateCertificateTemplateRequestObjectAsync() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateCertificateTemplateRequest request = new UpdateCertificateTemplateRequest + { + CertificateTemplate = new CertificateTemplate(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCertificateTemplateAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..7c6e2cc0f506 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_sync] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateTemplate + /// + /// 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 UpdateCertificateTemplateRequestObject() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + UpdateCertificateTemplateRequest request = new UpdateCertificateTemplateRequest + { + CertificateTemplate = new CertificateTemplate(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCertificateTemplate(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateSnippet.g.cs new file mode 100755 index 000000000000..f58c57078f92 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/CertificateAuthorityServiceClient.UpdateCertificateTemplateSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_sync_flattened] + using Google.Cloud.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for UpdateCertificateTemplate + /// + /// 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 UpdateCertificateTemplate() + { + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateTemplate certificateTemplate = new CertificateTemplate(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCertificateTemplate(certificateTemplate, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + } + } + // [END privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets.csproj b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets.csproj new file mode 100755 index 000000000000..4788026a4a81 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/snippet_metadata_google.cloud.security.privateca.v1.json b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/snippet_metadata_google.cloud.security.privateca.v1.json new file mode 100755 index 000000000000..404834261b9c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.GeneratedSnippets/snippet_metadata_google.cloud.security.privateca.v1.json @@ -0,0 +1,8190 @@ +{ + "clientLibrary": { + "name": "Google.Cloud.Security.PrivateCA.V1", + "language": "C_SHARP", + "apis": [ + { + "id": "google.cloud.security.privateca.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificate_sync", + "title": "CreateCertificateRequestObject", + "description": "Snippet for CreateCertificate", + "file": "CertificateAuthorityServiceClient.CreateCertificateRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CreateCertificateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 34, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificate_async", + "title": "CreateCertificateRequestObjectAsync", + "description": "Snippet for CreateCertificateAsync", + "file": "CertificateAuthorityServiceClient.CreateCertificateRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CreateCertificateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 35, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificate_sync_flattened", + "title": "CreateCertificate", + "description": "Snippet for CreateCertificate", + "file": "CertificateAuthorityServiceClient.CreateCertificateSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificate", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "name": "certificate" + }, + { + "type": "System.String", + "name": "certificateId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificate_async_flattened", + "title": "CreateCertificateAsync", + "description": "Snippet for CreateCertificateAsync", + "file": "CertificateAuthorityServiceClient.CreateCertificateAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "name": "certificate" + }, + { + "type": "System.String", + "name": "certificateId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificate_sync_flattened_resourceNames", + "title": "CreateCertificateResourceNames", + "description": "Snippet for CreateCertificate", + "file": "CertificateAuthorityServiceClient.CreateCertificateResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "name": "certificate" + }, + { + "type": "System.String", + "name": "certificateId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificate_async_flattened_resourceNames", + "title": "CreateCertificateResourceNamesAsync", + "description": "Snippet for CreateCertificateAsync", + "file": "CertificateAuthorityServiceClient.CreateCertificateResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "name": "certificate" + }, + { + "type": "System.String", + "name": "certificateId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificate_sync", + "title": "GetCertificateRequestObject", + "description": "Snippet for GetCertificate", + "file": "CertificateAuthorityServiceClient.GetCertificateRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.GetCertificateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificate_async", + "title": "GetCertificateRequestObjectAsync", + "description": "Snippet for GetCertificateAsync", + "file": "CertificateAuthorityServiceClient.GetCertificateRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.GetCertificateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificate_sync_flattened", + "title": "GetCertificate", + "description": "Snippet for GetCertificate", + "file": "CertificateAuthorityServiceClient.GetCertificateSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificate", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificate_async_flattened", + "title": "GetCertificateAsync", + "description": "Snippet for GetCertificateAsync", + "file": "CertificateAuthorityServiceClient.GetCertificateAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificate_sync_flattened_resourceNames", + "title": "GetCertificateResourceNames", + "description": "Snippet for GetCertificate", + "file": "CertificateAuthorityServiceClient.GetCertificateResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificate_async_flattened_resourceNames", + "title": "GetCertificateResourceNamesAsync", + "description": "Snippet for GetCertificateAsync", + "file": "CertificateAuthorityServiceClient.GetCertificateResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificates_sync", + "title": "ListCertificatesRequestObject", + "description": "Snippet for ListCertificates", + "file": "CertificateAuthorityServiceClient.ListCertificatesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificates", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificates", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.ListCertificatesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 36, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificates_async", + "title": "ListCertificatesRequestObjectAsync", + "description": "Snippet for ListCertificatesAsync", + "file": "CertificateAuthorityServiceClient.ListCertificatesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificatesAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificatesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.ListCertificatesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 82, + "type": "FULL" + }, + { + "start": 38, + "end": 80, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificates_sync_flattened", + "title": "ListCertificates", + "description": "Snippet for ListCertificates", + "file": "CertificateAuthorityServiceClient.ListCertificatesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificates", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificates", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificates_async_flattened", + "title": "ListCertificatesAsync", + "description": "Snippet for ListCertificatesAsync", + "file": "CertificateAuthorityServiceClient.ListCertificatesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificatesAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificatesAsync", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificates_sync_flattened_resourceNames", + "title": "ListCertificatesResourceNames", + "description": "Snippet for ListCertificates", + "file": "CertificateAuthorityServiceClient.ListCertificatesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificates", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificates", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificates_async_flattened_resourceNames", + "title": "ListCertificatesResourceNamesAsync", + "description": "Snippet for ListCertificatesAsync", + "file": "CertificateAuthorityServiceClient.ListCertificatesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificatesAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificatesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_sync", + "title": "RevokeCertificateRequestObject", + "description": "Snippet for RevokeCertificate", + "file": "CertificateAuthorityServiceClient.RevokeCertificateRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RevokeCertificate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.RevokeCertificate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.RevokeCertificateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "RevokeCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 34, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_async", + "title": "RevokeCertificateRequestObjectAsync", + "description": "Snippet for RevokeCertificateAsync", + "file": "CertificateAuthorityServiceClient.RevokeCertificateRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RevokeCertificateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.RevokeCertificateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.RevokeCertificateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "RevokeCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_sync_flattened", + "title": "RevokeCertificate", + "description": "Snippet for RevokeCertificate", + "file": "CertificateAuthorityServiceClient.RevokeCertificateSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RevokeCertificate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.RevokeCertificate", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "RevokeCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_async_flattened", + "title": "RevokeCertificateAsync", + "description": "Snippet for RevokeCertificateAsync", + "file": "CertificateAuthorityServiceClient.RevokeCertificateAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RevokeCertificateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.RevokeCertificateAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "RevokeCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_sync_flattened_resourceNames", + "title": "RevokeCertificateResourceNames", + "description": "Snippet for RevokeCertificate", + "file": "CertificateAuthorityServiceClient.RevokeCertificateResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RevokeCertificate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.RevokeCertificate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "RevokeCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_async_flattened_resourceNames", + "title": "RevokeCertificateResourceNamesAsync", + "description": "Snippet for RevokeCertificateAsync", + "file": "CertificateAuthorityServiceClient.RevokeCertificateResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RevokeCertificateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.RevokeCertificateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "RevokeCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_sync", + "title": "UpdateCertificateRequestObject", + "description": "Snippet for UpdateCertificate", + "file": "CertificateAuthorityServiceClient.UpdateCertificateRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_async", + "title": "UpdateCertificateRequestObjectAsync", + "description": "Snippet for UpdateCertificateAsync", + "file": "CertificateAuthorityServiceClient.UpdateCertificateRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 36, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_sync_flattened", + "title": "UpdateCertificate", + "description": "Snippet for UpdateCertificate", + "file": "CertificateAuthorityServiceClient.UpdateCertificateSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "name": "certificate" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_async_flattened", + "title": "UpdateCertificateAsync", + "description": "Snippet for UpdateCertificateAsync", + "file": "CertificateAuthorityServiceClient.UpdateCertificateAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.Certificate", + "name": "certificate" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_sync", + "title": "ActivateCertificateAuthorityRequestObject", + "description": "Snippet for ActivateCertificateAuthority", + "file": "CertificateAuthorityServiceClient.ActivateCertificateAuthorityRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ActivateCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ActivateCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.ActivateCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ActivateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 35, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_async", + "title": "ActivateCertificateAuthorityRequestObjectAsync", + "description": "Snippet for ActivateCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.ActivateCertificateAuthorityRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ActivateCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ActivateCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.ActivateCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ActivateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 36, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_sync_flattened", + "title": "ActivateCertificateAuthority", + "description": "Snippet for ActivateCertificateAuthority", + "file": "CertificateAuthorityServiceClient.ActivateCertificateAuthoritySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ActivateCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ActivateCertificateAuthority", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ActivateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_async_flattened", + "title": "ActivateCertificateAuthorityAsync", + "description": "Snippet for ActivateCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.ActivateCertificateAuthorityAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ActivateCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ActivateCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ActivateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_sync_flattened_resourceNames", + "title": "ActivateCertificateAuthorityResourceNames", + "description": "Snippet for ActivateCertificateAuthority", + "file": "CertificateAuthorityServiceClient.ActivateCertificateAuthorityResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ActivateCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ActivateCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ActivateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_async_flattened_resourceNames", + "title": "ActivateCertificateAuthorityResourceNamesAsync", + "description": "Snippet for ActivateCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.ActivateCertificateAuthorityResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ActivateCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ActivateCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ActivateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_sync", + "title": "CreateCertificateAuthorityRequestObject", + "description": "Snippet for CreateCertificateAuthority", + "file": "CertificateAuthorityServiceClient.CreateCertificateAuthorityRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CreateCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 35, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_async", + "title": "CreateCertificateAuthorityRequestObjectAsync", + "description": "Snippet for CreateCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.CreateCertificateAuthorityRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CreateCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 36, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_sync_flattened", + "title": "CreateCertificateAuthority", + "description": "Snippet for CreateCertificateAuthority", + "file": "CertificateAuthorityServiceClient.CreateCertificateAuthoritySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateAuthority", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthority", + "name": "certificateAuthority" + }, + { + "type": "System.String", + "name": "certificateAuthorityId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_async_flattened", + "title": "CreateCertificateAuthorityAsync", + "description": "Snippet for CreateCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.CreateCertificateAuthorityAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthority", + "name": "certificateAuthority" + }, + { + "type": "System.String", + "name": "certificateAuthorityId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_sync_flattened_resourceNames", + "title": "CreateCertificateAuthorityResourceNames", + "description": "Snippet for CreateCertificateAuthority", + "file": "CertificateAuthorityServiceClient.CreateCertificateAuthorityResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthority", + "name": "certificateAuthority" + }, + { + "type": "System.String", + "name": "certificateAuthorityId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_async_flattened_resourceNames", + "title": "CreateCertificateAuthorityResourceNamesAsync", + "description": "Snippet for CreateCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.CreateCertificateAuthorityResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthority", + "name": "certificateAuthority" + }, + { + "type": "System.String", + "name": "certificateAuthorityId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_sync", + "title": "DisableCertificateAuthorityRequestObject", + "description": "Snippet for DisableCertificateAuthority", + "file": "CertificateAuthorityServiceClient.DisableCertificateAuthorityRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DisableCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DisableCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.DisableCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DisableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 35, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_async", + "title": "DisableCertificateAuthorityRequestObjectAsync", + "description": "Snippet for DisableCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.DisableCertificateAuthorityRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DisableCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DisableCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.DisableCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DisableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_sync_flattened", + "title": "DisableCertificateAuthority", + "description": "Snippet for DisableCertificateAuthority", + "file": "CertificateAuthorityServiceClient.DisableCertificateAuthoritySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DisableCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DisableCertificateAuthority", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DisableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_async_flattened", + "title": "DisableCertificateAuthorityAsync", + "description": "Snippet for DisableCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.DisableCertificateAuthorityAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DisableCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DisableCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DisableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_sync_flattened_resourceNames", + "title": "DisableCertificateAuthorityResourceNames", + "description": "Snippet for DisableCertificateAuthority", + "file": "CertificateAuthorityServiceClient.DisableCertificateAuthorityResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DisableCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DisableCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DisableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_async_flattened_resourceNames", + "title": "DisableCertificateAuthorityResourceNamesAsync", + "description": "Snippet for DisableCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.DisableCertificateAuthorityResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DisableCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DisableCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DisableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_sync", + "title": "EnableCertificateAuthorityRequestObject", + "description": "Snippet for EnableCertificateAuthority", + "file": "CertificateAuthorityServiceClient.EnableCertificateAuthorityRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "EnableCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.EnableCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.EnableCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "EnableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 35, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_async", + "title": "EnableCertificateAuthorityRequestObjectAsync", + "description": "Snippet for EnableCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.EnableCertificateAuthorityRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "EnableCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.EnableCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.EnableCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "EnableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_sync_flattened", + "title": "EnableCertificateAuthority", + "description": "Snippet for EnableCertificateAuthority", + "file": "CertificateAuthorityServiceClient.EnableCertificateAuthoritySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "EnableCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.EnableCertificateAuthority", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "EnableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_async_flattened", + "title": "EnableCertificateAuthorityAsync", + "description": "Snippet for EnableCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.EnableCertificateAuthorityAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "EnableCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.EnableCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "EnableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_sync_flattened_resourceNames", + "title": "EnableCertificateAuthorityResourceNames", + "description": "Snippet for EnableCertificateAuthority", + "file": "CertificateAuthorityServiceClient.EnableCertificateAuthorityResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "EnableCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.EnableCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "EnableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_async_flattened_resourceNames", + "title": "EnableCertificateAuthorityResourceNamesAsync", + "description": "Snippet for EnableCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.EnableCertificateAuthorityResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "EnableCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.EnableCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "EnableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_sync", + "title": "FetchCertificateAuthorityCsrRequestObject", + "description": "Snippet for FetchCertificateAuthorityCsr", + "file": "CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.FetchCertificateAuthorityCsr", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrResponse", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_async", + "title": "FetchCertificateAuthorityCsrRequestObjectAsync", + "description": "Snippet for FetchCertificateAuthorityCsrAsync", + "file": "CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "FetchCertificateAuthorityCsrAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_sync_flattened", + "title": "FetchCertificateAuthorityCsr", + "description": "Snippet for FetchCertificateAuthorityCsr", + "file": "CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.FetchCertificateAuthorityCsr", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrResponse", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_async_flattened", + "title": "FetchCertificateAuthorityCsrAsync", + "description": "Snippet for FetchCertificateAuthorityCsrAsync", + "file": "CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "FetchCertificateAuthorityCsrAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_sync_flattened_resourceNames", + "title": "FetchCertificateAuthorityCsrResourceNames", + "description": "Snippet for FetchCertificateAuthorityCsr", + "file": "CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.FetchCertificateAuthorityCsr", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrResponse", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_async_flattened_resourceNames", + "title": "FetchCertificateAuthorityCsrResourceNamesAsync", + "description": "Snippet for FetchCertificateAuthorityCsrAsync", + "file": "CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "FetchCertificateAuthorityCsrAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_sync", + "title": "GetCertificateAuthorityRequestObject", + "description": "Snippet for GetCertificateAuthority", + "file": "CertificateAuthorityServiceClient.GetCertificateAuthorityRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.GetCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthority", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_async", + "title": "GetCertificateAuthorityRequestObjectAsync", + "description": "Snippet for GetCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.GetCertificateAuthorityRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.GetCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_sync_flattened", + "title": "GetCertificateAuthority", + "description": "Snippet for GetCertificateAuthority", + "file": "CertificateAuthorityServiceClient.GetCertificateAuthoritySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateAuthority", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthority", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_async_flattened", + "title": "GetCertificateAuthorityAsync", + "description": "Snippet for GetCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.GetCertificateAuthorityAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_sync_flattened_resourceNames", + "title": "GetCertificateAuthorityResourceNames", + "description": "Snippet for GetCertificateAuthority", + "file": "CertificateAuthorityServiceClient.GetCertificateAuthorityResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthority", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_async_flattened_resourceNames", + "title": "GetCertificateAuthorityResourceNamesAsync", + "description": "Snippet for GetCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.GetCertificateAuthorityResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_sync", + "title": "ListCertificateAuthoritiesRequestObject", + "description": "Snippet for ListCertificateAuthorities", + "file": "CertificateAuthorityServiceClient.ListCertificateAuthoritiesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateAuthorities", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateAuthorities", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateAuthorities", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 36, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_async", + "title": "ListCertificateAuthoritiesRequestObjectAsync", + "description": "Snippet for ListCertificateAuthoritiesAsync", + "file": "CertificateAuthorityServiceClient.ListCertificateAuthoritiesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateAuthoritiesAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateAuthoritiesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateAuthorities", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 82, + "type": "FULL" + }, + { + "start": 38, + "end": 80, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_sync_flattened", + "title": "ListCertificateAuthorities", + "description": "Snippet for ListCertificateAuthorities", + "file": "CertificateAuthorityServiceClient.ListCertificateAuthoritiesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateAuthorities", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateAuthorities", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateAuthorities", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_async_flattened", + "title": "ListCertificateAuthoritiesAsync", + "description": "Snippet for ListCertificateAuthoritiesAsync", + "file": "CertificateAuthorityServiceClient.ListCertificateAuthoritiesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateAuthoritiesAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateAuthoritiesAsync", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateAuthorities", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_sync_flattened_resourceNames", + "title": "ListCertificateAuthoritiesResourceNames", + "description": "Snippet for ListCertificateAuthorities", + "file": "CertificateAuthorityServiceClient.ListCertificateAuthoritiesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateAuthorities", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateAuthorities", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateAuthorities", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_async_flattened_resourceNames", + "title": "ListCertificateAuthoritiesResourceNamesAsync", + "description": "Snippet for ListCertificateAuthoritiesAsync", + "file": "CertificateAuthorityServiceClient.ListCertificateAuthoritiesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateAuthoritiesAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateAuthoritiesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateAuthorities", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_sync", + "title": "UndeleteCertificateAuthorityRequestObject", + "description": "Snippet for UndeleteCertificateAuthority", + "file": "CertificateAuthorityServiceClient.UndeleteCertificateAuthorityRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UndeleteCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UndeleteCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.UndeleteCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UndeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 35, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_async", + "title": "UndeleteCertificateAuthorityRequestObjectAsync", + "description": "Snippet for UndeleteCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.UndeleteCertificateAuthorityRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UndeleteCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.UndeleteCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UndeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_sync_flattened", + "title": "UndeleteCertificateAuthority", + "description": "Snippet for UndeleteCertificateAuthority", + "file": "CertificateAuthorityServiceClient.UndeleteCertificateAuthoritySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UndeleteCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UndeleteCertificateAuthority", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UndeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_async_flattened", + "title": "UndeleteCertificateAuthorityAsync", + "description": "Snippet for UndeleteCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.UndeleteCertificateAuthorityAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UndeleteCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UndeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_sync_flattened_resourceNames", + "title": "UndeleteCertificateAuthorityResourceNames", + "description": "Snippet for UndeleteCertificateAuthority", + "file": "CertificateAuthorityServiceClient.UndeleteCertificateAuthorityResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UndeleteCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UndeleteCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UndeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_async_flattened_resourceNames", + "title": "UndeleteCertificateAuthorityResourceNamesAsync", + "description": "Snippet for UndeleteCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.UndeleteCertificateAuthorityResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UndeleteCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UndeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_sync", + "title": "DeleteCertificateAuthorityRequestObject", + "description": "Snippet for DeleteCertificateAuthority", + "file": "CertificateAuthorityServiceClient.DeleteCertificateAuthorityRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.DeleteCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 35, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_async", + "title": "DeleteCertificateAuthorityRequestObjectAsync", + "description": "Snippet for DeleteCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.DeleteCertificateAuthorityRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.DeleteCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 36, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_sync_flattened", + "title": "DeleteCertificateAuthority", + "description": "Snippet for DeleteCertificateAuthority", + "file": "CertificateAuthorityServiceClient.DeleteCertificateAuthoritySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCertificateAuthority", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_async_flattened", + "title": "DeleteCertificateAuthorityAsync", + "description": "Snippet for DeleteCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.DeleteCertificateAuthorityAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_sync_flattened_resourceNames", + "title": "DeleteCertificateAuthorityResourceNames", + "description": "Snippet for DeleteCertificateAuthority", + "file": "CertificateAuthorityServiceClient.DeleteCertificateAuthorityResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_async_flattened_resourceNames", + "title": "DeleteCertificateAuthorityResourceNamesAsync", + "description": "Snippet for DeleteCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.DeleteCertificateAuthorityResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_sync", + "title": "UpdateCertificateAuthorityRequestObject", + "description": "Snippet for UpdateCertificateAuthority", + "file": "CertificateAuthorityServiceClient.UpdateCertificateAuthorityRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.UpdateCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_async", + "title": "UpdateCertificateAuthorityRequestObjectAsync", + "description": "Snippet for UpdateCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.UpdateCertificateAuthorityRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.UpdateCertificateAuthorityRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 37, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_sync_flattened", + "title": "UpdateCertificateAuthority", + "description": "Snippet for UpdateCertificateAuthority", + "file": "CertificateAuthorityServiceClient.UpdateCertificateAuthoritySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateAuthority", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateAuthority", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthority", + "name": "certificateAuthority" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_async_flattened", + "title": "UpdateCertificateAuthorityAsync", + "description": "Snippet for UpdateCertificateAuthorityAsync", + "file": "CertificateAuthorityServiceClient.UpdateCertificateAuthorityAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateAuthorityAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateAuthorityAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthority", + "name": "certificateAuthority" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCaPool_sync", + "title": "CreateCaPoolRequestObject", + "description": "Snippet for CreateCaPool", + "file": "CertificateAuthorityServiceClient.CreateCaPoolRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCaPool", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCaPool", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CreateCaPoolRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 36, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCaPool_async", + "title": "CreateCaPoolRequestObjectAsync", + "description": "Snippet for CreateCaPoolAsync", + "file": "CertificateAuthorityServiceClient.CreateCaPoolRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCaPoolAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCaPoolAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CreateCaPoolRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 37, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCaPool_sync_flattened", + "title": "CreateCaPool", + "description": "Snippet for CreateCaPool", + "file": "CertificateAuthorityServiceClient.CreateCaPoolSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCaPool", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCaPool", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPool", + "name": "caPool" + }, + { + "type": "System.String", + "name": "caPoolId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCaPool_async_flattened", + "title": "CreateCaPoolAsync", + "description": "Snippet for CreateCaPoolAsync", + "file": "CertificateAuthorityServiceClient.CreateCaPoolAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCaPoolAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCaPoolAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPool", + "name": "caPool" + }, + { + "type": "System.String", + "name": "caPoolId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCaPool_sync_flattened_resourceNames", + "title": "CreateCaPoolResourceNames", + "description": "Snippet for CreateCaPool", + "file": "CertificateAuthorityServiceClient.CreateCaPoolResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCaPool", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCaPool", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPool", + "name": "caPool" + }, + { + "type": "System.String", + "name": "caPoolId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCaPool_async_flattened_resourceNames", + "title": "CreateCaPoolResourceNamesAsync", + "description": "Snippet for CreateCaPoolAsync", + "file": "CertificateAuthorityServiceClient.CreateCaPoolResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCaPoolAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCaPoolAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPool", + "name": "caPool" + }, + { + "type": "System.String", + "name": "caPoolId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 37, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_sync", + "title": "UpdateCaPoolRequestObject", + "description": "Snippet for UpdateCaPool", + "file": "CertificateAuthorityServiceClient.UpdateCaPoolRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCaPool", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCaPool", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.UpdateCaPoolRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_async", + "title": "UpdateCaPoolRequestObjectAsync", + "description": "Snippet for UpdateCaPoolAsync", + "file": "CertificateAuthorityServiceClient.UpdateCaPoolRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCaPoolAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCaPoolAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.UpdateCaPoolRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 37, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_sync_flattened", + "title": "UpdateCaPool", + "description": "Snippet for UpdateCaPool", + "file": "CertificateAuthorityServiceClient.UpdateCaPoolSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCaPool", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCaPool", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPool", + "name": "caPool" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_async_flattened", + "title": "UpdateCaPoolAsync", + "description": "Snippet for UpdateCaPoolAsync", + "file": "CertificateAuthorityServiceClient.UpdateCaPoolAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCaPoolAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCaPoolAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPool", + "name": "caPool" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCaPool_sync", + "title": "GetCaPoolRequestObject", + "description": "Snippet for GetCaPool", + "file": "CertificateAuthorityServiceClient.GetCaPoolRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCaPool", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCaPool", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.GetCaPoolRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.CaPool", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCaPool_async", + "title": "GetCaPoolRequestObjectAsync", + "description": "Snippet for GetCaPoolAsync", + "file": "CertificateAuthorityServiceClient.GetCaPoolRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCaPoolAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCaPoolAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.GetCaPoolRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCaPool_sync_flattened", + "title": "GetCaPool", + "description": "Snippet for GetCaPool", + "file": "CertificateAuthorityServiceClient.GetCaPoolSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCaPool", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCaPool", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.CaPool", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCaPool_async_flattened", + "title": "GetCaPoolAsync", + "description": "Snippet for GetCaPoolAsync", + "file": "CertificateAuthorityServiceClient.GetCaPoolAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCaPoolAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCaPoolAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCaPool_sync_flattened_resourceNames", + "title": "GetCaPoolResourceNames", + "description": "Snippet for GetCaPool", + "file": "CertificateAuthorityServiceClient.GetCaPoolResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCaPool", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCaPool", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.CaPool", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCaPool_async_flattened_resourceNames", + "title": "GetCaPoolResourceNamesAsync", + "description": "Snippet for GetCaPoolAsync", + "file": "CertificateAuthorityServiceClient.GetCaPoolResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCaPoolAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCaPoolAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCaPools_sync", + "title": "ListCaPoolsRequestObject", + "description": "Snippet for ListCaPools", + "file": "CertificateAuthorityServiceClient.ListCaPoolsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCaPools", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCaPools", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.ListCaPoolsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCaPools", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 37, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCaPools_async", + "title": "ListCaPoolsRequestObjectAsync", + "description": "Snippet for ListCaPoolsAsync", + "file": "CertificateAuthorityServiceClient.ListCaPoolsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCaPoolsAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCaPoolsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.ListCaPoolsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCaPools", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 83, + "type": "FULL" + }, + { + "start": 39, + "end": 81, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCaPools_sync_flattened", + "title": "ListCaPools", + "description": "Snippet for ListCaPools", + "file": "CertificateAuthorityServiceClient.ListCaPoolsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCaPools", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCaPools", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCaPools", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCaPools_async_flattened", + "title": "ListCaPoolsAsync", + "description": "Snippet for ListCaPoolsAsync", + "file": "CertificateAuthorityServiceClient.ListCaPoolsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCaPoolsAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCaPoolsAsync", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCaPools", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCaPools_sync_flattened_resourceNames", + "title": "ListCaPoolsResourceNames", + "description": "Snippet for ListCaPools", + "file": "CertificateAuthorityServiceClient.ListCaPoolsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCaPools", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCaPools", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCaPools", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCaPools_async_flattened_resourceNames", + "title": "ListCaPoolsResourceNamesAsync", + "description": "Snippet for ListCaPoolsAsync", + "file": "CertificateAuthorityServiceClient.ListCaPoolsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCaPoolsAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCaPoolsAsync", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCaPools", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_sync", + "title": "DeleteCaPoolRequestObject", + "description": "Snippet for DeleteCaPool", + "file": "CertificateAuthorityServiceClient.DeleteCaPoolRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCaPool", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCaPool", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.DeleteCaPoolRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_async", + "title": "DeleteCaPoolRequestObjectAsync", + "description": "Snippet for DeleteCaPoolAsync", + "file": "CertificateAuthorityServiceClient.DeleteCaPoolRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCaPoolAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCaPoolAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.DeleteCaPoolRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 37, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_sync_flattened", + "title": "DeleteCaPool", + "description": "Snippet for DeleteCaPool", + "file": "CertificateAuthorityServiceClient.DeleteCaPoolSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCaPool", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCaPool", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_async_flattened", + "title": "DeleteCaPoolAsync", + "description": "Snippet for DeleteCaPoolAsync", + "file": "CertificateAuthorityServiceClient.DeleteCaPoolAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCaPoolAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCaPoolAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_sync_flattened_resourceNames", + "title": "DeleteCaPoolResourceNames", + "description": "Snippet for DeleteCaPool", + "file": "CertificateAuthorityServiceClient.DeleteCaPoolResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCaPool", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCaPool", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_async_flattened_resourceNames", + "title": "DeleteCaPoolResourceNamesAsync", + "description": "Snippet for DeleteCaPoolAsync", + "file": "CertificateAuthorityServiceClient.DeleteCaPoolResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCaPoolAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCaPoolAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_sync", + "title": "FetchCaCertsRequestObject", + "description": "Snippet for FetchCaCerts", + "file": "CertificateAuthorityServiceClient.FetchCaCertsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "FetchCaCerts", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.FetchCaCerts", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.FetchCaCertsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.FetchCaCertsResponse", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "FetchCaCerts", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_async", + "title": "FetchCaCertsRequestObjectAsync", + "description": "Snippet for FetchCaCertsAsync", + "file": "CertificateAuthorityServiceClient.FetchCaCertsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "FetchCaCertsAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.FetchCaCertsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.FetchCaCertsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "FetchCaCerts", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_sync_flattened", + "title": "FetchCaCerts", + "description": "Snippet for FetchCaCerts", + "file": "CertificateAuthorityServiceClient.FetchCaCertsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "FetchCaCerts", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.FetchCaCerts", + "parameters": [ + { + "type": "System.String", + "name": "caPool" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.FetchCaCertsResponse", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "FetchCaCerts", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_async_flattened", + "title": "FetchCaCertsAsync", + "description": "Snippet for FetchCaCertsAsync", + "file": "CertificateAuthorityServiceClient.FetchCaCertsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "FetchCaCertsAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.FetchCaCertsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "caPool" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "FetchCaCerts", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_sync_flattened_resourceNames", + "title": "FetchCaCertsResourceNames", + "description": "Snippet for FetchCaCerts", + "file": "CertificateAuthorityServiceClient.FetchCaCertsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "FetchCaCerts", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.FetchCaCerts", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "name": "caPool" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.FetchCaCertsResponse", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "FetchCaCerts", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_async_flattened_resourceNames", + "title": "FetchCaCertsResourceNamesAsync", + "description": "Snippet for FetchCaCertsAsync", + "file": "CertificateAuthorityServiceClient.FetchCaCertsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "FetchCaCertsAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.FetchCaCertsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CaPoolName", + "name": "caPool" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "FetchCaCerts", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync", + "title": "GetCertificateRevocationListRequestObject", + "description": "Snippet for GetCertificateRevocationList", + "file": "CertificateAuthorityServiceClient.GetCertificateRevocationListRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateRevocationList", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateRevocationList", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.GetCertificateRevocationListRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_async", + "title": "GetCertificateRevocationListRequestObjectAsync", + "description": "Snippet for GetCertificateRevocationListAsync", + "file": "CertificateAuthorityServiceClient.GetCertificateRevocationListRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateRevocationListAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateRevocationListAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.GetCertificateRevocationListRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync_flattened", + "title": "GetCertificateRevocationList", + "description": "Snippet for GetCertificateRevocationList", + "file": "CertificateAuthorityServiceClient.GetCertificateRevocationListSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateRevocationList", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateRevocationList", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_async_flattened", + "title": "GetCertificateRevocationListAsync", + "description": "Snippet for GetCertificateRevocationListAsync", + "file": "CertificateAuthorityServiceClient.GetCertificateRevocationListAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateRevocationListAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateRevocationListAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync_flattened_resourceNames", + "title": "GetCertificateRevocationListResourceNames", + "description": "Snippet for GetCertificateRevocationList", + "file": "CertificateAuthorityServiceClient.GetCertificateRevocationListResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateRevocationList", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateRevocationList", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateRevocationListName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_async_flattened_resourceNames", + "title": "GetCertificateRevocationListResourceNamesAsync", + "description": "Snippet for GetCertificateRevocationListAsync", + "file": "CertificateAuthorityServiceClient.GetCertificateRevocationListResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateRevocationListAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateRevocationListAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateRevocationListName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_sync", + "title": "ListCertificateRevocationListsRequestObject", + "description": "Snippet for ListCertificateRevocationLists", + "file": "CertificateAuthorityServiceClient.ListCertificateRevocationListsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateRevocationLists", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateRevocationLists", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateRevocationLists", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 36, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_async", + "title": "ListCertificateRevocationListsRequestObjectAsync", + "description": "Snippet for ListCertificateRevocationListsAsync", + "file": "CertificateAuthorityServiceClient.ListCertificateRevocationListsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateRevocationListsAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateRevocationListsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateRevocationLists", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 82, + "type": "FULL" + }, + { + "start": 38, + "end": 80, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_sync_flattened", + "title": "ListCertificateRevocationLists", + "description": "Snippet for ListCertificateRevocationLists", + "file": "CertificateAuthorityServiceClient.ListCertificateRevocationListsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateRevocationLists", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateRevocationLists", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateRevocationLists", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_async_flattened", + "title": "ListCertificateRevocationListsAsync", + "description": "Snippet for ListCertificateRevocationListsAsync", + "file": "CertificateAuthorityServiceClient.ListCertificateRevocationListsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateRevocationListsAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateRevocationListsAsync", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateRevocationLists", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_sync_flattened_resourceNames", + "title": "ListCertificateRevocationListsResourceNames", + "description": "Snippet for ListCertificateRevocationLists", + "file": "CertificateAuthorityServiceClient.ListCertificateRevocationListsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateRevocationLists", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateRevocationLists", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateRevocationLists", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_async_flattened_resourceNames", + "title": "ListCertificateRevocationListsResourceNamesAsync", + "description": "Snippet for ListCertificateRevocationListsAsync", + "file": "CertificateAuthorityServiceClient.ListCertificateRevocationListsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateRevocationListsAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateRevocationListsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateRevocationLists", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_sync", + "title": "UpdateCertificateRevocationListRequestObject", + "description": "Snippet for UpdateCertificateRevocationList", + "file": "CertificateAuthorityServiceClient.UpdateCertificateRevocationListRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateRevocationList", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateRevocationList", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRevocationListRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_async", + "title": "UpdateCertificateRevocationListRequestObjectAsync", + "description": "Snippet for UpdateCertificateRevocationListAsync", + "file": "CertificateAuthorityServiceClient.UpdateCertificateRevocationListRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateRevocationListAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateRevocationListAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRevocationListRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 37, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_sync_flattened", + "title": "UpdateCertificateRevocationList", + "description": "Snippet for UpdateCertificateRevocationList", + "file": "CertificateAuthorityServiceClient.UpdateCertificateRevocationListSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateRevocationList", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateRevocationList", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList", + "name": "certificateRevocationList" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_async_flattened", + "title": "UpdateCertificateRevocationListAsync", + "description": "Snippet for UpdateCertificateRevocationListAsync", + "file": "CertificateAuthorityServiceClient.UpdateCertificateRevocationListAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateRevocationListAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateRevocationListAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList", + "name": "certificateRevocationList" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_sync", + "title": "CreateCertificateTemplateRequestObject", + "description": "Snippet for CreateCertificateTemplate", + "file": "CertificateAuthorityServiceClient.CreateCertificateTemplateRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateTemplate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateTemplate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CreateCertificateTemplateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 36, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_async", + "title": "CreateCertificateTemplateRequestObjectAsync", + "description": "Snippet for CreateCertificateTemplateAsync", + "file": "CertificateAuthorityServiceClient.CreateCertificateTemplateRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateTemplateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateTemplateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CreateCertificateTemplateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 37, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_sync_flattened", + "title": "CreateCertificateTemplate", + "description": "Snippet for CreateCertificateTemplate", + "file": "CertificateAuthorityServiceClient.CreateCertificateTemplateSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateTemplate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateTemplate", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplate", + "name": "certificateTemplate" + }, + { + "type": "System.String", + "name": "certificateTemplateId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_async_flattened", + "title": "CreateCertificateTemplateAsync", + "description": "Snippet for CreateCertificateTemplateAsync", + "file": "CertificateAuthorityServiceClient.CreateCertificateTemplateAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateTemplateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateTemplateAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplate", + "name": "certificateTemplate" + }, + { + "type": "System.String", + "name": "certificateTemplateId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_sync_flattened_resourceNames", + "title": "CreateCertificateTemplateResourceNames", + "description": "Snippet for CreateCertificateTemplate", + "file": "CertificateAuthorityServiceClient.CreateCertificateTemplateResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateTemplate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateTemplate", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplate", + "name": "certificateTemplate" + }, + { + "type": "System.String", + "name": "certificateTemplateId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_async_flattened_resourceNames", + "title": "CreateCertificateTemplateResourceNamesAsync", + "description": "Snippet for CreateCertificateTemplateAsync", + "file": "CertificateAuthorityServiceClient.CreateCertificateTemplateResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCertificateTemplateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.CreateCertificateTemplateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplate", + "name": "certificateTemplate" + }, + { + "type": "System.String", + "name": "certificateTemplateId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 37, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_sync", + "title": "DeleteCertificateTemplateRequestObject", + "description": "Snippet for DeleteCertificateTemplate", + "file": "CertificateAuthorityServiceClient.DeleteCertificateTemplateRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCertificateTemplate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCertificateTemplate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.DeleteCertificateTemplateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_async", + "title": "DeleteCertificateTemplateRequestObjectAsync", + "description": "Snippet for DeleteCertificateTemplateAsync", + "file": "CertificateAuthorityServiceClient.DeleteCertificateTemplateRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCertificateTemplateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCertificateTemplateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.DeleteCertificateTemplateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 37, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_sync_flattened", + "title": "DeleteCertificateTemplate", + "description": "Snippet for DeleteCertificateTemplate", + "file": "CertificateAuthorityServiceClient.DeleteCertificateTemplateSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCertificateTemplate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCertificateTemplate", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_async_flattened", + "title": "DeleteCertificateTemplateAsync", + "description": "Snippet for DeleteCertificateTemplateAsync", + "file": "CertificateAuthorityServiceClient.DeleteCertificateTemplateAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCertificateTemplateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCertificateTemplateAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_sync_flattened_resourceNames", + "title": "DeleteCertificateTemplateResourceNames", + "description": "Snippet for DeleteCertificateTemplate", + "file": "CertificateAuthorityServiceClient.DeleteCertificateTemplateResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCertificateTemplate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCertificateTemplate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplateName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_async_flattened_resourceNames", + "title": "DeleteCertificateTemplateResourceNamesAsync", + "description": "Snippet for DeleteCertificateTemplateAsync", + "file": "CertificateAuthorityServiceClient.DeleteCertificateTemplateResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCertificateTemplateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.DeleteCertificateTemplateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplateName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "DeleteCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_sync", + "title": "GetCertificateTemplateRequestObject", + "description": "Snippet for GetCertificateTemplate", + "file": "CertificateAuthorityServiceClient.GetCertificateTemplateRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateTemplate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateTemplate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.GetCertificateTemplateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_async", + "title": "GetCertificateTemplateRequestObjectAsync", + "description": "Snippet for GetCertificateTemplateAsync", + "file": "CertificateAuthorityServiceClient.GetCertificateTemplateRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateTemplateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateTemplateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.GetCertificateTemplateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_sync_flattened", + "title": "GetCertificateTemplate", + "description": "Snippet for GetCertificateTemplate", + "file": "CertificateAuthorityServiceClient.GetCertificateTemplateSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateTemplate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateTemplate", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_async_flattened", + "title": "GetCertificateTemplateAsync", + "description": "Snippet for GetCertificateTemplateAsync", + "file": "CertificateAuthorityServiceClient.GetCertificateTemplateAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateTemplateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateTemplateAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_sync_flattened_resourceNames", + "title": "GetCertificateTemplateResourceNames", + "description": "Snippet for GetCertificateTemplate", + "file": "CertificateAuthorityServiceClient.GetCertificateTemplateResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateTemplate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateTemplate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplateName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplate", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_async_flattened_resourceNames", + "title": "GetCertificateTemplateResourceNamesAsync", + "description": "Snippet for GetCertificateTemplateAsync", + "file": "CertificateAuthorityServiceClient.GetCertificateTemplateResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCertificateTemplateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.GetCertificateTemplateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplateName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "GetCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_sync", + "title": "ListCertificateTemplatesRequestObject", + "description": "Snippet for ListCertificateTemplates", + "file": "CertificateAuthorityServiceClient.ListCertificateTemplatesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateTemplates", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateTemplates", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateTemplates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 37, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_async", + "title": "ListCertificateTemplatesRequestObjectAsync", + "description": "Snippet for ListCertificateTemplatesAsync", + "file": "CertificateAuthorityServiceClient.ListCertificateTemplatesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateTemplatesAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateTemplatesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateTemplates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 83, + "type": "FULL" + }, + { + "start": 39, + "end": 81, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_sync_flattened", + "title": "ListCertificateTemplates", + "description": "Snippet for ListCertificateTemplates", + "file": "CertificateAuthorityServiceClient.ListCertificateTemplatesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateTemplates", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateTemplates", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateTemplates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_async_flattened", + "title": "ListCertificateTemplatesAsync", + "description": "Snippet for ListCertificateTemplatesAsync", + "file": "CertificateAuthorityServiceClient.ListCertificateTemplatesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateTemplatesAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateTemplatesAsync", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateTemplates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_sync_flattened_resourceNames", + "title": "ListCertificateTemplatesResourceNames", + "description": "Snippet for ListCertificateTemplates", + "file": "CertificateAuthorityServiceClient.ListCertificateTemplatesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateTemplates", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateTemplates", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateTemplates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_async_flattened_resourceNames", + "title": "ListCertificateTemplatesResourceNamesAsync", + "description": "Snippet for ListCertificateTemplatesAsync", + "file": "CertificateAuthorityServiceClient.ListCertificateTemplatesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListCertificateTemplatesAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.ListCertificateTemplatesAsync", + "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": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "ListCertificateTemplates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_sync", + "title": "UpdateCertificateTemplateRequestObject", + "description": "Snippet for UpdateCertificateTemplate", + "file": "CertificateAuthorityServiceClient.UpdateCertificateTemplateRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateTemplate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateTemplate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.UpdateCertificateTemplateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_async", + "title": "UpdateCertificateTemplateRequestObjectAsync", + "description": "Snippet for UpdateCertificateTemplateAsync", + "file": "CertificateAuthorityServiceClient.UpdateCertificateTemplateRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateTemplateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateTemplateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.UpdateCertificateTemplateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 37, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_sync_flattened", + "title": "UpdateCertificateTemplate", + "description": "Snippet for UpdateCertificateTemplate", + "file": "CertificateAuthorityServiceClient.UpdateCertificateTemplateSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateTemplate", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateTemplate", + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplate", + "name": "certificateTemplate" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_async_flattened", + "title": "UpdateCertificateTemplateAsync", + "description": "Snippet for UpdateCertificateTemplateAsync", + "file": "CertificateAuthorityServiceClient.UpdateCertificateTemplateAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCertificateTemplateAsync", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient.UpdateCertificateTemplateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PrivateCA.V1.CertificateTemplate", + "name": "certificateTemplate" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "CertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient" + }, + "method": { + "shortName": "UpdateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + } + ] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.Snippets/CertificateAuthorityServiceClientSnippets.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.Snippets/CertificateAuthorityServiceClientSnippets.g.cs new file mode 100755 index 000000000000..3e5332e38b3d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.Snippets/CertificateAuthorityServiceClientSnippets.g.cs @@ -0,0 +1,4724 @@ +// 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.Security.PrivateCA.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Linq; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateCertificate + public void CreateCertificateRequestObject() + { + // Snippet: CreateCertificate(CreateCertificateRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CreateCertificateRequest request = new CreateCertificateRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + CertificateId = "", + Certificate = new Certificate(), + RequestId = "", + ValidateOnly = false, + IssuingCertificateAuthorityId = "", + }; + // Make the request + Certificate response = certificateAuthorityServiceClient.CreateCertificate(request); + // End snippet + } + + /// Snippet for CreateCertificateAsync + public async Task CreateCertificateRequestObjectAsync() + { + // Snippet: CreateCertificateAsync(CreateCertificateRequest, CallSettings) + // Additional: CreateCertificateAsync(CreateCertificateRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateCertificateRequest request = new CreateCertificateRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + CertificateId = "", + Certificate = new Certificate(), + RequestId = "", + ValidateOnly = false, + IssuingCertificateAuthorityId = "", + }; + // Make the request + Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(request); + // End snippet + } + + /// Snippet for CreateCertificate + public void CreateCertificate() + { + // Snippet: CreateCertificate(string, Certificate, string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + Certificate certificate = new Certificate(); + string certificateId = ""; + // Make the request + Certificate response = certificateAuthorityServiceClient.CreateCertificate(parent, certificate, certificateId); + // End snippet + } + + /// Snippet for CreateCertificateAsync + public async Task CreateCertificateAsync() + { + // Snippet: CreateCertificateAsync(string, Certificate, string, CallSettings) + // Additional: CreateCertificateAsync(string, Certificate, string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + Certificate certificate = new Certificate(); + string certificateId = ""; + // Make the request + Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId); + // End snippet + } + + /// Snippet for CreateCertificate + public void CreateCertificateResourceNames() + { + // Snippet: CreateCertificate(CaPoolName, Certificate, string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + Certificate certificate = new Certificate(); + string certificateId = ""; + // Make the request + Certificate response = certificateAuthorityServiceClient.CreateCertificate(parent, certificate, certificateId); + // End snippet + } + + /// Snippet for CreateCertificateAsync + public async Task CreateCertificateResourceNamesAsync() + { + // Snippet: CreateCertificateAsync(CaPoolName, Certificate, string, CallSettings) + // Additional: CreateCertificateAsync(CaPoolName, Certificate, string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + Certificate certificate = new Certificate(); + string certificateId = ""; + // Make the request + Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId); + // End snippet + } + + /// Snippet for GetCertificate + public void GetCertificateRequestObject() + { + // Snippet: GetCertificate(GetCertificateRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + GetCertificateRequest request = new GetCertificateRequest + { + CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"), + }; + // Make the request + Certificate response = certificateAuthorityServiceClient.GetCertificate(request); + // End snippet + } + + /// Snippet for GetCertificateAsync + public async Task GetCertificateRequestObjectAsync() + { + // Snippet: GetCertificateAsync(GetCertificateRequest, CallSettings) + // Additional: GetCertificateAsync(GetCertificateRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + GetCertificateRequest request = new GetCertificateRequest + { + CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"), + }; + // Make the request + Certificate response = await certificateAuthorityServiceClient.GetCertificateAsync(request); + // End snippet + } + + /// Snippet for GetCertificate + public void GetCertificate() + { + // Snippet: GetCertificate(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificates/[CERTIFICATE]"; + // Make the request + Certificate response = certificateAuthorityServiceClient.GetCertificate(name); + // End snippet + } + + /// Snippet for GetCertificateAsync + public async Task GetCertificateAsync() + { + // Snippet: GetCertificateAsync(string, CallSettings) + // Additional: GetCertificateAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificates/[CERTIFICATE]"; + // Make the request + Certificate response = await certificateAuthorityServiceClient.GetCertificateAsync(name); + // End snippet + } + + /// Snippet for GetCertificate + public void GetCertificateResourceNames() + { + // Snippet: GetCertificate(CertificateName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + // Make the request + Certificate response = certificateAuthorityServiceClient.GetCertificate(name); + // End snippet + } + + /// Snippet for GetCertificateAsync + public async Task GetCertificateResourceNamesAsync() + { + // Snippet: GetCertificateAsync(CertificateName, CallSettings) + // Additional: GetCertificateAsync(CertificateName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + // Make the request + Certificate response = await certificateAuthorityServiceClient.GetCertificateAsync(name); + // End snippet + } + + /// Snippet for ListCertificates + public void ListCertificatesRequestObject() + { + // Snippet: ListCertificates(ListCertificatesRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + ListCertificatesRequest request = new ListCertificatesRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificates(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Certificate 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 (ListCertificatesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Certificate 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 (Certificate 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 ListCertificatesAsync + public async Task ListCertificatesRequestObjectAsync() + { + // Snippet: ListCertificatesAsync(ListCertificatesRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + ListCertificatesRequest request = new ListCertificatesRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificatesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Certificate 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((ListCertificatesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Certificate 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 (Certificate 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 ListCertificates + public void ListCertificates() + { + // Snippet: ListCertificates(string, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificates(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Certificate 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 (ListCertificatesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Certificate 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 (Certificate 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 ListCertificatesAsync + public async Task ListCertificatesAsync() + { + // Snippet: ListCertificatesAsync(string, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificatesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Certificate 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((ListCertificatesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Certificate 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 (Certificate 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 ListCertificates + public void ListCertificatesResourceNames() + { + // Snippet: ListCertificates(CaPoolName, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificates(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Certificate 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 (ListCertificatesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Certificate 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 (Certificate 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 ListCertificatesAsync + public async Task ListCertificatesResourceNamesAsync() + { + // Snippet: ListCertificatesAsync(CaPoolName, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificatesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Certificate 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((ListCertificatesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Certificate 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 (Certificate 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 RevokeCertificate + public void RevokeCertificateRequestObject() + { + // Snippet: RevokeCertificate(RevokeCertificateRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + RevokeCertificateRequest request = new RevokeCertificateRequest + { + CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"), + Reason = RevocationReason.Unspecified, + RequestId = "", + }; + // Make the request + Certificate response = certificateAuthorityServiceClient.RevokeCertificate(request); + // End snippet + } + + /// Snippet for RevokeCertificateAsync + public async Task RevokeCertificateRequestObjectAsync() + { + // Snippet: RevokeCertificateAsync(RevokeCertificateRequest, CallSettings) + // Additional: RevokeCertificateAsync(RevokeCertificateRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + RevokeCertificateRequest request = new RevokeCertificateRequest + { + CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"), + Reason = RevocationReason.Unspecified, + RequestId = "", + }; + // Make the request + Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(request); + // End snippet + } + + /// Snippet for RevokeCertificate + public void RevokeCertificate() + { + // Snippet: RevokeCertificate(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificates/[CERTIFICATE]"; + // Make the request + Certificate response = certificateAuthorityServiceClient.RevokeCertificate(name); + // End snippet + } + + /// Snippet for RevokeCertificateAsync + public async Task RevokeCertificateAsync() + { + // Snippet: RevokeCertificateAsync(string, CallSettings) + // Additional: RevokeCertificateAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificates/[CERTIFICATE]"; + // Make the request + Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name); + // End snippet + } + + /// Snippet for RevokeCertificate + public void RevokeCertificateResourceNames() + { + // Snippet: RevokeCertificate(CertificateName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + // Make the request + Certificate response = certificateAuthorityServiceClient.RevokeCertificate(name); + // End snippet + } + + /// Snippet for RevokeCertificateAsync + public async Task RevokeCertificateResourceNamesAsync() + { + // Snippet: RevokeCertificateAsync(CertificateName, CallSettings) + // Additional: RevokeCertificateAsync(CertificateName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + // Make the request + Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name); + // End snippet + } + + /// Snippet for UpdateCertificate + public void UpdateCertificateRequestObject() + { + // Snippet: UpdateCertificate(UpdateCertificateRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + UpdateCertificateRequest request = new UpdateCertificateRequest + { + Certificate = new Certificate(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Certificate response = certificateAuthorityServiceClient.UpdateCertificate(request); + // End snippet + } + + /// Snippet for UpdateCertificateAsync + public async Task UpdateCertificateRequestObjectAsync() + { + // Snippet: UpdateCertificateAsync(UpdateCertificateRequest, CallSettings) + // Additional: UpdateCertificateAsync(UpdateCertificateRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateCertificateRequest request = new UpdateCertificateRequest + { + Certificate = new Certificate(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(request); + // End snippet + } + + /// Snippet for UpdateCertificate + public void UpdateCertificate() + { + // Snippet: UpdateCertificate(Certificate, FieldMask, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + Certificate certificate = new Certificate(); + FieldMask updateMask = new FieldMask(); + // Make the request + Certificate response = certificateAuthorityServiceClient.UpdateCertificate(certificate, updateMask); + // End snippet + } + + /// Snippet for UpdateCertificateAsync + public async Task UpdateCertificateAsync() + { + // Snippet: UpdateCertificateAsync(Certificate, FieldMask, CallSettings) + // Additional: UpdateCertificateAsync(Certificate, FieldMask, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + Certificate certificate = new Certificate(); + FieldMask updateMask = new FieldMask(); + // Make the request + Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(certificate, updateMask); + // End snippet + } + + /// Snippet for ActivateCertificateAuthority + public void ActivateCertificateAuthorityRequestObject() + { + // Snippet: ActivateCertificateAuthority(ActivateCertificateAuthorityRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + PemCaCertificate = "", + SubordinateConfig = new SubordinateConfig(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.ActivateCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for ActivateCertificateAuthorityAsync + public async Task ActivateCertificateAuthorityRequestObjectAsync() + { + // Snippet: ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest, CallSettings) + // Additional: ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + PemCaCertificate = "", + SubordinateConfig = new SubordinateConfig(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for ActivateCertificateAuthority + public void ActivateCertificateAuthority() + { + // Snippet: ActivateCertificateAuthority(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = certificateAuthorityServiceClient.ActivateCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for ActivateCertificateAuthorityAsync + public async Task ActivateCertificateAuthorityAsync() + { + // Snippet: ActivateCertificateAuthorityAsync(string, CallSettings) + // Additional: ActivateCertificateAuthorityAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for ActivateCertificateAuthority + public void ActivateCertificateAuthorityResourceNames() + { + // Snippet: ActivateCertificateAuthority(CertificateAuthorityName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = certificateAuthorityServiceClient.ActivateCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for ActivateCertificateAuthorityAsync + public async Task ActivateCertificateAuthorityResourceNamesAsync() + { + // Snippet: ActivateCertificateAuthorityAsync(CertificateAuthorityName, CallSettings) + // Additional: ActivateCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCertificateAuthority + public void CreateCertificateAuthorityRequestObject() + { + // Snippet: CreateCertificateAuthority(CreateCertificateAuthorityRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + CertificateAuthorityId = "", + CertificateAuthority = new CertificateAuthority(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCertificateAuthorityAsync + public async Task CreateCertificateAuthorityRequestObjectAsync() + { + // Snippet: CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest, CallSettings) + // Additional: CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + CertificateAuthorityId = "", + CertificateAuthority = new CertificateAuthority(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCertificateAuthority + public void CreateCertificateAuthority() + { + // Snippet: CreateCertificateAuthority(string, CertificateAuthority, string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + CertificateAuthority certificateAuthority = new CertificateAuthority(); + string certificateAuthorityId = ""; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCertificateAuthority(parent, certificateAuthority, certificateAuthorityId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCertificateAuthorityAsync + public async Task CreateCertificateAuthorityAsync() + { + // Snippet: CreateCertificateAuthorityAsync(string, CertificateAuthority, string, CallSettings) + // Additional: CreateCertificateAuthorityAsync(string, CertificateAuthority, string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + CertificateAuthority certificateAuthority = new CertificateAuthority(); + string certificateAuthorityId = ""; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCertificateAuthority + public void CreateCertificateAuthorityResourceNames() + { + // Snippet: CreateCertificateAuthority(CaPoolName, CertificateAuthority, string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + CertificateAuthority certificateAuthority = new CertificateAuthority(); + string certificateAuthorityId = ""; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCertificateAuthority(parent, certificateAuthority, certificateAuthorityId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCertificateAuthorityAsync + public async Task CreateCertificateAuthorityResourceNamesAsync() + { + // Snippet: CreateCertificateAuthorityAsync(CaPoolName, CertificateAuthority, string, CallSettings) + // Additional: CreateCertificateAuthorityAsync(CaPoolName, CertificateAuthority, string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + CertificateAuthority certificateAuthority = new CertificateAuthority(); + string certificateAuthorityId = ""; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DisableCertificateAuthority + public void DisableCertificateAuthorityRequestObject() + { + // Snippet: DisableCertificateAuthority(DisableCertificateAuthorityRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + DisableCertificateAuthorityRequest request = new DisableCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + IgnoreDependentResources = false, + }; + // Make the request + Operation response = certificateAuthorityServiceClient.DisableCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDisableCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DisableCertificateAuthorityAsync + public async Task DisableCertificateAuthorityRequestObjectAsync() + { + // Snippet: DisableCertificateAuthorityAsync(DisableCertificateAuthorityRequest, CallSettings) + // Additional: DisableCertificateAuthorityAsync(DisableCertificateAuthorityRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + DisableCertificateAuthorityRequest request = new DisableCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + IgnoreDependentResources = false, + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDisableCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DisableCertificateAuthority + public void DisableCertificateAuthority() + { + // Snippet: DisableCertificateAuthority(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = certificateAuthorityServiceClient.DisableCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDisableCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DisableCertificateAuthorityAsync + public async Task DisableCertificateAuthorityAsync() + { + // Snippet: DisableCertificateAuthorityAsync(string, CallSettings) + // Additional: DisableCertificateAuthorityAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDisableCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DisableCertificateAuthority + public void DisableCertificateAuthorityResourceNames() + { + // Snippet: DisableCertificateAuthority(CertificateAuthorityName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = certificateAuthorityServiceClient.DisableCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDisableCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DisableCertificateAuthorityAsync + public async Task DisableCertificateAuthorityResourceNamesAsync() + { + // Snippet: DisableCertificateAuthorityAsync(CertificateAuthorityName, CallSettings) + // Additional: DisableCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDisableCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for EnableCertificateAuthority + public void EnableCertificateAuthorityRequestObject() + { + // Snippet: EnableCertificateAuthority(EnableCertificateAuthorityRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + EnableCertificateAuthorityRequest request = new EnableCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.EnableCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceEnableCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for EnableCertificateAuthorityAsync + public async Task EnableCertificateAuthorityRequestObjectAsync() + { + // Snippet: EnableCertificateAuthorityAsync(EnableCertificateAuthorityRequest, CallSettings) + // Additional: EnableCertificateAuthorityAsync(EnableCertificateAuthorityRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + EnableCertificateAuthorityRequest request = new EnableCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.EnableCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceEnableCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for EnableCertificateAuthority + public void EnableCertificateAuthority() + { + // Snippet: EnableCertificateAuthority(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = certificateAuthorityServiceClient.EnableCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceEnableCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for EnableCertificateAuthorityAsync + public async Task EnableCertificateAuthorityAsync() + { + // Snippet: EnableCertificateAuthorityAsync(string, CallSettings) + // Additional: EnableCertificateAuthorityAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.EnableCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceEnableCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for EnableCertificateAuthority + public void EnableCertificateAuthorityResourceNames() + { + // Snippet: EnableCertificateAuthority(CertificateAuthorityName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = certificateAuthorityServiceClient.EnableCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceEnableCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for EnableCertificateAuthorityAsync + public async Task EnableCertificateAuthorityResourceNamesAsync() + { + // Snippet: EnableCertificateAuthorityAsync(CertificateAuthorityName, CallSettings) + // Additional: EnableCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.EnableCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceEnableCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for FetchCertificateAuthorityCsr + public void FetchCertificateAuthorityCsrRequestObject() + { + // Snippet: FetchCertificateAuthorityCsr(FetchCertificateAuthorityCsrRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + FetchCertificateAuthorityCsrRequest request = new FetchCertificateAuthorityCsrRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + }; + // Make the request + FetchCertificateAuthorityCsrResponse response = certificateAuthorityServiceClient.FetchCertificateAuthorityCsr(request); + // End snippet + } + + /// Snippet for FetchCertificateAuthorityCsrAsync + public async Task FetchCertificateAuthorityCsrRequestObjectAsync() + { + // Snippet: FetchCertificateAuthorityCsrAsync(FetchCertificateAuthorityCsrRequest, CallSettings) + // Additional: FetchCertificateAuthorityCsrAsync(FetchCertificateAuthorityCsrRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + FetchCertificateAuthorityCsrRequest request = new FetchCertificateAuthorityCsrRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + }; + // Make the request + FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(request); + // End snippet + } + + /// Snippet for FetchCertificateAuthorityCsr + public void FetchCertificateAuthorityCsr() + { + // Snippet: FetchCertificateAuthorityCsr(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + FetchCertificateAuthorityCsrResponse response = certificateAuthorityServiceClient.FetchCertificateAuthorityCsr(name); + // End snippet + } + + /// Snippet for FetchCertificateAuthorityCsrAsync + public async Task FetchCertificateAuthorityCsrAsync() + { + // Snippet: FetchCertificateAuthorityCsrAsync(string, CallSettings) + // Additional: FetchCertificateAuthorityCsrAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(name); + // End snippet + } + + /// Snippet for FetchCertificateAuthorityCsr + public void FetchCertificateAuthorityCsrResourceNames() + { + // Snippet: FetchCertificateAuthorityCsr(CertificateAuthorityName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + FetchCertificateAuthorityCsrResponse response = certificateAuthorityServiceClient.FetchCertificateAuthorityCsr(name); + // End snippet + } + + /// Snippet for FetchCertificateAuthorityCsrAsync + public async Task FetchCertificateAuthorityCsrResourceNamesAsync() + { + // Snippet: FetchCertificateAuthorityCsrAsync(CertificateAuthorityName, CallSettings) + // Additional: FetchCertificateAuthorityCsrAsync(CertificateAuthorityName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(name); + // End snippet + } + + /// Snippet for GetCertificateAuthority + public void GetCertificateAuthorityRequestObject() + { + // Snippet: GetCertificateAuthority(GetCertificateAuthorityRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + GetCertificateAuthorityRequest request = new GetCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + }; + // Make the request + CertificateAuthority response = certificateAuthorityServiceClient.GetCertificateAuthority(request); + // End snippet + } + + /// Snippet for GetCertificateAuthorityAsync + public async Task GetCertificateAuthorityRequestObjectAsync() + { + // Snippet: GetCertificateAuthorityAsync(GetCertificateAuthorityRequest, CallSettings) + // Additional: GetCertificateAuthorityAsync(GetCertificateAuthorityRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + GetCertificateAuthorityRequest request = new GetCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + }; + // Make the request + CertificateAuthority response = await certificateAuthorityServiceClient.GetCertificateAuthorityAsync(request); + // End snippet + } + + /// Snippet for GetCertificateAuthority + public void GetCertificateAuthority() + { + // Snippet: GetCertificateAuthority(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + CertificateAuthority response = certificateAuthorityServiceClient.GetCertificateAuthority(name); + // End snippet + } + + /// Snippet for GetCertificateAuthorityAsync + public async Task GetCertificateAuthorityAsync() + { + // Snippet: GetCertificateAuthorityAsync(string, CallSettings) + // Additional: GetCertificateAuthorityAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + CertificateAuthority response = await certificateAuthorityServiceClient.GetCertificateAuthorityAsync(name); + // End snippet + } + + /// Snippet for GetCertificateAuthority + public void GetCertificateAuthorityResourceNames() + { + // Snippet: GetCertificateAuthority(CertificateAuthorityName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + CertificateAuthority response = certificateAuthorityServiceClient.GetCertificateAuthority(name); + // End snippet + } + + /// Snippet for GetCertificateAuthorityAsync + public async Task GetCertificateAuthorityResourceNamesAsync() + { + // Snippet: GetCertificateAuthorityAsync(CertificateAuthorityName, CallSettings) + // Additional: GetCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + CertificateAuthority response = await certificateAuthorityServiceClient.GetCertificateAuthorityAsync(name); + // End snippet + } + + /// Snippet for ListCertificateAuthorities + public void ListCertificateAuthoritiesRequestObject() + { + // Snippet: ListCertificateAuthorities(ListCertificateAuthoritiesRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + ListCertificateAuthoritiesRequest request = new ListCertificateAuthoritiesRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateAuthorities(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateAuthority 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 (ListCertificateAuthoritiesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateAuthority 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 (CertificateAuthority 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 ListCertificateAuthoritiesAsync + public async Task ListCertificateAuthoritiesRequestObjectAsync() + { + // Snippet: ListCertificateAuthoritiesAsync(ListCertificateAuthoritiesRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + ListCertificateAuthoritiesRequest request = new ListCertificateAuthoritiesRequest + { + ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateAuthoritiesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateAuthority 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((ListCertificateAuthoritiesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateAuthority 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 (CertificateAuthority 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 ListCertificateAuthorities + public void ListCertificateAuthorities() + { + // Snippet: ListCertificateAuthorities(string, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateAuthorities(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateAuthority 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 (ListCertificateAuthoritiesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateAuthority 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 (CertificateAuthority 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 ListCertificateAuthoritiesAsync + public async Task ListCertificateAuthoritiesAsync() + { + // Snippet: ListCertificateAuthoritiesAsync(string, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateAuthoritiesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateAuthority 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((ListCertificateAuthoritiesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateAuthority 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 (CertificateAuthority 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 ListCertificateAuthorities + public void ListCertificateAuthoritiesResourceNames() + { + // Snippet: ListCertificateAuthorities(CaPoolName, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateAuthorities(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateAuthority 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 (ListCertificateAuthoritiesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateAuthority 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 (CertificateAuthority 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 ListCertificateAuthoritiesAsync + public async Task ListCertificateAuthoritiesResourceNamesAsync() + { + // Snippet: ListCertificateAuthoritiesAsync(CaPoolName, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateAuthoritiesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateAuthority 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((ListCertificateAuthoritiesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateAuthority 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 (CertificateAuthority 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 UndeleteCertificateAuthority + public void UndeleteCertificateAuthorityRequestObject() + { + // Snippet: UndeleteCertificateAuthority(UndeleteCertificateAuthorityRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + UndeleteCertificateAuthorityRequest request = new UndeleteCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.UndeleteCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUndeleteCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UndeleteCertificateAuthorityAsync + public async Task UndeleteCertificateAuthorityRequestObjectAsync() + { + // Snippet: UndeleteCertificateAuthorityAsync(UndeleteCertificateAuthorityRequest, CallSettings) + // Additional: UndeleteCertificateAuthorityAsync(UndeleteCertificateAuthorityRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + UndeleteCertificateAuthorityRequest request = new UndeleteCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUndeleteCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UndeleteCertificateAuthority + public void UndeleteCertificateAuthority() + { + // Snippet: UndeleteCertificateAuthority(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = certificateAuthorityServiceClient.UndeleteCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUndeleteCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UndeleteCertificateAuthorityAsync + public async Task UndeleteCertificateAuthorityAsync() + { + // Snippet: UndeleteCertificateAuthorityAsync(string, CallSettings) + // Additional: UndeleteCertificateAuthorityAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUndeleteCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UndeleteCertificateAuthority + public void UndeleteCertificateAuthorityResourceNames() + { + // Snippet: UndeleteCertificateAuthority(CertificateAuthorityName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = certificateAuthorityServiceClient.UndeleteCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUndeleteCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UndeleteCertificateAuthorityAsync + public async Task UndeleteCertificateAuthorityResourceNamesAsync() + { + // Snippet: UndeleteCertificateAuthorityAsync(CertificateAuthorityName, CallSettings) + // Additional: UndeleteCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUndeleteCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCertificateAuthority + public void DeleteCertificateAuthorityRequestObject() + { + // Snippet: DeleteCertificateAuthority(DeleteCertificateAuthorityRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + DeleteCertificateAuthorityRequest request = new DeleteCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + IgnoreActiveCertificates = false, + SkipGracePeriod = false, + IgnoreDependentResources = false, + }; + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCertificateAuthorityAsync + public async Task DeleteCertificateAuthorityRequestObjectAsync() + { + // Snippet: DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest, CallSettings) + // Additional: DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + DeleteCertificateAuthorityRequest request = new DeleteCertificateAuthorityRequest + { + CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + RequestId = "", + IgnoreActiveCertificates = false, + SkipGracePeriod = false, + IgnoreDependentResources = false, + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCertificateAuthority + public void DeleteCertificateAuthority() + { + // Snippet: DeleteCertificateAuthority(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCertificateAuthorityAsync + public async Task DeleteCertificateAuthorityAsync() + { + // Snippet: DeleteCertificateAuthorityAsync(string, CallSettings) + // Additional: DeleteCertificateAuthorityAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCertificateAuthority + public void DeleteCertificateAuthorityResourceNames() + { + // Snippet: DeleteCertificateAuthority(CertificateAuthorityName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCertificateAuthority(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCertificateAuthorityAsync + public async Task DeleteCertificateAuthorityResourceNamesAsync() + { + // Snippet: DeleteCertificateAuthorityAsync(CertificateAuthorityName, CallSettings) + // Additional: DeleteCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCertificateAuthority + public void UpdateCertificateAuthorityRequestObject() + { + // Snippet: UpdateCertificateAuthority(UpdateCertificateAuthorityRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + UpdateCertificateAuthorityRequest request = new UpdateCertificateAuthorityRequest + { + CertificateAuthority = new CertificateAuthority(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCertificateAuthority(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCertificateAuthorityAsync + public async Task UpdateCertificateAuthorityRequestObjectAsync() + { + // Snippet: UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest, CallSettings) + // Additional: UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateCertificateAuthorityRequest request = new UpdateCertificateAuthorityRequest + { + CertificateAuthority = new CertificateAuthority(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCertificateAuthorityAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCertificateAuthority + public void UpdateCertificateAuthority() + { + // Snippet: UpdateCertificateAuthority(CertificateAuthority, FieldMask, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthority certificateAuthority = new CertificateAuthority(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCertificateAuthority(certificateAuthority, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthority(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCertificateAuthorityAsync + public async Task UpdateCertificateAuthorityAsync() + { + // Snippet: UpdateCertificateAuthorityAsync(CertificateAuthority, FieldMask, CallSettings) + // Additional: UpdateCertificateAuthorityAsync(CertificateAuthority, FieldMask, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthority certificateAuthority = new CertificateAuthority(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCertificateAuthorityAsync(certificateAuthority, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateAuthority result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthorityAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateAuthority retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCaPool + public void CreateCaPoolRequestObject() + { + // Snippet: CreateCaPool(CreateCaPoolRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CreateCaPoolRequest request = new CreateCaPoolRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + CaPoolId = "", + CaPool = new CaPool(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCaPool(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCaPoolAsync + public async Task CreateCaPoolRequestObjectAsync() + { + // Snippet: CreateCaPoolAsync(CreateCaPoolRequest, CallSettings) + // Additional: CreateCaPoolAsync(CreateCaPoolRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateCaPoolRequest request = new CreateCaPoolRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + CaPoolId = "", + CaPool = new CaPool(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCaPoolAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCaPool + public void CreateCaPool() + { + // Snippet: CreateCaPool(string, CaPool, string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + CaPool caPool = new CaPool(); + string caPoolId = ""; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCaPool(parent, caPool, caPoolId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCaPoolAsync + public async Task CreateCaPoolAsync() + { + // Snippet: CreateCaPoolAsync(string, CaPool, string, CallSettings) + // Additional: CreateCaPoolAsync(string, CaPool, string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + CaPool caPool = new CaPool(); + string caPoolId = ""; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCaPoolAsync(parent, caPool, caPoolId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCaPool + public void CreateCaPoolResourceNames() + { + // Snippet: CreateCaPool(LocationName, CaPool, string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + CaPool caPool = new CaPool(); + string caPoolId = ""; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCaPool(parent, caPool, caPoolId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCaPoolAsync + public async Task CreateCaPoolResourceNamesAsync() + { + // Snippet: CreateCaPoolAsync(LocationName, CaPool, string, CallSettings) + // Additional: CreateCaPoolAsync(LocationName, CaPool, string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + CaPool caPool = new CaPool(); + string caPoolId = ""; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCaPoolAsync(parent, caPool, caPoolId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCaPool + public void UpdateCaPoolRequestObject() + { + // Snippet: UpdateCaPool(UpdateCaPoolRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + UpdateCaPoolRequest request = new UpdateCaPoolRequest + { + CaPool = new CaPool(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCaPool(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCaPoolAsync + public async Task UpdateCaPoolRequestObjectAsync() + { + // Snippet: UpdateCaPoolAsync(UpdateCaPoolRequest, CallSettings) + // Additional: UpdateCaPoolAsync(UpdateCaPoolRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateCaPoolRequest request = new UpdateCaPoolRequest + { + CaPool = new CaPool(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCaPoolAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCaPool + public void UpdateCaPool() + { + // Snippet: UpdateCaPool(CaPool, FieldMask, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPool caPool = new CaPool(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCaPool(caPool, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCaPoolAsync + public async Task UpdateCaPoolAsync() + { + // Snippet: UpdateCaPoolAsync(CaPool, FieldMask, CallSettings) + // Additional: UpdateCaPoolAsync(CaPool, FieldMask, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPool caPool = new CaPool(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCaPoolAsync(caPool, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CaPool result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CaPool retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for GetCaPool + public void GetCaPoolRequestObject() + { + // Snippet: GetCaPool(GetCaPoolRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + GetCaPoolRequest request = new GetCaPoolRequest + { + CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + }; + // Make the request + CaPool response = certificateAuthorityServiceClient.GetCaPool(request); + // End snippet + } + + /// Snippet for GetCaPoolAsync + public async Task GetCaPoolRequestObjectAsync() + { + // Snippet: GetCaPoolAsync(GetCaPoolRequest, CallSettings) + // Additional: GetCaPoolAsync(GetCaPoolRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + GetCaPoolRequest request = new GetCaPoolRequest + { + CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + }; + // Make the request + CaPool response = await certificateAuthorityServiceClient.GetCaPoolAsync(request); + // End snippet + } + + /// Snippet for GetCaPool + public void GetCaPool() + { + // Snippet: GetCaPool(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + CaPool response = certificateAuthorityServiceClient.GetCaPool(name); + // End snippet + } + + /// Snippet for GetCaPoolAsync + public async Task GetCaPoolAsync() + { + // Snippet: GetCaPoolAsync(string, CallSettings) + // Additional: GetCaPoolAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + CaPool response = await certificateAuthorityServiceClient.GetCaPoolAsync(name); + // End snippet + } + + /// Snippet for GetCaPool + public void GetCaPoolResourceNames() + { + // Snippet: GetCaPool(CaPoolName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + CaPool response = certificateAuthorityServiceClient.GetCaPool(name); + // End snippet + } + + /// Snippet for GetCaPoolAsync + public async Task GetCaPoolResourceNamesAsync() + { + // Snippet: GetCaPoolAsync(CaPoolName, CallSettings) + // Additional: GetCaPoolAsync(CaPoolName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + CaPool response = await certificateAuthorityServiceClient.GetCaPoolAsync(name); + // End snippet + } + + /// Snippet for ListCaPools + public void ListCaPoolsRequestObject() + { + // Snippet: ListCaPools(ListCaPoolsRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + ListCaPoolsRequest request = new ListCaPoolsRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCaPools(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CaPool 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 (ListCaPoolsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CaPool 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 (CaPool 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 ListCaPoolsAsync + public async Task ListCaPoolsRequestObjectAsync() + { + // Snippet: ListCaPoolsAsync(ListCaPoolsRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + ListCaPoolsRequest request = new ListCaPoolsRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCaPoolsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CaPool 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((ListCaPoolsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CaPool 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 (CaPool 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 ListCaPools + public void ListCaPools() + { + // Snippet: ListCaPools(string, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCaPools(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CaPool 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 (ListCaPoolsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CaPool 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 (CaPool 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 ListCaPoolsAsync + public async Task ListCaPoolsAsync() + { + // Snippet: ListCaPoolsAsync(string, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCaPoolsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CaPool 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((ListCaPoolsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CaPool 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 (CaPool 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 ListCaPools + public void ListCaPoolsResourceNames() + { + // Snippet: ListCaPools(LocationName, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCaPools(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CaPool 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 (ListCaPoolsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CaPool 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 (CaPool 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 ListCaPoolsAsync + public async Task ListCaPoolsResourceNamesAsync() + { + // Snippet: ListCaPoolsAsync(LocationName, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCaPoolsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CaPool 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((ListCaPoolsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CaPool 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 (CaPool 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 DeleteCaPool + public void DeleteCaPoolRequestObject() + { + // Snippet: DeleteCaPool(DeleteCaPoolRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + DeleteCaPoolRequest request = new DeleteCaPoolRequest + { + CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + RequestId = "", + IgnoreDependentResources = false, + }; + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCaPool(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCaPoolAsync + public async Task DeleteCaPoolRequestObjectAsync() + { + // Snippet: DeleteCaPoolAsync(DeleteCaPoolRequest, CallSettings) + // Additional: DeleteCaPoolAsync(DeleteCaPoolRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + DeleteCaPoolRequest request = new DeleteCaPoolRequest + { + CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + RequestId = "", + IgnoreDependentResources = false, + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCaPool + public void DeleteCaPool() + { + // Snippet: DeleteCaPool(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCaPool(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCaPoolAsync + public async Task DeleteCaPoolAsync() + { + // Snippet: DeleteCaPoolAsync(string, CallSettings) + // Additional: DeleteCaPoolAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCaPool + public void DeleteCaPoolResourceNames() + { + // Snippet: DeleteCaPool(CaPoolName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCaPool(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCaPool(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCaPoolAsync + public async Task DeleteCaPoolResourceNamesAsync() + { + // Snippet: DeleteCaPoolAsync(CaPoolName, CallSettings) + // Additional: DeleteCaPoolAsync(CaPoolName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for FetchCaCerts + public void FetchCaCertsRequestObject() + { + // Snippet: FetchCaCerts(FetchCaCertsRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + FetchCaCertsRequest request = new FetchCaCertsRequest + { + CaPoolAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + RequestId = "", + }; + // Make the request + FetchCaCertsResponse response = certificateAuthorityServiceClient.FetchCaCerts(request); + // End snippet + } + + /// Snippet for FetchCaCertsAsync + public async Task FetchCaCertsRequestObjectAsync() + { + // Snippet: FetchCaCertsAsync(FetchCaCertsRequest, CallSettings) + // Additional: FetchCaCertsAsync(FetchCaCertsRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + FetchCaCertsRequest request = new FetchCaCertsRequest + { + CaPoolAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"), + RequestId = "", + }; + // Make the request + FetchCaCertsResponse response = await certificateAuthorityServiceClient.FetchCaCertsAsync(request); + // End snippet + } + + /// Snippet for FetchCaCerts + public void FetchCaCerts() + { + // Snippet: FetchCaCerts(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string caPool = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + FetchCaCertsResponse response = certificateAuthorityServiceClient.FetchCaCerts(caPool); + // End snippet + } + + /// Snippet for FetchCaCertsAsync + public async Task FetchCaCertsAsync() + { + // Snippet: FetchCaCertsAsync(string, CallSettings) + // Additional: FetchCaCertsAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string caPool = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]"; + // Make the request + FetchCaCertsResponse response = await certificateAuthorityServiceClient.FetchCaCertsAsync(caPool); + // End snippet + } + + /// Snippet for FetchCaCerts + public void FetchCaCertsResourceNames() + { + // Snippet: FetchCaCerts(CaPoolName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CaPoolName caPool = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + FetchCaCertsResponse response = certificateAuthorityServiceClient.FetchCaCerts(caPool); + // End snippet + } + + /// Snippet for FetchCaCertsAsync + public async Task FetchCaCertsResourceNamesAsync() + { + // Snippet: FetchCaCertsAsync(CaPoolName, CallSettings) + // Additional: FetchCaCertsAsync(CaPoolName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CaPoolName caPool = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + // Make the request + FetchCaCertsResponse response = await certificateAuthorityServiceClient.FetchCaCertsAsync(caPool); + // End snippet + } + + /// Snippet for GetCertificateRevocationList + public void GetCertificateRevocationListRequestObject() + { + // Snippet: GetCertificateRevocationList(GetCertificateRevocationListRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + GetCertificateRevocationListRequest request = new GetCertificateRevocationListRequest + { + CertificateRevocationListName = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"), + }; + // Make the request + CertificateRevocationList response = certificateAuthorityServiceClient.GetCertificateRevocationList(request); + // End snippet + } + + /// Snippet for GetCertificateRevocationListAsync + public async Task GetCertificateRevocationListRequestObjectAsync() + { + // Snippet: GetCertificateRevocationListAsync(GetCertificateRevocationListRequest, CallSettings) + // Additional: GetCertificateRevocationListAsync(GetCertificateRevocationListRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + GetCertificateRevocationListRequest request = new GetCertificateRevocationListRequest + { + CertificateRevocationListName = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"), + }; + // Make the request + CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(request); + // End snippet + } + + /// Snippet for GetCertificateRevocationList + public void GetCertificateRevocationList() + { + // Snippet: GetCertificateRevocationList(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificateRevocationLists/[CERTIFICATE_REVOCATION_LIST]"; + // Make the request + CertificateRevocationList response = certificateAuthorityServiceClient.GetCertificateRevocationList(name); + // End snippet + } + + /// Snippet for GetCertificateRevocationListAsync + public async Task GetCertificateRevocationListAsync() + { + // Snippet: GetCertificateRevocationListAsync(string, CallSettings) + // Additional: GetCertificateRevocationListAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificateRevocationLists/[CERTIFICATE_REVOCATION_LIST]"; + // Make the request + CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(name); + // End snippet + } + + /// Snippet for GetCertificateRevocationList + public void GetCertificateRevocationListResourceNames() + { + // Snippet: GetCertificateRevocationList(CertificateRevocationListName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateRevocationListName name = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"); + // Make the request + CertificateRevocationList response = certificateAuthorityServiceClient.GetCertificateRevocationList(name); + // End snippet + } + + /// Snippet for GetCertificateRevocationListAsync + public async Task GetCertificateRevocationListResourceNamesAsync() + { + // Snippet: GetCertificateRevocationListAsync(CertificateRevocationListName, CallSettings) + // Additional: GetCertificateRevocationListAsync(CertificateRevocationListName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateRevocationListName name = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"); + // Make the request + CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(name); + // End snippet + } + + /// Snippet for ListCertificateRevocationLists + public void ListCertificateRevocationListsRequestObject() + { + // Snippet: ListCertificateRevocationLists(ListCertificateRevocationListsRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + ListCertificateRevocationListsRequest request = new ListCertificateRevocationListsRequest + { + ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateRevocationLists(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateRevocationList 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 (ListCertificateRevocationListsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateRevocationList 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 (CertificateRevocationList 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 ListCertificateRevocationListsAsync + public async Task ListCertificateRevocationListsRequestObjectAsync() + { + // Snippet: ListCertificateRevocationListsAsync(ListCertificateRevocationListsRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + ListCertificateRevocationListsRequest request = new ListCertificateRevocationListsRequest + { + ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateRevocationListsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateRevocationList 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((ListCertificateRevocationListsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateRevocationList 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 (CertificateRevocationList 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 ListCertificateRevocationLists + public void ListCertificateRevocationLists() + { + // Snippet: ListCertificateRevocationLists(string, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateRevocationLists(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateRevocationList 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 (ListCertificateRevocationListsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateRevocationList 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 (CertificateRevocationList 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 ListCertificateRevocationListsAsync + public async Task ListCertificateRevocationListsAsync() + { + // Snippet: ListCertificateRevocationListsAsync(string, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]"; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateRevocationListsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateRevocationList 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((ListCertificateRevocationListsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateRevocationList 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 (CertificateRevocationList 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 ListCertificateRevocationLists + public void ListCertificateRevocationListsResourceNames() + { + // Snippet: ListCertificateRevocationLists(CertificateAuthorityName, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateRevocationLists(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateRevocationList 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 (ListCertificateRevocationListsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateRevocationList 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 (CertificateRevocationList 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 ListCertificateRevocationListsAsync + public async Task ListCertificateRevocationListsResourceNamesAsync() + { + // Snippet: ListCertificateRevocationListsAsync(CertificateAuthorityName, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateRevocationListsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateRevocationList 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((ListCertificateRevocationListsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateRevocationList 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 (CertificateRevocationList 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 UpdateCertificateRevocationList + public void UpdateCertificateRevocationListRequestObject() + { + // Snippet: UpdateCertificateRevocationList(UpdateCertificateRevocationListRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + UpdateCertificateRevocationListRequest request = new UpdateCertificateRevocationListRequest + { + CertificateRevocationList = new CertificateRevocationList(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCertificateRevocationList(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateRevocationList result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationList(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateRevocationList retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCertificateRevocationListAsync + public async Task UpdateCertificateRevocationListRequestObjectAsync() + { + // Snippet: UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest, CallSettings) + // Additional: UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateCertificateRevocationListRequest request = new UpdateCertificateRevocationListRequest + { + CertificateRevocationList = new CertificateRevocationList(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCertificateRevocationListAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateRevocationList result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationListAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateRevocationList retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCertificateRevocationList + public void UpdateCertificateRevocationList() + { + // Snippet: UpdateCertificateRevocationList(CertificateRevocationList, FieldMask, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateRevocationList certificateRevocationList = new CertificateRevocationList(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCertificateRevocationList(certificateRevocationList, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateRevocationList result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationList(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateRevocationList retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCertificateRevocationListAsync + public async Task UpdateCertificateRevocationListAsync() + { + // Snippet: UpdateCertificateRevocationListAsync(CertificateRevocationList, FieldMask, CallSettings) + // Additional: UpdateCertificateRevocationListAsync(CertificateRevocationList, FieldMask, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateRevocationList certificateRevocationList = new CertificateRevocationList(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCertificateRevocationListAsync(certificateRevocationList, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateRevocationList result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationListAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateRevocationList retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCertificateTemplate + public void CreateCertificateTemplateRequestObject() + { + // Snippet: CreateCertificateTemplate(CreateCertificateTemplateRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CreateCertificateTemplateRequest request = new CreateCertificateTemplateRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + CertificateTemplateId = "", + CertificateTemplate = new CertificateTemplate(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCertificateTemplate(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCertificateTemplateAsync + public async Task CreateCertificateTemplateRequestObjectAsync() + { + // Snippet: CreateCertificateTemplateAsync(CreateCertificateTemplateRequest, CallSettings) + // Additional: CreateCertificateTemplateAsync(CreateCertificateTemplateRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateCertificateTemplateRequest request = new CreateCertificateTemplateRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + CertificateTemplateId = "", + CertificateTemplate = new CertificateTemplate(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCertificateTemplate + public void CreateCertificateTemplate() + { + // Snippet: CreateCertificateTemplate(string, CertificateTemplate, string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + CertificateTemplate certificateTemplate = new CertificateTemplate(); + string certificateTemplateId = ""; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCertificateTemplate(parent, certificateTemplate, certificateTemplateId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCertificateTemplateAsync + public async Task CreateCertificateTemplateAsync() + { + // Snippet: CreateCertificateTemplateAsync(string, CertificateTemplate, string, CallSettings) + // Additional: CreateCertificateTemplateAsync(string, CertificateTemplate, string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + CertificateTemplate certificateTemplate = new CertificateTemplate(); + string certificateTemplateId = ""; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCertificateTemplate + public void CreateCertificateTemplateResourceNames() + { + // Snippet: CreateCertificateTemplate(LocationName, CertificateTemplate, string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + CertificateTemplate certificateTemplate = new CertificateTemplate(); + string certificateTemplateId = ""; + // Make the request + Operation response = certificateAuthorityServiceClient.CreateCertificateTemplate(parent, certificateTemplate, certificateTemplateId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCertificateTemplateAsync + public async Task CreateCertificateTemplateResourceNamesAsync() + { + // Snippet: CreateCertificateTemplateAsync(LocationName, CertificateTemplate, string, CallSettings) + // Additional: CreateCertificateTemplateAsync(LocationName, CertificateTemplate, string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + CertificateTemplate certificateTemplate = new CertificateTemplate(); + string certificateTemplateId = ""; + // Make the request + Operation response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCertificateTemplate + public void DeleteCertificateTemplateRequestObject() + { + // Snippet: DeleteCertificateTemplate(DeleteCertificateTemplateRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + DeleteCertificateTemplateRequest request = new DeleteCertificateTemplateRequest + { + CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCertificateTemplate(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCertificateTemplateAsync + public async Task DeleteCertificateTemplateRequestObjectAsync() + { + // Snippet: DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest, CallSettings) + // Additional: DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + DeleteCertificateTemplateRequest request = new DeleteCertificateTemplateRequest + { + CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCertificateTemplate + public void DeleteCertificateTemplate() + { + // Snippet: DeleteCertificateTemplate(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]"; + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCertificateTemplate(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCertificateTemplateAsync + public async Task DeleteCertificateTemplateAsync() + { + // Snippet: DeleteCertificateTemplateAsync(string, CallSettings) + // Additional: DeleteCertificateTemplateAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]"; + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCertificateTemplate + public void DeleteCertificateTemplateResourceNames() + { + // Snippet: DeleteCertificateTemplate(CertificateTemplateName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + // Make the request + Operation response = certificateAuthorityServiceClient.DeleteCertificateTemplate(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCertificateTemplateAsync + public async Task DeleteCertificateTemplateResourceNamesAsync() + { + // Snippet: DeleteCertificateTemplateAsync(CertificateTemplateName, CallSettings) + // Additional: DeleteCertificateTemplateAsync(CertificateTemplateName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + // Make the request + Operation response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for GetCertificateTemplate + public void GetCertificateTemplateRequestObject() + { + // Snippet: GetCertificateTemplate(GetCertificateTemplateRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + GetCertificateTemplateRequest request = new GetCertificateTemplateRequest + { + CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"), + }; + // Make the request + CertificateTemplate response = certificateAuthorityServiceClient.GetCertificateTemplate(request); + // End snippet + } + + /// Snippet for GetCertificateTemplateAsync + public async Task GetCertificateTemplateRequestObjectAsync() + { + // Snippet: GetCertificateTemplateAsync(GetCertificateTemplateRequest, CallSettings) + // Additional: GetCertificateTemplateAsync(GetCertificateTemplateRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + GetCertificateTemplateRequest request = new GetCertificateTemplateRequest + { + CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"), + }; + // Make the request + CertificateTemplate response = await certificateAuthorityServiceClient.GetCertificateTemplateAsync(request); + // End snippet + } + + /// Snippet for GetCertificateTemplate + public void GetCertificateTemplate() + { + // Snippet: GetCertificateTemplate(string, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]"; + // Make the request + CertificateTemplate response = certificateAuthorityServiceClient.GetCertificateTemplate(name); + // End snippet + } + + /// Snippet for GetCertificateTemplateAsync + public async Task GetCertificateTemplateAsync() + { + // Snippet: GetCertificateTemplateAsync(string, CallSettings) + // Additional: GetCertificateTemplateAsync(string, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]"; + // Make the request + CertificateTemplate response = await certificateAuthorityServiceClient.GetCertificateTemplateAsync(name); + // End snippet + } + + /// Snippet for GetCertificateTemplate + public void GetCertificateTemplateResourceNames() + { + // Snippet: GetCertificateTemplate(CertificateTemplateName, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + // Make the request + CertificateTemplate response = certificateAuthorityServiceClient.GetCertificateTemplate(name); + // End snippet + } + + /// Snippet for GetCertificateTemplateAsync + public async Task GetCertificateTemplateResourceNamesAsync() + { + // Snippet: GetCertificateTemplateAsync(CertificateTemplateName, CallSettings) + // Additional: GetCertificateTemplateAsync(CertificateTemplateName, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + // Make the request + CertificateTemplate response = await certificateAuthorityServiceClient.GetCertificateTemplateAsync(name); + // End snippet + } + + /// Snippet for ListCertificateTemplates + public void ListCertificateTemplatesRequestObject() + { + // Snippet: ListCertificateTemplates(ListCertificateTemplatesRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + ListCertificateTemplatesRequest request = new ListCertificateTemplatesRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateTemplates(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateTemplate 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 (ListCertificateTemplatesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateTemplate 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 (CertificateTemplate 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 ListCertificateTemplatesAsync + public async Task ListCertificateTemplatesRequestObjectAsync() + { + // Snippet: ListCertificateTemplatesAsync(ListCertificateTemplatesRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + ListCertificateTemplatesRequest request = new ListCertificateTemplatesRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateTemplatesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateTemplate 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((ListCertificateTemplatesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateTemplate 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 (CertificateTemplate 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 ListCertificateTemplates + public void ListCertificateTemplates() + { + // Snippet: ListCertificateTemplates(string, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateTemplates(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateTemplate 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 (ListCertificateTemplatesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateTemplate 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 (CertificateTemplate 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 ListCertificateTemplatesAsync + public async Task ListCertificateTemplatesAsync() + { + // Snippet: ListCertificateTemplatesAsync(string, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateTemplatesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateTemplate 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((ListCertificateTemplatesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateTemplate 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 (CertificateTemplate 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 ListCertificateTemplates + public void ListCertificateTemplatesResourceNames() + { + // Snippet: ListCertificateTemplates(LocationName, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = certificateAuthorityServiceClient.ListCertificateTemplates(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (CertificateTemplate 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 (ListCertificateTemplatesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateTemplate 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 (CertificateTemplate 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 ListCertificateTemplatesAsync + public async Task ListCertificateTemplatesResourceNamesAsync() + { + // Snippet: ListCertificateTemplatesAsync(LocationName, string, int?, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = certificateAuthorityServiceClient.ListCertificateTemplatesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((CertificateTemplate 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((ListCertificateTemplatesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (CertificateTemplate 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 (CertificateTemplate 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 UpdateCertificateTemplate + public void UpdateCertificateTemplateRequestObject() + { + // Snippet: UpdateCertificateTemplate(UpdateCertificateTemplateRequest, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + UpdateCertificateTemplateRequest request = new UpdateCertificateTemplateRequest + { + CertificateTemplate = new CertificateTemplate(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCertificateTemplate(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCertificateTemplateAsync + public async Task UpdateCertificateTemplateRequestObjectAsync() + { + // Snippet: UpdateCertificateTemplateAsync(UpdateCertificateTemplateRequest, CallSettings) + // Additional: UpdateCertificateTemplateAsync(UpdateCertificateTemplateRequest, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateCertificateTemplateRequest request = new UpdateCertificateTemplateRequest + { + CertificateTemplate = new CertificateTemplate(), + UpdateMask = new FieldMask(), + RequestId = "", + }; + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCertificateTemplateAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCertificateTemplate + public void UpdateCertificateTemplate() + { + // Snippet: UpdateCertificateTemplate(CertificateTemplate, FieldMask, CallSettings) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CertificateTemplate certificateTemplate = new CertificateTemplate(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = certificateAuthorityServiceClient.UpdateCertificateTemplate(certificateTemplate, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplate(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateCertificateTemplateAsync + public async Task UpdateCertificateTemplateAsync() + { + // Snippet: UpdateCertificateTemplateAsync(CertificateTemplate, FieldMask, CallSettings) + // Additional: UpdateCertificateTemplateAsync(CertificateTemplate, FieldMask, CancellationToken) + // Create client + CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CertificateTemplate certificateTemplate = new CertificateTemplate(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await certificateAuthorityServiceClient.UpdateCertificateTemplateAsync(certificateTemplate, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + CertificateTemplate result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplateAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + CertificateTemplate retrievedResult = retrievedResponse.Result; + } + // End snippet + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.Snippets/Google.Cloud.Security.PrivateCA.V1.Snippets.csproj b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.Snippets/Google.Cloud.Security.PrivateCA.V1.Snippets.csproj new file mode 100755 index 000000000000..4788026a4a81 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.Snippets/Google.Cloud.Security.PrivateCA.V1.Snippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/CertificateAuthorityServiceClient.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/CertificateAuthorityServiceClient.g.cs new file mode 100755 index 000000000000..acc77c552d34 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/CertificateAuthorityServiceClient.g.cs @@ -0,0 +1,6875 @@ +// 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 lro = Google.LongRunning; +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.Security.PrivateCA.V1 +{ + /// Settings for instances. + public sealed partial class CertificateAuthorityServiceSettings : gaxgrpc::ServiceSettingsBase + { + /// Get a new instance of the default . + /// A new instance of the default . + public static CertificateAuthorityServiceSettings GetDefault() => new CertificateAuthorityServiceSettings(); + + /// + /// Constructs a new object with default settings. + /// + public CertificateAuthorityServiceSettings() + { + } + + private CertificateAuthorityServiceSettings(CertificateAuthorityServiceSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + CreateCertificateSettings = existing.CreateCertificateSettings; + GetCertificateSettings = existing.GetCertificateSettings; + ListCertificatesSettings = existing.ListCertificatesSettings; + RevokeCertificateSettings = existing.RevokeCertificateSettings; + UpdateCertificateSettings = existing.UpdateCertificateSettings; + ActivateCertificateAuthoritySettings = existing.ActivateCertificateAuthoritySettings; + ActivateCertificateAuthorityOperationsSettings = existing.ActivateCertificateAuthorityOperationsSettings.Clone(); + CreateCertificateAuthoritySettings = existing.CreateCertificateAuthoritySettings; + CreateCertificateAuthorityOperationsSettings = existing.CreateCertificateAuthorityOperationsSettings.Clone(); + DisableCertificateAuthoritySettings = existing.DisableCertificateAuthoritySettings; + DisableCertificateAuthorityOperationsSettings = existing.DisableCertificateAuthorityOperationsSettings.Clone(); + EnableCertificateAuthoritySettings = existing.EnableCertificateAuthoritySettings; + EnableCertificateAuthorityOperationsSettings = existing.EnableCertificateAuthorityOperationsSettings.Clone(); + FetchCertificateAuthorityCsrSettings = existing.FetchCertificateAuthorityCsrSettings; + GetCertificateAuthoritySettings = existing.GetCertificateAuthoritySettings; + ListCertificateAuthoritiesSettings = existing.ListCertificateAuthoritiesSettings; + UndeleteCertificateAuthoritySettings = existing.UndeleteCertificateAuthoritySettings; + UndeleteCertificateAuthorityOperationsSettings = existing.UndeleteCertificateAuthorityOperationsSettings.Clone(); + DeleteCertificateAuthoritySettings = existing.DeleteCertificateAuthoritySettings; + DeleteCertificateAuthorityOperationsSettings = existing.DeleteCertificateAuthorityOperationsSettings.Clone(); + UpdateCertificateAuthoritySettings = existing.UpdateCertificateAuthoritySettings; + UpdateCertificateAuthorityOperationsSettings = existing.UpdateCertificateAuthorityOperationsSettings.Clone(); + CreateCaPoolSettings = existing.CreateCaPoolSettings; + CreateCaPoolOperationsSettings = existing.CreateCaPoolOperationsSettings.Clone(); + UpdateCaPoolSettings = existing.UpdateCaPoolSettings; + UpdateCaPoolOperationsSettings = existing.UpdateCaPoolOperationsSettings.Clone(); + GetCaPoolSettings = existing.GetCaPoolSettings; + ListCaPoolsSettings = existing.ListCaPoolsSettings; + DeleteCaPoolSettings = existing.DeleteCaPoolSettings; + DeleteCaPoolOperationsSettings = existing.DeleteCaPoolOperationsSettings.Clone(); + FetchCaCertsSettings = existing.FetchCaCertsSettings; + GetCertificateRevocationListSettings = existing.GetCertificateRevocationListSettings; + ListCertificateRevocationListsSettings = existing.ListCertificateRevocationListsSettings; + UpdateCertificateRevocationListSettings = existing.UpdateCertificateRevocationListSettings; + UpdateCertificateRevocationListOperationsSettings = existing.UpdateCertificateRevocationListOperationsSettings.Clone(); + CreateCertificateTemplateSettings = existing.CreateCertificateTemplateSettings; + CreateCertificateTemplateOperationsSettings = existing.CreateCertificateTemplateOperationsSettings.Clone(); + DeleteCertificateTemplateSettings = existing.DeleteCertificateTemplateSettings; + DeleteCertificateTemplateOperationsSettings = existing.DeleteCertificateTemplateOperationsSettings.Clone(); + GetCertificateTemplateSettings = existing.GetCertificateTemplateSettings; + ListCertificateTemplatesSettings = existing.ListCertificateTemplatesSettings; + UpdateCertificateTemplateSettings = existing.UpdateCertificateTemplateSettings; + UpdateCertificateTemplateOperationsSettings = existing.UpdateCertificateTemplateOperationsSettings.Clone(); + LocationsSettings = existing.LocationsSettings; + IAMPolicySettings = existing.IAMPolicySettings; + OnCopy(existing); + } + + partial void OnCopy(CertificateAuthorityServiceSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.CreateCertificate and + /// CertificateAuthorityServiceClient.CreateCertificateAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings CreateCertificateSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.GetCertificate and + /// CertificateAuthorityServiceClient.GetCertificateAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetCertificateSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.ListCertificates and + /// CertificateAuthorityServiceClient.ListCertificatesAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListCertificatesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.RevokeCertificate and + /// CertificateAuthorityServiceClient.RevokeCertificateAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings RevokeCertificateSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.UpdateCertificate and + /// CertificateAuthorityServiceClient.UpdateCertificateAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateCertificateSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.ActivateCertificateAuthority and + /// CertificateAuthorityServiceClient.ActivateCertificateAuthorityAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ActivateCertificateAuthoritySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to + /// CertificateAuthorityServiceClient.ActivateCertificateAuthority and + /// CertificateAuthorityServiceClient.ActivateCertificateAuthorityAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings ActivateCertificateAuthorityOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.CreateCertificateAuthority and + /// CertificateAuthorityServiceClient.CreateCertificateAuthorityAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings CreateCertificateAuthoritySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to CertificateAuthorityServiceClient.CreateCertificateAuthority + /// and CertificateAuthorityServiceClient.CreateCertificateAuthorityAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateCertificateAuthorityOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.DisableCertificateAuthority and + /// CertificateAuthorityServiceClient.DisableCertificateAuthorityAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings DisableCertificateAuthoritySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to + /// CertificateAuthorityServiceClient.DisableCertificateAuthority and + /// CertificateAuthorityServiceClient.DisableCertificateAuthorityAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings DisableCertificateAuthorityOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.EnableCertificateAuthority and + /// CertificateAuthorityServiceClient.EnableCertificateAuthorityAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings EnableCertificateAuthoritySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to CertificateAuthorityServiceClient.EnableCertificateAuthority + /// and CertificateAuthorityServiceClient.EnableCertificateAuthorityAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings EnableCertificateAuthorityOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.FetchCertificateAuthorityCsr and + /// CertificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings FetchCertificateAuthorityCsrSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.GetCertificateAuthority and + /// CertificateAuthorityServiceClient.GetCertificateAuthorityAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetCertificateAuthoritySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.ListCertificateAuthorities and + /// CertificateAuthorityServiceClient.ListCertificateAuthoritiesAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListCertificateAuthoritiesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.UndeleteCertificateAuthority and + /// CertificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UndeleteCertificateAuthoritySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to + /// CertificateAuthorityServiceClient.UndeleteCertificateAuthority and + /// CertificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UndeleteCertificateAuthorityOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.DeleteCertificateAuthority and + /// CertificateAuthorityServiceClient.DeleteCertificateAuthorityAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings DeleteCertificateAuthoritySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to CertificateAuthorityServiceClient.DeleteCertificateAuthority + /// and CertificateAuthorityServiceClient.DeleteCertificateAuthorityAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings DeleteCertificateAuthorityOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.UpdateCertificateAuthority and + /// CertificateAuthorityServiceClient.UpdateCertificateAuthorityAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateCertificateAuthoritySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to CertificateAuthorityServiceClient.UpdateCertificateAuthority + /// and CertificateAuthorityServiceClient.UpdateCertificateAuthorityAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UpdateCertificateAuthorityOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.CreateCaPool and + /// CertificateAuthorityServiceClient.CreateCaPoolAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings CreateCaPoolSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to CertificateAuthorityServiceClient.CreateCaPool and + /// CertificateAuthorityServiceClient.CreateCaPoolAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateCaPoolOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.UpdateCaPool and + /// CertificateAuthorityServiceClient.UpdateCaPoolAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateCaPoolSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to CertificateAuthorityServiceClient.UpdateCaPool and + /// CertificateAuthorityServiceClient.UpdateCaPoolAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UpdateCaPoolOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.GetCaPool and CertificateAuthorityServiceClient.GetCaPoolAsync + /// . + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetCaPoolSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.ListCaPools and + /// CertificateAuthorityServiceClient.ListCaPoolsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListCaPoolsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.DeleteCaPool and + /// CertificateAuthorityServiceClient.DeleteCaPoolAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings DeleteCaPoolSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to CertificateAuthorityServiceClient.DeleteCaPool and + /// CertificateAuthorityServiceClient.DeleteCaPoolAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings DeleteCaPoolOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.FetchCaCerts and + /// CertificateAuthorityServiceClient.FetchCaCertsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings FetchCaCertsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.GetCertificateRevocationList and + /// CertificateAuthorityServiceClient.GetCertificateRevocationListAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetCertificateRevocationListSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.ListCertificateRevocationLists and + /// CertificateAuthorityServiceClient.ListCertificateRevocationListsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListCertificateRevocationListsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.UpdateCertificateRevocationList and + /// CertificateAuthorityServiceClient.UpdateCertificateRevocationListAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateCertificateRevocationListSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to + /// CertificateAuthorityServiceClient.UpdateCertificateRevocationList and + /// CertificateAuthorityServiceClient.UpdateCertificateRevocationListAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UpdateCertificateRevocationListOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.CreateCertificateTemplate and + /// CertificateAuthorityServiceClient.CreateCertificateTemplateAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings CreateCertificateTemplateSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to CertificateAuthorityServiceClient.CreateCertificateTemplate + /// and CertificateAuthorityServiceClient.CreateCertificateTemplateAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateCertificateTemplateOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.DeleteCertificateTemplate and + /// CertificateAuthorityServiceClient.DeleteCertificateTemplateAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings DeleteCertificateTemplateSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to CertificateAuthorityServiceClient.DeleteCertificateTemplate + /// and CertificateAuthorityServiceClient.DeleteCertificateTemplateAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings DeleteCertificateTemplateOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.GetCertificateTemplate and + /// CertificateAuthorityServiceClient.GetCertificateTemplateAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetCertificateTemplateSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.ListCertificateTemplates and + /// CertificateAuthorityServiceClient.ListCertificateTemplatesAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListCertificateTemplatesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// CertificateAuthorityServiceClient.UpdateCertificateTemplate and + /// CertificateAuthorityServiceClient.UpdateCertificateTemplateAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// , . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateCertificateTemplateSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unknown, grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to CertificateAuthorityServiceClient.UpdateCertificateTemplate + /// and CertificateAuthorityServiceClient.UpdateCertificateTemplateAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UpdateCertificateTemplateOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// The settings to use for the associated with the client. + /// + public gcl::LocationsSettings LocationsSettings { get; set; } = gcl::LocationsSettings.GetDefault(); + + /// + /// The settings to use for the associated with the client. + /// + public gciv::IAMPolicySettings IAMPolicySettings { get; set; } = gciv::IAMPolicySettings.GetDefault(); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public CertificateAuthorityServiceSettings Clone() => new CertificateAuthorityServiceSettings(this); + } + + /// + /// Builder class for to provide simple configuration of + /// credentials, endpoint etc. + /// + public sealed partial class CertificateAuthorityServiceClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public CertificateAuthorityServiceSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public CertificateAuthorityServiceClientBuilder() : base(CertificateAuthorityServiceClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref CertificateAuthorityServiceClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override CertificateAuthorityServiceClient Build() + { + CertificateAuthorityServiceClient 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 CertificateAuthorityServiceClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return CertificateAuthorityServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return CertificateAuthorityServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => CertificateAuthorityServiceClient.ChannelPool; + } + + /// CertificateAuthorityService client wrapper, for convenient use. + /// + /// [Certificate Authority + /// Service][google.cloud.security.privateca.v1.CertificateAuthorityService] + /// manages private certificate authorities and issued certificates. + /// + public abstract partial class CertificateAuthorityServiceClient + { + /// + /// The default endpoint for the CertificateAuthorityService service, which is a host of + /// "privateca.googleapis.com" and a port of 443. + /// + public static string DefaultEndpoint { get; } = "privateca.googleapis.com:443"; + + /// The default CertificateAuthorityService scopes. + /// + /// The default CertificateAuthorityService 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(CertificateAuthorityService.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 CertificateAuthorityServiceClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, + /// endpoint and settings. To specify custom credentials or other settings, use + /// . + /// + /// The created . + public static CertificateAuthorityServiceClient Create() => new CertificateAuthorityServiceClientBuilder().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 CertificateAuthorityServiceClient Create(grpccore::CallInvoker callInvoker, CertificateAuthorityServiceSettings 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); + } + CertificateAuthorityService.CertificateAuthorityServiceClient grpcClient = new CertificateAuthorityService.CertificateAuthorityServiceClient(callInvoker); + return new CertificateAuthorityServiceClientImpl(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 CertificateAuthorityService client + public virtual CertificateAuthorityService.CertificateAuthorityServiceClient GrpcClient => throw new sys::NotImplementedException(); + + /// The associated with this client. + public virtual gcl::LocationsClient LocationsClient => throw new sys::NotImplementedException(); + + /// The associated with this client. + public virtual gciv::IAMPolicyClient IAMPolicyClient => throw new sys::NotImplementedException(); + + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 Certificate CreateCertificate(CreateCertificateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 CreateCertificateAsync(CreateCertificateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 CreateCertificateAsync(CreateCertificateRequest request, st::CancellationToken cancellationToken) => + CreateCertificateAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [Certificate][google.cloud.security.privateca.v1.Certificate], in the + /// format `projects/*/locations/*/caPools/*`. + /// + /// + /// Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] + /// with initial field values. + /// + /// + /// Optional. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the Enterprise [CertificateAuthority.Tier][], but is optional and its + /// value is ignored otherwise. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Certificate CreateCertificate(string parent, Certificate certificate, string certificateId, gaxgrpc::CallSettings callSettings = null) => + CreateCertificate(new CreateCertificateRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + CertificateId = certificateId ?? "", + Certificate = gax::GaxPreconditions.CheckNotNull(certificate, nameof(certificate)), + }, callSettings); + + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [Certificate][google.cloud.security.privateca.v1.Certificate], in the + /// format `projects/*/locations/*/caPools/*`. + /// + /// + /// Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] + /// with initial field values. + /// + /// + /// Optional. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the Enterprise [CertificateAuthority.Tier][], but is optional and its + /// value is ignored otherwise. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateCertificateAsync(string parent, Certificate certificate, string certificateId, gaxgrpc::CallSettings callSettings = null) => + CreateCertificateAsync(new CreateCertificateRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + CertificateId = certificateId ?? "", + Certificate = gax::GaxPreconditions.CheckNotNull(certificate, nameof(certificate)), + }, callSettings); + + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [Certificate][google.cloud.security.privateca.v1.Certificate], in the + /// format `projects/*/locations/*/caPools/*`. + /// + /// + /// Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] + /// with initial field values. + /// + /// + /// Optional. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the Enterprise [CertificateAuthority.Tier][], but is optional and its + /// value is ignored otherwise. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateCertificateAsync(string parent, Certificate certificate, string certificateId, st::CancellationToken cancellationToken) => + CreateCertificateAsync(parent, certificate, certificateId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [Certificate][google.cloud.security.privateca.v1.Certificate], in the + /// format `projects/*/locations/*/caPools/*`. + /// + /// + /// Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] + /// with initial field values. + /// + /// + /// Optional. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the Enterprise [CertificateAuthority.Tier][], but is optional and its + /// value is ignored otherwise. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Certificate CreateCertificate(CaPoolName parent, Certificate certificate, string certificateId, gaxgrpc::CallSettings callSettings = null) => + CreateCertificate(new CreateCertificateRequest + { + ParentAsCaPoolName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + CertificateId = certificateId ?? "", + Certificate = gax::GaxPreconditions.CheckNotNull(certificate, nameof(certificate)), + }, callSettings); + + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [Certificate][google.cloud.security.privateca.v1.Certificate], in the + /// format `projects/*/locations/*/caPools/*`. + /// + /// + /// Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] + /// with initial field values. + /// + /// + /// Optional. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the Enterprise [CertificateAuthority.Tier][], but is optional and its + /// value is ignored otherwise. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateCertificateAsync(CaPoolName parent, Certificate certificate, string certificateId, gaxgrpc::CallSettings callSettings = null) => + CreateCertificateAsync(new CreateCertificateRequest + { + ParentAsCaPoolName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + CertificateId = certificateId ?? "", + Certificate = gax::GaxPreconditions.CheckNotNull(certificate, nameof(certificate)), + }, callSettings); + + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [Certificate][google.cloud.security.privateca.v1.Certificate], in the + /// format `projects/*/locations/*/caPools/*`. + /// + /// + /// Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] + /// with initial field values. + /// + /// + /// Optional. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the Enterprise [CertificateAuthority.Tier][], but is optional and its + /// value is ignored otherwise. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateCertificateAsync(CaPoolName parent, Certificate certificate, string certificateId, st::CancellationToken cancellationToken) => + CreateCertificateAsync(parent, certificate, certificateId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 Certificate GetCertificate(GetCertificateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 GetCertificateAsync(GetCertificateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 GetCertificateAsync(GetCertificateRequest request, st::CancellationToken cancellationToken) => + GetCertificateAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The [name][google.cloud.security.privateca.v1.Certificate.name] + /// of the [Certificate][google.cloud.security.privateca.v1.Certificate] to + /// get. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Certificate GetCertificate(string name, gaxgrpc::CallSettings callSettings = null) => + GetCertificate(new GetCertificateRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The [name][google.cloud.security.privateca.v1.Certificate.name] + /// of the [Certificate][google.cloud.security.privateca.v1.Certificate] to + /// get. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateAsync(new GetCertificateRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The [name][google.cloud.security.privateca.v1.Certificate.name] + /// of the [Certificate][google.cloud.security.privateca.v1.Certificate] to + /// get. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateAsync(string name, st::CancellationToken cancellationToken) => + GetCertificateAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The [name][google.cloud.security.privateca.v1.Certificate.name] + /// of the [Certificate][google.cloud.security.privateca.v1.Certificate] to + /// get. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Certificate GetCertificate(CertificateName name, gaxgrpc::CallSettings callSettings = null) => + GetCertificate(new GetCertificateRequest + { + CertificateName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The [name][google.cloud.security.privateca.v1.Certificate.name] + /// of the [Certificate][google.cloud.security.privateca.v1.Certificate] to + /// get. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateAsync(CertificateName name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateAsync(new GetCertificateRequest + { + CertificateName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The [name][google.cloud.security.privateca.v1.Certificate.name] + /// of the [Certificate][google.cloud.security.privateca.v1.Certificate] to + /// get. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateAsync(CertificateName name, st::CancellationToken cancellationToken) => + GetCertificateAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 ListCertificates(ListCertificatesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 ListCertificatesAsync(ListCertificatesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The resource name of the location associated with the + /// [Certificates][google.cloud.security.privateca.v1.Certificate], in the + /// format `projects/*/locations/*/caPools/*`. + /// + /// + /// 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 ListCertificates(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificatesRequest request = new ListCertificatesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificates(request, callSettings); + } + + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The resource name of the location associated with the + /// [Certificates][google.cloud.security.privateca.v1.Certificate], in the + /// format `projects/*/locations/*/caPools/*`. + /// + /// + /// 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 ListCertificatesAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificatesRequest request = new ListCertificatesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificatesAsync(request, callSettings); + } + + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The resource name of the location associated with the + /// [Certificates][google.cloud.security.privateca.v1.Certificate], in the + /// format `projects/*/locations/*/caPools/*`. + /// + /// + /// 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 ListCertificates(CaPoolName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificatesRequest request = new ListCertificatesRequest + { + ParentAsCaPoolName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificates(request, callSettings); + } + + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The resource name of the location associated with the + /// [Certificates][google.cloud.security.privateca.v1.Certificate], in the + /// format `projects/*/locations/*/caPools/*`. + /// + /// + /// 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 ListCertificatesAsync(CaPoolName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificatesRequest request = new ListCertificatesRequest + { + ParentAsCaPoolName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificatesAsync(request, callSettings); + } + + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 Certificate RevokeCertificate(RevokeCertificateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 RevokeCertificateAsync(RevokeCertificateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 RevokeCertificateAsync(RevokeCertificateRequest request, st::CancellationToken cancellationToken) => + RevokeCertificateAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The resource name for this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] in the format + /// `projects/*/locations/*/caPools/*/certificates/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Certificate RevokeCertificate(string name, gaxgrpc::CallSettings callSettings = null) => + RevokeCertificate(new RevokeCertificateRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The resource name for this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] in the format + /// `projects/*/locations/*/caPools/*/certificates/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task RevokeCertificateAsync(string name, gaxgrpc::CallSettings callSettings = null) => + RevokeCertificateAsync(new RevokeCertificateRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The resource name for this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] in the format + /// `projects/*/locations/*/caPools/*/certificates/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task RevokeCertificateAsync(string name, st::CancellationToken cancellationToken) => + RevokeCertificateAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The resource name for this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] in the format + /// `projects/*/locations/*/caPools/*/certificates/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Certificate RevokeCertificate(CertificateName name, gaxgrpc::CallSettings callSettings = null) => + RevokeCertificate(new RevokeCertificateRequest + { + CertificateName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The resource name for this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] in the format + /// `projects/*/locations/*/caPools/*/certificates/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task RevokeCertificateAsync(CertificateName name, gaxgrpc::CallSettings callSettings = null) => + RevokeCertificateAsync(new RevokeCertificateRequest + { + CertificateName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// + /// Required. The resource name for this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] in the format + /// `projects/*/locations/*/caPools/*/certificates/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task RevokeCertificateAsync(CertificateName name, st::CancellationToken cancellationToken) => + RevokeCertificateAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// 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 Certificate UpdateCertificate(UpdateCertificateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// 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 UpdateCertificateAsync(UpdateCertificateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// 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 UpdateCertificateAsync(UpdateCertificateRequest request, st::CancellationToken cancellationToken) => + UpdateCertificateAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// + /// Required. [Certificate][google.cloud.security.privateca.v1.Certificate] + /// with updated values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Certificate UpdateCertificate(Certificate certificate, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateCertificate(new UpdateCertificateRequest + { + Certificate = gax::GaxPreconditions.CheckNotNull(certificate, nameof(certificate)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// + /// Required. [Certificate][google.cloud.security.privateca.v1.Certificate] + /// with updated values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateCertificateAsync(Certificate certificate, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateCertificateAsync(new UpdateCertificateRequest + { + Certificate = gax::GaxPreconditions.CheckNotNull(certificate, nameof(certificate)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// + /// Required. [Certificate][google.cloud.security.privateca.v1.Certificate] + /// with updated values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateCertificateAsync(Certificate certificate, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateCertificateAsync(certificate, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation ActivateCertificateAuthority(ActivateCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// 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> ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// 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> ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest request, st::CancellationToken cancellationToken) => + ActivateCertificateAuthorityAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for ActivateCertificateAuthority. + public virtual lro::OperationsClient ActivateCertificateAuthorityOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of + /// ActivateCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceActivateCertificateAuthority(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), ActivateCertificateAuthorityOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// ActivateCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceActivateCertificateAuthorityAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), ActivateCertificateAuthorityOperationsClient, callSettings); + + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation ActivateCertificateAuthority(string name, gaxgrpc::CallSettings callSettings = null) => + ActivateCertificateAuthority(new ActivateCertificateAuthorityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> ActivateCertificateAuthorityAsync(string name, gaxgrpc::CallSettings callSettings = null) => + ActivateCertificateAuthorityAsync(new ActivateCertificateAuthorityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> ActivateCertificateAuthorityAsync(string name, st::CancellationToken cancellationToken) => + ActivateCertificateAuthorityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation ActivateCertificateAuthority(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + ActivateCertificateAuthority(new ActivateCertificateAuthorityRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> ActivateCertificateAuthorityAsync(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + ActivateCertificateAuthorityAsync(new ActivateCertificateAuthorityRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> ActivateCertificateAuthorityAsync(CertificateAuthorityName name, st::CancellationToken cancellationToken) => + ActivateCertificateAuthorityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateCertificateAuthority(CreateCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// 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> CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// 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> CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest request, st::CancellationToken cancellationToken) => + CreateCertificateAuthorityAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateCertificateAuthority. + public virtual lro::OperationsClient CreateCertificateAuthorityOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of + /// CreateCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateCertificateAuthority(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateCertificateAuthorityOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateCertificateAuthorityAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateCertificateAuthorityOperationsClient, callSettings); + + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], + /// in the format `projects/*/locations/*/caPools/*`. + /// + /// + /// Required. A + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// with initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateCertificateAuthority(string parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, gaxgrpc::CallSettings callSettings = null) => + CreateCertificateAuthority(new CreateCertificateAuthorityRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + CertificateAuthorityId = gax::GaxPreconditions.CheckNotNullOrEmpty(certificateAuthorityId, nameof(certificateAuthorityId)), + CertificateAuthority = gax::GaxPreconditions.CheckNotNull(certificateAuthority, nameof(certificateAuthority)), + }, callSettings); + + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], + /// in the format `projects/*/locations/*/caPools/*`. + /// + /// + /// Required. A + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// with initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateCertificateAuthorityAsync(string parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, gaxgrpc::CallSettings callSettings = null) => + CreateCertificateAuthorityAsync(new CreateCertificateAuthorityRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + CertificateAuthorityId = gax::GaxPreconditions.CheckNotNullOrEmpty(certificateAuthorityId, nameof(certificateAuthorityId)), + CertificateAuthority = gax::GaxPreconditions.CheckNotNull(certificateAuthority, nameof(certificateAuthority)), + }, callSettings); + + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], + /// in the format `projects/*/locations/*/caPools/*`. + /// + /// + /// Required. A + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// with initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateCertificateAuthorityAsync(string parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, st::CancellationToken cancellationToken) => + CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], + /// in the format `projects/*/locations/*/caPools/*`. + /// + /// + /// Required. A + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// with initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateCertificateAuthority(CaPoolName parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, gaxgrpc::CallSettings callSettings = null) => + CreateCertificateAuthority(new CreateCertificateAuthorityRequest + { + ParentAsCaPoolName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + CertificateAuthorityId = gax::GaxPreconditions.CheckNotNullOrEmpty(certificateAuthorityId, nameof(certificateAuthorityId)), + CertificateAuthority = gax::GaxPreconditions.CheckNotNull(certificateAuthority, nameof(certificateAuthority)), + }, callSettings); + + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], + /// in the format `projects/*/locations/*/caPools/*`. + /// + /// + /// Required. A + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// with initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateCertificateAuthorityAsync(CaPoolName parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, gaxgrpc::CallSettings callSettings = null) => + CreateCertificateAuthorityAsync(new CreateCertificateAuthorityRequest + { + ParentAsCaPoolName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + CertificateAuthorityId = gax::GaxPreconditions.CheckNotNullOrEmpty(certificateAuthorityId, nameof(certificateAuthorityId)), + CertificateAuthority = gax::GaxPreconditions.CheckNotNull(certificateAuthority, nameof(certificateAuthority)), + }, callSettings); + + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], + /// in the format `projects/*/locations/*/caPools/*`. + /// + /// + /// Required. A + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// with initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateCertificateAuthorityAsync(CaPoolName parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, st::CancellationToken cancellationToken) => + CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DisableCertificateAuthority(DisableCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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> DisableCertificateAuthorityAsync(DisableCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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> DisableCertificateAuthorityAsync(DisableCertificateAuthorityRequest request, st::CancellationToken cancellationToken) => + DisableCertificateAuthorityAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for DisableCertificateAuthority. + public virtual lro::OperationsClient DisableCertificateAuthorityOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of + /// DisableCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceDisableCertificateAuthority(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DisableCertificateAuthorityOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// DisableCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceDisableCertificateAuthorityAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DisableCertificateAuthorityOperationsClient, callSettings); + + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DisableCertificateAuthority(string name, gaxgrpc::CallSettings callSettings = null) => + DisableCertificateAuthority(new DisableCertificateAuthorityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DisableCertificateAuthorityAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DisableCertificateAuthorityAsync(new DisableCertificateAuthorityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DisableCertificateAuthorityAsync(string name, st::CancellationToken cancellationToken) => + DisableCertificateAuthorityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DisableCertificateAuthority(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + DisableCertificateAuthority(new DisableCertificateAuthorityRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DisableCertificateAuthorityAsync(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + DisableCertificateAuthorityAsync(new DisableCertificateAuthorityRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DisableCertificateAuthorityAsync(CertificateAuthorityName name, st::CancellationToken cancellationToken) => + DisableCertificateAuthorityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation EnableCertificateAuthority(EnableCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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> EnableCertificateAuthorityAsync(EnableCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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> EnableCertificateAuthorityAsync(EnableCertificateAuthorityRequest request, st::CancellationToken cancellationToken) => + EnableCertificateAuthorityAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for EnableCertificateAuthority. + public virtual lro::OperationsClient EnableCertificateAuthorityOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of + /// EnableCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceEnableCertificateAuthority(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), EnableCertificateAuthorityOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// EnableCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceEnableCertificateAuthorityAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), EnableCertificateAuthorityOperationsClient, callSettings); + + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation EnableCertificateAuthority(string name, gaxgrpc::CallSettings callSettings = null) => + EnableCertificateAuthority(new EnableCertificateAuthorityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> EnableCertificateAuthorityAsync(string name, gaxgrpc::CallSettings callSettings = null) => + EnableCertificateAuthorityAsync(new EnableCertificateAuthorityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> EnableCertificateAuthorityAsync(string name, st::CancellationToken cancellationToken) => + EnableCertificateAuthorityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation EnableCertificateAuthority(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + EnableCertificateAuthority(new EnableCertificateAuthorityRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> EnableCertificateAuthorityAsync(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + EnableCertificateAuthorityAsync(new EnableCertificateAuthorityRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> EnableCertificateAuthorityAsync(CertificateAuthorityName name, st::CancellationToken cancellationToken) => + EnableCertificateAuthorityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// 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 FetchCertificateAuthorityCsrResponse FetchCertificateAuthorityCsr(FetchCertificateAuthorityCsrRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// 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 FetchCertificateAuthorityCsrAsync(FetchCertificateAuthorityCsrRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// 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 FetchCertificateAuthorityCsrAsync(FetchCertificateAuthorityCsrRequest request, st::CancellationToken cancellationToken) => + FetchCertificateAuthorityCsrAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual FetchCertificateAuthorityCsrResponse FetchCertificateAuthorityCsr(string name, gaxgrpc::CallSettings callSettings = null) => + FetchCertificateAuthorityCsr(new FetchCertificateAuthorityCsrRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task FetchCertificateAuthorityCsrAsync(string name, gaxgrpc::CallSettings callSettings = null) => + FetchCertificateAuthorityCsrAsync(new FetchCertificateAuthorityCsrRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task FetchCertificateAuthorityCsrAsync(string name, st::CancellationToken cancellationToken) => + FetchCertificateAuthorityCsrAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual FetchCertificateAuthorityCsrResponse FetchCertificateAuthorityCsr(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + FetchCertificateAuthorityCsr(new FetchCertificateAuthorityCsrRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task FetchCertificateAuthorityCsrAsync(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + FetchCertificateAuthorityCsrAsync(new FetchCertificateAuthorityCsrRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task FetchCertificateAuthorityCsrAsync(CertificateAuthorityName name, st::CancellationToken cancellationToken) => + FetchCertificateAuthorityCsrAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 CertificateAuthority GetCertificateAuthority(GetCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 GetCertificateAuthorityAsync(GetCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 GetCertificateAuthorityAsync(GetCertificateAuthorityRequest request, st::CancellationToken cancellationToken) => + GetCertificateAuthorityAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// to get. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual CertificateAuthority GetCertificateAuthority(string name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateAuthority(new GetCertificateAuthorityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// to get. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateAuthorityAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateAuthorityAsync(new GetCertificateAuthorityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// to get. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateAuthorityAsync(string name, st::CancellationToken cancellationToken) => + GetCertificateAuthorityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// to get. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual CertificateAuthority GetCertificateAuthority(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateAuthority(new GetCertificateAuthorityRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// to get. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateAuthorityAsync(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateAuthorityAsync(new GetCertificateAuthorityRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// to get. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateAuthorityAsync(CertificateAuthorityName name, st::CancellationToken cancellationToken) => + GetCertificateAuthorityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 ListCertificateAuthorities(ListCertificateAuthoritiesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 ListCertificateAuthoritiesAsync(ListCertificateAuthoritiesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], + /// in the format `projects/*/locations/*/caPools/*`. + /// + /// + /// 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 ListCertificateAuthorities(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificateAuthoritiesRequest request = new ListCertificateAuthoritiesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificateAuthorities(request, callSettings); + } + + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], + /// in the format `projects/*/locations/*/caPools/*`. + /// + /// + /// 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 ListCertificateAuthoritiesAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificateAuthoritiesRequest request = new ListCertificateAuthoritiesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificateAuthoritiesAsync(request, callSettings); + } + + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], + /// in the format `projects/*/locations/*/caPools/*`. + /// + /// + /// 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 ListCertificateAuthorities(CaPoolName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificateAuthoritiesRequest request = new ListCertificateAuthoritiesRequest + { + ParentAsCaPoolName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificateAuthorities(request, callSettings); + } + + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], + /// in the format `projects/*/locations/*/caPools/*`. + /// + /// + /// 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 ListCertificateAuthoritiesAsync(CaPoolName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificateAuthoritiesRequest request = new ListCertificateAuthoritiesRequest + { + ParentAsCaPoolName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificateAuthoritiesAsync(request, callSettings); + } + + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UndeleteCertificateAuthority(UndeleteCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// 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> UndeleteCertificateAuthorityAsync(UndeleteCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// 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> UndeleteCertificateAuthorityAsync(UndeleteCertificateAuthorityRequest request, st::CancellationToken cancellationToken) => + UndeleteCertificateAuthorityAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UndeleteCertificateAuthority. + public virtual lro::OperationsClient UndeleteCertificateAuthorityOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of + /// UndeleteCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUndeleteCertificateAuthority(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UndeleteCertificateAuthorityOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UndeleteCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUndeleteCertificateAuthorityAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UndeleteCertificateAuthorityOperationsClient, callSettings); + + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UndeleteCertificateAuthority(string name, gaxgrpc::CallSettings callSettings = null) => + UndeleteCertificateAuthority(new UndeleteCertificateAuthorityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UndeleteCertificateAuthorityAsync(string name, gaxgrpc::CallSettings callSettings = null) => + UndeleteCertificateAuthorityAsync(new UndeleteCertificateAuthorityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UndeleteCertificateAuthorityAsync(string name, st::CancellationToken cancellationToken) => + UndeleteCertificateAuthorityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UndeleteCertificateAuthority(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + UndeleteCertificateAuthority(new UndeleteCertificateAuthorityRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UndeleteCertificateAuthorityAsync(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + UndeleteCertificateAuthorityAsync(new UndeleteCertificateAuthorityRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UndeleteCertificateAuthorityAsync(CertificateAuthorityName name, st::CancellationToken cancellationToken) => + UndeleteCertificateAuthorityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteCertificateAuthority(DeleteCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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> DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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> DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest request, st::CancellationToken cancellationToken) => + DeleteCertificateAuthorityAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for DeleteCertificateAuthority. + public virtual lro::OperationsClient DeleteCertificateAuthorityOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of + /// DeleteCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceDeleteCertificateAuthority(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteCertificateAuthorityOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// DeleteCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceDeleteCertificateAuthorityAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteCertificateAuthorityOperationsClient, callSettings); + + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteCertificateAuthority(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteCertificateAuthority(new DeleteCertificateAuthorityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteCertificateAuthorityAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteCertificateAuthorityAsync(new DeleteCertificateAuthorityRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteCertificateAuthorityAsync(string name, st::CancellationToken cancellationToken) => + DeleteCertificateAuthorityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteCertificateAuthority(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + DeleteCertificateAuthority(new DeleteCertificateAuthorityRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteCertificateAuthorityAsync(CertificateAuthorityName name, gaxgrpc::CallSettings callSettings = null) => + DeleteCertificateAuthorityAsync(new DeleteCertificateAuthorityRequest + { + CertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteCertificateAuthorityAsync(CertificateAuthorityName name, st::CancellationToken cancellationToken) => + DeleteCertificateAuthorityAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateCertificateAuthority(UpdateCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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> UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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> UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest request, st::CancellationToken cancellationToken) => + UpdateCertificateAuthorityAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UpdateCertificateAuthority. + public virtual lro::OperationsClient UpdateCertificateAuthorityOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of + /// UpdateCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUpdateCertificateAuthority(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateCertificateAuthorityOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateCertificateAuthority. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUpdateCertificateAuthorityAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateCertificateAuthorityOperationsClient, callSettings); + + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// with updated values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateCertificateAuthority(CertificateAuthority certificateAuthority, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateCertificateAuthority(new UpdateCertificateAuthorityRequest + { + CertificateAuthority = gax::GaxPreconditions.CheckNotNull(certificateAuthority, nameof(certificateAuthority)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// with updated values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateCertificateAuthorityAsync(CertificateAuthority certificateAuthority, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateCertificateAuthorityAsync(new UpdateCertificateAuthorityRequest + { + CertificateAuthority = gax::GaxPreconditions.CheckNotNull(certificateAuthority, nameof(certificateAuthority)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// + /// Required. + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// with updated values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateCertificateAuthorityAsync(CertificateAuthority certificateAuthority, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateCertificateAuthorityAsync(certificateAuthority, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateCaPool(CreateCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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> CreateCaPoolAsync(CreateCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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> CreateCaPoolAsync(CreateCaPoolRequest request, st::CancellationToken cancellationToken) => + CreateCaPoolAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateCaPool. + public virtual lro::OperationsClient CreateCaPoolOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of CreateCaPool. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateCaPool(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateCaPoolOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateCaPool. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateCaPoolAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateCaPoolOperationsClient, callSettings); + + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CaPool][google.cloud.security.privateca.v1.CaPool], in the format + /// `projects/*/locations/*`. + /// + /// + /// Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with + /// initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateCaPool(string parent, CaPool caPool, string caPoolId, gaxgrpc::CallSettings callSettings = null) => + CreateCaPool(new CreateCaPoolRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + CaPoolId = gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), + CaPool = gax::GaxPreconditions.CheckNotNull(caPool, nameof(caPool)), + }, callSettings); + + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CaPool][google.cloud.security.privateca.v1.CaPool], in the format + /// `projects/*/locations/*`. + /// + /// + /// Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with + /// initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateCaPoolAsync(string parent, CaPool caPool, string caPoolId, gaxgrpc::CallSettings callSettings = null) => + CreateCaPoolAsync(new CreateCaPoolRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + CaPoolId = gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), + CaPool = gax::GaxPreconditions.CheckNotNull(caPool, nameof(caPool)), + }, callSettings); + + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CaPool][google.cloud.security.privateca.v1.CaPool], in the format + /// `projects/*/locations/*`. + /// + /// + /// Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with + /// initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateCaPoolAsync(string parent, CaPool caPool, string caPoolId, st::CancellationToken cancellationToken) => + CreateCaPoolAsync(parent, caPool, caPoolId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CaPool][google.cloud.security.privateca.v1.CaPool], in the format + /// `projects/*/locations/*`. + /// + /// + /// Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with + /// initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateCaPool(gagr::LocationName parent, CaPool caPool, string caPoolId, gaxgrpc::CallSettings callSettings = null) => + CreateCaPool(new CreateCaPoolRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + CaPoolId = gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), + CaPool = gax::GaxPreconditions.CheckNotNull(caPool, nameof(caPool)), + }, callSettings); + + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CaPool][google.cloud.security.privateca.v1.CaPool], in the format + /// `projects/*/locations/*`. + /// + /// + /// Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with + /// initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateCaPoolAsync(gagr::LocationName parent, CaPool caPool, string caPoolId, gaxgrpc::CallSettings callSettings = null) => + CreateCaPoolAsync(new CreateCaPoolRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + CaPoolId = gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), + CaPool = gax::GaxPreconditions.CheckNotNull(caPool, nameof(caPool)), + }, callSettings); + + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CaPool][google.cloud.security.privateca.v1.CaPool], in the format + /// `projects/*/locations/*`. + /// + /// + /// Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with + /// initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateCaPoolAsync(gagr::LocationName parent, CaPool caPool, string caPoolId, st::CancellationToken cancellationToken) => + CreateCaPoolAsync(parent, caPool, caPoolId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateCaPool(UpdateCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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> UpdateCaPoolAsync(UpdateCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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> UpdateCaPoolAsync(UpdateCaPoolRequest request, st::CancellationToken cancellationToken) => + UpdateCaPoolAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UpdateCaPool. + public virtual lro::OperationsClient UpdateCaPoolOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of UpdateCaPool. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUpdateCaPool(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateCaPoolOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateCaPool. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUpdateCaPoolAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateCaPoolOperationsClient, callSettings); + + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated + /// values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateCaPool(CaPool caPool, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateCaPool(new UpdateCaPoolRequest + { + CaPool = gax::GaxPreconditions.CheckNotNull(caPool, nameof(caPool)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated + /// values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateCaPoolAsync(CaPool caPool, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateCaPoolAsync(new UpdateCaPoolRequest + { + CaPool = gax::GaxPreconditions.CheckNotNull(caPool, nameof(caPool)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated + /// values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateCaPoolAsync(CaPool caPool, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateCaPoolAsync(caPool, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 CaPool GetCaPool(GetCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 GetCaPoolAsync(GetCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 GetCaPoolAsync(GetCaPoolRequest request, st::CancellationToken cancellationToken) => + GetCaPoolAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] to get. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual CaPool GetCaPool(string name, gaxgrpc::CallSettings callSettings = null) => + GetCaPool(new GetCaPoolRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] to get. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetCaPoolAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetCaPoolAsync(new GetCaPoolRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] to get. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetCaPoolAsync(string name, st::CancellationToken cancellationToken) => + GetCaPoolAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] to get. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual CaPool GetCaPool(CaPoolName name, gaxgrpc::CallSettings callSettings = null) => + GetCaPool(new GetCaPoolRequest + { + CaPoolName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] to get. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetCaPoolAsync(CaPoolName name, gaxgrpc::CallSettings callSettings = null) => + GetCaPoolAsync(new GetCaPoolRequest + { + CaPoolName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] to get. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetCaPoolAsync(CaPoolName name, st::CancellationToken cancellationToken) => + GetCaPoolAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 ListCaPools(ListCaPoolsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 ListCaPoolsAsync(ListCaPoolsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CaPools][google.cloud.security.privateca.v1.CaPool], in the format + /// `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 ListCaPools(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCaPoolsRequest request = new ListCaPoolsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCaPools(request, callSettings); + } + + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CaPools][google.cloud.security.privateca.v1.CaPool], in the format + /// `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 ListCaPoolsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCaPoolsRequest request = new ListCaPoolsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCaPoolsAsync(request, callSettings); + } + + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CaPools][google.cloud.security.privateca.v1.CaPool], in the format + /// `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 ListCaPools(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCaPoolsRequest request = new ListCaPoolsRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCaPools(request, callSettings); + } + + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CaPools][google.cloud.security.privateca.v1.CaPool], in the format + /// `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 ListCaPoolsAsync(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCaPoolsRequest request = new ListCaPoolsRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCaPoolsAsync(request, callSettings); + } + + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteCaPool(DeleteCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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> DeleteCaPoolAsync(DeleteCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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> DeleteCaPoolAsync(DeleteCaPoolRequest request, st::CancellationToken cancellationToken) => + DeleteCaPoolAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for DeleteCaPool. + public virtual lro::OperationsClient DeleteCaPoolOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of DeleteCaPool. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceDeleteCaPool(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteCaPoolOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// DeleteCaPool. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceDeleteCaPoolAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteCaPoolOperationsClient, callSettings); + + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name for this + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteCaPool(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteCaPool(new DeleteCaPoolRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name for this + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteCaPoolAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteCaPoolAsync(new DeleteCaPoolRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name for this + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteCaPoolAsync(string name, st::CancellationToken cancellationToken) => + DeleteCaPoolAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name for this + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteCaPool(CaPoolName name, gaxgrpc::CallSettings callSettings = null) => + DeleteCaPool(new DeleteCaPoolRequest + { + CaPoolName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name for this + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteCaPoolAsync(CaPoolName name, gaxgrpc::CallSettings callSettings = null) => + DeleteCaPoolAsync(new DeleteCaPoolRequest + { + CaPoolName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// + /// Required. The resource name for this + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteCaPoolAsync(CaPoolName name, st::CancellationToken cancellationToken) => + DeleteCaPoolAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// 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 FetchCaCertsResponse FetchCaCerts(FetchCaCertsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// 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 FetchCaCertsAsync(FetchCaCertsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// 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 FetchCaCertsAsync(FetchCaCertsRequest request, st::CancellationToken cancellationToken) => + FetchCaCertsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// + /// Required. The resource name for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual FetchCaCertsResponse FetchCaCerts(string caPool, gaxgrpc::CallSettings callSettings = null) => + FetchCaCerts(new FetchCaCertsRequest + { + CaPool = gax::GaxPreconditions.CheckNotNullOrEmpty(caPool, nameof(caPool)), + }, callSettings); + + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// + /// Required. The resource name for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task FetchCaCertsAsync(string caPool, gaxgrpc::CallSettings callSettings = null) => + FetchCaCertsAsync(new FetchCaCertsRequest + { + CaPool = gax::GaxPreconditions.CheckNotNullOrEmpty(caPool, nameof(caPool)), + }, callSettings); + + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// + /// Required. The resource name for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task FetchCaCertsAsync(string caPool, st::CancellationToken cancellationToken) => + FetchCaCertsAsync(caPool, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// + /// Required. The resource name for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual FetchCaCertsResponse FetchCaCerts(CaPoolName caPool, gaxgrpc::CallSettings callSettings = null) => + FetchCaCerts(new FetchCaCertsRequest + { + CaPoolAsCaPoolName = gax::GaxPreconditions.CheckNotNull(caPool, nameof(caPool)), + }, callSettings); + + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// + /// Required. The resource name for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task FetchCaCertsAsync(CaPoolName caPool, gaxgrpc::CallSettings callSettings = null) => + FetchCaCertsAsync(new FetchCaCertsRequest + { + CaPoolAsCaPoolName = gax::GaxPreconditions.CheckNotNull(caPool, nameof(caPool)), + }, callSettings); + + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// + /// Required. The resource name for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task FetchCaCertsAsync(CaPoolName caPool, st::CancellationToken cancellationToken) => + FetchCaCertsAsync(caPool, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 CertificateRevocationList GetCertificateRevocationList(GetCertificateRevocationListRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 GetCertificateRevocationListAsync(GetCertificateRevocationListRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 GetCertificateRevocationListAsync(GetCertificateRevocationListRequest request, st::CancellationToken cancellationToken) => + GetCertificateRevocationListAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] + /// of the + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// to get. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual CertificateRevocationList GetCertificateRevocationList(string name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateRevocationList(new GetCertificateRevocationListRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] + /// of the + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// to get. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateRevocationListAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateRevocationListAsync(new GetCertificateRevocationListRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] + /// of the + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// to get. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateRevocationListAsync(string name, st::CancellationToken cancellationToken) => + GetCertificateRevocationListAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] + /// of the + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// to get. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual CertificateRevocationList GetCertificateRevocationList(CertificateRevocationListName name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateRevocationList(new GetCertificateRevocationListRequest + { + CertificateRevocationListName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] + /// of the + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// to get. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateRevocationListAsync(CertificateRevocationListName name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateRevocationListAsync(new GetCertificateRevocationListRequest + { + CertificateRevocationListName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] + /// of the + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// to get. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateRevocationListAsync(CertificateRevocationListName name, st::CancellationToken cancellationToken) => + GetCertificateRevocationListAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 ListCertificateRevocationLists(ListCertificateRevocationListsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 ListCertificateRevocationListsAsync(ListCertificateRevocationListsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// + /// 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 ListCertificateRevocationLists(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificateRevocationListsRequest request = new ListCertificateRevocationListsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificateRevocationLists(request, callSettings); + } + + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// + /// 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 ListCertificateRevocationListsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificateRevocationListsRequest request = new ListCertificateRevocationListsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificateRevocationListsAsync(request, callSettings); + } + + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// + /// 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 ListCertificateRevocationLists(CertificateAuthorityName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificateRevocationListsRequest request = new ListCertificateRevocationListsRequest + { + ParentAsCertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificateRevocationLists(request, callSettings); + } + + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + /// + /// 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 ListCertificateRevocationListsAsync(CertificateAuthorityName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificateRevocationListsRequest request = new ListCertificateRevocationListsRequest + { + ParentAsCertificateAuthorityName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificateRevocationListsAsync(request, callSettings); + } + + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateCertificateRevocationList(UpdateCertificateRevocationListRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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> UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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> UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest request, st::CancellationToken cancellationToken) => + UpdateCertificateRevocationListAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UpdateCertificateRevocationList. + public virtual lro::OperationsClient UpdateCertificateRevocationListOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of + /// UpdateCertificateRevocationList. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUpdateCertificateRevocationList(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateCertificateRevocationListOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateCertificateRevocationList. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUpdateCertificateRevocationListAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateCertificateRevocationListOperationsClient, callSettings); + + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// with updated values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateCertificateRevocationList(CertificateRevocationList certificateRevocationList, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateCertificateRevocationList(new UpdateCertificateRevocationListRequest + { + CertificateRevocationList = gax::GaxPreconditions.CheckNotNull(certificateRevocationList, nameof(certificateRevocationList)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// with updated values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateCertificateRevocationListAsync(CertificateRevocationList certificateRevocationList, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateCertificateRevocationListAsync(new UpdateCertificateRevocationListRequest + { + CertificateRevocationList = gax::GaxPreconditions.CheckNotNull(certificateRevocationList, nameof(certificateRevocationList)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// + /// Required. + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// with updated values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateCertificateRevocationListAsync(CertificateRevocationList certificateRevocationList, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateCertificateRevocationListAsync(certificateRevocationList, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateCertificateTemplate(CreateCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// 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> CreateCertificateTemplateAsync(CreateCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// 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> CreateCertificateTemplateAsync(CreateCertificateTemplateRequest request, st::CancellationToken cancellationToken) => + CreateCertificateTemplateAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateCertificateTemplate. + public virtual lro::OperationsClient CreateCertificateTemplateOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of + /// CreateCertificateTemplate. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateCertificateTemplate(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateCertificateTemplateOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateCertificateTemplate. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateCertificateTemplateAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateCertificateTemplateOperationsClient, callSettings); + + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], + /// in the format `projects/*/locations/*`. + /// + /// + /// Required. A + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// with initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateCertificateTemplate(string parent, CertificateTemplate certificateTemplate, string certificateTemplateId, gaxgrpc::CallSettings callSettings = null) => + CreateCertificateTemplate(new CreateCertificateTemplateRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + CertificateTemplateId = gax::GaxPreconditions.CheckNotNullOrEmpty(certificateTemplateId, nameof(certificateTemplateId)), + CertificateTemplate = gax::GaxPreconditions.CheckNotNull(certificateTemplate, nameof(certificateTemplate)), + }, callSettings); + + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], + /// in the format `projects/*/locations/*`. + /// + /// + /// Required. A + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// with initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateCertificateTemplateAsync(string parent, CertificateTemplate certificateTemplate, string certificateTemplateId, gaxgrpc::CallSettings callSettings = null) => + CreateCertificateTemplateAsync(new CreateCertificateTemplateRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + CertificateTemplateId = gax::GaxPreconditions.CheckNotNullOrEmpty(certificateTemplateId, nameof(certificateTemplateId)), + CertificateTemplate = gax::GaxPreconditions.CheckNotNull(certificateTemplate, nameof(certificateTemplate)), + }, callSettings); + + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], + /// in the format `projects/*/locations/*`. + /// + /// + /// Required. A + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// with initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateCertificateTemplateAsync(string parent, CertificateTemplate certificateTemplate, string certificateTemplateId, st::CancellationToken cancellationToken) => + CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], + /// in the format `projects/*/locations/*`. + /// + /// + /// Required. A + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// with initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateCertificateTemplate(gagr::LocationName parent, CertificateTemplate certificateTemplate, string certificateTemplateId, gaxgrpc::CallSettings callSettings = null) => + CreateCertificateTemplate(new CreateCertificateTemplateRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + CertificateTemplateId = gax::GaxPreconditions.CheckNotNullOrEmpty(certificateTemplateId, nameof(certificateTemplateId)), + CertificateTemplate = gax::GaxPreconditions.CheckNotNull(certificateTemplate, nameof(certificateTemplate)), + }, callSettings); + + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], + /// in the format `projects/*/locations/*`. + /// + /// + /// Required. A + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// with initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateCertificateTemplateAsync(gagr::LocationName parent, CertificateTemplate certificateTemplate, string certificateTemplateId, gaxgrpc::CallSettings callSettings = null) => + CreateCertificateTemplateAsync(new CreateCertificateTemplateRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + CertificateTemplateId = gax::GaxPreconditions.CheckNotNullOrEmpty(certificateTemplateId, nameof(certificateTemplateId)), + CertificateTemplate = gax::GaxPreconditions.CheckNotNull(certificateTemplate, nameof(certificateTemplate)), + }, callSettings); + + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], + /// in the format `projects/*/locations/*`. + /// + /// + /// Required. A + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// with initial field values. + /// + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateCertificateTemplateAsync(gagr::LocationName parent, CertificateTemplate certificateTemplate, string certificateTemplateId, st::CancellationToken cancellationToken) => + CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteCertificateTemplate(DeleteCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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> DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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> DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest request, st::CancellationToken cancellationToken) => + DeleteCertificateTemplateAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for DeleteCertificateTemplate. + public virtual lro::OperationsClient DeleteCertificateTemplateOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of + /// DeleteCertificateTemplate. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceDeleteCertificateTemplate(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteCertificateTemplateOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// DeleteCertificateTemplate. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceDeleteCertificateTemplateAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteCertificateTemplateOperationsClient, callSettings); + + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The resource name for this + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in the format `projects/*/locations/*/certificateTemplates/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteCertificateTemplate(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteCertificateTemplate(new DeleteCertificateTemplateRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The resource name for this + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in the format `projects/*/locations/*/certificateTemplates/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteCertificateTemplateAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteCertificateTemplateAsync(new DeleteCertificateTemplateRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The resource name for this + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in the format `projects/*/locations/*/certificateTemplates/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteCertificateTemplateAsync(string name, st::CancellationToken cancellationToken) => + DeleteCertificateTemplateAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The resource name for this + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in the format `projects/*/locations/*/certificateTemplates/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteCertificateTemplate(CertificateTemplateName name, gaxgrpc::CallSettings callSettings = null) => + DeleteCertificateTemplate(new DeleteCertificateTemplateRequest + { + CertificateTemplateName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The resource name for this + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in the format `projects/*/locations/*/certificateTemplates/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteCertificateTemplateAsync(CertificateTemplateName name, gaxgrpc::CallSettings callSettings = null) => + DeleteCertificateTemplateAsync(new DeleteCertificateTemplateRequest + { + CertificateTemplateName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The resource name for this + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in the format `projects/*/locations/*/certificateTemplates/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteCertificateTemplateAsync(CertificateTemplateName name, st::CancellationToken cancellationToken) => + DeleteCertificateTemplateAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 CertificateTemplate GetCertificateTemplate(GetCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 GetCertificateTemplateAsync(GetCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 GetCertificateTemplateAsync(GetCertificateTemplateRequest request, st::CancellationToken cancellationToken) => + GetCertificateTemplateAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// to get. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual CertificateTemplate GetCertificateTemplate(string name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateTemplate(new GetCertificateTemplateRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// to get. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateTemplateAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateTemplateAsync(new GetCertificateTemplateRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// to get. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateTemplateAsync(string name, st::CancellationToken cancellationToken) => + GetCertificateTemplateAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// to get. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual CertificateTemplate GetCertificateTemplate(CertificateTemplateName name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateTemplate(new GetCertificateTemplateRequest + { + CertificateTemplateName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// to get. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateTemplateAsync(CertificateTemplateName name, gaxgrpc::CallSettings callSettings = null) => + GetCertificateTemplateAsync(new GetCertificateTemplateRequest + { + CertificateTemplateName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// to get. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetCertificateTemplateAsync(CertificateTemplateName name, st::CancellationToken cancellationToken) => + GetCertificateTemplateAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 ListCertificateTemplates(ListCertificateTemplatesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 ListCertificateTemplatesAsync(ListCertificateTemplatesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], + /// in the format `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 ListCertificateTemplates(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificateTemplatesRequest request = new ListCertificateTemplatesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificateTemplates(request, callSettings); + } + + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], + /// in the format `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 ListCertificateTemplatesAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificateTemplatesRequest request = new ListCertificateTemplatesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificateTemplatesAsync(request, callSettings); + } + + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], + /// in the format `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 ListCertificateTemplates(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificateTemplatesRequest request = new ListCertificateTemplatesRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificateTemplates(request, callSettings); + } + + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. The resource name of the location associated with the + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], + /// in the format `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 ListCertificateTemplatesAsync(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListCertificateTemplatesRequest request = new ListCertificateTemplatesRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListCertificateTemplatesAsync(request, callSettings); + } + + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateCertificateTemplate(UpdateCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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> UpdateCertificateTemplateAsync(UpdateCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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> UpdateCertificateTemplateAsync(UpdateCertificateTemplateRequest request, st::CancellationToken cancellationToken) => + UpdateCertificateTemplateAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UpdateCertificateTemplate. + public virtual lro::OperationsClient UpdateCertificateTemplateOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of + /// UpdateCertificateTemplate. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUpdateCertificateTemplate(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateCertificateTemplateOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateCertificateTemplate. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUpdateCertificateTemplateAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateCertificateTemplateOperationsClient, callSettings); + + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// with updated values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateCertificateTemplate(CertificateTemplate certificateTemplate, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateCertificateTemplate(new UpdateCertificateTemplateRequest + { + CertificateTemplate = gax::GaxPreconditions.CheckNotNull(certificateTemplate, nameof(certificateTemplate)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// with updated values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateCertificateTemplateAsync(CertificateTemplate certificateTemplate, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateCertificateTemplateAsync(new UpdateCertificateTemplateRequest + { + CertificateTemplate = gax::GaxPreconditions.CheckNotNull(certificateTemplate, nameof(certificateTemplate)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// + /// Required. + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// with updated values. + /// + /// + /// Required. A list of fields to be updated in this request. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateCertificateTemplateAsync(CertificateTemplate certificateTemplate, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateCertificateTemplateAsync(certificateTemplate, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + } + + /// CertificateAuthorityService client wrapper implementation, for convenient use. + /// + /// [Certificate Authority + /// Service][google.cloud.security.privateca.v1.CertificateAuthorityService] + /// manages private certificate authorities and issued certificates. + /// + public sealed partial class CertificateAuthorityServiceClientImpl : CertificateAuthorityServiceClient + { + private readonly gaxgrpc::ApiCall _callCreateCertificate; + + private readonly gaxgrpc::ApiCall _callGetCertificate; + + private readonly gaxgrpc::ApiCall _callListCertificates; + + private readonly gaxgrpc::ApiCall _callRevokeCertificate; + + private readonly gaxgrpc::ApiCall _callUpdateCertificate; + + private readonly gaxgrpc::ApiCall _callActivateCertificateAuthority; + + private readonly gaxgrpc::ApiCall _callCreateCertificateAuthority; + + private readonly gaxgrpc::ApiCall _callDisableCertificateAuthority; + + private readonly gaxgrpc::ApiCall _callEnableCertificateAuthority; + + private readonly gaxgrpc::ApiCall _callFetchCertificateAuthorityCsr; + + private readonly gaxgrpc::ApiCall _callGetCertificateAuthority; + + private readonly gaxgrpc::ApiCall _callListCertificateAuthorities; + + private readonly gaxgrpc::ApiCall _callUndeleteCertificateAuthority; + + private readonly gaxgrpc::ApiCall _callDeleteCertificateAuthority; + + private readonly gaxgrpc::ApiCall _callUpdateCertificateAuthority; + + private readonly gaxgrpc::ApiCall _callCreateCaPool; + + private readonly gaxgrpc::ApiCall _callUpdateCaPool; + + private readonly gaxgrpc::ApiCall _callGetCaPool; + + private readonly gaxgrpc::ApiCall _callListCaPools; + + private readonly gaxgrpc::ApiCall _callDeleteCaPool; + + private readonly gaxgrpc::ApiCall _callFetchCaCerts; + + private readonly gaxgrpc::ApiCall _callGetCertificateRevocationList; + + private readonly gaxgrpc::ApiCall _callListCertificateRevocationLists; + + private readonly gaxgrpc::ApiCall _callUpdateCertificateRevocationList; + + private readonly gaxgrpc::ApiCall _callCreateCertificateTemplate; + + private readonly gaxgrpc::ApiCall _callDeleteCertificateTemplate; + + private readonly gaxgrpc::ApiCall _callGetCertificateTemplate; + + private readonly gaxgrpc::ApiCall _callListCertificateTemplates; + + private readonly gaxgrpc::ApiCall _callUpdateCertificateTemplate; + + /// + /// Constructs a client wrapper for the CertificateAuthorityService 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 CertificateAuthorityServiceClientImpl(CertificateAuthorityService.CertificateAuthorityServiceClient grpcClient, CertificateAuthorityServiceSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + CertificateAuthorityServiceSettings effectiveSettings = settings ?? CertificateAuthorityServiceSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + Settings = effectiveSettings, + Logger = logger, + }); + ActivateCertificateAuthorityOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.ActivateCertificateAuthorityOperationsSettings, logger); + CreateCertificateAuthorityOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateCertificateAuthorityOperationsSettings, logger); + DisableCertificateAuthorityOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DisableCertificateAuthorityOperationsSettings, logger); + EnableCertificateAuthorityOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.EnableCertificateAuthorityOperationsSettings, logger); + UndeleteCertificateAuthorityOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UndeleteCertificateAuthorityOperationsSettings, logger); + DeleteCertificateAuthorityOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DeleteCertificateAuthorityOperationsSettings, logger); + UpdateCertificateAuthorityOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateCertificateAuthorityOperationsSettings, logger); + CreateCaPoolOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateCaPoolOperationsSettings, logger); + UpdateCaPoolOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateCaPoolOperationsSettings, logger); + DeleteCaPoolOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DeleteCaPoolOperationsSettings, logger); + UpdateCertificateRevocationListOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateCertificateRevocationListOperationsSettings, logger); + CreateCertificateTemplateOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateCertificateTemplateOperationsSettings, logger); + DeleteCertificateTemplateOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DeleteCertificateTemplateOperationsSettings, logger); + UpdateCertificateTemplateOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateCertificateTemplateOperationsSettings, logger); + LocationsClient = new gcl::LocationsClientImpl(grpcClient.CreateLocationsClient(), effectiveSettings.LocationsSettings, logger); + IAMPolicyClient = new gciv::IAMPolicyClientImpl(grpcClient.CreateIAMPolicyClient(), effectiveSettings.IAMPolicySettings, logger); + _callCreateCertificate = clientHelper.BuildApiCall("CreateCertificate", grpcClient.CreateCertificateAsync, grpcClient.CreateCertificate, effectiveSettings.CreateCertificateSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateCertificate); + Modify_CreateCertificateApiCall(ref _callCreateCertificate); + _callGetCertificate = clientHelper.BuildApiCall("GetCertificate", grpcClient.GetCertificateAsync, grpcClient.GetCertificate, effectiveSettings.GetCertificateSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetCertificate); + Modify_GetCertificateApiCall(ref _callGetCertificate); + _callListCertificates = clientHelper.BuildApiCall("ListCertificates", grpcClient.ListCertificatesAsync, grpcClient.ListCertificates, effectiveSettings.ListCertificatesSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListCertificates); + Modify_ListCertificatesApiCall(ref _callListCertificates); + _callRevokeCertificate = clientHelper.BuildApiCall("RevokeCertificate", grpcClient.RevokeCertificateAsync, grpcClient.RevokeCertificate, effectiveSettings.RevokeCertificateSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callRevokeCertificate); + Modify_RevokeCertificateApiCall(ref _callRevokeCertificate); + _callUpdateCertificate = clientHelper.BuildApiCall("UpdateCertificate", grpcClient.UpdateCertificateAsync, grpcClient.UpdateCertificate, effectiveSettings.UpdateCertificateSettings).WithGoogleRequestParam("certificate.name", request => request.Certificate?.Name); + Modify_ApiCall(ref _callUpdateCertificate); + Modify_UpdateCertificateApiCall(ref _callUpdateCertificate); + _callActivateCertificateAuthority = clientHelper.BuildApiCall("ActivateCertificateAuthority", grpcClient.ActivateCertificateAuthorityAsync, grpcClient.ActivateCertificateAuthority, effectiveSettings.ActivateCertificateAuthoritySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callActivateCertificateAuthority); + Modify_ActivateCertificateAuthorityApiCall(ref _callActivateCertificateAuthority); + _callCreateCertificateAuthority = clientHelper.BuildApiCall("CreateCertificateAuthority", grpcClient.CreateCertificateAuthorityAsync, grpcClient.CreateCertificateAuthority, effectiveSettings.CreateCertificateAuthoritySettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateCertificateAuthority); + Modify_CreateCertificateAuthorityApiCall(ref _callCreateCertificateAuthority); + _callDisableCertificateAuthority = clientHelper.BuildApiCall("DisableCertificateAuthority", grpcClient.DisableCertificateAuthorityAsync, grpcClient.DisableCertificateAuthority, effectiveSettings.DisableCertificateAuthoritySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDisableCertificateAuthority); + Modify_DisableCertificateAuthorityApiCall(ref _callDisableCertificateAuthority); + _callEnableCertificateAuthority = clientHelper.BuildApiCall("EnableCertificateAuthority", grpcClient.EnableCertificateAuthorityAsync, grpcClient.EnableCertificateAuthority, effectiveSettings.EnableCertificateAuthoritySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callEnableCertificateAuthority); + Modify_EnableCertificateAuthorityApiCall(ref _callEnableCertificateAuthority); + _callFetchCertificateAuthorityCsr = clientHelper.BuildApiCall("FetchCertificateAuthorityCsr", grpcClient.FetchCertificateAuthorityCsrAsync, grpcClient.FetchCertificateAuthorityCsr, effectiveSettings.FetchCertificateAuthorityCsrSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callFetchCertificateAuthorityCsr); + Modify_FetchCertificateAuthorityCsrApiCall(ref _callFetchCertificateAuthorityCsr); + _callGetCertificateAuthority = clientHelper.BuildApiCall("GetCertificateAuthority", grpcClient.GetCertificateAuthorityAsync, grpcClient.GetCertificateAuthority, effectiveSettings.GetCertificateAuthoritySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetCertificateAuthority); + Modify_GetCertificateAuthorityApiCall(ref _callGetCertificateAuthority); + _callListCertificateAuthorities = clientHelper.BuildApiCall("ListCertificateAuthorities", grpcClient.ListCertificateAuthoritiesAsync, grpcClient.ListCertificateAuthorities, effectiveSettings.ListCertificateAuthoritiesSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListCertificateAuthorities); + Modify_ListCertificateAuthoritiesApiCall(ref _callListCertificateAuthorities); + _callUndeleteCertificateAuthority = clientHelper.BuildApiCall("UndeleteCertificateAuthority", grpcClient.UndeleteCertificateAuthorityAsync, grpcClient.UndeleteCertificateAuthority, effectiveSettings.UndeleteCertificateAuthoritySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callUndeleteCertificateAuthority); + Modify_UndeleteCertificateAuthorityApiCall(ref _callUndeleteCertificateAuthority); + _callDeleteCertificateAuthority = clientHelper.BuildApiCall("DeleteCertificateAuthority", grpcClient.DeleteCertificateAuthorityAsync, grpcClient.DeleteCertificateAuthority, effectiveSettings.DeleteCertificateAuthoritySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteCertificateAuthority); + Modify_DeleteCertificateAuthorityApiCall(ref _callDeleteCertificateAuthority); + _callUpdateCertificateAuthority = clientHelper.BuildApiCall("UpdateCertificateAuthority", grpcClient.UpdateCertificateAuthorityAsync, grpcClient.UpdateCertificateAuthority, effectiveSettings.UpdateCertificateAuthoritySettings).WithGoogleRequestParam("certificate_authority.name", request => request.CertificateAuthority?.Name); + Modify_ApiCall(ref _callUpdateCertificateAuthority); + Modify_UpdateCertificateAuthorityApiCall(ref _callUpdateCertificateAuthority); + _callCreateCaPool = clientHelper.BuildApiCall("CreateCaPool", grpcClient.CreateCaPoolAsync, grpcClient.CreateCaPool, effectiveSettings.CreateCaPoolSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateCaPool); + Modify_CreateCaPoolApiCall(ref _callCreateCaPool); + _callUpdateCaPool = clientHelper.BuildApiCall("UpdateCaPool", grpcClient.UpdateCaPoolAsync, grpcClient.UpdateCaPool, effectiveSettings.UpdateCaPoolSettings).WithGoogleRequestParam("ca_pool.name", request => request.CaPool?.Name); + Modify_ApiCall(ref _callUpdateCaPool); + Modify_UpdateCaPoolApiCall(ref _callUpdateCaPool); + _callGetCaPool = clientHelper.BuildApiCall("GetCaPool", grpcClient.GetCaPoolAsync, grpcClient.GetCaPool, effectiveSettings.GetCaPoolSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetCaPool); + Modify_GetCaPoolApiCall(ref _callGetCaPool); + _callListCaPools = clientHelper.BuildApiCall("ListCaPools", grpcClient.ListCaPoolsAsync, grpcClient.ListCaPools, effectiveSettings.ListCaPoolsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListCaPools); + Modify_ListCaPoolsApiCall(ref _callListCaPools); + _callDeleteCaPool = clientHelper.BuildApiCall("DeleteCaPool", grpcClient.DeleteCaPoolAsync, grpcClient.DeleteCaPool, effectiveSettings.DeleteCaPoolSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteCaPool); + Modify_DeleteCaPoolApiCall(ref _callDeleteCaPool); + _callFetchCaCerts = clientHelper.BuildApiCall("FetchCaCerts", grpcClient.FetchCaCertsAsync, grpcClient.FetchCaCerts, effectiveSettings.FetchCaCertsSettings).WithGoogleRequestParam("ca_pool", request => request.CaPool); + Modify_ApiCall(ref _callFetchCaCerts); + Modify_FetchCaCertsApiCall(ref _callFetchCaCerts); + _callGetCertificateRevocationList = clientHelper.BuildApiCall("GetCertificateRevocationList", grpcClient.GetCertificateRevocationListAsync, grpcClient.GetCertificateRevocationList, effectiveSettings.GetCertificateRevocationListSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetCertificateRevocationList); + Modify_GetCertificateRevocationListApiCall(ref _callGetCertificateRevocationList); + _callListCertificateRevocationLists = clientHelper.BuildApiCall("ListCertificateRevocationLists", grpcClient.ListCertificateRevocationListsAsync, grpcClient.ListCertificateRevocationLists, effectiveSettings.ListCertificateRevocationListsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListCertificateRevocationLists); + Modify_ListCertificateRevocationListsApiCall(ref _callListCertificateRevocationLists); + _callUpdateCertificateRevocationList = clientHelper.BuildApiCall("UpdateCertificateRevocationList", grpcClient.UpdateCertificateRevocationListAsync, grpcClient.UpdateCertificateRevocationList, effectiveSettings.UpdateCertificateRevocationListSettings).WithGoogleRequestParam("certificate_revocation_list.name", request => request.CertificateRevocationList?.Name); + Modify_ApiCall(ref _callUpdateCertificateRevocationList); + Modify_UpdateCertificateRevocationListApiCall(ref _callUpdateCertificateRevocationList); + _callCreateCertificateTemplate = clientHelper.BuildApiCall("CreateCertificateTemplate", grpcClient.CreateCertificateTemplateAsync, grpcClient.CreateCertificateTemplate, effectiveSettings.CreateCertificateTemplateSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateCertificateTemplate); + Modify_CreateCertificateTemplateApiCall(ref _callCreateCertificateTemplate); + _callDeleteCertificateTemplate = clientHelper.BuildApiCall("DeleteCertificateTemplate", grpcClient.DeleteCertificateTemplateAsync, grpcClient.DeleteCertificateTemplate, effectiveSettings.DeleteCertificateTemplateSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteCertificateTemplate); + Modify_DeleteCertificateTemplateApiCall(ref _callDeleteCertificateTemplate); + _callGetCertificateTemplate = clientHelper.BuildApiCall("GetCertificateTemplate", grpcClient.GetCertificateTemplateAsync, grpcClient.GetCertificateTemplate, effectiveSettings.GetCertificateTemplateSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetCertificateTemplate); + Modify_GetCertificateTemplateApiCall(ref _callGetCertificateTemplate); + _callListCertificateTemplates = clientHelper.BuildApiCall("ListCertificateTemplates", grpcClient.ListCertificateTemplatesAsync, grpcClient.ListCertificateTemplates, effectiveSettings.ListCertificateTemplatesSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListCertificateTemplates); + Modify_ListCertificateTemplatesApiCall(ref _callListCertificateTemplates); + _callUpdateCertificateTemplate = clientHelper.BuildApiCall("UpdateCertificateTemplate", grpcClient.UpdateCertificateTemplateAsync, grpcClient.UpdateCertificateTemplate, effectiveSettings.UpdateCertificateTemplateSettings).WithGoogleRequestParam("certificate_template.name", request => request.CertificateTemplate?.Name); + Modify_ApiCall(ref _callUpdateCertificateTemplate); + Modify_UpdateCertificateTemplateApiCall(ref _callUpdateCertificateTemplate); + 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_CreateCertificateApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetCertificateApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListCertificatesApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_RevokeCertificateApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateCertificateApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ActivateCertificateAuthorityApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateCertificateAuthorityApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DisableCertificateAuthorityApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_EnableCertificateAuthorityApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_FetchCertificateAuthorityCsrApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetCertificateAuthorityApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListCertificateAuthoritiesApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UndeleteCertificateAuthorityApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteCertificateAuthorityApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateCertificateAuthorityApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateCaPoolApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateCaPoolApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetCaPoolApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListCaPoolsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteCaPoolApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_FetchCaCertsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetCertificateRevocationListApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListCertificateRevocationListsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateCertificateRevocationListApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateCertificateTemplateApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteCertificateTemplateApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetCertificateTemplateApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListCertificateTemplatesApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateCertificateTemplateApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(CertificateAuthorityService.CertificateAuthorityServiceClient grpcClient, CertificateAuthorityServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC CertificateAuthorityService client + public override CertificateAuthorityService.CertificateAuthorityServiceClient GrpcClient { get; } + + /// The associated with this client. + public override gcl::LocationsClient LocationsClient { get; } + + /// The associated with this client. + public override gciv::IAMPolicyClient IAMPolicyClient { get; } + + partial void Modify_CreateCertificateRequest(ref CreateCertificateRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetCertificateRequest(ref GetCertificateRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListCertificatesRequest(ref ListCertificatesRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_RevokeCertificateRequest(ref RevokeCertificateRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateCertificateRequest(ref UpdateCertificateRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ActivateCertificateAuthorityRequest(ref ActivateCertificateAuthorityRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateCertificateAuthorityRequest(ref CreateCertificateAuthorityRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DisableCertificateAuthorityRequest(ref DisableCertificateAuthorityRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_EnableCertificateAuthorityRequest(ref EnableCertificateAuthorityRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_FetchCertificateAuthorityCsrRequest(ref FetchCertificateAuthorityCsrRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetCertificateAuthorityRequest(ref GetCertificateAuthorityRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListCertificateAuthoritiesRequest(ref ListCertificateAuthoritiesRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UndeleteCertificateAuthorityRequest(ref UndeleteCertificateAuthorityRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteCertificateAuthorityRequest(ref DeleteCertificateAuthorityRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateCertificateAuthorityRequest(ref UpdateCertificateAuthorityRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateCaPoolRequest(ref CreateCaPoolRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateCaPoolRequest(ref UpdateCaPoolRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetCaPoolRequest(ref GetCaPoolRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListCaPoolsRequest(ref ListCaPoolsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteCaPoolRequest(ref DeleteCaPoolRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_FetchCaCertsRequest(ref FetchCaCertsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetCertificateRevocationListRequest(ref GetCertificateRevocationListRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListCertificateRevocationListsRequest(ref ListCertificateRevocationListsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateCertificateRevocationListRequest(ref UpdateCertificateRevocationListRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateCertificateTemplateRequest(ref CreateCertificateTemplateRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteCertificateTemplateRequest(ref DeleteCertificateTemplateRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetCertificateTemplateRequest(ref GetCertificateTemplateRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListCertificateTemplatesRequest(ref ListCertificateTemplatesRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateCertificateTemplateRequest(ref UpdateCertificateTemplateRequest request, ref gaxgrpc::CallSettings settings); + + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 Certificate CreateCertificate(CreateCertificateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateCertificateRequest(ref request, ref callSettings); + return _callCreateCertificate.Sync(request, callSettings); + } + + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 CreateCertificateAsync(CreateCertificateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateCertificateRequest(ref request, ref callSettings); + return _callCreateCertificate.Async(request, callSettings); + } + + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 Certificate GetCertificate(GetCertificateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetCertificateRequest(ref request, ref callSettings); + return _callGetCertificate.Sync(request, callSettings); + } + + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 GetCertificateAsync(GetCertificateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetCertificateRequest(ref request, ref callSettings); + return _callGetCertificate.Async(request, callSettings); + } + + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 ListCertificates(ListCertificatesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListCertificatesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListCertificates, request, callSettings); + } + + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 ListCertificatesAsync(ListCertificatesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListCertificatesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListCertificates, request, callSettings); + } + + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 Certificate RevokeCertificate(RevokeCertificateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_RevokeCertificateRequest(ref request, ref callSettings); + return _callRevokeCertificate.Sync(request, callSettings); + } + + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 RevokeCertificateAsync(RevokeCertificateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_RevokeCertificateRequest(ref request, ref callSettings); + return _callRevokeCertificate.Async(request, callSettings); + } + + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// 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 Certificate UpdateCertificate(UpdateCertificateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateCertificateRequest(ref request, ref callSettings); + return _callUpdateCertificate.Sync(request, callSettings); + } + + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// 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 UpdateCertificateAsync(UpdateCertificateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateCertificateRequest(ref request, ref callSettings); + return _callUpdateCertificate.Async(request, callSettings); + } + + /// The long-running operations client for ActivateCertificateAuthority. + public override lro::OperationsClient ActivateCertificateAuthorityOperationsClient { get; } + + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation ActivateCertificateAuthority(ActivateCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ActivateCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(_callActivateCertificateAuthority.Sync(request, callSettings), ActivateCertificateAuthorityOperationsClient); + } + + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ActivateCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(await _callActivateCertificateAuthority.Async(request, callSettings).ConfigureAwait(false), ActivateCertificateAuthorityOperationsClient); + } + + /// The long-running operations client for CreateCertificateAuthority. + public override lro::OperationsClient CreateCertificateAuthorityOperationsClient { get; } + + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateCertificateAuthority(CreateCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateCertificateAuthority.Sync(request, callSettings), CreateCertificateAuthorityOperationsClient); + } + + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateCertificateAuthority.Async(request, callSettings).ConfigureAwait(false), CreateCertificateAuthorityOperationsClient); + } + + /// The long-running operations client for DisableCertificateAuthority. + public override lro::OperationsClient DisableCertificateAuthorityOperationsClient { get; } + + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation DisableCertificateAuthority(DisableCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DisableCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(_callDisableCertificateAuthority.Sync(request, callSettings), DisableCertificateAuthorityOperationsClient); + } + + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> DisableCertificateAuthorityAsync(DisableCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DisableCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(await _callDisableCertificateAuthority.Async(request, callSettings).ConfigureAwait(false), DisableCertificateAuthorityOperationsClient); + } + + /// The long-running operations client for EnableCertificateAuthority. + public override lro::OperationsClient EnableCertificateAuthorityOperationsClient { get; } + + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation EnableCertificateAuthority(EnableCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_EnableCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(_callEnableCertificateAuthority.Sync(request, callSettings), EnableCertificateAuthorityOperationsClient); + } + + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> EnableCertificateAuthorityAsync(EnableCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_EnableCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(await _callEnableCertificateAuthority.Async(request, callSettings).ConfigureAwait(false), EnableCertificateAuthorityOperationsClient); + } + + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// 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 FetchCertificateAuthorityCsrResponse FetchCertificateAuthorityCsr(FetchCertificateAuthorityCsrRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_FetchCertificateAuthorityCsrRequest(ref request, ref callSettings); + return _callFetchCertificateAuthorityCsr.Sync(request, callSettings); + } + + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// 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 FetchCertificateAuthorityCsrAsync(FetchCertificateAuthorityCsrRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_FetchCertificateAuthorityCsrRequest(ref request, ref callSettings); + return _callFetchCertificateAuthorityCsr.Async(request, callSettings); + } + + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 CertificateAuthority GetCertificateAuthority(GetCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetCertificateAuthorityRequest(ref request, ref callSettings); + return _callGetCertificateAuthority.Sync(request, callSettings); + } + + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 GetCertificateAuthorityAsync(GetCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetCertificateAuthorityRequest(ref request, ref callSettings); + return _callGetCertificateAuthority.Async(request, callSettings); + } + + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 ListCertificateAuthorities(ListCertificateAuthoritiesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListCertificateAuthoritiesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListCertificateAuthorities, request, callSettings); + } + + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 ListCertificateAuthoritiesAsync(ListCertificateAuthoritiesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListCertificateAuthoritiesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListCertificateAuthorities, request, callSettings); + } + + /// The long-running operations client for UndeleteCertificateAuthority. + public override lro::OperationsClient UndeleteCertificateAuthorityOperationsClient { get; } + + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UndeleteCertificateAuthority(UndeleteCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UndeleteCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(_callUndeleteCertificateAuthority.Sync(request, callSettings), UndeleteCertificateAuthorityOperationsClient); + } + + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UndeleteCertificateAuthorityAsync(UndeleteCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UndeleteCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(await _callUndeleteCertificateAuthority.Async(request, callSettings).ConfigureAwait(false), UndeleteCertificateAuthorityOperationsClient); + } + + /// The long-running operations client for DeleteCertificateAuthority. + public override lro::OperationsClient DeleteCertificateAuthorityOperationsClient { get; } + + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation DeleteCertificateAuthority(DeleteCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(_callDeleteCertificateAuthority.Sync(request, callSettings), DeleteCertificateAuthorityOperationsClient); + } + + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(await _callDeleteCertificateAuthority.Async(request, callSettings).ConfigureAwait(false), DeleteCertificateAuthorityOperationsClient); + } + + /// The long-running operations client for UpdateCertificateAuthority. + public override lro::OperationsClient UpdateCertificateAuthorityOperationsClient { get; } + + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UpdateCertificateAuthority(UpdateCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(_callUpdateCertificateAuthority.Sync(request, callSettings), UpdateCertificateAuthorityOperationsClient); + } + + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateCertificateAuthorityRequest(ref request, ref callSettings); + return new lro::Operation(await _callUpdateCertificateAuthority.Async(request, callSettings).ConfigureAwait(false), UpdateCertificateAuthorityOperationsClient); + } + + /// The long-running operations client for CreateCaPool. + public override lro::OperationsClient CreateCaPoolOperationsClient { get; } + + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateCaPool(CreateCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateCaPoolRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateCaPool.Sync(request, callSettings), CreateCaPoolOperationsClient); + } + + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateCaPoolAsync(CreateCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateCaPoolRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateCaPool.Async(request, callSettings).ConfigureAwait(false), CreateCaPoolOperationsClient); + } + + /// The long-running operations client for UpdateCaPool. + public override lro::OperationsClient UpdateCaPoolOperationsClient { get; } + + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UpdateCaPool(UpdateCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateCaPoolRequest(ref request, ref callSettings); + return new lro::Operation(_callUpdateCaPool.Sync(request, callSettings), UpdateCaPoolOperationsClient); + } + + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UpdateCaPoolAsync(UpdateCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateCaPoolRequest(ref request, ref callSettings); + return new lro::Operation(await _callUpdateCaPool.Async(request, callSettings).ConfigureAwait(false), UpdateCaPoolOperationsClient); + } + + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 CaPool GetCaPool(GetCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetCaPoolRequest(ref request, ref callSettings); + return _callGetCaPool.Sync(request, callSettings); + } + + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 GetCaPoolAsync(GetCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetCaPoolRequest(ref request, ref callSettings); + return _callGetCaPool.Async(request, callSettings); + } + + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 ListCaPools(ListCaPoolsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListCaPoolsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListCaPools, request, callSettings); + } + + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 ListCaPoolsAsync(ListCaPoolsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListCaPoolsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListCaPools, request, callSettings); + } + + /// The long-running operations client for DeleteCaPool. + public override lro::OperationsClient DeleteCaPoolOperationsClient { get; } + + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation DeleteCaPool(DeleteCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteCaPoolRequest(ref request, ref callSettings); + return new lro::Operation(_callDeleteCaPool.Sync(request, callSettings), DeleteCaPoolOperationsClient); + } + + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> DeleteCaPoolAsync(DeleteCaPoolRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteCaPoolRequest(ref request, ref callSettings); + return new lro::Operation(await _callDeleteCaPool.Async(request, callSettings).ConfigureAwait(false), DeleteCaPoolOperationsClient); + } + + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// 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 FetchCaCertsResponse FetchCaCerts(FetchCaCertsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_FetchCaCertsRequest(ref request, ref callSettings); + return _callFetchCaCerts.Sync(request, callSettings); + } + + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// 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 FetchCaCertsAsync(FetchCaCertsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_FetchCaCertsRequest(ref request, ref callSettings); + return _callFetchCaCerts.Async(request, callSettings); + } + + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 CertificateRevocationList GetCertificateRevocationList(GetCertificateRevocationListRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetCertificateRevocationListRequest(ref request, ref callSettings); + return _callGetCertificateRevocationList.Sync(request, callSettings); + } + + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 GetCertificateRevocationListAsync(GetCertificateRevocationListRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetCertificateRevocationListRequest(ref request, ref callSettings); + return _callGetCertificateRevocationList.Async(request, callSettings); + } + + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 ListCertificateRevocationLists(ListCertificateRevocationListsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListCertificateRevocationListsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListCertificateRevocationLists, request, callSettings); + } + + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 ListCertificateRevocationListsAsync(ListCertificateRevocationListsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListCertificateRevocationListsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListCertificateRevocationLists, request, callSettings); + } + + /// The long-running operations client for UpdateCertificateRevocationList. + public override lro::OperationsClient UpdateCertificateRevocationListOperationsClient { get; } + + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UpdateCertificateRevocationList(UpdateCertificateRevocationListRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateCertificateRevocationListRequest(ref request, ref callSettings); + return new lro::Operation(_callUpdateCertificateRevocationList.Sync(request, callSettings), UpdateCertificateRevocationListOperationsClient); + } + + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateCertificateRevocationListRequest(ref request, ref callSettings); + return new lro::Operation(await _callUpdateCertificateRevocationList.Async(request, callSettings).ConfigureAwait(false), UpdateCertificateRevocationListOperationsClient); + } + + /// The long-running operations client for CreateCertificateTemplate. + public override lro::OperationsClient CreateCertificateTemplateOperationsClient { get; } + + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateCertificateTemplate(CreateCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateCertificateTemplateRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateCertificateTemplate.Sync(request, callSettings), CreateCertificateTemplateOperationsClient); + } + + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateCertificateTemplateAsync(CreateCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateCertificateTemplateRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateCertificateTemplate.Async(request, callSettings).ConfigureAwait(false), CreateCertificateTemplateOperationsClient); + } + + /// The long-running operations client for DeleteCertificateTemplate. + public override lro::OperationsClient DeleteCertificateTemplateOperationsClient { get; } + + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation DeleteCertificateTemplate(DeleteCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteCertificateTemplateRequest(ref request, ref callSettings); + return new lro::Operation(_callDeleteCertificateTemplate.Sync(request, callSettings), DeleteCertificateTemplateOperationsClient); + } + + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteCertificateTemplateRequest(ref request, ref callSettings); + return new lro::Operation(await _callDeleteCertificateTemplate.Async(request, callSettings).ConfigureAwait(false), DeleteCertificateTemplateOperationsClient); + } + + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 CertificateTemplate GetCertificateTemplate(GetCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetCertificateTemplateRequest(ref request, ref callSettings); + return _callGetCertificateTemplate.Sync(request, callSettings); + } + + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 GetCertificateTemplateAsync(GetCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetCertificateTemplateRequest(ref request, ref callSettings); + return _callGetCertificateTemplate.Async(request, callSettings); + } + + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 ListCertificateTemplates(ListCertificateTemplatesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListCertificateTemplatesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListCertificateTemplates, request, callSettings); + } + + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 ListCertificateTemplatesAsync(ListCertificateTemplatesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListCertificateTemplatesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListCertificateTemplates, request, callSettings); + } + + /// The long-running operations client for UpdateCertificateTemplate. + public override lro::OperationsClient UpdateCertificateTemplateOperationsClient { get; } + + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UpdateCertificateTemplate(UpdateCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateCertificateTemplateRequest(ref request, ref callSettings); + return new lro::Operation(_callUpdateCertificateTemplate.Sync(request, callSettings), UpdateCertificateTemplateOperationsClient); + } + + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UpdateCertificateTemplateAsync(UpdateCertificateTemplateRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateCertificateTemplateRequest(ref request, ref callSettings); + return new lro::Operation(await _callUpdateCertificateTemplate.Async(request, callSettings).ConfigureAwait(false), UpdateCertificateTemplateOperationsClient); + } + } + + public partial class ListCertificatesRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListCertificateAuthoritiesRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListCaPoolsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListCertificateRevocationListsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListCertificateTemplatesRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListCertificatesResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => Certificates.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListCertificateAuthoritiesResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => CertificateAuthorities.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListCaPoolsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => CaPools.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListCertificateRevocationListsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => CertificateRevocationLists.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListCertificateTemplatesResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => CertificateTemplates.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public static partial class CertificateAuthorityService + { + public partial class CertificateAuthorityServiceClient + { + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// A new Operations client for the same target as this client. + public virtual lro::Operations.OperationsClient CreateOperationsClient() => + new lro::Operations.OperationsClient(CallInvoker); + } + } + + public static partial class CertificateAuthorityService + { + public partial class CertificateAuthorityServiceClient + { + /// + /// 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); + + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// + /// A new for the same target as this client. + /// + public virtual gciv::IAMPolicy.IAMPolicyClient CreateIAMPolicyClient() => + new gciv::IAMPolicy.IAMPolicyClient(CallInvoker); + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.csproj b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.csproj new file mode 100755 index 000000000000..1823319ae739 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1.csproj @@ -0,0 +1,50 @@ + + + + + + 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.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/PackageApiMetadata.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/PackageApiMetadata.g.cs new file mode 100755 index 000000000000..83267a117bf0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/PackageApiMetadata.g.cs @@ -0,0 +1,94 @@ +// 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 gciv = Google.Cloud.Iam.V1; +using gcl = Google.Cloud.Location; +using gpr = Google.Protobuf.Reflection; +using lro = Google.LongRunning; +using proto = Google.Protobuf; +using scg = System.Collections.Generic; + +namespace Google.Cloud.Security.PrivateCA.V1 +{ + /// 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.Security.PrivateCA.V1", GetFileDescriptors) + .WithRequestNumericEnumJsonEncoding(true) + .WithHttpRuleOverrides(new scg::Dictionary + { + { + "google.cloud.location.Locations.GetLocation", + // { "get": "/v1/{name=projects/*/locations/*}" } + proto::ByteString.FromBase64("EiEvdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKn0=") + }, + { + "google.cloud.location.Locations.ListLocations", + // { "get": "/v1/{name=projects/*}/locations" } + proto::ByteString.FromBase64("Eh8vdjEve25hbWU9cHJvamVjdHMvKn0vbG9jYXRpb25z") + }, + { + "google.iam.v1.IAMPolicy.GetIamPolicy", + // { "get": "/v1/{resource=projects/*/locations/*/caPools/*}:getIamPolicy", "additionalBindings": [ { "get": "/v1/{resource=projects/*/locations/*/certificateTemplates/*}:getIamPolicy" }, { "get": "/v1/{resource=projects/*/locations/*/caPools/*/certificateAuthorities/*/certificateRevocationLists/*}:getIamPolicy" } ] } + proto::ByteString.FromBase64("EjwvdjEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovY2FQb29scy8qfTpnZXRJYW1Qb2xpY3laSxJJL3YxL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2NlcnRpZmljYXRlVGVtcGxhdGVzLyp9OmdldElhbVBvbGljeVp0EnIvdjEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovY2FQb29scy8qL2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvKi9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0cy8qfTpnZXRJYW1Qb2xpY3k=") + }, + { + "google.iam.v1.IAMPolicy.SetIamPolicy", + // { "post": "/v1/{resource=projects/*/locations/*/caPools/*}:setIamPolicy", "body": "*", "additionalBindings": [ { "post": "/v1/{resource=projects/*/locations/*/certificateTemplates/*}:setIamPolicy", "body": "*" }, { "post": "/v1/{resource=projects/*/locations/*/caPools/*/certificateAuthorities/*/certificateRevocationLists/*}:setIamPolicy", "body": "*" } ] } + proto::ByteString.FromBase64("IjwvdjEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovY2FQb29scy8qfTpzZXRJYW1Qb2xpY3k6ASpaTiJJL3YxL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2NlcnRpZmljYXRlVGVtcGxhdGVzLyp9OnNldElhbVBvbGljeToBKlp3InIvdjEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovY2FQb29scy8qL2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvKi9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0cy8qfTpzZXRJYW1Qb2xpY3k6ASo=") + }, + { + "google.iam.v1.IAMPolicy.TestIamPermissions", + // { "post": "/v1/{resource=projects/*/locations/*/caPools/*}:testIamPermissions", "body": "*", "additionalBindings": [ { "post": "/v1/{resource=projects/*/locations/*/certificateTemplates/*}:testIamPermissions", "body": "*" }, { "post": "/v1/{resource=projects/*/locations/*/caPools/*/certificateAuthorities/*/certificateRevocationLists/*}:testIamPermissions", "body": "*" } ] } + proto::ByteString.FromBase64("IkIvdjEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovY2FQb29scy8qfTp0ZXN0SWFtUGVybWlzc2lvbnM6ASpaVCJPL3YxL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2NlcnRpZmljYXRlVGVtcGxhdGVzLyp9OnRlc3RJYW1QZXJtaXNzaW9uczoBKlp9IngvdjEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovY2FQb29scy8qL2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvKi9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0cy8qfTp0ZXN0SWFtUGVybWlzc2lvbnM6ASo=") + }, + { + "google.longrunning.Operations.CancelOperation", + // { "post": "/v1/{name=projects/*/locations/*/operations/*}:cancel", "body": "*" } + proto::ByteString.FromBase64("IjUvdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9vcGVyYXRpb25zLyp9OmNhbmNlbDoBKg==") + }, + { + "google.longrunning.Operations.DeleteOperation", + // { "delete": "/v1/{name=projects/*/locations/*/operations/*}" } + proto::ByteString.FromBase64("Ki4vdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9vcGVyYXRpb25zLyp9") + }, + { + "google.longrunning.Operations.GetOperation", + // { "get": "/v1/{name=projects/*/locations/*/operations/*}" } + proto::ByteString.FromBase64("Ei4vdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9vcGVyYXRpb25zLyp9") + }, + { + "google.longrunning.Operations.ListOperations", + // { "get": "/v1/{name=projects/*/locations/*}/operations" } + proto::ByteString.FromBase64("EiwvdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKn0vb3BlcmF0aW9ucw==") + }, + }); + + private static scg::IEnumerable GetFileDescriptors() + { + yield return gciv::IamPolicyReflection.Descriptor; + yield return gciv::OptionsReflection.Descriptor; + yield return gciv::PolicyReflection.Descriptor; + yield return gcl::LocationsReflection.Descriptor; + yield return ResourcesReflection.Descriptor; + yield return ServiceReflection.Descriptor; + yield return lro::OperationsReflection.Descriptor; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/Resources.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/Resources.g.cs new file mode 100755 index 000000000000..f0fb769046e0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/Resources.g.cs @@ -0,0 +1,14105 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/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.Security.PrivateCA.V1 { + + /// Holder for reflection information generated from google/cloud/security/privateca/v1/resources.proto + public static partial class ResourcesReflection { + + #region Descriptor + /// File descriptor for google/cloud/security/privateca/v1/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( + "CjJnb29nbGUvY2xvdWQvc2VjdXJpdHkvcHJpdmF0ZWNhL3YxL3Jlc291cmNl", + "cy5wcm90bxIiZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MRof", + "Z29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9y", + "ZXNvdXJjZS5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL2R1cmF0aW9uLnByb3Rv", + "Gh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGhZnb29nbGUvdHlw", + "ZS9leHByLnByb3RvIvUPChRDZXJ0aWZpY2F0ZUF1dGhvcml0eRIRCgRuYW1l", + "GAEgASgJQgPgQQMSUwoEdHlwZRgCIAEoDjI9Lmdvb2dsZS5jbG91ZC5zZWN1", + "cml0eS5wcml2YXRlY2EudjEuQ2VydGlmaWNhdGVBdXRob3JpdHkuVHlwZUIG", + "4EEC4EEFEk0KBmNvbmZpZxgDIAEoCzI1Lmdvb2dsZS5jbG91ZC5zZWN1cml0", + "eS5wcml2YXRlY2EudjEuQ2VydGlmaWNhdGVDb25maWdCBuBBAuBBBRIzCghs", + "aWZldGltZRgEIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkIG4EEC", + "4EEFEmEKCGtleV9zcGVjGAUgASgLMkcuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5", + "LnByaXZhdGVjYS52MS5DZXJ0aWZpY2F0ZUF1dGhvcml0eS5LZXlWZXJzaW9u", + "U3BlY0IG4EEC4EEFElYKEnN1Ym9yZGluYXRlX2NvbmZpZxgGIAEoCzI1Lmdv", + "b2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuU3Vib3JkaW5hdGVD", + "b25maWdCA+BBARJCCgR0aWVyGAcgASgOMi8uZ29vZ2xlLmNsb3VkLnNlY3Vy", + "aXR5LnByaXZhdGVjYS52MS5DYVBvb2wuVGllckID4EEDElIKBXN0YXRlGAgg", + "ASgOMj4uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5DZXJ0", + "aWZpY2F0ZUF1dGhvcml0eS5TdGF0ZUID4EEDEiAKE3BlbV9jYV9jZXJ0aWZp", + "Y2F0ZXMYCSADKAlCA+BBAxJkChtjYV9jZXJ0aWZpY2F0ZV9kZXNjcmlwdGlv", + "bnMYCiADKAsyOi5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYx", + "LkNlcnRpZmljYXRlRGVzY3JpcHRpb25CA+BBAxIXCgpnY3NfYnVja2V0GAsg", + "ASgJQgPgQQUSXQoLYWNjZXNzX3VybHMYDCABKAsyQy5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNlcnRpZmljYXRlQXV0aG9yaXR5LkFj", + "Y2Vzc1VybHNCA+BBAxI0CgtjcmVhdGVfdGltZRgNIAEoCzIaLmdvb2dsZS5w", + "cm90b2J1Zi5UaW1lc3RhbXBCA+BBAxI0Cgt1cGRhdGVfdGltZRgOIAEoCzIa", + "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxI0CgtkZWxldGVfdGlt", + "ZRgPIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxI0Cgtl", + "eHBpcmVfdGltZRgQIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBC", + "A+BBAxJZCgZsYWJlbHMYESADKAsyRC5nb29nbGUuY2xvdWQuc2VjdXJpdHku", + "cHJpdmF0ZWNhLnYxLkNlcnRpZmljYXRlQXV0aG9yaXR5LkxhYmVsc0VudHJ5", + "QgPgQQEaSAoKQWNjZXNzVXJscxIhChljYV9jZXJ0aWZpY2F0ZV9hY2Nlc3Nf", + "dXJsGAEgASgJEhcKD2NybF9hY2Nlc3NfdXJscxgCIAMoCRqgAQoOS2V5VmVy", + "c2lvblNwZWMSHwoVY2xvdWRfa21zX2tleV92ZXJzaW9uGAEgASgJSAASXwoJ", + "YWxnb3JpdGhtGAIgASgOMkouZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZh", + "dGVjYS52MS5DZXJ0aWZpY2F0ZUF1dGhvcml0eS5TaWduSGFzaEFsZ29yaXRo", + "bUgAQgwKCktleVZlcnNpb24aLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJ", + "Eg0KBXZhbHVlGAIgASgJOgI4ASI+CgRUeXBlEhQKEFRZUEVfVU5TUEVDSUZJ", + "RUQQABIPCgtTRUxGX1NJR05FRBABEg8KC1NVQk9SRElOQVRFEAIicAoFU3Rh", + "dGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABILCgdFTkFCTEVEEAESDAoIRElT", + "QUJMRUQQAhIKCgZTVEFHRUQQAxIcChhBV0FJVElOR19VU0VSX0FDVElWQVRJ", + "T04QBBILCgdERUxFVEVEEAUi/AEKEVNpZ25IYXNoQWxnb3JpdGhtEiMKH1NJ", + "R05fSEFTSF9BTEdPUklUSE1fVU5TUEVDSUZJRUQQABIXChNSU0FfUFNTXzIw", + "NDhfU0hBMjU2EAESFwoTUlNBX1BTU18zMDcyX1NIQTI1NhACEhcKE1JTQV9Q", + "U1NfNDA5Nl9TSEEyNTYQAxIZChVSU0FfUEtDUzFfMjA0OF9TSEEyNTYQBhIZ", + "ChVSU0FfUEtDUzFfMzA3Ml9TSEEyNTYQBxIZChVSU0FfUEtDUzFfNDA5Nl9T", + "SEEyNTYQCBISCg5FQ19QMjU2X1NIQTI1NhAEEhIKDkVDX1AzODRfU0hBMzg0", + "EAU6nQHqQZkBCi1wcml2YXRlY2EuZ29vZ2xlYXBpcy5jb20vQ2VydGlmaWNh", + "dGVBdXRob3JpdHkSaHByb2plY3RzL3twcm9qZWN0fS9sb2NhdGlvbnMve2xv", + "Y2F0aW9ufS9jYVBvb2xzL3tjYV9wb29sfS9jZXJ0aWZpY2F0ZUF1dGhvcml0", + "aWVzL3tjZXJ0aWZpY2F0ZV9hdXRob3JpdHl9IqEQCgZDYVBvb2wSEQoEbmFt", + "ZRgBIAEoCUID4EEDEkUKBHRpZXIYAiABKA4yLy5nb29nbGUuY2xvdWQuc2Vj", + "dXJpdHkucHJpdmF0ZWNhLnYxLkNhUG9vbC5UaWVyQgbgQQLgQQUSVwoPaXNz", + "dWFuY2VfcG9saWN5GAMgASgLMjkuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnBy", + "aXZhdGVjYS52MS5DYVBvb2wuSXNzdWFuY2VQb2xpY3lCA+BBARJdChJwdWJs", + "aXNoaW5nX29wdGlvbnMYBCABKAsyPC5nb29nbGUuY2xvdWQuc2VjdXJpdHku", + "cHJpdmF0ZWNhLnYxLkNhUG9vbC5QdWJsaXNoaW5nT3B0aW9uc0ID4EEBEksK", + "BmxhYmVscxgFIAMoCzI2Lmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRl", + "Y2EudjEuQ2FQb29sLkxhYmVsc0VudHJ5QgPgQQEa+wEKEVB1Ymxpc2hpbmdP", + "cHRpb25zEhwKD3B1Ymxpc2hfY2FfY2VydBgBIAEoCEID4EEBEhgKC3B1Ymxp", + "c2hfY3JsGAIgASgIQgPgQQESaQoPZW5jb2RpbmdfZm9ybWF0GAMgASgOMksu", + "Z29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5DYVBvb2wuUHVi", + "bGlzaGluZ09wdGlvbnMuRW5jb2RpbmdGb3JtYXRCA+BBASJDCg5FbmNvZGlu", + "Z0Zvcm1hdBIfChtFTkNPRElOR19GT1JNQVRfVU5TUEVDSUZJRUQQABIHCgNQ", + "RU0QARIHCgNERVIQAhrvCQoOSXNzdWFuY2VQb2xpY3kSaAoRYWxsb3dlZF9r", + "ZXlfdHlwZXMYASADKAsySC5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0", + "ZWNhLnYxLkNhUG9vbC5Jc3N1YW5jZVBvbGljeS5BbGxvd2VkS2V5VHlwZUID", + "4EEBEjgKEG1heGltdW1fbGlmZXRpbWUYAiABKAsyGS5nb29nbGUucHJvdG9i", + "dWYuRHVyYXRpb25CA+BBARJsChZhbGxvd2VkX2lzc3VhbmNlX21vZGVzGAMg", + "ASgLMkcuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5DYVBv", + "b2wuSXNzdWFuY2VQb2xpY3kuSXNzdWFuY2VNb2Rlc0ID4EEBElAKD2Jhc2Vs", + "aW5lX3ZhbHVlcxgEIAEoCzIyLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2", + "YXRlY2EudjEuWDUwOVBhcmFtZXRlcnNCA+BBARJlChRpZGVudGl0eV9jb25z", + "dHJhaW50cxgFIAEoCzJCLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRl", + "Y2EudjEuQ2VydGlmaWNhdGVJZGVudGl0eUNvbnN0cmFpbnRzQgPgQQESaAoW", + "cGFzc3Rocm91Z2hfZXh0ZW5zaW9ucxgGIAEoCzJDLmdvb2dsZS5jbG91ZC5z", + "ZWN1cml0eS5wcml2YXRlY2EudjEuQ2VydGlmaWNhdGVFeHRlbnNpb25Db25z", + "dHJhaW50c0ID4EEBGsUECg5BbGxvd2VkS2V5VHlwZRJiCgNyc2EYASABKAsy", + "Uy5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNhUG9vbC5J", + "c3N1YW5jZVBvbGljeS5BbGxvd2VkS2V5VHlwZS5Sc2FLZXlUeXBlSAASbAoO", + "ZWxsaXB0aWNfY3VydmUYAiABKAsyUi5nb29nbGUuY2xvdWQuc2VjdXJpdHku", + "cHJpdmF0ZWNhLnYxLkNhUG9vbC5Jc3N1YW5jZVBvbGljeS5BbGxvd2VkS2V5", + "VHlwZS5FY0tleVR5cGVIABpKCgpSc2FLZXlUeXBlEh0KEG1pbl9tb2R1bHVz", + "X3NpemUYASABKANCA+BBARIdChBtYXhfbW9kdWx1c19zaXplGAIgASgDQgPg", + "QQEaiAIKCUVjS2V5VHlwZRKJAQoTc2lnbmF0dXJlX2FsZ29yaXRobRgBIAEo", + "DjJnLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuQ2FQb29s", + "Lklzc3VhbmNlUG9saWN5LkFsbG93ZWRLZXlUeXBlLkVjS2V5VHlwZS5FY1Np", + "Z25hdHVyZUFsZ29yaXRobUID4EEBIm8KFEVjU2lnbmF0dXJlQWxnb3JpdGht", + "EiYKIkVDX1NJR05BVFVSRV9BTEdPUklUSE1fVU5TUEVDSUZJRUQQABIOCgpF", + "Q0RTQV9QMjU2EAESDgoKRUNEU0FfUDM4NBACEg8KC0VERFNBXzI1NTE5EANC", + "CgoIa2V5X3R5cGUaYAoNSXNzdWFuY2VNb2RlcxIlChhhbGxvd19jc3JfYmFz", + "ZWRfaXNzdWFuY2UYASABKAhCA+BBARIoChthbGxvd19jb25maWdfYmFzZWRf", + "aXNzdWFuY2UYAiABKAhCA+BBARotCgtMYWJlbHNFbnRyeRILCgNrZXkYASAB", + "KAkSDQoFdmFsdWUYAiABKAk6AjgBIjgKBFRpZXISFAoQVElFUl9VTlNQRUNJ", + "RklFRBAAEg4KCkVOVEVSUFJJU0UQARIKCgZERVZPUFMQAjpf6kFcCh9wcml2", + "YXRlY2EuZ29vZ2xlYXBpcy5jb20vQ2FQb29sEjlwcm9qZWN0cy97cHJvamVj", + "dH0vbG9jYXRpb25zL3tsb2NhdGlvbn0vY2FQb29scy97Y2FfcG9vbH0ivAgK", + "GUNlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3QSEQoEbmFtZRgBIAEoCUID4EED", + "EhwKD3NlcXVlbmNlX251bWJlchgCIAEoA0ID4EEDEnMKFHJldm9rZWRfY2Vy", + "dGlmaWNhdGVzGAMgAygLMlAuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZh", + "dGVjYS52MS5DZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0LlJldm9rZWRDZXJ0", + "aWZpY2F0ZUID4EEDEhQKB3BlbV9jcmwYBCABKAlCA+BBAxIXCgphY2Nlc3Nf", + "dXJsGAUgASgJQgPgQQMSVwoFc3RhdGUYBiABKA4yQy5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNlcnRpZmljYXRlUmV2b2NhdGlvbkxp", + "c3QuU3RhdGVCA+BBAxI0CgtjcmVhdGVfdGltZRgHIAEoCzIaLmdvb2dsZS5w", + "cm90b2J1Zi5UaW1lc3RhbXBCA+BBAxI0Cgt1cGRhdGVfdGltZRgIIAEoCzIa", + "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxIYCgtyZXZpc2lvbl9p", + "ZBgJIAEoCUID4EEDEl4KBmxhYmVscxgKIAMoCzJJLmdvb2dsZS5jbG91ZC5z", + "ZWN1cml0eS5wcml2YXRlY2EudjEuQ2VydGlmaWNhdGVSZXZvY2F0aW9uTGlz", + "dC5MYWJlbHNFbnRyeUID4EEBGsABChJSZXZva2VkQ2VydGlmaWNhdGUSPgoL", + "Y2VydGlmaWNhdGUYASABKAlCKfpBJgokcHJpdmF0ZWNhLmdvb2dsZWFwaXMu", + "Y29tL0NlcnRpZmljYXRlEhkKEWhleF9zZXJpYWxfbnVtYmVyGAIgASgJEk8K", + "EXJldm9jYXRpb25fcmVhc29uGAMgASgOMjQuZ29vZ2xlLmNsb3VkLnNlY3Vy", + "aXR5LnByaXZhdGVjYS52MS5SZXZvY2F0aW9uUmVhc29uGi0KC0xhYmVsc0Vu", + "dHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiOgoFU3RhdGUS", + "FQoRU1RBVEVfVU5TUEVDSUZJRUQQABIKCgZBQ1RJVkUQARIOCgpTVVBFUlNF", + "REVEEAI63AHqQdgBCjJwcml2YXRlY2EuZ29vZ2xlYXBpcy5jb20vQ2VydGlm", + "aWNhdGVSZXZvY2F0aW9uTGlzdBKhAXByb2plY3RzL3twcm9qZWN0fS9sb2Nh", + "dGlvbnMve2xvY2F0aW9ufS9jYVBvb2xzL3tjYV9wb29sfS9jZXJ0aWZpY2F0", + "ZUF1dGhvcml0aWVzL3tjZXJ0aWZpY2F0ZV9hdXRob3JpdHl9L2NlcnRpZmlj", + "YXRlUmV2b2NhdGlvbkxpc3RzL3tjZXJ0aWZpY2F0ZV9yZXZvY2F0aW9uX2xp", + "c3R9Io8KCgtDZXJ0aWZpY2F0ZRI6CgRuYW1lGAEgASgJQizgQQP6QSYKJHBy", + "aXZhdGVjYS5nb29nbGVhcGlzLmNvbS9DZXJ0aWZpY2F0ZRIWCgdwZW1fY3Ny", + "GAIgASgJQgPgQQVIABJMCgZjb25maWcYAyABKAsyNS5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNlcnRpZmljYXRlQ29uZmlnQgPgQQVI", + "ABJbChxpc3N1ZXJfY2VydGlmaWNhdGVfYXV0aG9yaXR5GAQgASgJQjXgQQP6", + "QS8KLXByaXZhdGVjYS5nb29nbGVhcGlzLmNvbS9DZXJ0aWZpY2F0ZUF1dGhv", + "cml0eRIzCghsaWZldGltZRgFIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJh", + "dGlvbkIG4EEC4EEFElIKFGNlcnRpZmljYXRlX3RlbXBsYXRlGAYgASgJQjTg", + "QQX6QS4KLHByaXZhdGVjYS5nb29nbGVhcGlzLmNvbS9DZXJ0aWZpY2F0ZVRl", + "bXBsYXRlElEKDHN1YmplY3RfbW9kZRgHIAEoDjI2Lmdvb2dsZS5jbG91ZC5z", + "ZWN1cml0eS5wcml2YXRlY2EudjEuU3ViamVjdFJlcXVlc3RNb2RlQgPgQQUS", + "YgoScmV2b2NhdGlvbl9kZXRhaWxzGAggASgLMkEuZ29vZ2xlLmNsb3VkLnNl", + "Y3VyaXR5LnByaXZhdGVjYS52MS5DZXJ0aWZpY2F0ZS5SZXZvY2F0aW9uRGV0", + "YWlsc0ID4EEDEhwKD3BlbV9jZXJ0aWZpY2F0ZRgJIAEoCUID4EEDEmAKF2Nl", + "cnRpZmljYXRlX2Rlc2NyaXB0aW9uGAogASgLMjouZ29vZ2xlLmNsb3VkLnNl", + "Y3VyaXR5LnByaXZhdGVjYS52MS5DZXJ0aWZpY2F0ZURlc2NyaXB0aW9uQgPg", + "QQMSIgoVcGVtX2NlcnRpZmljYXRlX2NoYWluGAsgAygJQgPgQQMSNAoLY3Jl", + "YXRlX3RpbWUYDCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPg", + "QQMSNAoLdXBkYXRlX3RpbWUYDSABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", + "ZXN0YW1wQgPgQQMSUAoGbGFiZWxzGA4gAygLMjsuZ29vZ2xlLmNsb3VkLnNl", + "Y3VyaXR5LnByaXZhdGVjYS52MS5DZXJ0aWZpY2F0ZS5MYWJlbHNFbnRyeUID", + "4EEBGpgBChFSZXZvY2F0aW9uRGV0YWlscxJOChByZXZvY2F0aW9uX3N0YXRl", + "GAEgASgOMjQuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5S", + "ZXZvY2F0aW9uUmVhc29uEjMKD3Jldm9jYXRpb25fdGltZRgCIAEoCzIaLmdv", + "b2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAaLQoLTGFiZWxzRW50cnkSCwoDa2V5", + "GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ATp/6kF8CiRwcml2YXRlY2EuZ29v", + "Z2xlYXBpcy5jb20vQ2VydGlmaWNhdGUSVHByb2plY3RzL3twcm9qZWN0fS9s", + "b2NhdGlvbnMve2xvY2F0aW9ufS9jYVBvb2xzL3tjYV9wb29sfS9jZXJ0aWZp", + "Y2F0ZXMve2NlcnRpZmljYXRlfUIUChJjZXJ0aWZpY2F0ZV9jb25maWci0QYK", + "E0NlcnRpZmljYXRlVGVtcGxhdGUSQgoEbmFtZRgBIAEoCUI04EED+kEuCixw", + "cml2YXRlY2EuZ29vZ2xlYXBpcy5jb20vQ2VydGlmaWNhdGVUZW1wbGF0ZRI4", + "ChBtYXhpbXVtX2xpZmV0aW1lGAkgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1", + "cmF0aW9uQgPgQQESUgoRcHJlZGVmaW5lZF92YWx1ZXMYAiABKAsyMi5nb29n", + "bGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLlg1MDlQYXJhbWV0ZXJz", + "QgPgQQESZQoUaWRlbnRpdHlfY29uc3RyYWludHMYAyABKAsyQi5nb29nbGUu", + "Y2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNlcnRpZmljYXRlSWRlbnRp", + "dHlDb25zdHJhaW50c0ID4EEBEmgKFnBhc3N0aHJvdWdoX2V4dGVuc2lvbnMY", + "BCABKAsyQy5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNl", + "cnRpZmljYXRlRXh0ZW5zaW9uQ29uc3RyYWludHNCA+BBARIYCgtkZXNjcmlw", + "dGlvbhgFIAEoCUID4EEBEjQKC2NyZWF0ZV90aW1lGAYgASgLMhouZ29vZ2xl", + "LnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEjQKC3VwZGF0ZV90aW1lGAcgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDElgKBmxhYmVscxgI", + "IAMoCzJDLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuQ2Vy", + "dGlmaWNhdGVUZW1wbGF0ZS5MYWJlbHNFbnRyeUID4EEBGi0KC0xhYmVsc0Vu", + "dHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAE6hwHqQYMBCixw", + "cml2YXRlY2EuZ29vZ2xlYXBpcy5jb20vQ2VydGlmaWNhdGVUZW1wbGF0ZRJT", + "cHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L2NlcnRp", + "ZmljYXRlVGVtcGxhdGVzL3tjZXJ0aWZpY2F0ZV90ZW1wbGF0ZX0izgYKDlg1", + "MDlQYXJhbWV0ZXJzEkQKCWtleV91c2FnZRgBIAEoCzIsLmdvb2dsZS5jbG91", + "ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuS2V5VXNhZ2VCA+BBARJVCgpjYV9v", + "cHRpb25zGAIgASgLMjwuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVj", + "YS52MS5YNTA5UGFyYW1ldGVycy5DYU9wdGlvbnNCA+BBARJFCgpwb2xpY3lf", + "aWRzGAMgAygLMiwuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52", + "MS5PYmplY3RJZEID4EEBEh0KEGFpYV9vY3NwX3NlcnZlcnMYBCADKAlCA+BB", + "ARJhChBuYW1lX2NvbnN0cmFpbnRzGAYgASgLMkIuZ29vZ2xlLmNsb3VkLnNl", + "Y3VyaXR5LnByaXZhdGVjYS52MS5YNTA5UGFyYW1ldGVycy5OYW1lQ29uc3Ry", + "YWludHNCA+BBARJVChVhZGRpdGlvbmFsX2V4dGVuc2lvbnMYBSADKAsyMS5n", + "b29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLlg1MDlFeHRlbnNp", + "b25CA+BBARpzCglDYU9wdGlvbnMSFwoFaXNfY2EYASABKAhCA+BBAUgAiAEB", + "EigKFm1heF9pc3N1ZXJfcGF0aF9sZW5ndGgYAiABKAVCA+BBAUgBiAEBQggK", + "Bl9pc19jYUIZChdfbWF4X2lzc3Vlcl9wYXRoX2xlbmd0aBqJAgoPTmFtZUNv", + "bnN0cmFpbnRzEhAKCGNyaXRpY2FsGAEgASgIEhsKE3Blcm1pdHRlZF9kbnNf", + "bmFtZXMYAiADKAkSGgoSZXhjbHVkZWRfZG5zX25hbWVzGAMgAygJEhsKE3Bl", + "cm1pdHRlZF9pcF9yYW5nZXMYBCADKAkSGgoSZXhjbHVkZWRfaXBfcmFuZ2Vz", + "GAUgAygJEiEKGXBlcm1pdHRlZF9lbWFpbF9hZGRyZXNzZXMYBiADKAkSIAoY", + "ZXhjbHVkZWRfZW1haWxfYWRkcmVzc2VzGAcgAygJEhYKDnBlcm1pdHRlZF91", + "cmlzGAggAygJEhUKDWV4Y2x1ZGVkX3VyaXMYCSADKAkiqQIKEVN1Ym9yZGlu", + "YXRlQ29uZmlnElYKFWNlcnRpZmljYXRlX2F1dGhvcml0eRgBIAEoCUI14EEC", + "+kEvCi1wcml2YXRlY2EuZ29vZ2xlYXBpcy5jb20vQ2VydGlmaWNhdGVBdXRo", + "b3JpdHlIABJtChBwZW1faXNzdWVyX2NoYWluGAIgASgLMkwuZ29vZ2xlLmNs", + "b3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5TdWJvcmRpbmF0ZUNvbmZpZy5T", + "dWJvcmRpbmF0ZUNvbmZpZ0NoYWluQgPgQQJIABo3ChZTdWJvcmRpbmF0ZUNv", + "bmZpZ0NoYWluEh0KEHBlbV9jZXJ0aWZpY2F0ZXMYASADKAlCA+BBAkIUChJz", + "dWJvcmRpbmF0ZV9jb25maWcinQEKCVB1YmxpY0tleRIQCgNrZXkYASABKAxC", + "A+BBAhJMCgZmb3JtYXQYAiABKA4yNy5nb29nbGUuY2xvdWQuc2VjdXJpdHku", + "cHJpdmF0ZWNhLnYxLlB1YmxpY0tleS5LZXlGb3JtYXRCA+BBAiIwCglLZXlG", + "b3JtYXQSGgoWS0VZX0ZPUk1BVF9VTlNQRUNJRklFRBAAEgcKA1BFTRABIqwE", + "ChFDZXJ0aWZpY2F0ZUNvbmZpZxJgCg5zdWJqZWN0X2NvbmZpZxgBIAEoCzJD", + "Lmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuQ2VydGlmaWNh", + "dGVDb25maWcuU3ViamVjdENvbmZpZ0ID4EECEkwKC3g1MDlfY29uZmlnGAIg", + "ASgLMjIuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5YNTA5", + "UGFyYW1ldGVyc0ID4EECEkYKCnB1YmxpY19rZXkYAyABKAsyLS5nb29nbGUu", + "Y2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLlB1YmxpY0tleUID4EEBElgK", + "DnN1YmplY3Rfa2V5X2lkGAQgASgLMjsuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5", + "LnByaXZhdGVjYS52MS5DZXJ0aWZpY2F0ZUNvbmZpZy5LZXlJZEID4EEBGqYB", + "Cg1TdWJqZWN0Q29uZmlnEkEKB3N1YmplY3QYASABKAsyKy5nb29nbGUuY2xv", + "dWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLlN1YmplY3RCA+BBARJSChBzdWJq", + "ZWN0X2FsdF9uYW1lGAIgASgLMjMuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnBy", + "aXZhdGVjYS52MS5TdWJqZWN0QWx0TmFtZXNCA+BBARocCgVLZXlJZBITCgZr", + "ZXlfaWQYASABKAlCA+BBAiKhCAoWQ2VydGlmaWNhdGVEZXNjcmlwdGlvbhJq", + "ChNzdWJqZWN0X2Rlc2NyaXB0aW9uGAEgASgLMk0uZ29vZ2xlLmNsb3VkLnNl", + "Y3VyaXR5LnByaXZhdGVjYS52MS5DZXJ0aWZpY2F0ZURlc2NyaXB0aW9uLlN1", + "YmplY3REZXNjcmlwdGlvbhJMChB4NTA5X2Rlc2NyaXB0aW9uGAIgASgLMjIu", + "Z29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5YNTA5UGFyYW1l", + "dGVycxJBCgpwdWJsaWNfa2V5GAMgASgLMi0uZ29vZ2xlLmNsb3VkLnNlY3Vy", + "aXR5LnByaXZhdGVjYS52MS5QdWJsaWNLZXkSWAoOc3ViamVjdF9rZXlfaWQY", + "BCABKAsyQC5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNl", + "cnRpZmljYXRlRGVzY3JpcHRpb24uS2V5SWQSWgoQYXV0aG9yaXR5X2tleV9p", + "ZBgFIAEoCzJALmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEu", + "Q2VydGlmaWNhdGVEZXNjcmlwdGlvbi5LZXlJZBIfChdjcmxfZGlzdHJpYnV0", + "aW9uX3BvaW50cxgGIAMoCRIkChxhaWFfaXNzdWluZ19jZXJ0aWZpY2F0ZV91", + "cmxzGAcgAygJEmsKEGNlcnRfZmluZ2VycHJpbnQYCCABKAsyUS5nb29nbGUu", + "Y2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNlcnRpZmljYXRlRGVzY3Jp", + "cHRpb24uQ2VydGlmaWNhdGVGaW5nZXJwcmludBrSAgoSU3ViamVjdERlc2Ny", + "aXB0aW9uEjwKB3N1YmplY3QYASABKAsyKy5nb29nbGUuY2xvdWQuc2VjdXJp", + "dHkucHJpdmF0ZWNhLnYxLlN1YmplY3QSTQoQc3ViamVjdF9hbHRfbmFtZRgC", + "IAEoCzIzLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuU3Vi", + "amVjdEFsdE5hbWVzEhkKEWhleF9zZXJpYWxfbnVtYmVyGAMgASgJEisKCGxp", + "ZmV0aW1lGAQgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEjMKD25v", + "dF9iZWZvcmVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", + "bXASMgoObm90X2FmdGVyX3RpbWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wGhwKBUtleUlkEhMKBmtleV9pZBgBIAEoCUID4EEBGi0KFkNl", + "cnRpZmljYXRlRmluZ2VycHJpbnQSEwoLc2hhMjU2X2hhc2gYASABKAkiJwoI", + "T2JqZWN0SWQSGwoOb2JqZWN0X2lkX3BhdGgYASADKAVCA+BBAiKAAQoNWDUw", + "OUV4dGVuc2lvbhJECglvYmplY3RfaWQYASABKAsyLC5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHkucHJpdmF0ZWNhLnYxLk9iamVjdElkQgPgQQISFQoIY3JpdGlj", + "YWwYAiABKAhCA+BBARISCgV2YWx1ZRgDIAEoDEID4EECIqIFCghLZXlVc2Fn", + "ZRJUCg5iYXNlX2tleV91c2FnZRgBIAEoCzI8Lmdvb2dsZS5jbG91ZC5zZWN1", + "cml0eS5wcml2YXRlY2EudjEuS2V5VXNhZ2UuS2V5VXNhZ2VPcHRpb25zEmAK", + "EmV4dGVuZGVkX2tleV91c2FnZRgCIAEoCzJELmdvb2dsZS5jbG91ZC5zZWN1", + "cml0eS5wcml2YXRlY2EudjEuS2V5VXNhZ2UuRXh0ZW5kZWRLZXlVc2FnZU9w", + "dGlvbnMSUQobdW5rbm93bl9leHRlbmRlZF9rZXlfdXNhZ2VzGAMgAygLMiwu", + "Z29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5PYmplY3RJZBrn", + "AQoPS2V5VXNhZ2VPcHRpb25zEhkKEWRpZ2l0YWxfc2lnbmF0dXJlGAEgASgI", + "EhoKEmNvbnRlbnRfY29tbWl0bWVudBgCIAEoCBIYChBrZXlfZW5jaXBoZXJt", + "ZW50GAMgASgIEhkKEWRhdGFfZW5jaXBoZXJtZW50GAQgASgIEhUKDWtleV9h", + "Z3JlZW1lbnQYBSABKAgSEQoJY2VydF9zaWduGAYgASgIEhAKCGNybF9zaWdu", + "GAcgASgIEhUKDWVuY2lwaGVyX29ubHkYCCABKAgSFQoNZGVjaXBoZXJfb25s", + "eRgJIAEoCBqgAQoXRXh0ZW5kZWRLZXlVc2FnZU9wdGlvbnMSEwoLc2VydmVy", + "X2F1dGgYASABKAgSEwoLY2xpZW50X2F1dGgYAiABKAgSFAoMY29kZV9zaWdu", + "aW5nGAMgASgIEhgKEGVtYWlsX3Byb3RlY3Rpb24YBCABKAgSFQoNdGltZV9z", + "dGFtcGluZxgFIAEoCBIUCgxvY3NwX3NpZ25pbmcYBiABKAgiuAEKB1N1Ympl", + "Y3QSEwoLY29tbW9uX25hbWUYASABKAkSFAoMY291bnRyeV9jb2RlGAIgASgJ", + "EhQKDG9yZ2FuaXphdGlvbhgDIAEoCRIbChNvcmdhbml6YXRpb25hbF91bml0", + "GAQgASgJEhAKCGxvY2FsaXR5GAUgASgJEhAKCHByb3ZpbmNlGAYgASgJEhYK", + "DnN0cmVldF9hZGRyZXNzGAcgASgJEhMKC3Bvc3RhbF9jb2RlGAggASgJIqkB", + "Cg9TdWJqZWN0QWx0TmFtZXMSEQoJZG5zX25hbWVzGAEgAygJEgwKBHVyaXMY", + "AiADKAkSFwoPZW1haWxfYWRkcmVzc2VzGAMgAygJEhQKDGlwX2FkZHJlc3Nl", + "cxgEIAMoCRJGCgtjdXN0b21fc2FucxgFIAMoCzIxLmdvb2dsZS5jbG91ZC5z", + "ZWN1cml0eS5wcml2YXRlY2EudjEuWDUwOUV4dGVuc2lvbiL6AQoeQ2VydGlm", + "aWNhdGVJZGVudGl0eUNvbnN0cmFpbnRzEi4KDmNlbF9leHByZXNzaW9uGAEg", + "ASgLMhEuZ29vZ2xlLnR5cGUuRXhwckID4EEBEisKGWFsbG93X3N1YmplY3Rf", + "cGFzc3Rocm91Z2gYAiABKAhCA+BBAkgAiAEBEjUKI2FsbG93X3N1YmplY3Rf", + "YWx0X25hbWVzX3Bhc3N0aHJvdWdoGAMgASgIQgPgQQJIAYgBAUIcChpfYWxs", + "b3dfc3ViamVjdF9wYXNzdGhyb3VnaEImCiRfYWxsb3dfc3ViamVjdF9hbHRf", + "bmFtZXNfcGFzc3Rocm91Z2gitAMKH0NlcnRpZmljYXRlRXh0ZW5zaW9uQ29u", + "c3RyYWludHMSfAoQa25vd25fZXh0ZW5zaW9ucxgBIAMoDjJdLmdvb2dsZS5j", + "bG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuQ2VydGlmaWNhdGVFeHRlbnNp", + "b25Db25zdHJhaW50cy5Lbm93bkNlcnRpZmljYXRlRXh0ZW5zaW9uQgPgQQES", + "UAoVYWRkaXRpb25hbF9leHRlbnNpb25zGAIgAygLMiwuZ29vZ2xlLmNsb3Vk", + "LnNlY3VyaXR5LnByaXZhdGVjYS52MS5PYmplY3RJZEID4EEBIsABChlLbm93", + "bkNlcnRpZmljYXRlRXh0ZW5zaW9uEisKJ0tOT1dOX0NFUlRJRklDQVRFX0VY", + "VEVOU0lPTl9VTlNQRUNJRklFRBAAEhIKDkJBU0VfS0VZX1VTQUdFEAESFgoS", + "RVhURU5ERURfS0VZX1VTQUdFEAISDgoKQ0FfT1BUSU9OUxADEg4KClBPTElD", + "WV9JRFMQBBIUChBBSUFfT0NTUF9TRVJWRVJTEAUSFAoQTkFNRV9DT05TVFJB", + "SU5UUxAGKocCChBSZXZvY2F0aW9uUmVhc29uEiEKHVJFVk9DQVRJT05fUkVB", + "U09OX1VOU1BFQ0lGSUVEEAASEgoOS0VZX0NPTVBST01JU0UQARIkCiBDRVJU", + "SUZJQ0FURV9BVVRIT1JJVFlfQ09NUFJPTUlTRRACEhcKE0FGRklMSUFUSU9O", + "X0NIQU5HRUQQAxIOCgpTVVBFUlNFREVEEAQSGgoWQ0VTU0FUSU9OX09GX09Q", + "RVJBVElPThAFEhQKEENFUlRJRklDQVRFX0hPTEQQBhIXChNQUklWSUxFR0Vf", + "V0lUSERSQVdOEAcSIgoeQVRUUklCVVRFX0FVVEhPUklUWV9DT01QUk9NSVNF", + "EAgqXQoSU3ViamVjdFJlcXVlc3RNb2RlEiQKIFNVQkpFQ1RfUkVRVUVTVF9N", + "T0RFX1VOU1BFQ0lGSUVEEAASCwoHREVGQVVMVBABEhQKEFJFRkxFQ1RFRF9T", + "UElGRkUQAkL/AQomY29tLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRl", + "Y2EudjFCF1ByaXZhdGVDYVJlc291cmNlc1Byb3RvUAFaRGNsb3VkLmdvb2ds", + "ZS5jb20vZ28vc2VjdXJpdHkvcHJpdmF0ZWNhL2FwaXYxL3ByaXZhdGVjYXBi", + "O3ByaXZhdGVjYXBi+AEBqgIiR29vZ2xlLkNsb3VkLlNlY3VyaXR5LlByaXZh", + "dGVDQS5WMcoCIkdvb2dsZVxDbG91ZFxTZWN1cml0eVxQcml2YXRlQ0FcVjHq", + "AiZHb29nbGU6OkNsb3VkOjpTZWN1cml0eTo6UHJpdmF0ZUNBOjpWMWIGcHJv", + "dG8z")); + 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, global::Google.Type.ExprReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.Security.PrivateCA.V1.RevocationReason), typeof(global::Google.Cloud.Security.PrivateCA.V1.SubjectRequestMode), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority), global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Parser, new[]{ "Name", "Type", "Config", "Lifetime", "KeySpec", "SubordinateConfig", "Tier", "State", "PemCaCertificates", "CaCertificateDescriptions", "GcsBucket", "AccessUrls", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "Labels" }, null, new[]{ typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.Type), typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.State), typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.SignHashAlgorithm) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.AccessUrls), global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.AccessUrls.Parser, new[]{ "CaCertificateAccessUrl", "CrlAccessUrls" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.KeyVersionSpec), global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.KeyVersionSpec.Parser, new[]{ "CloudKmsKeyVersion", "Algorithm" }, new[]{ "KeyVersion" }, null, null, null), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CaPool), global::Google.Cloud.Security.PrivateCA.V1.CaPool.Parser, new[]{ "Name", "Tier", "IssuancePolicy", "PublishingOptions", "Labels" }, null, new[]{ typeof(global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions), global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions.Parser, new[]{ "PublishCaCert", "PublishCrl", "EncodingFormat" }, null, new[]{ typeof(global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions.Types.EncodingFormat) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy), global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Parser, new[]{ "AllowedKeyTypes", "MaximumLifetime", "AllowedIssuanceModes", "BaselineValues", "IdentityConstraints", "PassthroughExtensions" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType), global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Parser, new[]{ "Rsa", "EllipticCurve" }, new[]{ "KeyType" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.RsaKeyType), global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.RsaKeyType.Parser, new[]{ "MinModulusSize", "MaxModulusSize" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType), global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType.Parser, new[]{ "SignatureAlgorithm" }, null, new[]{ typeof(global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType.Types.EcSignatureAlgorithm) }, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.IssuanceModes), global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.IssuanceModes.Parser, new[]{ "AllowCsrBasedIssuance", "AllowConfigBasedIssuance" }, null, null, null, null)}), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList), global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Parser, new[]{ "Name", "SequenceNumber", "RevokedCertificates", "PemCrl", "AccessUrl", "State", "CreateTime", "UpdateTime", "RevisionId", "Labels" }, null, new[]{ typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.RevokedCertificate), global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.RevokedCertificate.Parser, new[]{ "Certificate", "HexSerialNumber", "RevocationReason" }, null, null, null, null), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.Certificate), global::Google.Cloud.Security.PrivateCA.V1.Certificate.Parser, new[]{ "Name", "PemCsr", "Config", "IssuerCertificateAuthority", "Lifetime", "CertificateTemplate", "SubjectMode", "RevocationDetails", "PemCertificate", "CertificateDescription", "PemCertificateChain", "CreateTime", "UpdateTime", "Labels" }, new[]{ "CertificateConfig" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.Certificate.Types.RevocationDetails), global::Google.Cloud.Security.PrivateCA.V1.Certificate.Types.RevocationDetails.Parser, new[]{ "RevocationState", "RevocationTime" }, null, null, null, null), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate), global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate.Parser, new[]{ "Name", "MaximumLifetime", "PredefinedValues", "IdentityConstraints", "PassthroughExtensions", "Description", "CreateTime", "UpdateTime", "Labels" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.X509Parameters), global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Parser, new[]{ "KeyUsage", "CaOptions", "PolicyIds", "AiaOcspServers", "NameConstraints", "AdditionalExtensions" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.CaOptions), global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.CaOptions.Parser, new[]{ "IsCa", "MaxIssuerPathLength" }, new[]{ "IsCa", "MaxIssuerPathLength" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.NameConstraints), global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.NameConstraints.Parser, new[]{ "Critical", "PermittedDnsNames", "ExcludedDnsNames", "PermittedIpRanges", "ExcludedIpRanges", "PermittedEmailAddresses", "ExcludedEmailAddresses", "PermittedUris", "ExcludedUris" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig), global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig.Parser, new[]{ "CertificateAuthority", "PemIssuerChain" }, new[]{ "SubordinateConfig" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig.Types.SubordinateConfigChain), global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig.Types.SubordinateConfigChain.Parser, new[]{ "PemCertificates" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.PublicKey), global::Google.Cloud.Security.PrivateCA.V1.PublicKey.Parser, new[]{ "Key", "Format" }, null, new[]{ typeof(global::Google.Cloud.Security.PrivateCA.V1.PublicKey.Types.KeyFormat) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig), global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Parser, new[]{ "SubjectConfig", "X509Config", "PublicKey", "SubjectKeyId" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.SubjectConfig), global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.SubjectConfig.Parser, new[]{ "Subject", "SubjectAltName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.KeyId), global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.KeyId.Parser, new[]{ "KeyId_" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription), global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Parser, new[]{ "SubjectDescription", "X509Description", "PublicKey", "SubjectKeyId", "AuthorityKeyId", "CrlDistributionPoints", "AiaIssuingCertificateUrls", "CertFingerprint" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.SubjectDescription), global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.SubjectDescription.Parser, new[]{ "Subject", "SubjectAltName", "HexSerialNumber", "Lifetime", "NotBeforeTime", "NotAfterTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.KeyId), global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.KeyId.Parser, new[]{ "KeyId_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.CertificateFingerprint), global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.CertificateFingerprint.Parser, new[]{ "Sha256Hash" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.ObjectId), global::Google.Cloud.Security.PrivateCA.V1.ObjectId.Parser, new[]{ "ObjectIdPath" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.X509Extension), global::Google.Cloud.Security.PrivateCA.V1.X509Extension.Parser, new[]{ "ObjectId", "Critical", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.KeyUsage), global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Parser, new[]{ "BaseKeyUsage", "ExtendedKeyUsage", "UnknownExtendedKeyUsages" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.KeyUsageOptions), global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.KeyUsageOptions.Parser, new[]{ "DigitalSignature", "ContentCommitment", "KeyEncipherment", "DataEncipherment", "KeyAgreement", "CertSign", "CrlSign", "EncipherOnly", "DecipherOnly" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.ExtendedKeyUsageOptions), global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.ExtendedKeyUsageOptions.Parser, new[]{ "ServerAuth", "ClientAuth", "CodeSigning", "EmailProtection", "TimeStamping", "OcspSigning" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.Subject), global::Google.Cloud.Security.PrivateCA.V1.Subject.Parser, new[]{ "CommonName", "CountryCode", "Organization", "OrganizationalUnit", "Locality", "Province", "StreetAddress", "PostalCode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.SubjectAltNames), global::Google.Cloud.Security.PrivateCA.V1.SubjectAltNames.Parser, new[]{ "DnsNames", "Uris", "EmailAddresses", "IpAddresses", "CustomSans" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateIdentityConstraints), global::Google.Cloud.Security.PrivateCA.V1.CertificateIdentityConstraints.Parser, new[]{ "CelExpression", "AllowSubjectPassthrough", "AllowSubjectAltNamesPassthrough" }, new[]{ "AllowSubjectPassthrough", "AllowSubjectAltNamesPassthrough" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints), global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints.Parser, new[]{ "KnownExtensions", "AdditionalExtensions" }, null, new[]{ typeof(global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints.Types.KnownCertificateExtension) }, null, null) + })); + } + #endregion + + } + #region Enums + /// + /// A [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] + /// indicates whether a + /// [Certificate][google.cloud.security.privateca.v1.Certificate] has been + /// revoked, and the reason for revocation. These correspond to standard + /// revocation reasons from RFC 5280. Note that the enum labels and values in + /// this definition are not the same ASN.1 values defined in RFC 5280. These + /// values will be translated to the correct ASN.1 values when a CRL is created. + /// + public enum RevocationReason { + /// + /// Default unspecified value. This value does indicate that a + /// [Certificate][google.cloud.security.privateca.v1.Certificate] has been + /// revoked, but that a reason has not been recorded. + /// + [pbr::OriginalName("REVOCATION_REASON_UNSPECIFIED")] Unspecified = 0, + /// + /// Key material for this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] may have + /// leaked. + /// + [pbr::OriginalName("KEY_COMPROMISE")] KeyCompromise = 1, + /// + /// The key material for a certificate authority in the issuing path may have + /// leaked. + /// + [pbr::OriginalName("CERTIFICATE_AUTHORITY_COMPROMISE")] CertificateAuthorityCompromise = 2, + /// + /// The subject or other attributes in this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] have changed. + /// + [pbr::OriginalName("AFFILIATION_CHANGED")] AffiliationChanged = 3, + /// + /// This [Certificate][google.cloud.security.privateca.v1.Certificate] has been + /// superseded. + /// + [pbr::OriginalName("SUPERSEDED")] Superseded = 4, + /// + /// This [Certificate][google.cloud.security.privateca.v1.Certificate] or + /// entities in the issuing path have ceased to operate. + /// + [pbr::OriginalName("CESSATION_OF_OPERATION")] CessationOfOperation = 5, + /// + /// This [Certificate][google.cloud.security.privateca.v1.Certificate] should + /// not be considered valid, it is expected that it may become valid in the + /// future. + /// + [pbr::OriginalName("CERTIFICATE_HOLD")] CertificateHold = 6, + /// + /// This [Certificate][google.cloud.security.privateca.v1.Certificate] no + /// longer has permission to assert the listed attributes. + /// + [pbr::OriginalName("PRIVILEGE_WITHDRAWN")] PrivilegeWithdrawn = 7, + /// + /// The authority which determines appropriate attributes for a + /// [Certificate][google.cloud.security.privateca.v1.Certificate] may have been + /// compromised. + /// + [pbr::OriginalName("ATTRIBUTE_AUTHORITY_COMPROMISE")] AttributeAuthorityCompromise = 8, + } + + /// + /// Describes the way in which a + /// [Certificate][google.cloud.security.privateca.v1.Certificate]'s + /// [Subject][google.cloud.security.privateca.v1.Subject] and/or + /// [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be + /// resolved. + /// + public enum SubjectRequestMode { + /// + /// Not specified. + /// + [pbr::OriginalName("SUBJECT_REQUEST_MODE_UNSPECIFIED")] Unspecified = 0, + /// + /// The default mode used in most cases. Indicates that the certificate's + /// [Subject][google.cloud.security.privateca.v1.Subject] and/or + /// [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] are + /// specified in the certificate request. This mode requires the caller to have + /// the `privateca.certificates.create` permission. + /// + [pbr::OriginalName("DEFAULT")] Default = 1, + /// + /// A mode reserved for special cases. Indicates that the certificate should + /// have one SPIFFE + /// [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] set + /// by the service based on the caller's identity. This mode will ignore any + /// explicitly specified [Subject][google.cloud.security.privateca.v1.Subject] + /// and/or + /// [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] in + /// the certificate request. This mode requires the caller to have the + /// `privateca.certificates.createForSelf` permission. + /// + [pbr::OriginalName("REFLECTED_SPIFFE")] ReflectedSpiffe = 2, + } + + #endregion + + #region Messages + /// + /// A + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// represents an individual Certificate Authority. A + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// can be used to create + /// [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CertificateAuthority : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CertificateAuthority()); + 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.Security.PrivateCA.V1.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 CertificateAuthority() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateAuthority(CertificateAuthority other) : this() { + name_ = other.name_; + type_ = other.type_; + config_ = other.config_ != null ? other.config_.Clone() : null; + lifetime_ = other.lifetime_ != null ? other.lifetime_.Clone() : null; + keySpec_ = other.keySpec_ != null ? other.keySpec_.Clone() : null; + subordinateConfig_ = other.subordinateConfig_ != null ? other.subordinateConfig_.Clone() : null; + tier_ = other.tier_; + state_ = other.state_; + pemCaCertificates_ = other.pemCaCertificates_.Clone(); + caCertificateDescriptions_ = other.caCertificateDescriptions_.Clone(); + gcsBucket_ = other.gcsBucket_; + accessUrls_ = other.accessUrls_ != null ? other.accessUrls_.Clone() : null; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + deleteTime_ = other.deleteTime_ != null ? other.deleteTime_.Clone() : null; + expireTime_ = other.expireTime_ != null ? other.expireTime_.Clone() : null; + labels_ = other.labels_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateAuthority Clone() { + return new CertificateAuthority(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + [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 "type" field. + public const int TypeFieldNumber = 2; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.Type type_ = global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.Type.Unspecified; + /// + /// Required. Immutable. The + /// [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of + /// this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.Type Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "config" field. + public const int ConfigFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig config_; + /// + /// Required. Immutable. The config used to create a self-signed X.509 + /// certificate or CSR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig Config { + get { return config_; } + set { + config_ = value; + } + } + + /// Field number for the "lifetime" field. + public const int LifetimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration lifetime_; + /// + /// Required. Immutable. The desired lifetime of the CA certificate. Used to + /// create the "not_before_time" and "not_after_time" fields inside an X.509 + /// certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration Lifetime { + get { return lifetime_; } + set { + lifetime_ = value; + } + } + + /// Field number for the "key_spec" field. + public const int KeySpecFieldNumber = 5; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.KeyVersionSpec keySpec_; + /// + /// Required. Immutable. Used when issuing certificates for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// If this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// is a self-signed CertificateAuthority, this key is also used to sign the + /// self-signed CA certificate. Otherwise, it is used to sign a CSR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.KeyVersionSpec KeySpec { + get { return keySpec_; } + set { + keySpec_ = value; + } + } + + /// Field number for the "subordinate_config" field. + public const int SubordinateConfigFieldNumber = 6; + private global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig subordinateConfig_; + /// + /// Optional. If this is a subordinate + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], + /// this field will be set with the subordinate configuration, which describes + /// its issuers. This may be updated, but this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// must continue to validate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig SubordinateConfig { + get { return subordinateConfig_; } + set { + subordinateConfig_ = value; + } + } + + /// Field number for the "tier" field. + public const int TierFieldNumber = 7; + private global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier tier_ = global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier.Unspecified; + /// + /// Output only. The + /// [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier Tier { + get { return tier_; } + set { + tier_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 8; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.State state_ = global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.State.Unspecified; + /// + /// Output only. The + /// [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for + /// this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "pem_ca_certificates" field. + public const int PemCaCertificatesFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_pemCaCertificates_codec + = pb::FieldCodec.ForString(74); + private readonly pbc::RepeatedField pemCaCertificates_ = new pbc::RepeatedField(); + /// + /// Output only. This + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s + /// certificate chain, including the current + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s + /// certificate. Ordered such that the root issuer is the final element + /// (consistent with RFC 5246). For a self-signed CA, this will only list the + /// current + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s + /// certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PemCaCertificates { + get { return pemCaCertificates_; } + } + + /// Field number for the "ca_certificate_descriptions" field. + public const int CaCertificateDescriptionsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_caCertificateDescriptions_codec + = pb::FieldCodec.ForMessage(82, global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Parser); + private readonly pbc::RepeatedField caCertificateDescriptions_ = new pbc::RepeatedField(); + /// + /// Output only. A structured description of this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s + /// CA certificate and its issuers. Ordered as self-to-root. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CaCertificateDescriptions { + get { return caCertificateDescriptions_; } + } + + /// Field number for the "gcs_bucket" field. + public const int GcsBucketFieldNumber = 11; + private string gcsBucket_ = ""; + /// + /// Immutable. The name of a Cloud Storage bucket where this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// will publish content, such as the CA certificate and CRLs. This must be a + /// bucket name, without any prefixes (such as `gs://`) or suffixes (such as + /// `.googleapis.com`). For example, to use a bucket named `my-bucket`, you + /// would simply specify `my-bucket`. If not specified, a managed bucket will + /// be created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GcsBucket { + get { return gcsBucket_; } + set { + gcsBucket_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "access_urls" field. + public const int AccessUrlsFieldNumber = 12; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.AccessUrls accessUrls_; + /// + /// Output only. URLs for accessing content published by this CA, such as the + /// CA certificate and CRLs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.AccessUrls AccessUrls { + get { return accessUrls_; } + set { + accessUrls_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 13; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time at which this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// 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 "update_time" field. + public const int UpdateTimeFieldNumber = 14; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time at which this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "delete_time" field. + public const int DeleteTimeFieldNumber = 15; + private global::Google.Protobuf.WellKnownTypes.Timestamp deleteTime_; + /// + /// Output only. The time at which this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// was soft deleted, if it is in the + /// [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] + /// state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp DeleteTime { + get { return deleteTime_; } + set { + deleteTime_ = value; + } + } + + /// Field number for the "expire_time" field. + public const int ExpireTimeFieldNumber = 16; + private global::Google.Protobuf.WellKnownTypes.Timestamp expireTime_; + /// + /// Output only. The time at which this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// will be permanently purged, if it is in the + /// [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] + /// state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpireTime { + get { return expireTime_; } + set { + expireTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 17; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 138); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Optional. Labels with user-defined metadata. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CertificateAuthority); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CertificateAuthority other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Type != other.Type) return false; + if (!object.Equals(Config, other.Config)) return false; + if (!object.Equals(Lifetime, other.Lifetime)) return false; + if (!object.Equals(KeySpec, other.KeySpec)) return false; + if (!object.Equals(SubordinateConfig, other.SubordinateConfig)) return false; + if (Tier != other.Tier) return false; + if (State != other.State) return false; + if(!pemCaCertificates_.Equals(other.pemCaCertificates_)) return false; + if(!caCertificateDescriptions_.Equals(other.caCertificateDescriptions_)) return false; + if (GcsBucket != other.GcsBucket) return false; + if (!object.Equals(AccessUrls, other.AccessUrls)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(DeleteTime, other.DeleteTime)) return false; + if (!object.Equals(ExpireTime, other.ExpireTime)) return false; + if (!Labels.Equals(other.Labels)) 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 (Type != global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.Type.Unspecified) hash ^= Type.GetHashCode(); + if (config_ != null) hash ^= Config.GetHashCode(); + if (lifetime_ != null) hash ^= Lifetime.GetHashCode(); + if (keySpec_ != null) hash ^= KeySpec.GetHashCode(); + if (subordinateConfig_ != null) hash ^= SubordinateConfig.GetHashCode(); + if (Tier != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier.Unspecified) hash ^= Tier.GetHashCode(); + if (State != global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.State.Unspecified) hash ^= State.GetHashCode(); + hash ^= pemCaCertificates_.GetHashCode(); + hash ^= caCertificateDescriptions_.GetHashCode(); + if (GcsBucket.Length != 0) hash ^= GcsBucket.GetHashCode(); + if (accessUrls_ != null) hash ^= AccessUrls.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (deleteTime_ != null) hash ^= DeleteTime.GetHashCode(); + if (expireTime_ != null) hash ^= ExpireTime.GetHashCode(); + hash ^= Labels.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 (Type != global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.Type.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (config_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Config); + } + if (lifetime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Lifetime); + } + if (keySpec_ != null) { + output.WriteRawTag(42); + output.WriteMessage(KeySpec); + } + if (subordinateConfig_ != null) { + output.WriteRawTag(50); + output.WriteMessage(SubordinateConfig); + } + if (Tier != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) Tier); + } + if (State != global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.State.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) State); + } + pemCaCertificates_.WriteTo(output, _repeated_pemCaCertificates_codec); + caCertificateDescriptions_.WriteTo(output, _repeated_caCertificateDescriptions_codec); + if (GcsBucket.Length != 0) { + output.WriteRawTag(90); + output.WriteString(GcsBucket); + } + if (accessUrls_ != null) { + output.WriteRawTag(98); + output.WriteMessage(AccessUrls); + } + if (createTime_ != null) { + output.WriteRawTag(106); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(114); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(122); + output.WriteMessage(DeleteTime); + } + if (expireTime_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(ExpireTime); + } + labels_.WriteTo(output, _map_labels_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) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Type != global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.Type.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (config_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Config); + } + if (lifetime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Lifetime); + } + if (keySpec_ != null) { + output.WriteRawTag(42); + output.WriteMessage(KeySpec); + } + if (subordinateConfig_ != null) { + output.WriteRawTag(50); + output.WriteMessage(SubordinateConfig); + } + if (Tier != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) Tier); + } + if (State != global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.State.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) State); + } + pemCaCertificates_.WriteTo(ref output, _repeated_pemCaCertificates_codec); + caCertificateDescriptions_.WriteTo(ref output, _repeated_caCertificateDescriptions_codec); + if (GcsBucket.Length != 0) { + output.WriteRawTag(90); + output.WriteString(GcsBucket); + } + if (accessUrls_ != null) { + output.WriteRawTag(98); + output.WriteMessage(AccessUrls); + } + if (createTime_ != null) { + output.WriteRawTag(106); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(114); + output.WriteMessage(UpdateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(122); + output.WriteMessage(DeleteTime); + } + if (expireTime_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(ExpireTime); + } + labels_.WriteTo(ref output, _map_labels_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; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Type != global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.Type.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (config_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Config); + } + if (lifetime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lifetime); + } + if (keySpec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeySpec); + } + if (subordinateConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubordinateConfig); + } + if (Tier != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Tier); + } + if (State != global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + size += pemCaCertificates_.CalculateSize(_repeated_pemCaCertificates_codec); + size += caCertificateDescriptions_.CalculateSize(_repeated_caCertificateDescriptions_codec); + if (GcsBucket.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GcsBucket); + } + if (accessUrls_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccessUrls); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (deleteTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeleteTime); + } + if (expireTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExpireTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CertificateAuthority other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Type != global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.Type.Unspecified) { + Type = other.Type; + } + if (other.config_ != null) { + if (config_ == null) { + Config = new global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig(); + } + Config.MergeFrom(other.Config); + } + if (other.lifetime_ != null) { + if (lifetime_ == null) { + Lifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + Lifetime.MergeFrom(other.Lifetime); + } + if (other.keySpec_ != null) { + if (keySpec_ == null) { + KeySpec = new global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.KeyVersionSpec(); + } + KeySpec.MergeFrom(other.KeySpec); + } + if (other.subordinateConfig_ != null) { + if (subordinateConfig_ == null) { + SubordinateConfig = new global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig(); + } + SubordinateConfig.MergeFrom(other.SubordinateConfig); + } + if (other.Tier != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier.Unspecified) { + Tier = other.Tier; + } + if (other.State != global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.State.Unspecified) { + State = other.State; + } + pemCaCertificates_.Add(other.pemCaCertificates_); + caCertificateDescriptions_.Add(other.caCertificateDescriptions_); + if (other.GcsBucket.Length != 0) { + GcsBucket = other.GcsBucket; + } + if (other.accessUrls_ != null) { + if (accessUrls_ == null) { + AccessUrls = new global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.AccessUrls(); + } + AccessUrls.MergeFrom(other.AccessUrls); + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.deleteTime_ != null) { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + DeleteTime.MergeFrom(other.DeleteTime); + } + if (other.expireTime_ != null) { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpireTime.MergeFrom(other.ExpireTime); + } + labels_.MergeFrom(other.labels_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Type = (global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.Type) input.ReadEnum(); + break; + } + case 26: { + if (config_ == null) { + Config = new global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig(); + } + input.ReadMessage(Config); + break; + } + case 34: { + if (lifetime_ == null) { + Lifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Lifetime); + break; + } + case 42: { + if (keySpec_ == null) { + KeySpec = new global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.KeyVersionSpec(); + } + input.ReadMessage(KeySpec); + break; + } + case 50: { + if (subordinateConfig_ == null) { + SubordinateConfig = new global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig(); + } + input.ReadMessage(SubordinateConfig); + break; + } + case 56: { + Tier = (global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier) input.ReadEnum(); + break; + } + case 64: { + State = (global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.State) input.ReadEnum(); + break; + } + case 74: { + pemCaCertificates_.AddEntriesFrom(input, _repeated_pemCaCertificates_codec); + break; + } + case 82: { + caCertificateDescriptions_.AddEntriesFrom(input, _repeated_caCertificateDescriptions_codec); + break; + } + case 90: { + GcsBucket = input.ReadString(); + break; + } + case 98: { + if (accessUrls_ == null) { + AccessUrls = new global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.AccessUrls(); + } + input.ReadMessage(AccessUrls); + break; + } + case 106: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 114: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 122: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 130: { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpireTime); + break; + } + case 138: { + labels_.AddEntriesFrom(input, _map_labels_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: { + Name = input.ReadString(); + break; + } + case 16: { + Type = (global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.Type) input.ReadEnum(); + break; + } + case 26: { + if (config_ == null) { + Config = new global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig(); + } + input.ReadMessage(Config); + break; + } + case 34: { + if (lifetime_ == null) { + Lifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Lifetime); + break; + } + case 42: { + if (keySpec_ == null) { + KeySpec = new global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.KeyVersionSpec(); + } + input.ReadMessage(KeySpec); + break; + } + case 50: { + if (subordinateConfig_ == null) { + SubordinateConfig = new global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig(); + } + input.ReadMessage(SubordinateConfig); + break; + } + case 56: { + Tier = (global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier) input.ReadEnum(); + break; + } + case 64: { + State = (global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.State) input.ReadEnum(); + break; + } + case 74: { + pemCaCertificates_.AddEntriesFrom(ref input, _repeated_pemCaCertificates_codec); + break; + } + case 82: { + caCertificateDescriptions_.AddEntriesFrom(ref input, _repeated_caCertificateDescriptions_codec); + break; + } + case 90: { + GcsBucket = input.ReadString(); + break; + } + case 98: { + if (accessUrls_ == null) { + AccessUrls = new global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.AccessUrls(); + } + input.ReadMessage(AccessUrls); + break; + } + case 106: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 114: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 122: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 130: { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpireTime); + break; + } + case 138: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CertificateAuthority message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type of a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], + /// indicating its issuing chain. + /// + public enum Type { + /// + /// Not specified. + /// + [pbr::OriginalName("TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Self-signed CA. + /// + [pbr::OriginalName("SELF_SIGNED")] SelfSigned = 1, + /// + /// Subordinate CA. Could be issued by a Private CA + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// or an unmanaged CA. + /// + [pbr::OriginalName("SUBORDINATE")] Subordinate = 2, + } + + /// + /// The state of a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], + /// indicating if it can be used. + /// + public enum State { + /// + /// Not specified. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// Certificates can be issued from this CA. CRLs will be generated for this + /// CA. The CA will be part of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, and + /// will be used to issue certificates from the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [pbr::OriginalName("ENABLED")] Enabled = 1, + /// + /// Certificates cannot be issued from this CA. CRLs will still be generated. + /// The CA will be part of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, but + /// will not be used to issue certificates from the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [pbr::OriginalName("DISABLED")] Disabled = 2, + /// + /// Certificates can be issued from this CA. CRLs will be generated for this + /// CA. The CA will be part of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, but + /// will not be used to issue certificates from the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [pbr::OriginalName("STAGED")] Staged = 3, + /// + /// Certificates cannot be issued from this CA. CRLs will not be generated. + /// The CA will not be part of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, and + /// will not be used to issue certificates from the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [pbr::OriginalName("AWAITING_USER_ACTIVATION")] AwaitingUserActivation = 4, + /// + /// Certificates cannot be issued from this CA. CRLs will not be generated. + /// The CA may still be recovered by calling + /// [CertificateAuthorityService.UndeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority] + /// before + /// [expire_time][google.cloud.security.privateca.v1.CertificateAuthority.expire_time]. + /// The CA will not be part of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, and + /// will not be used to issue certificates from the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [pbr::OriginalName("DELETED")] Deleted = 5, + } + + /// + /// The algorithm of a Cloud KMS CryptoKeyVersion of a + /// [CryptoKey][google.cloud.kms.v1.CryptoKey] with the + /// [CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] value + /// `ASYMMETRIC_SIGN`. These values correspond to the + /// [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] + /// values. For RSA signing algorithms, the PSS algorithms should be preferred, + /// use PKCS1 algorithms if required for compatibility. For further + /// recommendations, see + /// https://cloud.google.com/kms/docs/algorithms#algorithm_recommendations. + /// + public enum SignHashAlgorithm { + /// + /// Not specified. + /// + [pbr::OriginalName("SIGN_HASH_ALGORITHM_UNSPECIFIED")] Unspecified = 0, + /// + /// maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256 + /// + [pbr::OriginalName("RSA_PSS_2048_SHA256")] RsaPss2048Sha256 = 1, + /// + /// maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256 + /// + [pbr::OriginalName("RSA_PSS_3072_SHA256")] RsaPss3072Sha256 = 2, + /// + /// maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256 + /// + [pbr::OriginalName("RSA_PSS_4096_SHA256")] RsaPss4096Sha256 = 3, + /// + /// maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256 + /// + [pbr::OriginalName("RSA_PKCS1_2048_SHA256")] RsaPkcs12048Sha256 = 6, + /// + /// maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256 + /// + [pbr::OriginalName("RSA_PKCS1_3072_SHA256")] RsaPkcs13072Sha256 = 7, + /// + /// maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256 + /// + [pbr::OriginalName("RSA_PKCS1_4096_SHA256")] RsaPkcs14096Sha256 = 8, + /// + /// maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256 + /// + [pbr::OriginalName("EC_P256_SHA256")] EcP256Sha256 = 4, + /// + /// maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384 + /// + [pbr::OriginalName("EC_P384_SHA384")] EcP384Sha384 = 5, + } + + /// + /// URLs where a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// will publish content. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AccessUrls : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessUrls()); + 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.Security.PrivateCA.V1.CertificateAuthority.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 AccessUrls() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessUrls(AccessUrls other) : this() { + caCertificateAccessUrl_ = other.caCertificateAccessUrl_; + crlAccessUrls_ = other.crlAccessUrls_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessUrls Clone() { + return new AccessUrls(this); + } + + /// Field number for the "ca_certificate_access_url" field. + public const int CaCertificateAccessUrlFieldNumber = 1; + private string caCertificateAccessUrl_ = ""; + /// + /// The URL where this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s + /// CA certificate is published. This will only be set for CAs that have been + /// activated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CaCertificateAccessUrl { + get { return caCertificateAccessUrl_; } + set { + caCertificateAccessUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "crl_access_urls" field. + public const int CrlAccessUrlsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_crlAccessUrls_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField crlAccessUrls_ = new pbc::RepeatedField(); + /// + /// The URLs where this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s + /// CRLs are published. This will only be set for CAs that have been + /// activated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CrlAccessUrls { + get { return crlAccessUrls_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AccessUrls); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AccessUrls other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CaCertificateAccessUrl != other.CaCertificateAccessUrl) return false; + if(!crlAccessUrls_.Equals(other.crlAccessUrls_)) 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 (CaCertificateAccessUrl.Length != 0) hash ^= CaCertificateAccessUrl.GetHashCode(); + hash ^= crlAccessUrls_.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 (CaCertificateAccessUrl.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CaCertificateAccessUrl); + } + crlAccessUrls_.WriteTo(output, _repeated_crlAccessUrls_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) { + if (CaCertificateAccessUrl.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CaCertificateAccessUrl); + } + crlAccessUrls_.WriteTo(ref output, _repeated_crlAccessUrls_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; + if (CaCertificateAccessUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CaCertificateAccessUrl); + } + size += crlAccessUrls_.CalculateSize(_repeated_crlAccessUrls_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AccessUrls other) { + if (other == null) { + return; + } + if (other.CaCertificateAccessUrl.Length != 0) { + CaCertificateAccessUrl = other.CaCertificateAccessUrl; + } + crlAccessUrls_.Add(other.crlAccessUrls_); + _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: { + CaCertificateAccessUrl = input.ReadString(); + break; + } + case 18: { + crlAccessUrls_.AddEntriesFrom(input, _repeated_crlAccessUrls_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: { + CaCertificateAccessUrl = input.ReadString(); + break; + } + case 18: { + crlAccessUrls_.AddEntriesFrom(ref input, _repeated_crlAccessUrls_codec); + break; + } + } + } + } + #endif + + } + + /// + /// A Cloud KMS key configuration that a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// will use. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class KeyVersionSpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyVersionSpec()); + 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.Security.PrivateCA.V1.CertificateAuthority.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 KeyVersionSpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyVersionSpec(KeyVersionSpec other) : this() { + switch (other.KeyVersionCase) { + case KeyVersionOneofCase.CloudKmsKeyVersion: + CloudKmsKeyVersion = other.CloudKmsKeyVersion; + break; + case KeyVersionOneofCase.Algorithm: + Algorithm = other.Algorithm; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyVersionSpec Clone() { + return new KeyVersionSpec(this); + } + + /// Field number for the "cloud_kms_key_version" field. + public const int CloudKmsKeyVersionFieldNumber = 1; + /// + /// The resource name for an existing Cloud KMS CryptoKeyVersion in the + /// format + /// `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. + /// This option enables full flexibility in the key's capabilities and + /// properties. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CloudKmsKeyVersion { + get { return HasCloudKmsKeyVersion ? (string) keyVersion_ : ""; } + set { + keyVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + keyVersionCase_ = KeyVersionOneofCase.CloudKmsKeyVersion; + } + } + /// Gets whether the "cloud_kms_key_version" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCloudKmsKeyVersion { + get { return keyVersionCase_ == KeyVersionOneofCase.CloudKmsKeyVersion; } + } + /// Clears the value of the oneof if it's currently set to "cloud_kms_key_version" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCloudKmsKeyVersion() { + if (HasCloudKmsKeyVersion) { + ClearKeyVersion(); + } + } + + /// Field number for the "algorithm" field. + public const int AlgorithmFieldNumber = 2; + /// + /// The algorithm to use for creating a managed Cloud KMS key for a for a + /// simplified experience. All managed keys will be have their + /// [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.SignHashAlgorithm Algorithm { + get { return HasAlgorithm ? (global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.SignHashAlgorithm) keyVersion_ : global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.SignHashAlgorithm.Unspecified; } + set { + keyVersion_ = value; + keyVersionCase_ = KeyVersionOneofCase.Algorithm; + } + } + /// Gets whether the "algorithm" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAlgorithm { + get { return keyVersionCase_ == KeyVersionOneofCase.Algorithm; } + } + /// Clears the value of the oneof if it's currently set to "algorithm" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAlgorithm() { + if (HasAlgorithm) { + ClearKeyVersion(); + } + } + + private object keyVersion_; + /// Enum of possible cases for the "KeyVersion" oneof. + public enum KeyVersionOneofCase { + None = 0, + CloudKmsKeyVersion = 1, + Algorithm = 2, + } + private KeyVersionOneofCase keyVersionCase_ = KeyVersionOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyVersionOneofCase KeyVersionCase { + get { return keyVersionCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyVersion() { + keyVersionCase_ = KeyVersionOneofCase.None; + keyVersion_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as KeyVersionSpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(KeyVersionSpec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CloudKmsKeyVersion != other.CloudKmsKeyVersion) return false; + if (Algorithm != other.Algorithm) return false; + if (KeyVersionCase != other.KeyVersionCase) 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 (HasCloudKmsKeyVersion) hash ^= CloudKmsKeyVersion.GetHashCode(); + if (HasAlgorithm) hash ^= Algorithm.GetHashCode(); + hash ^= (int) keyVersionCase_; + 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 (HasCloudKmsKeyVersion) { + output.WriteRawTag(10); + output.WriteString(CloudKmsKeyVersion); + } + if (HasAlgorithm) { + output.WriteRawTag(16); + output.WriteEnum((int) Algorithm); + } + 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 (HasCloudKmsKeyVersion) { + output.WriteRawTag(10); + output.WriteString(CloudKmsKeyVersion); + } + if (HasAlgorithm) { + output.WriteRawTag(16); + output.WriteEnum((int) Algorithm); + } + 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 (HasCloudKmsKeyVersion) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CloudKmsKeyVersion); + } + if (HasAlgorithm) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Algorithm); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(KeyVersionSpec other) { + if (other == null) { + return; + } + switch (other.KeyVersionCase) { + case KeyVersionOneofCase.CloudKmsKeyVersion: + CloudKmsKeyVersion = other.CloudKmsKeyVersion; + break; + case KeyVersionOneofCase.Algorithm: + Algorithm = other.Algorithm; + 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: { + CloudKmsKeyVersion = input.ReadString(); + break; + } + case 16: { + keyVersion_ = input.ReadEnum(); + keyVersionCase_ = KeyVersionOneofCase.Algorithm; + 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: { + CloudKmsKeyVersion = input.ReadString(); + break; + } + case 16: { + keyVersion_ = input.ReadEnum(); + keyVersionCase_ = KeyVersionOneofCase.Algorithm; + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A [CaPool][google.cloud.security.privateca.v1.CaPool] represents a group of + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] + /// that form a trust anchor. A + /// [CaPool][google.cloud.security.privateca.v1.CaPool] can be used to manage + /// issuance policies for one or more + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resources and to rotate CA certificates in and out of the trust anchor. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CaPool : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CaPool()); + 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.Security.PrivateCA.V1.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 CaPool() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CaPool(CaPool other) : this() { + name_ = other.name_; + tier_ = other.tier_; + issuancePolicy_ = other.issuancePolicy_ != null ? other.issuancePolicy_.Clone() : null; + publishingOptions_ = other.publishingOptions_ != null ? other.publishingOptions_.Clone() : null; + labels_ = other.labels_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CaPool Clone() { + return new CaPool(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The resource name for this + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + [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 "tier" field. + public const int TierFieldNumber = 2; + private global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier tier_ = global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier.Unspecified; + /// + /// Required. Immutable. The + /// [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier Tier { + get { return tier_; } + set { + tier_ = value; + } + } + + /// Field number for the "issuance_policy" field. + public const int IssuancePolicyFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy issuancePolicy_; + /// + /// Optional. The + /// [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] + /// to control how + /// [Certificates][google.cloud.security.privateca.v1.Certificate] will be + /// issued from this [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy IssuancePolicy { + get { return issuancePolicy_; } + set { + issuancePolicy_ = value; + } + } + + /// Field number for the "publishing_options" field. + public const int PublishingOptionsFieldNumber = 4; + private global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions publishingOptions_; + /// + /// Optional. The + /// [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] + /// to follow when issuing + /// [Certificates][google.cloud.security.privateca.v1.Certificate] from any + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in this [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions PublishingOptions { + get { return publishingOptions_; } + set { + publishingOptions_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Optional. Labels with user-defined metadata. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CaPool); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CaPool other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Tier != other.Tier) return false; + if (!object.Equals(IssuancePolicy, other.IssuancePolicy)) return false; + if (!object.Equals(PublishingOptions, other.PublishingOptions)) return false; + if (!Labels.Equals(other.Labels)) 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 (Tier != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier.Unspecified) hash ^= Tier.GetHashCode(); + if (issuancePolicy_ != null) hash ^= IssuancePolicy.GetHashCode(); + if (publishingOptions_ != null) hash ^= PublishingOptions.GetHashCode(); + hash ^= Labels.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 (Tier != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Tier); + } + if (issuancePolicy_ != null) { + output.WriteRawTag(26); + output.WriteMessage(IssuancePolicy); + } + if (publishingOptions_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PublishingOptions); + } + labels_.WriteTo(output, _map_labels_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) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Tier != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Tier); + } + if (issuancePolicy_ != null) { + output.WriteRawTag(26); + output.WriteMessage(IssuancePolicy); + } + if (publishingOptions_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PublishingOptions); + } + labels_.WriteTo(ref output, _map_labels_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; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Tier != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Tier); + } + if (issuancePolicy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IssuancePolicy); + } + if (publishingOptions_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishingOptions); + } + size += labels_.CalculateSize(_map_labels_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CaPool other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Tier != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier.Unspecified) { + Tier = other.Tier; + } + if (other.issuancePolicy_ != null) { + if (issuancePolicy_ == null) { + IssuancePolicy = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy(); + } + IssuancePolicy.MergeFrom(other.IssuancePolicy); + } + if (other.publishingOptions_ != null) { + if (publishingOptions_ == null) { + PublishingOptions = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions(); + } + PublishingOptions.MergeFrom(other.PublishingOptions); + } + labels_.MergeFrom(other.labels_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Tier = (global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier) input.ReadEnum(); + break; + } + case 26: { + if (issuancePolicy_ == null) { + IssuancePolicy = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy(); + } + input.ReadMessage(IssuancePolicy); + break; + } + case 34: { + if (publishingOptions_ == null) { + PublishingOptions = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions(); + } + input.ReadMessage(PublishingOptions); + break; + } + case 42: { + labels_.AddEntriesFrom(input, _map_labels_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: { + Name = input.ReadString(); + break; + } + case 16: { + Tier = (global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier) input.ReadEnum(); + break; + } + case 26: { + if (issuancePolicy_ == null) { + IssuancePolicy = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy(); + } + input.ReadMessage(IssuancePolicy); + break; + } + case 34: { + if (publishingOptions_ == null) { + PublishingOptions = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions(); + } + input.ReadMessage(PublishingOptions); + break; + } + case 42: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CaPool message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The tier of a [CaPool][google.cloud.security.privateca.v1.CaPool], + /// indicating its supported functionality and/or billing SKU. + /// + public enum Tier { + /// + /// Not specified. + /// + [pbr::OriginalName("TIER_UNSPECIFIED")] Unspecified = 0, + /// + /// Enterprise tier. + /// + [pbr::OriginalName("ENTERPRISE")] Enterprise = 1, + /// + /// DevOps tier. + /// + [pbr::OriginalName("DEVOPS")] Devops = 2, + } + + /// + /// Options relating to the publication of each + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s + /// CA certificate and CRLs and their inclusion as extensions in issued + /// [Certificates][google.cloud.security.privateca.v1.Certificate]. The options + /// set here apply to certificates issued by any + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PublishingOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublishingOptions()); + 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.Security.PrivateCA.V1.CaPool.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 PublishingOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PublishingOptions(PublishingOptions other) : this() { + publishCaCert_ = other.publishCaCert_; + publishCrl_ = other.publishCrl_; + encodingFormat_ = other.encodingFormat_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PublishingOptions Clone() { + return new PublishingOptions(this); + } + + /// Field number for the "publish_ca_cert" field. + public const int PublishCaCertFieldNumber = 1; + private bool publishCaCert_; + /// + /// Optional. When true, publishes each + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s + /// CA certificate and includes its URL in the "Authority Information Access" + /// X.509 extension in all issued + /// [Certificates][google.cloud.security.privateca.v1.Certificate]. If this + /// is false, the CA certificate will not be published and the corresponding + /// X.509 extension will not be written in issued certificates. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PublishCaCert { + get { return publishCaCert_; } + set { + publishCaCert_ = value; + } + } + + /// Field number for the "publish_crl" field. + public const int PublishCrlFieldNumber = 2; + private bool publishCrl_; + /// + /// Optional. When true, publishes each + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s + /// CRL and includes its URL in the "CRL Distribution Points" X.509 extension + /// in all issued + /// [Certificates][google.cloud.security.privateca.v1.Certificate]. If this + /// is false, CRLs will not be published and the corresponding X.509 + /// extension will not be written in issued certificates. CRLs will expire 7 + /// days from their creation. However, we will rebuild daily. CRLs are also + /// rebuilt shortly after a certificate is revoked. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PublishCrl { + get { return publishCrl_; } + set { + publishCrl_ = value; + } + } + + /// Field number for the "encoding_format" field. + public const int EncodingFormatFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions.Types.EncodingFormat encodingFormat_ = global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions.Types.EncodingFormat.Unspecified; + /// + /// Optional. Specifies the encoding format of each + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource's CA certificate and CRLs. If this is omitted, CA certificates + /// and CRLs will be published in PEM. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions.Types.EncodingFormat EncodingFormat { + get { return encodingFormat_; } + set { + encodingFormat_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PublishingOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PublishingOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PublishCaCert != other.PublishCaCert) return false; + if (PublishCrl != other.PublishCrl) return false; + if (EncodingFormat != other.EncodingFormat) 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 (PublishCaCert != false) hash ^= PublishCaCert.GetHashCode(); + if (PublishCrl != false) hash ^= PublishCrl.GetHashCode(); + if (EncodingFormat != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions.Types.EncodingFormat.Unspecified) hash ^= EncodingFormat.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 (PublishCaCert != false) { + output.WriteRawTag(8); + output.WriteBool(PublishCaCert); + } + if (PublishCrl != false) { + output.WriteRawTag(16); + output.WriteBool(PublishCrl); + } + if (EncodingFormat != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions.Types.EncodingFormat.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) EncodingFormat); + } + 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 (PublishCaCert != false) { + output.WriteRawTag(8); + output.WriteBool(PublishCaCert); + } + if (PublishCrl != false) { + output.WriteRawTag(16); + output.WriteBool(PublishCrl); + } + if (EncodingFormat != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions.Types.EncodingFormat.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) EncodingFormat); + } + 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 (PublishCaCert != false) { + size += 1 + 1; + } + if (PublishCrl != false) { + size += 1 + 1; + } + if (EncodingFormat != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions.Types.EncodingFormat.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EncodingFormat); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PublishingOptions other) { + if (other == null) { + return; + } + if (other.PublishCaCert != false) { + PublishCaCert = other.PublishCaCert; + } + if (other.PublishCrl != false) { + PublishCrl = other.PublishCrl; + } + if (other.EncodingFormat != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions.Types.EncodingFormat.Unspecified) { + EncodingFormat = other.EncodingFormat; + } + _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 8: { + PublishCaCert = input.ReadBool(); + break; + } + case 16: { + PublishCrl = input.ReadBool(); + break; + } + case 24: { + EncodingFormat = (global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions.Types.EncodingFormat) input.ReadEnum(); + 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 8: { + PublishCaCert = input.ReadBool(); + break; + } + case 16: { + PublishCrl = input.ReadBool(); + break; + } + case 24: { + EncodingFormat = (global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.PublishingOptions.Types.EncodingFormat) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the PublishingOptions message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Supported encoding formats for publishing. + /// + public enum EncodingFormat { + /// + /// Not specified. By default, PEM format will be used. + /// + [pbr::OriginalName("ENCODING_FORMAT_UNSPECIFIED")] Unspecified = 0, + /// + /// The + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s + /// CA certificate and CRLs will be published in PEM format. + /// + [pbr::OriginalName("PEM")] Pem = 1, + /// + /// The + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s + /// CA certificate and CRLs will be published in DER format. + /// + [pbr::OriginalName("DER")] Der = 2, + } + + } + #endregion + + } + + /// + /// Defines controls over all certificate issuance within a + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class IssuancePolicy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IssuancePolicy()); + 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.Security.PrivateCA.V1.CaPool.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 IssuancePolicy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IssuancePolicy(IssuancePolicy other) : this() { + allowedKeyTypes_ = other.allowedKeyTypes_.Clone(); + maximumLifetime_ = other.maximumLifetime_ != null ? other.maximumLifetime_.Clone() : null; + allowedIssuanceModes_ = other.allowedIssuanceModes_ != null ? other.allowedIssuanceModes_.Clone() : null; + baselineValues_ = other.baselineValues_ != null ? other.baselineValues_.Clone() : null; + identityConstraints_ = other.identityConstraints_ != null ? other.identityConstraints_.Clone() : null; + passthroughExtensions_ = other.passthroughExtensions_ != null ? other.passthroughExtensions_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IssuancePolicy Clone() { + return new IssuancePolicy(this); + } + + /// Field number for the "allowed_key_types" field. + public const int AllowedKeyTypesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_allowedKeyTypes_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Parser); + private readonly pbc::RepeatedField allowedKeyTypes_ = new pbc::RepeatedField(); + /// + /// Optional. If any + /// [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] + /// is specified, then the certificate request's public key must match one of + /// the key types listed here. Otherwise, any key may be used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AllowedKeyTypes { + get { return allowedKeyTypes_; } + } + + /// Field number for the "maximum_lifetime" field. + public const int MaximumLifetimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration maximumLifetime_; + /// + /// Optional. The maximum lifetime allowed for issued + /// [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that + /// if the issuing + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// expires before a + /// [Certificate][google.cloud.security.privateca.v1.Certificate] resource's + /// requested maximum_lifetime, the effective lifetime will be explicitly + /// truncated to match it. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration MaximumLifetime { + get { return maximumLifetime_; } + set { + maximumLifetime_ = value; + } + } + + /// Field number for the "allowed_issuance_modes" field. + public const int AllowedIssuanceModesFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.IssuanceModes allowedIssuanceModes_; + /// + /// Optional. If specified, then only methods allowed in the + /// [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] + /// may be used to issue + /// [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.IssuanceModes AllowedIssuanceModes { + get { return allowedIssuanceModes_; } + set { + allowedIssuanceModes_ = value; + } + } + + /// Field number for the "baseline_values" field. + public const int BaselineValuesFieldNumber = 4; + private global::Google.Cloud.Security.PrivateCA.V1.X509Parameters baselineValues_; + /// + /// Optional. A set of X.509 values that will be applied to all certificates + /// issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// If a certificate request includes conflicting values for the same + /// properties, they will be overwritten by the values defined here. If a + /// certificate request uses a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// that defines conflicting + /// [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values] + /// for the same properties, the certificate issuance request will fail. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.X509Parameters BaselineValues { + get { return baselineValues_; } + set { + baselineValues_ = value; + } + } + + /// Field number for the "identity_constraints" field. + public const int IdentityConstraintsFieldNumber = 5; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateIdentityConstraints identityConstraints_; + /// + /// Optional. Describes constraints on identities that may appear in + /// [Certificates][google.cloud.security.privateca.v1.Certificate] issued + /// through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If this + /// is omitted, then this [CaPool][google.cloud.security.privateca.v1.CaPool] + /// will not add restrictions on a certificate's identity. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateIdentityConstraints IdentityConstraints { + get { return identityConstraints_; } + set { + identityConstraints_ = value; + } + } + + /// Field number for the "passthrough_extensions" field. + public const int PassthroughExtensionsFieldNumber = 6; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints passthroughExtensions_; + /// + /// Optional. Describes the set of X.509 extensions that may appear in a + /// [Certificate][google.cloud.security.privateca.v1.Certificate] issued + /// through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a + /// certificate request sets extensions that don't appear in the + /// [passthrough_extensions][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.passthrough_extensions], + /// those extensions will be dropped. If a certificate request uses a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// with + /// [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values] + /// that don't appear here, the certificate issuance request will fail. If + /// this is omitted, then this + /// [CaPool][google.cloud.security.privateca.v1.CaPool] will not add + /// restrictions on a certificate's X.509 extensions. These constraints do + /// not apply to X.509 extensions set in this + /// [CaPool][google.cloud.security.privateca.v1.CaPool]'s + /// [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints PassthroughExtensions { + get { return passthroughExtensions_; } + set { + passthroughExtensions_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as IssuancePolicy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(IssuancePolicy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!allowedKeyTypes_.Equals(other.allowedKeyTypes_)) return false; + if (!object.Equals(MaximumLifetime, other.MaximumLifetime)) return false; + if (!object.Equals(AllowedIssuanceModes, other.AllowedIssuanceModes)) return false; + if (!object.Equals(BaselineValues, other.BaselineValues)) return false; + if (!object.Equals(IdentityConstraints, other.IdentityConstraints)) return false; + if (!object.Equals(PassthroughExtensions, other.PassthroughExtensions)) 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 ^= allowedKeyTypes_.GetHashCode(); + if (maximumLifetime_ != null) hash ^= MaximumLifetime.GetHashCode(); + if (allowedIssuanceModes_ != null) hash ^= AllowedIssuanceModes.GetHashCode(); + if (baselineValues_ != null) hash ^= BaselineValues.GetHashCode(); + if (identityConstraints_ != null) hash ^= IdentityConstraints.GetHashCode(); + if (passthroughExtensions_ != null) hash ^= PassthroughExtensions.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 + allowedKeyTypes_.WriteTo(output, _repeated_allowedKeyTypes_codec); + if (maximumLifetime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MaximumLifetime); + } + if (allowedIssuanceModes_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AllowedIssuanceModes); + } + if (baselineValues_ != null) { + output.WriteRawTag(34); + output.WriteMessage(BaselineValues); + } + if (identityConstraints_ != null) { + output.WriteRawTag(42); + output.WriteMessage(IdentityConstraints); + } + if (passthroughExtensions_ != null) { + output.WriteRawTag(50); + output.WriteMessage(PassthroughExtensions); + } + 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) { + allowedKeyTypes_.WriteTo(ref output, _repeated_allowedKeyTypes_codec); + if (maximumLifetime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MaximumLifetime); + } + if (allowedIssuanceModes_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AllowedIssuanceModes); + } + if (baselineValues_ != null) { + output.WriteRawTag(34); + output.WriteMessage(BaselineValues); + } + if (identityConstraints_ != null) { + output.WriteRawTag(42); + output.WriteMessage(IdentityConstraints); + } + if (passthroughExtensions_ != null) { + output.WriteRawTag(50); + output.WriteMessage(PassthroughExtensions); + } + 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 += allowedKeyTypes_.CalculateSize(_repeated_allowedKeyTypes_codec); + if (maximumLifetime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaximumLifetime); + } + if (allowedIssuanceModes_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllowedIssuanceModes); + } + if (baselineValues_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaselineValues); + } + if (identityConstraints_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IdentityConstraints); + } + if (passthroughExtensions_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PassthroughExtensions); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(IssuancePolicy other) { + if (other == null) { + return; + } + allowedKeyTypes_.Add(other.allowedKeyTypes_); + if (other.maximumLifetime_ != null) { + if (maximumLifetime_ == null) { + MaximumLifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + MaximumLifetime.MergeFrom(other.MaximumLifetime); + } + if (other.allowedIssuanceModes_ != null) { + if (allowedIssuanceModes_ == null) { + AllowedIssuanceModes = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.IssuanceModes(); + } + AllowedIssuanceModes.MergeFrom(other.AllowedIssuanceModes); + } + if (other.baselineValues_ != null) { + if (baselineValues_ == null) { + BaselineValues = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters(); + } + BaselineValues.MergeFrom(other.BaselineValues); + } + if (other.identityConstraints_ != null) { + if (identityConstraints_ == null) { + IdentityConstraints = new global::Google.Cloud.Security.PrivateCA.V1.CertificateIdentityConstraints(); + } + IdentityConstraints.MergeFrom(other.IdentityConstraints); + } + if (other.passthroughExtensions_ != null) { + if (passthroughExtensions_ == null) { + PassthroughExtensions = new global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints(); + } + PassthroughExtensions.MergeFrom(other.PassthroughExtensions); + } + _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: { + allowedKeyTypes_.AddEntriesFrom(input, _repeated_allowedKeyTypes_codec); + break; + } + case 18: { + if (maximumLifetime_ == null) { + MaximumLifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(MaximumLifetime); + break; + } + case 26: { + if (allowedIssuanceModes_ == null) { + AllowedIssuanceModes = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.IssuanceModes(); + } + input.ReadMessage(AllowedIssuanceModes); + break; + } + case 34: { + if (baselineValues_ == null) { + BaselineValues = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters(); + } + input.ReadMessage(BaselineValues); + break; + } + case 42: { + if (identityConstraints_ == null) { + IdentityConstraints = new global::Google.Cloud.Security.PrivateCA.V1.CertificateIdentityConstraints(); + } + input.ReadMessage(IdentityConstraints); + break; + } + case 50: { + if (passthroughExtensions_ == null) { + PassthroughExtensions = new global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints(); + } + input.ReadMessage(PassthroughExtensions); + 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: { + allowedKeyTypes_.AddEntriesFrom(ref input, _repeated_allowedKeyTypes_codec); + break; + } + case 18: { + if (maximumLifetime_ == null) { + MaximumLifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(MaximumLifetime); + break; + } + case 26: { + if (allowedIssuanceModes_ == null) { + AllowedIssuanceModes = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.IssuanceModes(); + } + input.ReadMessage(AllowedIssuanceModes); + break; + } + case 34: { + if (baselineValues_ == null) { + BaselineValues = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters(); + } + input.ReadMessage(BaselineValues); + break; + } + case 42: { + if (identityConstraints_ == null) { + IdentityConstraints = new global::Google.Cloud.Security.PrivateCA.V1.CertificateIdentityConstraints(); + } + input.ReadMessage(IdentityConstraints); + break; + } + case 50: { + if (passthroughExtensions_ == null) { + PassthroughExtensions = new global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints(); + } + input.ReadMessage(PassthroughExtensions); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the IssuancePolicy message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Describes a "type" of key that may be used in a + /// [Certificate][google.cloud.security.privateca.v1.Certificate] issued from + /// a [CaPool][google.cloud.security.privateca.v1.CaPool]. Note that a single + /// [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] + /// may refer to either a fully-qualified key algorithm, such as RSA 4096, or + /// a family of key algorithms, such as any RSA key. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AllowedKeyType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AllowedKeyType()); + 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.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.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 AllowedKeyType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllowedKeyType(AllowedKeyType other) : this() { + switch (other.KeyTypeCase) { + case KeyTypeOneofCase.Rsa: + Rsa = other.Rsa.Clone(); + break; + case KeyTypeOneofCase.EllipticCurve: + EllipticCurve = other.EllipticCurve.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllowedKeyType Clone() { + return new AllowedKeyType(this); + } + + /// Field number for the "rsa" field. + public const int RsaFieldNumber = 1; + /// + /// Represents an allowed RSA key type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.RsaKeyType Rsa { + get { return keyTypeCase_ == KeyTypeOneofCase.Rsa ? (global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.RsaKeyType) keyType_ : null; } + set { + keyType_ = value; + keyTypeCase_ = value == null ? KeyTypeOneofCase.None : KeyTypeOneofCase.Rsa; + } + } + + /// Field number for the "elliptic_curve" field. + public const int EllipticCurveFieldNumber = 2; + /// + /// Represents an allowed Elliptic Curve key type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType EllipticCurve { + get { return keyTypeCase_ == KeyTypeOneofCase.EllipticCurve ? (global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType) keyType_ : null; } + set { + keyType_ = value; + keyTypeCase_ = value == null ? KeyTypeOneofCase.None : KeyTypeOneofCase.EllipticCurve; + } + } + + private object keyType_; + /// Enum of possible cases for the "key_type" oneof. + public enum KeyTypeOneofCase { + None = 0, + Rsa = 1, + EllipticCurve = 2, + } + private KeyTypeOneofCase keyTypeCase_ = KeyTypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyTypeOneofCase KeyTypeCase { + get { return keyTypeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyType() { + keyTypeCase_ = KeyTypeOneofCase.None; + keyType_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AllowedKeyType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AllowedKeyType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rsa, other.Rsa)) return false; + if (!object.Equals(EllipticCurve, other.EllipticCurve)) return false; + if (KeyTypeCase != other.KeyTypeCase) 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 (keyTypeCase_ == KeyTypeOneofCase.Rsa) hash ^= Rsa.GetHashCode(); + if (keyTypeCase_ == KeyTypeOneofCase.EllipticCurve) hash ^= EllipticCurve.GetHashCode(); + hash ^= (int) keyTypeCase_; + 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 (keyTypeCase_ == KeyTypeOneofCase.Rsa) { + output.WriteRawTag(10); + output.WriteMessage(Rsa); + } + if (keyTypeCase_ == KeyTypeOneofCase.EllipticCurve) { + output.WriteRawTag(18); + output.WriteMessage(EllipticCurve); + } + 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 (keyTypeCase_ == KeyTypeOneofCase.Rsa) { + output.WriteRawTag(10); + output.WriteMessage(Rsa); + } + if (keyTypeCase_ == KeyTypeOneofCase.EllipticCurve) { + output.WriteRawTag(18); + output.WriteMessage(EllipticCurve); + } + 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 (keyTypeCase_ == KeyTypeOneofCase.Rsa) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rsa); + } + if (keyTypeCase_ == KeyTypeOneofCase.EllipticCurve) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EllipticCurve); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AllowedKeyType other) { + if (other == null) { + return; + } + switch (other.KeyTypeCase) { + case KeyTypeOneofCase.Rsa: + if (Rsa == null) { + Rsa = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.RsaKeyType(); + } + Rsa.MergeFrom(other.Rsa); + break; + case KeyTypeOneofCase.EllipticCurve: + if (EllipticCurve == null) { + EllipticCurve = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType(); + } + EllipticCurve.MergeFrom(other.EllipticCurve); + 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.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.RsaKeyType subBuilder = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.RsaKeyType(); + if (keyTypeCase_ == KeyTypeOneofCase.Rsa) { + subBuilder.MergeFrom(Rsa); + } + input.ReadMessage(subBuilder); + Rsa = subBuilder; + break; + } + case 18: { + global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType subBuilder = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType(); + if (keyTypeCase_ == KeyTypeOneofCase.EllipticCurve) { + subBuilder.MergeFrom(EllipticCurve); + } + input.ReadMessage(subBuilder); + EllipticCurve = 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.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.RsaKeyType subBuilder = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.RsaKeyType(); + if (keyTypeCase_ == KeyTypeOneofCase.Rsa) { + subBuilder.MergeFrom(Rsa); + } + input.ReadMessage(subBuilder); + Rsa = subBuilder; + break; + } + case 18: { + global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType subBuilder = new global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType(); + if (keyTypeCase_ == KeyTypeOneofCase.EllipticCurve) { + subBuilder.MergeFrom(EllipticCurve); + } + input.ReadMessage(subBuilder); + EllipticCurve = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AllowedKeyType message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Describes an RSA key that may be used in a + /// [Certificate][google.cloud.security.privateca.v1.Certificate] issued + /// from a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RsaKeyType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RsaKeyType()); + 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.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.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 RsaKeyType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RsaKeyType(RsaKeyType other) : this() { + minModulusSize_ = other.minModulusSize_; + maxModulusSize_ = other.maxModulusSize_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RsaKeyType Clone() { + return new RsaKeyType(this); + } + + /// Field number for the "min_modulus_size" field. + public const int MinModulusSizeFieldNumber = 1; + private long minModulusSize_; + /// + /// Optional. The minimum allowed RSA modulus size (inclusive), in bits. + /// If this is not set, or if set to zero, the service-level min RSA + /// modulus size will continue to apply. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MinModulusSize { + get { return minModulusSize_; } + set { + minModulusSize_ = value; + } + } + + /// Field number for the "max_modulus_size" field. + public const int MaxModulusSizeFieldNumber = 2; + private long maxModulusSize_; + /// + /// Optional. The maximum allowed RSA modulus size (inclusive), in bits. + /// If this is not set, or if set to zero, the service will not enforce + /// an explicit upper bound on RSA modulus sizes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MaxModulusSize { + get { return maxModulusSize_; } + set { + maxModulusSize_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RsaKeyType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RsaKeyType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MinModulusSize != other.MinModulusSize) return false; + if (MaxModulusSize != other.MaxModulusSize) 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 (MinModulusSize != 0L) hash ^= MinModulusSize.GetHashCode(); + if (MaxModulusSize != 0L) hash ^= MaxModulusSize.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 (MinModulusSize != 0L) { + output.WriteRawTag(8); + output.WriteInt64(MinModulusSize); + } + if (MaxModulusSize != 0L) { + output.WriteRawTag(16); + output.WriteInt64(MaxModulusSize); + } + 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 (MinModulusSize != 0L) { + output.WriteRawTag(8); + output.WriteInt64(MinModulusSize); + } + if (MaxModulusSize != 0L) { + output.WriteRawTag(16); + output.WriteInt64(MaxModulusSize); + } + 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 (MinModulusSize != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinModulusSize); + } + if (MaxModulusSize != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaxModulusSize); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RsaKeyType other) { + if (other == null) { + return; + } + if (other.MinModulusSize != 0L) { + MinModulusSize = other.MinModulusSize; + } + if (other.MaxModulusSize != 0L) { + MaxModulusSize = other.MaxModulusSize; + } + _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 8: { + MinModulusSize = input.ReadInt64(); + break; + } + case 16: { + MaxModulusSize = 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 8: { + MinModulusSize = input.ReadInt64(); + break; + } + case 16: { + MaxModulusSize = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Describes an Elliptic Curve key that may be used in a + /// [Certificate][google.cloud.security.privateca.v1.Certificate] issued + /// from a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EcKeyType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EcKeyType()); + 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.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.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 EcKeyType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EcKeyType(EcKeyType other) : this() { + signatureAlgorithm_ = other.signatureAlgorithm_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EcKeyType Clone() { + return new EcKeyType(this); + } + + /// Field number for the "signature_algorithm" field. + public const int SignatureAlgorithmFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType.Types.EcSignatureAlgorithm signatureAlgorithm_ = global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType.Types.EcSignatureAlgorithm.Unspecified; + /// + /// Optional. A signature algorithm that must be used. If this is + /// omitted, any EC-based signature algorithm will be allowed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType.Types.EcSignatureAlgorithm SignatureAlgorithm { + get { return signatureAlgorithm_; } + set { + signatureAlgorithm_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EcKeyType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EcKeyType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SignatureAlgorithm != other.SignatureAlgorithm) 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 (SignatureAlgorithm != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType.Types.EcSignatureAlgorithm.Unspecified) hash ^= SignatureAlgorithm.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 (SignatureAlgorithm != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType.Types.EcSignatureAlgorithm.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) SignatureAlgorithm); + } + 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 (SignatureAlgorithm != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType.Types.EcSignatureAlgorithm.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) SignatureAlgorithm); + } + 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 (SignatureAlgorithm != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType.Types.EcSignatureAlgorithm.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SignatureAlgorithm); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EcKeyType other) { + if (other == null) { + return; + } + if (other.SignatureAlgorithm != global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType.Types.EcSignatureAlgorithm.Unspecified) { + SignatureAlgorithm = other.SignatureAlgorithm; + } + _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 8: { + SignatureAlgorithm = (global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType.Types.EcSignatureAlgorithm) input.ReadEnum(); + 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 8: { + SignatureAlgorithm = (global::Google.Cloud.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.Types.AllowedKeyType.Types.EcKeyType.Types.EcSignatureAlgorithm) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the EcKeyType message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Describes an elliptic curve-based signature algorithm that may be + /// used in a + /// [Certificate][google.cloud.security.privateca.v1.Certificate] issued + /// from a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + public enum EcSignatureAlgorithm { + /// + /// Not specified. Signifies that any signature algorithm may be used. + /// + [pbr::OriginalName("EC_SIGNATURE_ALGORITHM_UNSPECIFIED")] Unspecified = 0, + /// + /// Refers to the Elliptic Curve Digital Signature Algorithm over the + /// NIST P-256 curve. + /// + [pbr::OriginalName("ECDSA_P256")] EcdsaP256 = 1, + /// + /// Refers to the Elliptic Curve Digital Signature Algorithm over the + /// NIST P-384 curve. + /// + [pbr::OriginalName("ECDSA_P384")] EcdsaP384 = 2, + /// + /// Refers to the Edwards-curve Digital Signature Algorithm over curve + /// 25519, as described in RFC 8410. + /// + [pbr::OriginalName("EDDSA_25519")] Eddsa25519 = 3, + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] + /// specifies the allowed ways in which + /// [Certificates][google.cloud.security.privateca.v1.Certificate] may be + /// requested from this [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class IssuanceModes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IssuanceModes()); + 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.Security.PrivateCA.V1.CaPool.Types.IssuancePolicy.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 IssuanceModes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IssuanceModes(IssuanceModes other) : this() { + allowCsrBasedIssuance_ = other.allowCsrBasedIssuance_; + allowConfigBasedIssuance_ = other.allowConfigBasedIssuance_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IssuanceModes Clone() { + return new IssuanceModes(this); + } + + /// Field number for the "allow_csr_based_issuance" field. + public const int AllowCsrBasedIssuanceFieldNumber = 1; + private bool allowCsrBasedIssuance_; + /// + /// Optional. When true, allows callers to create + /// [Certificates][google.cloud.security.privateca.v1.Certificate] by + /// specifying a CSR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowCsrBasedIssuance { + get { return allowCsrBasedIssuance_; } + set { + allowCsrBasedIssuance_ = value; + } + } + + /// Field number for the "allow_config_based_issuance" field. + public const int AllowConfigBasedIssuanceFieldNumber = 2; + private bool allowConfigBasedIssuance_; + /// + /// Optional. When true, allows callers to create + /// [Certificates][google.cloud.security.privateca.v1.Certificate] by + /// specifying a + /// [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowConfigBasedIssuance { + get { return allowConfigBasedIssuance_; } + set { + allowConfigBasedIssuance_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as IssuanceModes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(IssuanceModes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AllowCsrBasedIssuance != other.AllowCsrBasedIssuance) return false; + if (AllowConfigBasedIssuance != other.AllowConfigBasedIssuance) 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 (AllowCsrBasedIssuance != false) hash ^= AllowCsrBasedIssuance.GetHashCode(); + if (AllowConfigBasedIssuance != false) hash ^= AllowConfigBasedIssuance.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 (AllowCsrBasedIssuance != false) { + output.WriteRawTag(8); + output.WriteBool(AllowCsrBasedIssuance); + } + if (AllowConfigBasedIssuance != false) { + output.WriteRawTag(16); + output.WriteBool(AllowConfigBasedIssuance); + } + 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 (AllowCsrBasedIssuance != false) { + output.WriteRawTag(8); + output.WriteBool(AllowCsrBasedIssuance); + } + if (AllowConfigBasedIssuance != false) { + output.WriteRawTag(16); + output.WriteBool(AllowConfigBasedIssuance); + } + 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 (AllowCsrBasedIssuance != false) { + size += 1 + 1; + } + if (AllowConfigBasedIssuance != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(IssuanceModes other) { + if (other == null) { + return; + } + if (other.AllowCsrBasedIssuance != false) { + AllowCsrBasedIssuance = other.AllowCsrBasedIssuance; + } + if (other.AllowConfigBasedIssuance != false) { + AllowConfigBasedIssuance = other.AllowConfigBasedIssuance; + } + _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 8: { + AllowCsrBasedIssuance = input.ReadBool(); + break; + } + case 16: { + AllowConfigBasedIssuance = input.ReadBool(); + 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 8: { + AllowCsrBasedIssuance = input.ReadBool(); + break; + } + case 16: { + AllowConfigBasedIssuance = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// A + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// corresponds to a signed X.509 certificate Revocation List (CRL). A CRL + /// contains the serial numbers of certificates that should no longer be trusted. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CertificateRevocationList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CertificateRevocationList()); + 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.Security.PrivateCA.V1.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 CertificateRevocationList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateRevocationList(CertificateRevocationList other) : this() { + name_ = other.name_; + sequenceNumber_ = other.sequenceNumber_; + revokedCertificates_ = other.revokedCertificates_.Clone(); + pemCrl_ = other.pemCrl_; + accessUrl_ = other.accessUrl_; + state_ = other.state_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + revisionId_ = other.revisionId_; + labels_ = other.labels_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateRevocationList Clone() { + return new CertificateRevocationList(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The resource name for this + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/ + /// certificateRevocationLists/*`. + /// + [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 "sequence_number" field. + public const int SequenceNumberFieldNumber = 2; + private long sequenceNumber_; + /// + /// Output only. The CRL sequence number that appears in pem_crl. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long SequenceNumber { + get { return sequenceNumber_; } + set { + sequenceNumber_ = value; + } + } + + /// Field number for the "revoked_certificates" field. + public const int RevokedCertificatesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_revokedCertificates_codec + = pb::FieldCodec.ForMessage(26, global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.RevokedCertificate.Parser); + private readonly pbc::RepeatedField revokedCertificates_ = new pbc::RepeatedField(); + /// + /// Output only. The revoked serial numbers that appear in pem_crl. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RevokedCertificates { + get { return revokedCertificates_; } + } + + /// Field number for the "pem_crl" field. + public const int PemCrlFieldNumber = 4; + private string pemCrl_ = ""; + /// + /// Output only. The PEM-encoded X.509 CRL. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PemCrl { + get { return pemCrl_; } + set { + pemCrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "access_url" field. + public const int AccessUrlFieldNumber = 5; + private string accessUrl_ = ""; + /// + /// Output only. The location where 'pem_crl' can be accessed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AccessUrl { + get { return accessUrl_; } + set { + accessUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 6; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.State state_ = global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.State.Unspecified; + /// + /// Output only. The + /// [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] + /// for this + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time at which this + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// 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 "update_time" field. + public const int UpdateTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time at which this + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// was updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "revision_id" field. + public const int RevisionIdFieldNumber = 9; + private string revisionId_ = ""; + /// + /// Output only. The revision ID of this + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// A new revision is committed whenever a new CRL is published. The format is + /// an 8-character hexadecimal string. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RevisionId { + get { return revisionId_; } + set { + revisionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 10; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 82); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Optional. Labels with user-defined metadata. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CertificateRevocationList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CertificateRevocationList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (SequenceNumber != other.SequenceNumber) return false; + if(!revokedCertificates_.Equals(other.revokedCertificates_)) return false; + if (PemCrl != other.PemCrl) return false; + if (AccessUrl != other.AccessUrl) return false; + if (State != other.State) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (RevisionId != other.RevisionId) return false; + if (!Labels.Equals(other.Labels)) 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 (SequenceNumber != 0L) hash ^= SequenceNumber.GetHashCode(); + hash ^= revokedCertificates_.GetHashCode(); + if (PemCrl.Length != 0) hash ^= PemCrl.GetHashCode(); + if (AccessUrl.Length != 0) hash ^= AccessUrl.GetHashCode(); + if (State != global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (RevisionId.Length != 0) hash ^= RevisionId.GetHashCode(); + hash ^= Labels.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 (SequenceNumber != 0L) { + output.WriteRawTag(16); + output.WriteInt64(SequenceNumber); + } + revokedCertificates_.WriteTo(output, _repeated_revokedCertificates_codec); + if (PemCrl.Length != 0) { + output.WriteRawTag(34); + output.WriteString(PemCrl); + } + if (AccessUrl.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AccessUrl); + } + if (State != global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.State.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) State); + } + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(UpdateTime); + } + if (RevisionId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(RevisionId); + } + labels_.WriteTo(output, _map_labels_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) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (SequenceNumber != 0L) { + output.WriteRawTag(16); + output.WriteInt64(SequenceNumber); + } + revokedCertificates_.WriteTo(ref output, _repeated_revokedCertificates_codec); + if (PemCrl.Length != 0) { + output.WriteRawTag(34); + output.WriteString(PemCrl); + } + if (AccessUrl.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AccessUrl); + } + if (State != global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.State.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) State); + } + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(UpdateTime); + } + if (RevisionId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(RevisionId); + } + labels_.WriteTo(ref output, _map_labels_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; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (SequenceNumber != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SequenceNumber); + } + size += revokedCertificates_.CalculateSize(_repeated_revokedCertificates_codec); + if (PemCrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PemCrl); + } + if (AccessUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessUrl); + } + if (State != global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (RevisionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RevisionId); + } + size += labels_.CalculateSize(_map_labels_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CertificateRevocationList other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.SequenceNumber != 0L) { + SequenceNumber = other.SequenceNumber; + } + revokedCertificates_.Add(other.revokedCertificates_); + if (other.PemCrl.Length != 0) { + PemCrl = other.PemCrl; + } + if (other.AccessUrl.Length != 0) { + AccessUrl = other.AccessUrl; + } + if (other.State != global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.State.Unspecified) { + State = other.State; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.RevisionId.Length != 0) { + RevisionId = other.RevisionId; + } + labels_.MergeFrom(other.labels_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + SequenceNumber = input.ReadInt64(); + break; + } + case 26: { + revokedCertificates_.AddEntriesFrom(input, _repeated_revokedCertificates_codec); + break; + } + case 34: { + PemCrl = input.ReadString(); + break; + } + case 42: { + AccessUrl = input.ReadString(); + break; + } + case 48: { + State = (global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.State) input.ReadEnum(); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 66: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 74: { + RevisionId = input.ReadString(); + break; + } + case 82: { + labels_.AddEntriesFrom(input, _map_labels_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: { + Name = input.ReadString(); + break; + } + case 16: { + SequenceNumber = input.ReadInt64(); + break; + } + case 26: { + revokedCertificates_.AddEntriesFrom(ref input, _repeated_revokedCertificates_codec); + break; + } + case 34: { + PemCrl = input.ReadString(); + break; + } + case 42: { + AccessUrl = input.ReadString(); + break; + } + case 48: { + State = (global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Types.State) input.ReadEnum(); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 66: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 74: { + RevisionId = input.ReadString(); + break; + } + case 82: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CertificateRevocationList message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The state of a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList], + /// indicating if it is current. + /// + public enum State { + /// + /// Not specified. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// is up to date. + /// + [pbr::OriginalName("ACTIVE")] Active = 1, + /// + /// The + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// is no longer current. + /// + [pbr::OriginalName("SUPERSEDED")] Superseded = 2, + } + + /// + /// Describes a revoked + /// [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RevokedCertificate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RevokedCertificate()); + 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.Security.PrivateCA.V1.CertificateRevocationList.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 RevokedCertificate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RevokedCertificate(RevokedCertificate other) : this() { + certificate_ = other.certificate_; + hexSerialNumber_ = other.hexSerialNumber_; + revocationReason_ = other.revocationReason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RevokedCertificate Clone() { + return new RevokedCertificate(this); + } + + /// Field number for the "certificate" field. + public const int CertificateFieldNumber = 1; + private string certificate_ = ""; + /// + /// The resource name for the + /// [Certificate][google.cloud.security.privateca.v1.Certificate] in the + /// format `projects/*/locations/*/caPools/*/certificates/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Certificate { + get { return certificate_; } + set { + certificate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "hex_serial_number" field. + public const int HexSerialNumberFieldNumber = 2; + private string hexSerialNumber_ = ""; + /// + /// The serial number of the + /// [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HexSerialNumber { + get { return hexSerialNumber_; } + set { + hexSerialNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "revocation_reason" field. + public const int RevocationReasonFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.RevocationReason revocationReason_ = global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified; + /// + /// The reason the + /// [Certificate][google.cloud.security.privateca.v1.Certificate] was + /// revoked. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.RevocationReason RevocationReason { + get { return revocationReason_; } + set { + revocationReason_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RevokedCertificate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RevokedCertificate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Certificate != other.Certificate) return false; + if (HexSerialNumber != other.HexSerialNumber) return false; + if (RevocationReason != other.RevocationReason) 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 (Certificate.Length != 0) hash ^= Certificate.GetHashCode(); + if (HexSerialNumber.Length != 0) hash ^= HexSerialNumber.GetHashCode(); + if (RevocationReason != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) hash ^= RevocationReason.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 (Certificate.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Certificate); + } + if (HexSerialNumber.Length != 0) { + output.WriteRawTag(18); + output.WriteString(HexSerialNumber); + } + if (RevocationReason != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) RevocationReason); + } + 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 (Certificate.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Certificate); + } + if (HexSerialNumber.Length != 0) { + output.WriteRawTag(18); + output.WriteString(HexSerialNumber); + } + if (RevocationReason != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) RevocationReason); + } + 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 (Certificate.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Certificate); + } + if (HexSerialNumber.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HexSerialNumber); + } + if (RevocationReason != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RevocationReason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RevokedCertificate other) { + if (other == null) { + return; + } + if (other.Certificate.Length != 0) { + Certificate = other.Certificate; + } + if (other.HexSerialNumber.Length != 0) { + HexSerialNumber = other.HexSerialNumber; + } + if (other.RevocationReason != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) { + RevocationReason = other.RevocationReason; + } + _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: { + Certificate = input.ReadString(); + break; + } + case 18: { + HexSerialNumber = input.ReadString(); + break; + } + case 24: { + RevocationReason = (global::Google.Cloud.Security.PrivateCA.V1.RevocationReason) input.ReadEnum(); + 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: { + Certificate = input.ReadString(); + break; + } + case 18: { + HexSerialNumber = input.ReadString(); + break; + } + case 24: { + RevocationReason = (global::Google.Cloud.Security.PrivateCA.V1.RevocationReason) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A [Certificate][google.cloud.security.privateca.v1.Certificate] corresponds + /// to a signed X.509 certificate issued by a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Certificate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Certificate()); + 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.Security.PrivateCA.V1.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 Certificate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Certificate(Certificate other) : this() { + name_ = other.name_; + issuerCertificateAuthority_ = other.issuerCertificateAuthority_; + lifetime_ = other.lifetime_ != null ? other.lifetime_.Clone() : null; + certificateTemplate_ = other.certificateTemplate_; + subjectMode_ = other.subjectMode_; + revocationDetails_ = other.revocationDetails_ != null ? other.revocationDetails_.Clone() : null; + pemCertificate_ = other.pemCertificate_; + certificateDescription_ = other.certificateDescription_ != null ? other.certificateDescription_.Clone() : null; + pemCertificateChain_ = other.pemCertificateChain_.Clone(); + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + switch (other.CertificateConfigCase) { + case CertificateConfigOneofCase.PemCsr: + PemCsr = other.PemCsr; + break; + case CertificateConfigOneofCase.Config: + Config = other.Config.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Certificate Clone() { + return new Certificate(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The resource name for this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] in the format + /// `projects/*/locations/*/caPools/*/certificates/*`. + /// + [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 "pem_csr" field. + public const int PemCsrFieldNumber = 2; + /// + /// Immutable. A pem-encoded X.509 certificate signing request (CSR). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PemCsr { + get { return HasPemCsr ? (string) certificateConfig_ : ""; } + set { + certificateConfig_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + certificateConfigCase_ = CertificateConfigOneofCase.PemCsr; + } + } + /// Gets whether the "pem_csr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPemCsr { + get { return certificateConfigCase_ == CertificateConfigOneofCase.PemCsr; } + } + /// Clears the value of the oneof if it's currently set to "pem_csr" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPemCsr() { + if (HasPemCsr) { + ClearCertificateConfig(); + } + } + + /// Field number for the "config" field. + public const int ConfigFieldNumber = 3; + /// + /// Immutable. A description of the certificate and key that does not require + /// X.509 or ASN.1. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig Config { + get { return certificateConfigCase_ == CertificateConfigOneofCase.Config ? (global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig) certificateConfig_ : null; } + set { + certificateConfig_ = value; + certificateConfigCase_ = value == null ? CertificateConfigOneofCase.None : CertificateConfigOneofCase.Config; + } + } + + /// Field number for the "issuer_certificate_authority" field. + public const int IssuerCertificateAuthorityFieldNumber = 4; + private string issuerCertificateAuthority_ = ""; + /// + /// Output only. The resource name of the issuing + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IssuerCertificateAuthority { + get { return issuerCertificateAuthority_; } + set { + issuerCertificateAuthority_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "lifetime" field. + public const int LifetimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Duration lifetime_; + /// + /// Required. Immutable. The desired lifetime of a certificate. Used to create + /// the "not_before_time" and "not_after_time" fields inside an X.509 + /// certificate. Note that the lifetime may be truncated if it would extend + /// past the life of any certificate authority in the issuing chain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration Lifetime { + get { return lifetime_; } + set { + lifetime_ = value; + } + } + + /// Field number for the "certificate_template" field. + public const int CertificateTemplateFieldNumber = 6; + private string certificateTemplate_ = ""; + /// + /// Immutable. The resource name for a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// used to issue this certificate, in the format + /// `projects/*/locations/*/certificateTemplates/*`. + /// If this is specified, the caller must have the necessary permission to + /// use this template. If this is omitted, no template will be used. + /// This template must be in the same location as the + /// [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CertificateTemplate { + get { return certificateTemplate_; } + set { + certificateTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "subject_mode" field. + public const int SubjectModeFieldNumber = 7; + private global::Google.Cloud.Security.PrivateCA.V1.SubjectRequestMode subjectMode_ = global::Google.Cloud.Security.PrivateCA.V1.SubjectRequestMode.Unspecified; + /// + /// Immutable. Specifies how the + /// [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity + /// fields are to be decided. If this is omitted, the `DEFAULT` subject mode + /// will be used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.SubjectRequestMode SubjectMode { + get { return subjectMode_; } + set { + subjectMode_ = value; + } + } + + /// Field number for the "revocation_details" field. + public const int RevocationDetailsFieldNumber = 8; + private global::Google.Cloud.Security.PrivateCA.V1.Certificate.Types.RevocationDetails revocationDetails_; + /// + /// Output only. Details regarding the revocation of this + /// [Certificate][google.cloud.security.privateca.v1.Certificate]. This + /// [Certificate][google.cloud.security.privateca.v1.Certificate] is considered + /// revoked if and only if this field is present. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.Certificate.Types.RevocationDetails RevocationDetails { + get { return revocationDetails_; } + set { + revocationDetails_ = value; + } + } + + /// Field number for the "pem_certificate" field. + public const int PemCertificateFieldNumber = 9; + private string pemCertificate_ = ""; + /// + /// Output only. The pem-encoded, signed X.509 certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PemCertificate { + get { return pemCertificate_; } + set { + pemCertificate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "certificate_description" field. + public const int CertificateDescriptionFieldNumber = 10; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription certificateDescription_; + /// + /// Output only. A structured description of the issued X.509 certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription CertificateDescription { + get { return certificateDescription_; } + set { + certificateDescription_ = value; + } + } + + /// Field number for the "pem_certificate_chain" field. + public const int PemCertificateChainFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_pemCertificateChain_codec + = pb::FieldCodec.ForString(90); + private readonly pbc::RepeatedField pemCertificateChain_ = new pbc::RepeatedField(); + /// + /// Output only. The chain that may be used to verify the X.509 certificate. + /// Expected to be in issuer-to-root order according to RFC 5246. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PemCertificateChain { + get { return pemCertificateChain_; } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 12; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time at which this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] 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 "update_time" field. + public const int UpdateTimeFieldNumber = 13; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time at which this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] was updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 14; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 114); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Optional. Labels with user-defined metadata. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + private object certificateConfig_; + /// Enum of possible cases for the "certificate_config" oneof. + public enum CertificateConfigOneofCase { + None = 0, + PemCsr = 2, + Config = 3, + } + private CertificateConfigOneofCase certificateConfigCase_ = CertificateConfigOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateConfigOneofCase CertificateConfigCase { + get { return certificateConfigCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCertificateConfig() { + certificateConfigCase_ = CertificateConfigOneofCase.None; + certificateConfig_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Certificate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Certificate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (PemCsr != other.PemCsr) return false; + if (!object.Equals(Config, other.Config)) return false; + if (IssuerCertificateAuthority != other.IssuerCertificateAuthority) return false; + if (!object.Equals(Lifetime, other.Lifetime)) return false; + if (CertificateTemplate != other.CertificateTemplate) return false; + if (SubjectMode != other.SubjectMode) return false; + if (!object.Equals(RevocationDetails, other.RevocationDetails)) return false; + if (PemCertificate != other.PemCertificate) return false; + if (!object.Equals(CertificateDescription, other.CertificateDescription)) return false; + if(!pemCertificateChain_.Equals(other.pemCertificateChain_)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (CertificateConfigCase != other.CertificateConfigCase) 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 (HasPemCsr) hash ^= PemCsr.GetHashCode(); + if (certificateConfigCase_ == CertificateConfigOneofCase.Config) hash ^= Config.GetHashCode(); + if (IssuerCertificateAuthority.Length != 0) hash ^= IssuerCertificateAuthority.GetHashCode(); + if (lifetime_ != null) hash ^= Lifetime.GetHashCode(); + if (CertificateTemplate.Length != 0) hash ^= CertificateTemplate.GetHashCode(); + if (SubjectMode != global::Google.Cloud.Security.PrivateCA.V1.SubjectRequestMode.Unspecified) hash ^= SubjectMode.GetHashCode(); + if (revocationDetails_ != null) hash ^= RevocationDetails.GetHashCode(); + if (PemCertificate.Length != 0) hash ^= PemCertificate.GetHashCode(); + if (certificateDescription_ != null) hash ^= CertificateDescription.GetHashCode(); + hash ^= pemCertificateChain_.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + hash ^= (int) certificateConfigCase_; + 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 (HasPemCsr) { + output.WriteRawTag(18); + output.WriteString(PemCsr); + } + if (certificateConfigCase_ == CertificateConfigOneofCase.Config) { + output.WriteRawTag(26); + output.WriteMessage(Config); + } + if (IssuerCertificateAuthority.Length != 0) { + output.WriteRawTag(34); + output.WriteString(IssuerCertificateAuthority); + } + if (lifetime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Lifetime); + } + if (CertificateTemplate.Length != 0) { + output.WriteRawTag(50); + output.WriteString(CertificateTemplate); + } + if (SubjectMode != global::Google.Cloud.Security.PrivateCA.V1.SubjectRequestMode.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) SubjectMode); + } + if (revocationDetails_ != null) { + output.WriteRawTag(66); + output.WriteMessage(RevocationDetails); + } + if (PemCertificate.Length != 0) { + output.WriteRawTag(74); + output.WriteString(PemCertificate); + } + if (certificateDescription_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CertificateDescription); + } + pemCertificateChain_.WriteTo(output, _repeated_pemCertificateChain_codec); + if (createTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(106); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_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) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasPemCsr) { + output.WriteRawTag(18); + output.WriteString(PemCsr); + } + if (certificateConfigCase_ == CertificateConfigOneofCase.Config) { + output.WriteRawTag(26); + output.WriteMessage(Config); + } + if (IssuerCertificateAuthority.Length != 0) { + output.WriteRawTag(34); + output.WriteString(IssuerCertificateAuthority); + } + if (lifetime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Lifetime); + } + if (CertificateTemplate.Length != 0) { + output.WriteRawTag(50); + output.WriteString(CertificateTemplate); + } + if (SubjectMode != global::Google.Cloud.Security.PrivateCA.V1.SubjectRequestMode.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) SubjectMode); + } + if (revocationDetails_ != null) { + output.WriteRawTag(66); + output.WriteMessage(RevocationDetails); + } + if (PemCertificate.Length != 0) { + output.WriteRawTag(74); + output.WriteString(PemCertificate); + } + if (certificateDescription_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CertificateDescription); + } + pemCertificateChain_.WriteTo(ref output, _repeated_pemCertificateChain_codec); + if (createTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(106); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_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; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasPemCsr) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PemCsr); + } + if (certificateConfigCase_ == CertificateConfigOneofCase.Config) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Config); + } + if (IssuerCertificateAuthority.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IssuerCertificateAuthority); + } + if (lifetime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lifetime); + } + if (CertificateTemplate.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CertificateTemplate); + } + if (SubjectMode != global::Google.Cloud.Security.PrivateCA.V1.SubjectRequestMode.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SubjectMode); + } + if (revocationDetails_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RevocationDetails); + } + if (PemCertificate.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PemCertificate); + } + if (certificateDescription_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CertificateDescription); + } + size += pemCertificateChain_.CalculateSize(_repeated_pemCertificateChain_codec); + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Certificate other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.IssuerCertificateAuthority.Length != 0) { + IssuerCertificateAuthority = other.IssuerCertificateAuthority; + } + if (other.lifetime_ != null) { + if (lifetime_ == null) { + Lifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + Lifetime.MergeFrom(other.Lifetime); + } + if (other.CertificateTemplate.Length != 0) { + CertificateTemplate = other.CertificateTemplate; + } + if (other.SubjectMode != global::Google.Cloud.Security.PrivateCA.V1.SubjectRequestMode.Unspecified) { + SubjectMode = other.SubjectMode; + } + if (other.revocationDetails_ != null) { + if (revocationDetails_ == null) { + RevocationDetails = new global::Google.Cloud.Security.PrivateCA.V1.Certificate.Types.RevocationDetails(); + } + RevocationDetails.MergeFrom(other.RevocationDetails); + } + if (other.PemCertificate.Length != 0) { + PemCertificate = other.PemCertificate; + } + if (other.certificateDescription_ != null) { + if (certificateDescription_ == null) { + CertificateDescription = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription(); + } + CertificateDescription.MergeFrom(other.CertificateDescription); + } + pemCertificateChain_.Add(other.pemCertificateChain_); + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + switch (other.CertificateConfigCase) { + case CertificateConfigOneofCase.PemCsr: + PemCsr = other.PemCsr; + break; + case CertificateConfigOneofCase.Config: + if (Config == null) { + Config = new global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig(); + } + Config.MergeFrom(other.Config); + 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: { + PemCsr = input.ReadString(); + break; + } + case 26: { + global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig subBuilder = new global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig(); + if (certificateConfigCase_ == CertificateConfigOneofCase.Config) { + subBuilder.MergeFrom(Config); + } + input.ReadMessage(subBuilder); + Config = subBuilder; + break; + } + case 34: { + IssuerCertificateAuthority = input.ReadString(); + break; + } + case 42: { + if (lifetime_ == null) { + Lifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Lifetime); + break; + } + case 50: { + CertificateTemplate = input.ReadString(); + break; + } + case 56: { + SubjectMode = (global::Google.Cloud.Security.PrivateCA.V1.SubjectRequestMode) input.ReadEnum(); + break; + } + case 66: { + if (revocationDetails_ == null) { + RevocationDetails = new global::Google.Cloud.Security.PrivateCA.V1.Certificate.Types.RevocationDetails(); + } + input.ReadMessage(RevocationDetails); + break; + } + case 74: { + PemCertificate = input.ReadString(); + break; + } + case 82: { + if (certificateDescription_ == null) { + CertificateDescription = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription(); + } + input.ReadMessage(CertificateDescription); + break; + } + case 90: { + pemCertificateChain_.AddEntriesFrom(input, _repeated_pemCertificateChain_codec); + break; + } + case 98: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 106: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 114: { + labels_.AddEntriesFrom(input, _map_labels_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: { + Name = input.ReadString(); + break; + } + case 18: { + PemCsr = input.ReadString(); + break; + } + case 26: { + global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig subBuilder = new global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig(); + if (certificateConfigCase_ == CertificateConfigOneofCase.Config) { + subBuilder.MergeFrom(Config); + } + input.ReadMessage(subBuilder); + Config = subBuilder; + break; + } + case 34: { + IssuerCertificateAuthority = input.ReadString(); + break; + } + case 42: { + if (lifetime_ == null) { + Lifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Lifetime); + break; + } + case 50: { + CertificateTemplate = input.ReadString(); + break; + } + case 56: { + SubjectMode = (global::Google.Cloud.Security.PrivateCA.V1.SubjectRequestMode) input.ReadEnum(); + break; + } + case 66: { + if (revocationDetails_ == null) { + RevocationDetails = new global::Google.Cloud.Security.PrivateCA.V1.Certificate.Types.RevocationDetails(); + } + input.ReadMessage(RevocationDetails); + break; + } + case 74: { + PemCertificate = input.ReadString(); + break; + } + case 82: { + if (certificateDescription_ == null) { + CertificateDescription = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription(); + } + input.ReadMessage(CertificateDescription); + break; + } + case 90: { + pemCertificateChain_.AddEntriesFrom(ref input, _repeated_pemCertificateChain_codec); + break; + } + case 98: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 106: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 114: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Certificate message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Describes fields that are relavent to the revocation of a + /// [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RevocationDetails : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RevocationDetails()); + 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.Security.PrivateCA.V1.Certificate.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 RevocationDetails() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RevocationDetails(RevocationDetails other) : this() { + revocationState_ = other.revocationState_; + revocationTime_ = other.revocationTime_ != null ? other.revocationTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RevocationDetails Clone() { + return new RevocationDetails(this); + } + + /// Field number for the "revocation_state" field. + public const int RevocationStateFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.RevocationReason revocationState_ = global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified; + /// + /// Indicates why a + /// [Certificate][google.cloud.security.privateca.v1.Certificate] was + /// revoked. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.RevocationReason RevocationState { + get { return revocationState_; } + set { + revocationState_ = value; + } + } + + /// Field number for the "revocation_time" field. + public const int RevocationTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp revocationTime_; + /// + /// The time at which this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] was + /// revoked. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RevocationTime { + get { return revocationTime_; } + set { + revocationTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RevocationDetails); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RevocationDetails other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RevocationState != other.RevocationState) return false; + if (!object.Equals(RevocationTime, other.RevocationTime)) 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 (RevocationState != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) hash ^= RevocationState.GetHashCode(); + if (revocationTime_ != null) hash ^= RevocationTime.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 (RevocationState != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) RevocationState); + } + if (revocationTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RevocationTime); + } + 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 (RevocationState != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) RevocationState); + } + if (revocationTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RevocationTime); + } + 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 (RevocationState != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RevocationState); + } + if (revocationTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RevocationTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RevocationDetails other) { + if (other == null) { + return; + } + if (other.RevocationState != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) { + RevocationState = other.RevocationState; + } + if (other.revocationTime_ != null) { + if (revocationTime_ == null) { + RevocationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RevocationTime.MergeFrom(other.RevocationTime); + } + _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 8: { + RevocationState = (global::Google.Cloud.Security.PrivateCA.V1.RevocationReason) input.ReadEnum(); + break; + } + case 18: { + if (revocationTime_ == null) { + RevocationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RevocationTime); + 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 8: { + RevocationState = (global::Google.Cloud.Security.PrivateCA.V1.RevocationReason) input.ReadEnum(); + break; + } + case 18: { + if (revocationTime_ == null) { + RevocationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RevocationTime); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// refers to a managed template for certificate issuance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CertificateTemplate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CertificateTemplate()); + 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.Security.PrivateCA.V1.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 CertificateTemplate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateTemplate(CertificateTemplate other) : this() { + name_ = other.name_; + maximumLifetime_ = other.maximumLifetime_ != null ? other.maximumLifetime_.Clone() : null; + predefinedValues_ = other.predefinedValues_ != null ? other.predefinedValues_.Clone() : null; + identityConstraints_ = other.identityConstraints_ != null ? other.identityConstraints_.Clone() : null; + passthroughExtensions_ = other.passthroughExtensions_ != null ? other.passthroughExtensions_.Clone() : null; + description_ = other.description_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateTemplate Clone() { + return new CertificateTemplate(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The resource name for this + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in the format `projects/*/locations/*/certificateTemplates/*`. + /// + [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 "maximum_lifetime" field. + public const int MaximumLifetimeFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Duration maximumLifetime_; + /// + /// Optional. The maximum lifetime allowed for issued + /// [Certificates][google.cloud.security.privateca.v1.Certificate] that use + /// this template. If the issuing + /// [CaPool][google.cloud.security.privateca.v1.CaPool] resource's + /// [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] + /// specifies a + /// [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime] + /// the minimum of the two durations will be the maximum lifetime for issued + /// [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that + /// if the issuing + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// expires before a + /// [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested + /// maximum_lifetime, the effective lifetime will be explicitly truncated + /// to match it. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration MaximumLifetime { + get { return maximumLifetime_; } + set { + maximumLifetime_ = value; + } + } + + /// Field number for the "predefined_values" field. + public const int PredefinedValuesFieldNumber = 2; + private global::Google.Cloud.Security.PrivateCA.V1.X509Parameters predefinedValues_; + /// + /// Optional. A set of X.509 values that will be applied to all issued + /// certificates that use this template. If the certificate request includes + /// conflicting values for the same properties, they will be overwritten by the + /// values defined here. If the issuing + /// [CaPool][google.cloud.security.privateca.v1.CaPool]'s + /// [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] + /// defines conflicting + /// [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values] + /// for the same properties, the certificate issuance request will fail. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.X509Parameters PredefinedValues { + get { return predefinedValues_; } + set { + predefinedValues_ = value; + } + } + + /// Field number for the "identity_constraints" field. + public const int IdentityConstraintsFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateIdentityConstraints identityConstraints_; + /// + /// Optional. Describes constraints on identities that may be appear in + /// [Certificates][google.cloud.security.privateca.v1.Certificate] issued using + /// this template. If this is omitted, then this template will not add + /// restrictions on a certificate's identity. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateIdentityConstraints IdentityConstraints { + get { return identityConstraints_; } + set { + identityConstraints_ = value; + } + } + + /// Field number for the "passthrough_extensions" field. + public const int PassthroughExtensionsFieldNumber = 4; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints passthroughExtensions_; + /// + /// Optional. Describes the set of X.509 extensions that may appear in a + /// [Certificate][google.cloud.security.privateca.v1.Certificate] issued using + /// this + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// If a certificate request sets extensions that don't appear in the + /// [passthrough_extensions][google.cloud.security.privateca.v1.CertificateTemplate.passthrough_extensions], + /// those extensions will be dropped. If the issuing + /// [CaPool][google.cloud.security.privateca.v1.CaPool]'s + /// [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] + /// defines + /// [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values] + /// that don't appear here, the certificate issuance request will fail. If this + /// is omitted, then this template will not add restrictions on a certificate's + /// X.509 extensions. These constraints do not apply to X.509 extensions set in + /// this + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s + /// [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints PassthroughExtensions { + get { return passthroughExtensions_; } + set { + passthroughExtensions_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 5; + private string description_ = ""; + /// + /// Optional. A human-readable description of scenarios this template is + /// intended for. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time at which this + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// 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 "update_time" field. + public const int UpdateTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time at which this + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// was updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 8; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 66); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// Optional. Labels with user-defined metadata. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CertificateTemplate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CertificateTemplate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(MaximumLifetime, other.MaximumLifetime)) return false; + if (!object.Equals(PredefinedValues, other.PredefinedValues)) return false; + if (!object.Equals(IdentityConstraints, other.IdentityConstraints)) return false; + if (!object.Equals(PassthroughExtensions, other.PassthroughExtensions)) return false; + if (Description != other.Description) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) 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 (maximumLifetime_ != null) hash ^= MaximumLifetime.GetHashCode(); + if (predefinedValues_ != null) hash ^= PredefinedValues.GetHashCode(); + if (identityConstraints_ != null) hash ^= IdentityConstraints.GetHashCode(); + if (passthroughExtensions_ != null) hash ^= PassthroughExtensions.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.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 (predefinedValues_ != null) { + output.WriteRawTag(18); + output.WriteMessage(PredefinedValues); + } + if (identityConstraints_ != null) { + output.WriteRawTag(26); + output.WriteMessage(IdentityConstraints); + } + if (passthroughExtensions_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PassthroughExtensions); + } + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (createTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (maximumLifetime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(MaximumLifetime); + } + 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 (predefinedValues_ != null) { + output.WriteRawTag(18); + output.WriteMessage(PredefinedValues); + } + if (identityConstraints_ != null) { + output.WriteRawTag(26); + output.WriteMessage(IdentityConstraints); + } + if (passthroughExtensions_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PassthroughExtensions); + } + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (createTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (maximumLifetime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(MaximumLifetime); + } + 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 (maximumLifetime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaximumLifetime); + } + if (predefinedValues_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PredefinedValues); + } + if (identityConstraints_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IdentityConstraints); + } + if (passthroughExtensions_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PassthroughExtensions); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CertificateTemplate other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.maximumLifetime_ != null) { + if (maximumLifetime_ == null) { + MaximumLifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + MaximumLifetime.MergeFrom(other.MaximumLifetime); + } + if (other.predefinedValues_ != null) { + if (predefinedValues_ == null) { + PredefinedValues = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters(); + } + PredefinedValues.MergeFrom(other.PredefinedValues); + } + if (other.identityConstraints_ != null) { + if (identityConstraints_ == null) { + IdentityConstraints = new global::Google.Cloud.Security.PrivateCA.V1.CertificateIdentityConstraints(); + } + IdentityConstraints.MergeFrom(other.IdentityConstraints); + } + if (other.passthroughExtensions_ != null) { + if (passthroughExtensions_ == null) { + PassthroughExtensions = new global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints(); + } + PassthroughExtensions.MergeFrom(other.PassthroughExtensions); + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.MergeFrom(other.labels_); + _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 (predefinedValues_ == null) { + PredefinedValues = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters(); + } + input.ReadMessage(PredefinedValues); + break; + } + case 26: { + if (identityConstraints_ == null) { + IdentityConstraints = new global::Google.Cloud.Security.PrivateCA.V1.CertificateIdentityConstraints(); + } + input.ReadMessage(IdentityConstraints); + break; + } + case 34: { + if (passthroughExtensions_ == null) { + PassthroughExtensions = new global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints(); + } + input.ReadMessage(PassthroughExtensions); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 50: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 58: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 66: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 74: { + if (maximumLifetime_ == null) { + MaximumLifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(MaximumLifetime); + 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 (predefinedValues_ == null) { + PredefinedValues = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters(); + } + input.ReadMessage(PredefinedValues); + break; + } + case 26: { + if (identityConstraints_ == null) { + IdentityConstraints = new global::Google.Cloud.Security.PrivateCA.V1.CertificateIdentityConstraints(); + } + input.ReadMessage(IdentityConstraints); + break; + } + case 34: { + if (passthroughExtensions_ == null) { + PassthroughExtensions = new global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints(); + } + input.ReadMessage(PassthroughExtensions); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 50: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 58: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 66: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 74: { + if (maximumLifetime_ == null) { + MaximumLifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(MaximumLifetime); + break; + } + } + } + } + #endif + + } + + /// + /// An [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] is + /// used to describe certain fields of an X.509 certificate, such as the key + /// usage fields, fields specific to CA certificates, certificate policy + /// extensions and custom extensions. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class X509Parameters : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new X509Parameters()); + 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.Security.PrivateCA.V1.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 X509Parameters() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public X509Parameters(X509Parameters other) : this() { + keyUsage_ = other.keyUsage_ != null ? other.keyUsage_.Clone() : null; + caOptions_ = other.caOptions_ != null ? other.caOptions_.Clone() : null; + policyIds_ = other.policyIds_.Clone(); + aiaOcspServers_ = other.aiaOcspServers_.Clone(); + nameConstraints_ = other.nameConstraints_ != null ? other.nameConstraints_.Clone() : null; + additionalExtensions_ = other.additionalExtensions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public X509Parameters Clone() { + return new X509Parameters(this); + } + + /// Field number for the "key_usage" field. + public const int KeyUsageFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.KeyUsage keyUsage_; + /// + /// Optional. Indicates the intended use for keys that correspond to a + /// certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.KeyUsage KeyUsage { + get { return keyUsage_; } + set { + keyUsage_ = value; + } + } + + /// Field number for the "ca_options" field. + public const int CaOptionsFieldNumber = 2; + private global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.CaOptions caOptions_; + /// + /// Optional. Describes options in this + /// [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that + /// are relevant in a CA certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.CaOptions CaOptions { + get { return caOptions_; } + set { + caOptions_ = value; + } + } + + /// Field number for the "policy_ids" field. + public const int PolicyIdsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_policyIds_codec + = pb::FieldCodec.ForMessage(26, global::Google.Cloud.Security.PrivateCA.V1.ObjectId.Parser); + private readonly pbc::RepeatedField policyIds_ = new pbc::RepeatedField(); + /// + /// Optional. Describes the X.509 certificate policy object identifiers, per + /// https://tools.ietf.org/html/rfc5280#section-4.2.1.4. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PolicyIds { + get { return policyIds_; } + } + + /// Field number for the "aia_ocsp_servers" field. + public const int AiaOcspServersFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_aiaOcspServers_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField aiaOcspServers_ = new pbc::RepeatedField(); + /// + /// Optional. Describes Online Certificate Status Protocol (OCSP) endpoint + /// addresses that appear in the "Authority Information Access" extension in + /// the certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AiaOcspServers { + get { return aiaOcspServers_; } + } + + /// Field number for the "name_constraints" field. + public const int NameConstraintsFieldNumber = 6; + private global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.NameConstraints nameConstraints_; + /// + /// Optional. Describes the X.509 name constraints extension. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.NameConstraints NameConstraints { + get { return nameConstraints_; } + set { + nameConstraints_ = value; + } + } + + /// Field number for the "additional_extensions" field. + public const int AdditionalExtensionsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_additionalExtensions_codec + = pb::FieldCodec.ForMessage(42, global::Google.Cloud.Security.PrivateCA.V1.X509Extension.Parser); + private readonly pbc::RepeatedField additionalExtensions_ = new pbc::RepeatedField(); + /// + /// Optional. Describes custom X.509 extensions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AdditionalExtensions { + get { return additionalExtensions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as X509Parameters); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(X509Parameters other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(KeyUsage, other.KeyUsage)) return false; + if (!object.Equals(CaOptions, other.CaOptions)) return false; + if(!policyIds_.Equals(other.policyIds_)) return false; + if(!aiaOcspServers_.Equals(other.aiaOcspServers_)) return false; + if (!object.Equals(NameConstraints, other.NameConstraints)) return false; + if(!additionalExtensions_.Equals(other.additionalExtensions_)) 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 (keyUsage_ != null) hash ^= KeyUsage.GetHashCode(); + if (caOptions_ != null) hash ^= CaOptions.GetHashCode(); + hash ^= policyIds_.GetHashCode(); + hash ^= aiaOcspServers_.GetHashCode(); + if (nameConstraints_ != null) hash ^= NameConstraints.GetHashCode(); + hash ^= additionalExtensions_.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 (keyUsage_ != null) { + output.WriteRawTag(10); + output.WriteMessage(KeyUsage); + } + if (caOptions_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CaOptions); + } + policyIds_.WriteTo(output, _repeated_policyIds_codec); + aiaOcspServers_.WriteTo(output, _repeated_aiaOcspServers_codec); + additionalExtensions_.WriteTo(output, _repeated_additionalExtensions_codec); + if (nameConstraints_ != null) { + output.WriteRawTag(50); + output.WriteMessage(NameConstraints); + } + 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 (keyUsage_ != null) { + output.WriteRawTag(10); + output.WriteMessage(KeyUsage); + } + if (caOptions_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CaOptions); + } + policyIds_.WriteTo(ref output, _repeated_policyIds_codec); + aiaOcspServers_.WriteTo(ref output, _repeated_aiaOcspServers_codec); + additionalExtensions_.WriteTo(ref output, _repeated_additionalExtensions_codec); + if (nameConstraints_ != null) { + output.WriteRawTag(50); + output.WriteMessage(NameConstraints); + } + 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 (keyUsage_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyUsage); + } + if (caOptions_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaOptions); + } + size += policyIds_.CalculateSize(_repeated_policyIds_codec); + size += aiaOcspServers_.CalculateSize(_repeated_aiaOcspServers_codec); + if (nameConstraints_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NameConstraints); + } + size += additionalExtensions_.CalculateSize(_repeated_additionalExtensions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(X509Parameters other) { + if (other == null) { + return; + } + if (other.keyUsage_ != null) { + if (keyUsage_ == null) { + KeyUsage = new global::Google.Cloud.Security.PrivateCA.V1.KeyUsage(); + } + KeyUsage.MergeFrom(other.KeyUsage); + } + if (other.caOptions_ != null) { + if (caOptions_ == null) { + CaOptions = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.CaOptions(); + } + CaOptions.MergeFrom(other.CaOptions); + } + policyIds_.Add(other.policyIds_); + aiaOcspServers_.Add(other.aiaOcspServers_); + if (other.nameConstraints_ != null) { + if (nameConstraints_ == null) { + NameConstraints = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.NameConstraints(); + } + NameConstraints.MergeFrom(other.NameConstraints); + } + additionalExtensions_.Add(other.additionalExtensions_); + _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 (keyUsage_ == null) { + KeyUsage = new global::Google.Cloud.Security.PrivateCA.V1.KeyUsage(); + } + input.ReadMessage(KeyUsage); + break; + } + case 18: { + if (caOptions_ == null) { + CaOptions = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.CaOptions(); + } + input.ReadMessage(CaOptions); + break; + } + case 26: { + policyIds_.AddEntriesFrom(input, _repeated_policyIds_codec); + break; + } + case 34: { + aiaOcspServers_.AddEntriesFrom(input, _repeated_aiaOcspServers_codec); + break; + } + case 42: { + additionalExtensions_.AddEntriesFrom(input, _repeated_additionalExtensions_codec); + break; + } + case 50: { + if (nameConstraints_ == null) { + NameConstraints = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.NameConstraints(); + } + input.ReadMessage(NameConstraints); + 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 (keyUsage_ == null) { + KeyUsage = new global::Google.Cloud.Security.PrivateCA.V1.KeyUsage(); + } + input.ReadMessage(KeyUsage); + break; + } + case 18: { + if (caOptions_ == null) { + CaOptions = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.CaOptions(); + } + input.ReadMessage(CaOptions); + break; + } + case 26: { + policyIds_.AddEntriesFrom(ref input, _repeated_policyIds_codec); + break; + } + case 34: { + aiaOcspServers_.AddEntriesFrom(ref input, _repeated_aiaOcspServers_codec); + break; + } + case 42: { + additionalExtensions_.AddEntriesFrom(ref input, _repeated_additionalExtensions_codec); + break; + } + case 50: { + if (nameConstraints_ == null) { + NameConstraints = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters.Types.NameConstraints(); + } + input.ReadMessage(NameConstraints); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the X509Parameters message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Describes values that are relevant in a CA certificate. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CaOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CaOptions()); + 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.Security.PrivateCA.V1.X509Parameters.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 CaOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CaOptions(CaOptions other) : this() { + _hasBits0 = other._hasBits0; + isCa_ = other.isCa_; + maxIssuerPathLength_ = other.maxIssuerPathLength_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CaOptions Clone() { + return new CaOptions(this); + } + + /// Field number for the "is_ca" field. + public const int IsCaFieldNumber = 1; + private readonly static bool IsCaDefaultValue = false; + + private bool isCa_; + /// + /// Optional. Refers to the "CA" X.509 extension, which is a boolean value. + /// When this value is missing, the extension will be omitted from the CA + /// certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsCa { + get { if ((_hasBits0 & 1) != 0) { return isCa_; } else { return IsCaDefaultValue; } } + set { + _hasBits0 |= 1; + isCa_ = value; + } + } + /// Gets whether the "is_ca" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsCa { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_ca" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsCa() { + _hasBits0 &= ~1; + } + + /// Field number for the "max_issuer_path_length" field. + public const int MaxIssuerPathLengthFieldNumber = 2; + private readonly static int MaxIssuerPathLengthDefaultValue = 0; + + private int maxIssuerPathLength_; + /// + /// Optional. Refers to the path length restriction X.509 extension. For a CA + /// certificate, this value describes the depth of subordinate CA + /// certificates that are allowed. + /// If this value is less than 0, the request will fail. + /// If this value is missing, the max path length will be omitted from the + /// CA certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxIssuerPathLength { + get { if ((_hasBits0 & 2) != 0) { return maxIssuerPathLength_; } else { return MaxIssuerPathLengthDefaultValue; } } + set { + _hasBits0 |= 2; + maxIssuerPathLength_ = value; + } + } + /// Gets whether the "max_issuer_path_length" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxIssuerPathLength { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "max_issuer_path_length" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxIssuerPathLength() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CaOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CaOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsCa != other.IsCa) return false; + if (MaxIssuerPathLength != other.MaxIssuerPathLength) 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 (HasIsCa) hash ^= IsCa.GetHashCode(); + if (HasMaxIssuerPathLength) hash ^= MaxIssuerPathLength.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 (HasIsCa) { + output.WriteRawTag(8); + output.WriteBool(IsCa); + } + if (HasMaxIssuerPathLength) { + output.WriteRawTag(16); + output.WriteInt32(MaxIssuerPathLength); + } + 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 (HasIsCa) { + output.WriteRawTag(8); + output.WriteBool(IsCa); + } + if (HasMaxIssuerPathLength) { + output.WriteRawTag(16); + output.WriteInt32(MaxIssuerPathLength); + } + 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 (HasIsCa) { + size += 1 + 1; + } + if (HasMaxIssuerPathLength) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxIssuerPathLength); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CaOptions other) { + if (other == null) { + return; + } + if (other.HasIsCa) { + IsCa = other.IsCa; + } + if (other.HasMaxIssuerPathLength) { + MaxIssuerPathLength = other.MaxIssuerPathLength; + } + _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 8: { + IsCa = input.ReadBool(); + break; + } + case 16: { + MaxIssuerPathLength = 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 8: { + IsCa = input.ReadBool(); + break; + } + case 16: { + MaxIssuerPathLength = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Describes the X.509 name constraints extension, per + /// https://tools.ietf.org/html/rfc5280#section-4.2.1.10 + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NameConstraints : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NameConstraints()); + 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.Security.PrivateCA.V1.X509Parameters.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 NameConstraints() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NameConstraints(NameConstraints other) : this() { + critical_ = other.critical_; + permittedDnsNames_ = other.permittedDnsNames_.Clone(); + excludedDnsNames_ = other.excludedDnsNames_.Clone(); + permittedIpRanges_ = other.permittedIpRanges_.Clone(); + excludedIpRanges_ = other.excludedIpRanges_.Clone(); + permittedEmailAddresses_ = other.permittedEmailAddresses_.Clone(); + excludedEmailAddresses_ = other.excludedEmailAddresses_.Clone(); + permittedUris_ = other.permittedUris_.Clone(); + excludedUris_ = other.excludedUris_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NameConstraints Clone() { + return new NameConstraints(this); + } + + /// Field number for the "critical" field. + public const int CriticalFieldNumber = 1; + private bool critical_; + /// + /// Indicates whether or not the name constraints are marked critical. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Critical { + get { return critical_; } + set { + critical_ = value; + } + } + + /// Field number for the "permitted_dns_names" field. + public const int PermittedDnsNamesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_permittedDnsNames_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField permittedDnsNames_ = new pbc::RepeatedField(); + /// + /// Contains permitted DNS names. Any DNS name that can be + /// constructed by simply adding zero or more labels to + /// the left-hand side of the name satisfies the name constraint. + /// For example, `example.com`, `www.example.com`, `www.sub.example.com` + /// would satisfy `example.com` while `example1.com` does not. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PermittedDnsNames { + get { return permittedDnsNames_; } + } + + /// Field number for the "excluded_dns_names" field. + public const int ExcludedDnsNamesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_excludedDnsNames_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField excludedDnsNames_ = new pbc::RepeatedField(); + /// + /// Contains excluded DNS names. Any DNS name that can be + /// constructed by simply adding zero or more labels to + /// the left-hand side of the name satisfies the name constraint. + /// For example, `example.com`, `www.example.com`, `www.sub.example.com` + /// would satisfy `example.com` while `example1.com` does not. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ExcludedDnsNames { + get { return excludedDnsNames_; } + } + + /// Field number for the "permitted_ip_ranges" field. + public const int PermittedIpRangesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_permittedIpRanges_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField permittedIpRanges_ = new pbc::RepeatedField(); + /// + /// Contains the permitted IP ranges. For IPv4 addresses, the ranges + /// are expressed using CIDR notation as specified in RFC 4632. + /// For IPv6 addresses, the ranges are expressed in similar encoding as IPv4 + /// addresses. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PermittedIpRanges { + get { return permittedIpRanges_; } + } + + /// Field number for the "excluded_ip_ranges" field. + public const int ExcludedIpRangesFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_excludedIpRanges_codec + = pb::FieldCodec.ForString(42); + private readonly pbc::RepeatedField excludedIpRanges_ = new pbc::RepeatedField(); + /// + /// Contains the excluded IP ranges. For IPv4 addresses, the ranges + /// are expressed using CIDR notation as specified in RFC 4632. + /// For IPv6 addresses, the ranges are expressed in similar encoding as IPv4 + /// addresses. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ExcludedIpRanges { + get { return excludedIpRanges_; } + } + + /// Field number for the "permitted_email_addresses" field. + public const int PermittedEmailAddressesFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_permittedEmailAddresses_codec + = pb::FieldCodec.ForString(50); + private readonly pbc::RepeatedField permittedEmailAddresses_ = new pbc::RepeatedField(); + /// + /// Contains the permitted email addresses. The value can be a particular + /// email address, a hostname to indicate all email addresses on that host or + /// a domain with a leading period (e.g. `.example.com`) to indicate + /// all email addresses in that domain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PermittedEmailAddresses { + get { return permittedEmailAddresses_; } + } + + /// Field number for the "excluded_email_addresses" field. + public const int ExcludedEmailAddressesFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_excludedEmailAddresses_codec + = pb::FieldCodec.ForString(58); + private readonly pbc::RepeatedField excludedEmailAddresses_ = new pbc::RepeatedField(); + /// + /// Contains the excluded email addresses. The value can be a particular + /// email address, a hostname to indicate all email addresses on that host or + /// a domain with a leading period (e.g. `.example.com`) to indicate + /// all email addresses in that domain. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ExcludedEmailAddresses { + get { return excludedEmailAddresses_; } + } + + /// Field number for the "permitted_uris" field. + public const int PermittedUrisFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_permittedUris_codec + = pb::FieldCodec.ForString(66); + private readonly pbc::RepeatedField permittedUris_ = new pbc::RepeatedField(); + /// + /// Contains the permitted URIs that apply to the host part of the name. + /// The value can be a hostname or a domain with a + /// leading period (like `.example.com`) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PermittedUris { + get { return permittedUris_; } + } + + /// Field number for the "excluded_uris" field. + public const int ExcludedUrisFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_excludedUris_codec + = pb::FieldCodec.ForString(74); + private readonly pbc::RepeatedField excludedUris_ = new pbc::RepeatedField(); + /// + /// Contains the excluded URIs that apply to the host part of the name. + /// The value can be a hostname or a domain with a + /// leading period (like `.example.com`) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ExcludedUris { + get { return excludedUris_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NameConstraints); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NameConstraints other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Critical != other.Critical) return false; + if(!permittedDnsNames_.Equals(other.permittedDnsNames_)) return false; + if(!excludedDnsNames_.Equals(other.excludedDnsNames_)) return false; + if(!permittedIpRanges_.Equals(other.permittedIpRanges_)) return false; + if(!excludedIpRanges_.Equals(other.excludedIpRanges_)) return false; + if(!permittedEmailAddresses_.Equals(other.permittedEmailAddresses_)) return false; + if(!excludedEmailAddresses_.Equals(other.excludedEmailAddresses_)) return false; + if(!permittedUris_.Equals(other.permittedUris_)) return false; + if(!excludedUris_.Equals(other.excludedUris_)) 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 (Critical != false) hash ^= Critical.GetHashCode(); + hash ^= permittedDnsNames_.GetHashCode(); + hash ^= excludedDnsNames_.GetHashCode(); + hash ^= permittedIpRanges_.GetHashCode(); + hash ^= excludedIpRanges_.GetHashCode(); + hash ^= permittedEmailAddresses_.GetHashCode(); + hash ^= excludedEmailAddresses_.GetHashCode(); + hash ^= permittedUris_.GetHashCode(); + hash ^= excludedUris_.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 (Critical != false) { + output.WriteRawTag(8); + output.WriteBool(Critical); + } + permittedDnsNames_.WriteTo(output, _repeated_permittedDnsNames_codec); + excludedDnsNames_.WriteTo(output, _repeated_excludedDnsNames_codec); + permittedIpRanges_.WriteTo(output, _repeated_permittedIpRanges_codec); + excludedIpRanges_.WriteTo(output, _repeated_excludedIpRanges_codec); + permittedEmailAddresses_.WriteTo(output, _repeated_permittedEmailAddresses_codec); + excludedEmailAddresses_.WriteTo(output, _repeated_excludedEmailAddresses_codec); + permittedUris_.WriteTo(output, _repeated_permittedUris_codec); + excludedUris_.WriteTo(output, _repeated_excludedUris_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) { + if (Critical != false) { + output.WriteRawTag(8); + output.WriteBool(Critical); + } + permittedDnsNames_.WriteTo(ref output, _repeated_permittedDnsNames_codec); + excludedDnsNames_.WriteTo(ref output, _repeated_excludedDnsNames_codec); + permittedIpRanges_.WriteTo(ref output, _repeated_permittedIpRanges_codec); + excludedIpRanges_.WriteTo(ref output, _repeated_excludedIpRanges_codec); + permittedEmailAddresses_.WriteTo(ref output, _repeated_permittedEmailAddresses_codec); + excludedEmailAddresses_.WriteTo(ref output, _repeated_excludedEmailAddresses_codec); + permittedUris_.WriteTo(ref output, _repeated_permittedUris_codec); + excludedUris_.WriteTo(ref output, _repeated_excludedUris_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; + if (Critical != false) { + size += 1 + 1; + } + size += permittedDnsNames_.CalculateSize(_repeated_permittedDnsNames_codec); + size += excludedDnsNames_.CalculateSize(_repeated_excludedDnsNames_codec); + size += permittedIpRanges_.CalculateSize(_repeated_permittedIpRanges_codec); + size += excludedIpRanges_.CalculateSize(_repeated_excludedIpRanges_codec); + size += permittedEmailAddresses_.CalculateSize(_repeated_permittedEmailAddresses_codec); + size += excludedEmailAddresses_.CalculateSize(_repeated_excludedEmailAddresses_codec); + size += permittedUris_.CalculateSize(_repeated_permittedUris_codec); + size += excludedUris_.CalculateSize(_repeated_excludedUris_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NameConstraints other) { + if (other == null) { + return; + } + if (other.Critical != false) { + Critical = other.Critical; + } + permittedDnsNames_.Add(other.permittedDnsNames_); + excludedDnsNames_.Add(other.excludedDnsNames_); + permittedIpRanges_.Add(other.permittedIpRanges_); + excludedIpRanges_.Add(other.excludedIpRanges_); + permittedEmailAddresses_.Add(other.permittedEmailAddresses_); + excludedEmailAddresses_.Add(other.excludedEmailAddresses_); + permittedUris_.Add(other.permittedUris_); + excludedUris_.Add(other.excludedUris_); + _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 8: { + Critical = input.ReadBool(); + break; + } + case 18: { + permittedDnsNames_.AddEntriesFrom(input, _repeated_permittedDnsNames_codec); + break; + } + case 26: { + excludedDnsNames_.AddEntriesFrom(input, _repeated_excludedDnsNames_codec); + break; + } + case 34: { + permittedIpRanges_.AddEntriesFrom(input, _repeated_permittedIpRanges_codec); + break; + } + case 42: { + excludedIpRanges_.AddEntriesFrom(input, _repeated_excludedIpRanges_codec); + break; + } + case 50: { + permittedEmailAddresses_.AddEntriesFrom(input, _repeated_permittedEmailAddresses_codec); + break; + } + case 58: { + excludedEmailAddresses_.AddEntriesFrom(input, _repeated_excludedEmailAddresses_codec); + break; + } + case 66: { + permittedUris_.AddEntriesFrom(input, _repeated_permittedUris_codec); + break; + } + case 74: { + excludedUris_.AddEntriesFrom(input, _repeated_excludedUris_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 8: { + Critical = input.ReadBool(); + break; + } + case 18: { + permittedDnsNames_.AddEntriesFrom(ref input, _repeated_permittedDnsNames_codec); + break; + } + case 26: { + excludedDnsNames_.AddEntriesFrom(ref input, _repeated_excludedDnsNames_codec); + break; + } + case 34: { + permittedIpRanges_.AddEntriesFrom(ref input, _repeated_permittedIpRanges_codec); + break; + } + case 42: { + excludedIpRanges_.AddEntriesFrom(ref input, _repeated_excludedIpRanges_codec); + break; + } + case 50: { + permittedEmailAddresses_.AddEntriesFrom(ref input, _repeated_permittedEmailAddresses_codec); + break; + } + case 58: { + excludedEmailAddresses_.AddEntriesFrom(ref input, _repeated_excludedEmailAddresses_codec); + break; + } + case 66: { + permittedUris_.AddEntriesFrom(ref input, _repeated_permittedUris_codec); + break; + } + case 74: { + excludedUris_.AddEntriesFrom(ref input, _repeated_excludedUris_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Describes a subordinate CA's issuers. This is either a resource name to a + /// known issuing + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], + /// or a PEM issuer certificate chain. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SubordinateConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubordinateConfig()); + 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.Security.PrivateCA.V1.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 SubordinateConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubordinateConfig(SubordinateConfig other) : this() { + switch (other.SubordinateConfigCase) { + case SubordinateConfigOneofCase.CertificateAuthority: + CertificateAuthority = other.CertificateAuthority; + break; + case SubordinateConfigOneofCase.PemIssuerChain: + PemIssuerChain = other.PemIssuerChain.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubordinateConfig Clone() { + return new SubordinateConfig(this); + } + + /// Field number for the "certificate_authority" field. + public const int CertificateAuthorityFieldNumber = 1; + /// + /// Required. This can refer to a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that was used to create a subordinate + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// This field is used for information and usability purposes only. The + /// resource name is in the format + /// `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CertificateAuthority { + get { return HasCertificateAuthority ? (string) subordinateConfig_ : ""; } + set { + subordinateConfig_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + subordinateConfigCase_ = SubordinateConfigOneofCase.CertificateAuthority; + } + } + /// Gets whether the "certificate_authority" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCertificateAuthority { + get { return subordinateConfigCase_ == SubordinateConfigOneofCase.CertificateAuthority; } + } + /// Clears the value of the oneof if it's currently set to "certificate_authority" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCertificateAuthority() { + if (HasCertificateAuthority) { + ClearSubordinateConfig(); + } + } + + /// Field number for the "pem_issuer_chain" field. + public const int PemIssuerChainFieldNumber = 2; + /// + /// Required. Contains the PEM certificate chain for the issuers of this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], + /// but not pem certificate for this CA itself. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig.Types.SubordinateConfigChain PemIssuerChain { + get { return subordinateConfigCase_ == SubordinateConfigOneofCase.PemIssuerChain ? (global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig.Types.SubordinateConfigChain) subordinateConfig_ : null; } + set { + subordinateConfig_ = value; + subordinateConfigCase_ = value == null ? SubordinateConfigOneofCase.None : SubordinateConfigOneofCase.PemIssuerChain; + } + } + + private object subordinateConfig_; + /// Enum of possible cases for the "subordinate_config" oneof. + public enum SubordinateConfigOneofCase { + None = 0, + CertificateAuthority = 1, + PemIssuerChain = 2, + } + private SubordinateConfigOneofCase subordinateConfigCase_ = SubordinateConfigOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubordinateConfigOneofCase SubordinateConfigCase { + get { return subordinateConfigCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSubordinateConfig() { + subordinateConfigCase_ = SubordinateConfigOneofCase.None; + subordinateConfig_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SubordinateConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SubordinateConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CertificateAuthority != other.CertificateAuthority) return false; + if (!object.Equals(PemIssuerChain, other.PemIssuerChain)) return false; + if (SubordinateConfigCase != other.SubordinateConfigCase) 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 (HasCertificateAuthority) hash ^= CertificateAuthority.GetHashCode(); + if (subordinateConfigCase_ == SubordinateConfigOneofCase.PemIssuerChain) hash ^= PemIssuerChain.GetHashCode(); + hash ^= (int) subordinateConfigCase_; + 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 (HasCertificateAuthority) { + output.WriteRawTag(10); + output.WriteString(CertificateAuthority); + } + if (subordinateConfigCase_ == SubordinateConfigOneofCase.PemIssuerChain) { + output.WriteRawTag(18); + output.WriteMessage(PemIssuerChain); + } + 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 (HasCertificateAuthority) { + output.WriteRawTag(10); + output.WriteString(CertificateAuthority); + } + if (subordinateConfigCase_ == SubordinateConfigOneofCase.PemIssuerChain) { + output.WriteRawTag(18); + output.WriteMessage(PemIssuerChain); + } + 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 (HasCertificateAuthority) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CertificateAuthority); + } + if (subordinateConfigCase_ == SubordinateConfigOneofCase.PemIssuerChain) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PemIssuerChain); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SubordinateConfig other) { + if (other == null) { + return; + } + switch (other.SubordinateConfigCase) { + case SubordinateConfigOneofCase.CertificateAuthority: + CertificateAuthority = other.CertificateAuthority; + break; + case SubordinateConfigOneofCase.PemIssuerChain: + if (PemIssuerChain == null) { + PemIssuerChain = new global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig.Types.SubordinateConfigChain(); + } + PemIssuerChain.MergeFrom(other.PemIssuerChain); + 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: { + CertificateAuthority = input.ReadString(); + break; + } + case 18: { + global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig.Types.SubordinateConfigChain subBuilder = new global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig.Types.SubordinateConfigChain(); + if (subordinateConfigCase_ == SubordinateConfigOneofCase.PemIssuerChain) { + subBuilder.MergeFrom(PemIssuerChain); + } + input.ReadMessage(subBuilder); + PemIssuerChain = 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: { + CertificateAuthority = input.ReadString(); + break; + } + case 18: { + global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig.Types.SubordinateConfigChain subBuilder = new global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig.Types.SubordinateConfigChain(); + if (subordinateConfigCase_ == SubordinateConfigOneofCase.PemIssuerChain) { + subBuilder.MergeFrom(PemIssuerChain); + } + input.ReadMessage(subBuilder); + PemIssuerChain = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the SubordinateConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// This message describes a subordinate CA's issuer certificate chain. This + /// wrapper exists for compatibility reasons. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SubordinateConfigChain : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubordinateConfigChain()); + 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.Security.PrivateCA.V1.SubordinateConfig.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 SubordinateConfigChain() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubordinateConfigChain(SubordinateConfigChain other) : this() { + pemCertificates_ = other.pemCertificates_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubordinateConfigChain Clone() { + return new SubordinateConfigChain(this); + } + + /// Field number for the "pem_certificates" field. + public const int PemCertificatesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_pemCertificates_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField pemCertificates_ = new pbc::RepeatedField(); + /// + /// Required. Expected to be in leaf-to-root order according to RFC 5246. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PemCertificates { + get { return pemCertificates_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SubordinateConfigChain); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SubordinateConfigChain other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!pemCertificates_.Equals(other.pemCertificates_)) 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 ^= pemCertificates_.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 + pemCertificates_.WriteTo(output, _repeated_pemCertificates_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) { + pemCertificates_.WriteTo(ref output, _repeated_pemCertificates_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 += pemCertificates_.CalculateSize(_repeated_pemCertificates_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SubordinateConfigChain other) { + if (other == null) { + return; + } + pemCertificates_.Add(other.pemCertificates_); + _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: { + pemCertificates_.AddEntriesFrom(input, _repeated_pemCertificates_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: { + pemCertificates_.AddEntriesFrom(ref input, _repeated_pemCertificates_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A [PublicKey][google.cloud.security.privateca.v1.PublicKey] describes a + /// public key. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PublicKey : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublicKey()); + 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.Security.PrivateCA.V1.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 PublicKey() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PublicKey(PublicKey other) : this() { + key_ = other.key_; + format_ = other.format_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PublicKey Clone() { + return new PublicKey(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private pb::ByteString key_ = pb::ByteString.Empty; + /// + /// Required. A public key. The padding and encoding + /// must match with the `KeyFormat` value specified for the `format` field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Key { + get { return key_; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "format" field. + public const int FormatFieldNumber = 2; + private global::Google.Cloud.Security.PrivateCA.V1.PublicKey.Types.KeyFormat format_ = global::Google.Cloud.Security.PrivateCA.V1.PublicKey.Types.KeyFormat.Unspecified; + /// + /// Required. The format of the public key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.PublicKey.Types.KeyFormat Format { + get { return format_; } + set { + format_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PublicKey); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PublicKey other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) return false; + if (Format != other.Format) 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 (Key.Length != 0) hash ^= Key.GetHashCode(); + if (Format != global::Google.Cloud.Security.PrivateCA.V1.PublicKey.Types.KeyFormat.Unspecified) hash ^= Format.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 (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Key); + } + if (Format != global::Google.Cloud.Security.PrivateCA.V1.PublicKey.Types.KeyFormat.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Format); + } + 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 (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Key); + } + if (Format != global::Google.Cloud.Security.PrivateCA.V1.PublicKey.Types.KeyFormat.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Format); + } + 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 (Key.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Key); + } + if (Format != global::Google.Cloud.Security.PrivateCA.V1.PublicKey.Types.KeyFormat.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Format); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PublicKey other) { + if (other == null) { + return; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + if (other.Format != global::Google.Cloud.Security.PrivateCA.V1.PublicKey.Types.KeyFormat.Unspecified) { + Format = other.Format; + } + _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: { + Key = input.ReadBytes(); + break; + } + case 16: { + Format = (global::Google.Cloud.Security.PrivateCA.V1.PublicKey.Types.KeyFormat) input.ReadEnum(); + 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: { + Key = input.ReadBytes(); + break; + } + case 16: { + Format = (global::Google.Cloud.Security.PrivateCA.V1.PublicKey.Types.KeyFormat) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the PublicKey message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Types of public keys formats that are supported. Currently, only `PEM` + /// format is supported. + /// + public enum KeyFormat { + /// + /// Default unspecified value. + /// + [pbr::OriginalName("KEY_FORMAT_UNSPECIFIED")] Unspecified = 0, + /// + /// The key is PEM-encoded as defined in [RFC + /// 7468](https://tools.ietf.org/html/rfc7468). It can be any of the + /// following: a PEM-encoded PKCS#1/RFC 3447 RSAPublicKey + /// structure, an RFC 5280 + /// [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) + /// or a PEM-encoded X.509 certificate signing request (CSR). If a + /// [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) + /// is specified, it can contain a A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey + /// or a NIST P-256/secp256r1/prime256v1 or P-384 key. If a CSR is specified, + /// it will used solely for the purpose of extracting the public key. When + /// generated by the service, it will always be an RFC 5280 + /// [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) + /// structure containing an algorithm identifier and a key. + /// + [pbr::OriginalName("PEM")] Pem = 1, + } + + } + #endregion + + } + + /// + /// A [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig] + /// describes an X.509 certificate or CSR that is to be created, as an + /// alternative to using ASN.1. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CertificateConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CertificateConfig()); + 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.Security.PrivateCA.V1.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 CertificateConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateConfig(CertificateConfig other) : this() { + subjectConfig_ = other.subjectConfig_ != null ? other.subjectConfig_.Clone() : null; + x509Config_ = other.x509Config_ != null ? other.x509Config_.Clone() : null; + publicKey_ = other.publicKey_ != null ? other.publicKey_.Clone() : null; + subjectKeyId_ = other.subjectKeyId_ != null ? other.subjectKeyId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateConfig Clone() { + return new CertificateConfig(this); + } + + /// Field number for the "subject_config" field. + public const int SubjectConfigFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.SubjectConfig subjectConfig_; + /// + /// Required. Specifies some of the values in a certificate that are related to + /// the subject. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.SubjectConfig SubjectConfig { + get { return subjectConfig_; } + set { + subjectConfig_ = value; + } + } + + /// Field number for the "x509_config" field. + public const int X509ConfigFieldNumber = 2; + private global::Google.Cloud.Security.PrivateCA.V1.X509Parameters x509Config_; + /// + /// Required. Describes how some of the technical X.509 fields in a certificate + /// should be populated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.X509Parameters X509Config { + get { return x509Config_; } + set { + x509Config_ = value; + } + } + + /// Field number for the "public_key" field. + public const int PublicKeyFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.PublicKey publicKey_; + /// + /// Optional. The public key that corresponds to this config. This is, for + /// example, used when issuing + /// [Certificates][google.cloud.security.privateca.v1.Certificate], but not + /// when creating a self-signed + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// or + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// CSR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.PublicKey PublicKey { + get { return publicKey_; } + set { + publicKey_ = value; + } + } + + /// Field number for the "subject_key_id" field. + public const int SubjectKeyIdFieldNumber = 4; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.KeyId subjectKeyId_; + /// + /// Optional. When specified this provides a custom SKI to be used in the + /// certificate. This should only be used to maintain a SKI of an existing CA + /// originally created outside CA service, which was not generated using method + /// (1) described in RFC 5280 section 4.2.1.2. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.KeyId SubjectKeyId { + get { return subjectKeyId_; } + set { + subjectKeyId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CertificateConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CertificateConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SubjectConfig, other.SubjectConfig)) return false; + if (!object.Equals(X509Config, other.X509Config)) return false; + if (!object.Equals(PublicKey, other.PublicKey)) return false; + if (!object.Equals(SubjectKeyId, other.SubjectKeyId)) 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 (subjectConfig_ != null) hash ^= SubjectConfig.GetHashCode(); + if (x509Config_ != null) hash ^= X509Config.GetHashCode(); + if (publicKey_ != null) hash ^= PublicKey.GetHashCode(); + if (subjectKeyId_ != null) hash ^= SubjectKeyId.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 (subjectConfig_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SubjectConfig); + } + if (x509Config_ != null) { + output.WriteRawTag(18); + output.WriteMessage(X509Config); + } + if (publicKey_ != null) { + output.WriteRawTag(26); + output.WriteMessage(PublicKey); + } + if (subjectKeyId_ != null) { + output.WriteRawTag(34); + output.WriteMessage(SubjectKeyId); + } + 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 (subjectConfig_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SubjectConfig); + } + if (x509Config_ != null) { + output.WriteRawTag(18); + output.WriteMessage(X509Config); + } + if (publicKey_ != null) { + output.WriteRawTag(26); + output.WriteMessage(PublicKey); + } + if (subjectKeyId_ != null) { + output.WriteRawTag(34); + output.WriteMessage(SubjectKeyId); + } + 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 (subjectConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubjectConfig); + } + if (x509Config_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X509Config); + } + if (publicKey_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublicKey); + } + if (subjectKeyId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubjectKeyId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CertificateConfig other) { + if (other == null) { + return; + } + if (other.subjectConfig_ != null) { + if (subjectConfig_ == null) { + SubjectConfig = new global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.SubjectConfig(); + } + SubjectConfig.MergeFrom(other.SubjectConfig); + } + if (other.x509Config_ != null) { + if (x509Config_ == null) { + X509Config = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters(); + } + X509Config.MergeFrom(other.X509Config); + } + if (other.publicKey_ != null) { + if (publicKey_ == null) { + PublicKey = new global::Google.Cloud.Security.PrivateCA.V1.PublicKey(); + } + PublicKey.MergeFrom(other.PublicKey); + } + if (other.subjectKeyId_ != null) { + if (subjectKeyId_ == null) { + SubjectKeyId = new global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.KeyId(); + } + SubjectKeyId.MergeFrom(other.SubjectKeyId); + } + _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 (subjectConfig_ == null) { + SubjectConfig = new global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.SubjectConfig(); + } + input.ReadMessage(SubjectConfig); + break; + } + case 18: { + if (x509Config_ == null) { + X509Config = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters(); + } + input.ReadMessage(X509Config); + break; + } + case 26: { + if (publicKey_ == null) { + PublicKey = new global::Google.Cloud.Security.PrivateCA.V1.PublicKey(); + } + input.ReadMessage(PublicKey); + break; + } + case 34: { + if (subjectKeyId_ == null) { + SubjectKeyId = new global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.KeyId(); + } + input.ReadMessage(SubjectKeyId); + 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 (subjectConfig_ == null) { + SubjectConfig = new global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.SubjectConfig(); + } + input.ReadMessage(SubjectConfig); + break; + } + case 18: { + if (x509Config_ == null) { + X509Config = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters(); + } + input.ReadMessage(X509Config); + break; + } + case 26: { + if (publicKey_ == null) { + PublicKey = new global::Google.Cloud.Security.PrivateCA.V1.PublicKey(); + } + input.ReadMessage(PublicKey); + break; + } + case 34: { + if (subjectKeyId_ == null) { + SubjectKeyId = new global::Google.Cloud.Security.PrivateCA.V1.CertificateConfig.Types.KeyId(); + } + input.ReadMessage(SubjectKeyId); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CertificateConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// These values are used to create the distinguished name and subject + /// alternative name fields in an X.509 certificate. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SubjectConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubjectConfig()); + 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.Security.PrivateCA.V1.CertificateConfig.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 SubjectConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubjectConfig(SubjectConfig other) : this() { + subject_ = other.subject_ != null ? other.subject_.Clone() : null; + subjectAltName_ = other.subjectAltName_ != null ? other.subjectAltName_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubjectConfig Clone() { + return new SubjectConfig(this); + } + + /// Field number for the "subject" field. + public const int SubjectFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.Subject subject_; + /// + /// Optional. Contains distinguished name fields such as the common name, + /// location and organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.Subject Subject { + get { return subject_; } + set { + subject_ = value; + } + } + + /// Field number for the "subject_alt_name" field. + public const int SubjectAltNameFieldNumber = 2; + private global::Google.Cloud.Security.PrivateCA.V1.SubjectAltNames subjectAltName_; + /// + /// Optional. The subject alternative name fields. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.SubjectAltNames SubjectAltName { + get { return subjectAltName_; } + set { + subjectAltName_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SubjectConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SubjectConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Subject, other.Subject)) return false; + if (!object.Equals(SubjectAltName, other.SubjectAltName)) 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 (subject_ != null) hash ^= Subject.GetHashCode(); + if (subjectAltName_ != null) hash ^= SubjectAltName.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 (subject_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Subject); + } + if (subjectAltName_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SubjectAltName); + } + 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 (subject_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Subject); + } + if (subjectAltName_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SubjectAltName); + } + 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 (subject_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subject); + } + if (subjectAltName_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubjectAltName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SubjectConfig other) { + if (other == null) { + return; + } + if (other.subject_ != null) { + if (subject_ == null) { + Subject = new global::Google.Cloud.Security.PrivateCA.V1.Subject(); + } + Subject.MergeFrom(other.Subject); + } + if (other.subjectAltName_ != null) { + if (subjectAltName_ == null) { + SubjectAltName = new global::Google.Cloud.Security.PrivateCA.V1.SubjectAltNames(); + } + SubjectAltName.MergeFrom(other.SubjectAltName); + } + _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 (subject_ == null) { + Subject = new global::Google.Cloud.Security.PrivateCA.V1.Subject(); + } + input.ReadMessage(Subject); + break; + } + case 18: { + if (subjectAltName_ == null) { + SubjectAltName = new global::Google.Cloud.Security.PrivateCA.V1.SubjectAltNames(); + } + input.ReadMessage(SubjectAltName); + 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 (subject_ == null) { + Subject = new global::Google.Cloud.Security.PrivateCA.V1.Subject(); + } + input.ReadMessage(Subject); + break; + } + case 18: { + if (subjectAltName_ == null) { + SubjectAltName = new global::Google.Cloud.Security.PrivateCA.V1.SubjectAltNames(); + } + input.ReadMessage(SubjectAltName); + break; + } + } + } + } + #endif + + } + + /// + /// A KeyId identifies a specific public key, usually by hashing the public + /// key. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class KeyId : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyId()); + 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.Security.PrivateCA.V1.CertificateConfig.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 KeyId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyId(KeyId other) : this() { + keyId_ = other.keyId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyId Clone() { + return new KeyId(this); + } + + /// Field number for the "key_id" field. + public const int KeyId_FieldNumber = 1; + private string keyId_ = ""; + /// + /// Required. The value of this KeyId encoded in lowercase hexadecimal. This + /// is most likely the 160 bit SHA-1 hash of the public key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyId_ { + get { return keyId_; } + set { + keyId_ = 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 KeyId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(KeyId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KeyId_ != other.KeyId_) 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 (KeyId_.Length != 0) hash ^= KeyId_.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 (KeyId_.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId_); + } + 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 (KeyId_.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId_); + } + 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 (KeyId_.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyId_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(KeyId other) { + if (other == null) { + return; + } + if (other.KeyId_.Length != 0) { + KeyId_ = other.KeyId_; + } + _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: { + KeyId_ = 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: { + KeyId_ = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A + /// [CertificateDescription][google.cloud.security.privateca.v1.CertificateDescription] + /// describes an X.509 certificate or CSR that has been issued, as an alternative + /// to using ASN.1 / X.509. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CertificateDescription : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CertificateDescription()); + 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.Security.PrivateCA.V1.ResourcesReflection.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 CertificateDescription() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateDescription(CertificateDescription other) : this() { + subjectDescription_ = other.subjectDescription_ != null ? other.subjectDescription_.Clone() : null; + x509Description_ = other.x509Description_ != null ? other.x509Description_.Clone() : null; + publicKey_ = other.publicKey_ != null ? other.publicKey_.Clone() : null; + subjectKeyId_ = other.subjectKeyId_ != null ? other.subjectKeyId_.Clone() : null; + authorityKeyId_ = other.authorityKeyId_ != null ? other.authorityKeyId_.Clone() : null; + crlDistributionPoints_ = other.crlDistributionPoints_.Clone(); + aiaIssuingCertificateUrls_ = other.aiaIssuingCertificateUrls_.Clone(); + certFingerprint_ = other.certFingerprint_ != null ? other.certFingerprint_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateDescription Clone() { + return new CertificateDescription(this); + } + + /// Field number for the "subject_description" field. + public const int SubjectDescriptionFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.SubjectDescription subjectDescription_; + /// + /// Describes some of the values in a certificate that are related to the + /// subject and lifetime. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.SubjectDescription SubjectDescription { + get { return subjectDescription_; } + set { + subjectDescription_ = value; + } + } + + /// Field number for the "x509_description" field. + public const int X509DescriptionFieldNumber = 2; + private global::Google.Cloud.Security.PrivateCA.V1.X509Parameters x509Description_; + /// + /// Describes some of the technical X.509 fields in a certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.X509Parameters X509Description { + get { return x509Description_; } + set { + x509Description_ = value; + } + } + + /// Field number for the "public_key" field. + public const int PublicKeyFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.PublicKey publicKey_; + /// + /// The public key that corresponds to an issued certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.PublicKey PublicKey { + get { return publicKey_; } + set { + publicKey_ = value; + } + } + + /// Field number for the "subject_key_id" field. + public const int SubjectKeyIdFieldNumber = 4; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.KeyId subjectKeyId_; + /// + /// Provides a means of identifiying certificates that contain a particular + /// public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.KeyId SubjectKeyId { + get { return subjectKeyId_; } + set { + subjectKeyId_ = value; + } + } + + /// Field number for the "authority_key_id" field. + public const int AuthorityKeyIdFieldNumber = 5; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.KeyId authorityKeyId_; + /// + /// Identifies the subject_key_id of the parent certificate, per + /// https://tools.ietf.org/html/rfc5280#section-4.2.1.1 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.KeyId AuthorityKeyId { + get { return authorityKeyId_; } + set { + authorityKeyId_ = value; + } + } + + /// Field number for the "crl_distribution_points" field. + public const int CrlDistributionPointsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_crlDistributionPoints_codec + = pb::FieldCodec.ForString(50); + private readonly pbc::RepeatedField crlDistributionPoints_ = new pbc::RepeatedField(); + /// + /// Describes a list of locations to obtain CRL information, i.e. + /// the DistributionPoint.fullName described by + /// https://tools.ietf.org/html/rfc5280#section-4.2.1.13 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CrlDistributionPoints { + get { return crlDistributionPoints_; } + } + + /// Field number for the "aia_issuing_certificate_urls" field. + public const int AiaIssuingCertificateUrlsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_aiaIssuingCertificateUrls_codec + = pb::FieldCodec.ForString(58); + private readonly pbc::RepeatedField aiaIssuingCertificateUrls_ = new pbc::RepeatedField(); + /// + /// Describes lists of issuer CA certificate URLs that appear in the + /// "Authority Information Access" extension in the certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AiaIssuingCertificateUrls { + get { return aiaIssuingCertificateUrls_; } + } + + /// Field number for the "cert_fingerprint" field. + public const int CertFingerprintFieldNumber = 8; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.CertificateFingerprint certFingerprint_; + /// + /// The hash of the x.509 certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.CertificateFingerprint CertFingerprint { + get { return certFingerprint_; } + set { + certFingerprint_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CertificateDescription); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CertificateDescription other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SubjectDescription, other.SubjectDescription)) return false; + if (!object.Equals(X509Description, other.X509Description)) return false; + if (!object.Equals(PublicKey, other.PublicKey)) return false; + if (!object.Equals(SubjectKeyId, other.SubjectKeyId)) return false; + if (!object.Equals(AuthorityKeyId, other.AuthorityKeyId)) return false; + if(!crlDistributionPoints_.Equals(other.crlDistributionPoints_)) return false; + if(!aiaIssuingCertificateUrls_.Equals(other.aiaIssuingCertificateUrls_)) return false; + if (!object.Equals(CertFingerprint, other.CertFingerprint)) 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 (subjectDescription_ != null) hash ^= SubjectDescription.GetHashCode(); + if (x509Description_ != null) hash ^= X509Description.GetHashCode(); + if (publicKey_ != null) hash ^= PublicKey.GetHashCode(); + if (subjectKeyId_ != null) hash ^= SubjectKeyId.GetHashCode(); + if (authorityKeyId_ != null) hash ^= AuthorityKeyId.GetHashCode(); + hash ^= crlDistributionPoints_.GetHashCode(); + hash ^= aiaIssuingCertificateUrls_.GetHashCode(); + if (certFingerprint_ != null) hash ^= CertFingerprint.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 (subjectDescription_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SubjectDescription); + } + if (x509Description_ != null) { + output.WriteRawTag(18); + output.WriteMessage(X509Description); + } + if (publicKey_ != null) { + output.WriteRawTag(26); + output.WriteMessage(PublicKey); + } + if (subjectKeyId_ != null) { + output.WriteRawTag(34); + output.WriteMessage(SubjectKeyId); + } + if (authorityKeyId_ != null) { + output.WriteRawTag(42); + output.WriteMessage(AuthorityKeyId); + } + crlDistributionPoints_.WriteTo(output, _repeated_crlDistributionPoints_codec); + aiaIssuingCertificateUrls_.WriteTo(output, _repeated_aiaIssuingCertificateUrls_codec); + if (certFingerprint_ != null) { + output.WriteRawTag(66); + output.WriteMessage(CertFingerprint); + } + 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 (subjectDescription_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SubjectDescription); + } + if (x509Description_ != null) { + output.WriteRawTag(18); + output.WriteMessage(X509Description); + } + if (publicKey_ != null) { + output.WriteRawTag(26); + output.WriteMessage(PublicKey); + } + if (subjectKeyId_ != null) { + output.WriteRawTag(34); + output.WriteMessage(SubjectKeyId); + } + if (authorityKeyId_ != null) { + output.WriteRawTag(42); + output.WriteMessage(AuthorityKeyId); + } + crlDistributionPoints_.WriteTo(ref output, _repeated_crlDistributionPoints_codec); + aiaIssuingCertificateUrls_.WriteTo(ref output, _repeated_aiaIssuingCertificateUrls_codec); + if (certFingerprint_ != null) { + output.WriteRawTag(66); + output.WriteMessage(CertFingerprint); + } + 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 (subjectDescription_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubjectDescription); + } + if (x509Description_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X509Description); + } + if (publicKey_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublicKey); + } + if (subjectKeyId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubjectKeyId); + } + if (authorityKeyId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthorityKeyId); + } + size += crlDistributionPoints_.CalculateSize(_repeated_crlDistributionPoints_codec); + size += aiaIssuingCertificateUrls_.CalculateSize(_repeated_aiaIssuingCertificateUrls_codec); + if (certFingerprint_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CertFingerprint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CertificateDescription other) { + if (other == null) { + return; + } + if (other.subjectDescription_ != null) { + if (subjectDescription_ == null) { + SubjectDescription = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.SubjectDescription(); + } + SubjectDescription.MergeFrom(other.SubjectDescription); + } + if (other.x509Description_ != null) { + if (x509Description_ == null) { + X509Description = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters(); + } + X509Description.MergeFrom(other.X509Description); + } + if (other.publicKey_ != null) { + if (publicKey_ == null) { + PublicKey = new global::Google.Cloud.Security.PrivateCA.V1.PublicKey(); + } + PublicKey.MergeFrom(other.PublicKey); + } + if (other.subjectKeyId_ != null) { + if (subjectKeyId_ == null) { + SubjectKeyId = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.KeyId(); + } + SubjectKeyId.MergeFrom(other.SubjectKeyId); + } + if (other.authorityKeyId_ != null) { + if (authorityKeyId_ == null) { + AuthorityKeyId = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.KeyId(); + } + AuthorityKeyId.MergeFrom(other.AuthorityKeyId); + } + crlDistributionPoints_.Add(other.crlDistributionPoints_); + aiaIssuingCertificateUrls_.Add(other.aiaIssuingCertificateUrls_); + if (other.certFingerprint_ != null) { + if (certFingerprint_ == null) { + CertFingerprint = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.CertificateFingerprint(); + } + CertFingerprint.MergeFrom(other.CertFingerprint); + } + _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 (subjectDescription_ == null) { + SubjectDescription = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.SubjectDescription(); + } + input.ReadMessage(SubjectDescription); + break; + } + case 18: { + if (x509Description_ == null) { + X509Description = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters(); + } + input.ReadMessage(X509Description); + break; + } + case 26: { + if (publicKey_ == null) { + PublicKey = new global::Google.Cloud.Security.PrivateCA.V1.PublicKey(); + } + input.ReadMessage(PublicKey); + break; + } + case 34: { + if (subjectKeyId_ == null) { + SubjectKeyId = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.KeyId(); + } + input.ReadMessage(SubjectKeyId); + break; + } + case 42: { + if (authorityKeyId_ == null) { + AuthorityKeyId = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.KeyId(); + } + input.ReadMessage(AuthorityKeyId); + break; + } + case 50: { + crlDistributionPoints_.AddEntriesFrom(input, _repeated_crlDistributionPoints_codec); + break; + } + case 58: { + aiaIssuingCertificateUrls_.AddEntriesFrom(input, _repeated_aiaIssuingCertificateUrls_codec); + break; + } + case 66: { + if (certFingerprint_ == null) { + CertFingerprint = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.CertificateFingerprint(); + } + input.ReadMessage(CertFingerprint); + 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 (subjectDescription_ == null) { + SubjectDescription = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.SubjectDescription(); + } + input.ReadMessage(SubjectDescription); + break; + } + case 18: { + if (x509Description_ == null) { + X509Description = new global::Google.Cloud.Security.PrivateCA.V1.X509Parameters(); + } + input.ReadMessage(X509Description); + break; + } + case 26: { + if (publicKey_ == null) { + PublicKey = new global::Google.Cloud.Security.PrivateCA.V1.PublicKey(); + } + input.ReadMessage(PublicKey); + break; + } + case 34: { + if (subjectKeyId_ == null) { + SubjectKeyId = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.KeyId(); + } + input.ReadMessage(SubjectKeyId); + break; + } + case 42: { + if (authorityKeyId_ == null) { + AuthorityKeyId = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.KeyId(); + } + input.ReadMessage(AuthorityKeyId); + break; + } + case 50: { + crlDistributionPoints_.AddEntriesFrom(ref input, _repeated_crlDistributionPoints_codec); + break; + } + case 58: { + aiaIssuingCertificateUrls_.AddEntriesFrom(ref input, _repeated_aiaIssuingCertificateUrls_codec); + break; + } + case 66: { + if (certFingerprint_ == null) { + CertFingerprint = new global::Google.Cloud.Security.PrivateCA.V1.CertificateDescription.Types.CertificateFingerprint(); + } + input.ReadMessage(CertFingerprint); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CertificateDescription message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// These values describe fields in an issued X.509 certificate such as the + /// distinguished name, subject alternative names, serial number, and lifetime. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SubjectDescription : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubjectDescription()); + 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.Security.PrivateCA.V1.CertificateDescription.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 SubjectDescription() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubjectDescription(SubjectDescription other) : this() { + subject_ = other.subject_ != null ? other.subject_.Clone() : null; + subjectAltName_ = other.subjectAltName_ != null ? other.subjectAltName_.Clone() : null; + hexSerialNumber_ = other.hexSerialNumber_; + lifetime_ = other.lifetime_ != null ? other.lifetime_.Clone() : null; + notBeforeTime_ = other.notBeforeTime_ != null ? other.notBeforeTime_.Clone() : null; + notAfterTime_ = other.notAfterTime_ != null ? other.notAfterTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubjectDescription Clone() { + return new SubjectDescription(this); + } + + /// Field number for the "subject" field. + public const int SubjectFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.Subject subject_; + /// + /// Contains distinguished name fields such as the common name, location and + /// / organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.Subject Subject { + get { return subject_; } + set { + subject_ = value; + } + } + + /// Field number for the "subject_alt_name" field. + public const int SubjectAltNameFieldNumber = 2; + private global::Google.Cloud.Security.PrivateCA.V1.SubjectAltNames subjectAltName_; + /// + /// The subject alternative name fields. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.SubjectAltNames SubjectAltName { + get { return subjectAltName_; } + set { + subjectAltName_ = value; + } + } + + /// Field number for the "hex_serial_number" field. + public const int HexSerialNumberFieldNumber = 3; + private string hexSerialNumber_ = ""; + /// + /// The serial number encoded in lowercase hexadecimal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HexSerialNumber { + get { return hexSerialNumber_; } + set { + hexSerialNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "lifetime" field. + public const int LifetimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration lifetime_; + /// + /// For convenience, the actual lifetime of an issued certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration Lifetime { + get { return lifetime_; } + set { + lifetime_ = value; + } + } + + /// Field number for the "not_before_time" field. + public const int NotBeforeTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp notBeforeTime_; + /// + /// The time at which the certificate becomes valid. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp NotBeforeTime { + get { return notBeforeTime_; } + set { + notBeforeTime_ = value; + } + } + + /// Field number for the "not_after_time" field. + public const int NotAfterTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp notAfterTime_; + /// + /// The time after which the certificate is expired. + /// Per RFC 5280, the validity period for a certificate is the period of time + /// from not_before_time through not_after_time, inclusive. + /// Corresponds to 'not_before_time' + 'lifetime' - 1 second. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp NotAfterTime { + get { return notAfterTime_; } + set { + notAfterTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SubjectDescription); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SubjectDescription other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Subject, other.Subject)) return false; + if (!object.Equals(SubjectAltName, other.SubjectAltName)) return false; + if (HexSerialNumber != other.HexSerialNumber) return false; + if (!object.Equals(Lifetime, other.Lifetime)) return false; + if (!object.Equals(NotBeforeTime, other.NotBeforeTime)) return false; + if (!object.Equals(NotAfterTime, other.NotAfterTime)) 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 (subject_ != null) hash ^= Subject.GetHashCode(); + if (subjectAltName_ != null) hash ^= SubjectAltName.GetHashCode(); + if (HexSerialNumber.Length != 0) hash ^= HexSerialNumber.GetHashCode(); + if (lifetime_ != null) hash ^= Lifetime.GetHashCode(); + if (notBeforeTime_ != null) hash ^= NotBeforeTime.GetHashCode(); + if (notAfterTime_ != null) hash ^= NotAfterTime.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 (subject_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Subject); + } + if (subjectAltName_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SubjectAltName); + } + if (HexSerialNumber.Length != 0) { + output.WriteRawTag(26); + output.WriteString(HexSerialNumber); + } + if (lifetime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Lifetime); + } + if (notBeforeTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(NotBeforeTime); + } + if (notAfterTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(NotAfterTime); + } + 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 (subject_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Subject); + } + if (subjectAltName_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SubjectAltName); + } + if (HexSerialNumber.Length != 0) { + output.WriteRawTag(26); + output.WriteString(HexSerialNumber); + } + if (lifetime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Lifetime); + } + if (notBeforeTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(NotBeforeTime); + } + if (notAfterTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(NotAfterTime); + } + 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 (subject_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subject); + } + if (subjectAltName_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubjectAltName); + } + if (HexSerialNumber.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HexSerialNumber); + } + if (lifetime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lifetime); + } + if (notBeforeTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NotBeforeTime); + } + if (notAfterTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NotAfterTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SubjectDescription other) { + if (other == null) { + return; + } + if (other.subject_ != null) { + if (subject_ == null) { + Subject = new global::Google.Cloud.Security.PrivateCA.V1.Subject(); + } + Subject.MergeFrom(other.Subject); + } + if (other.subjectAltName_ != null) { + if (subjectAltName_ == null) { + SubjectAltName = new global::Google.Cloud.Security.PrivateCA.V1.SubjectAltNames(); + } + SubjectAltName.MergeFrom(other.SubjectAltName); + } + if (other.HexSerialNumber.Length != 0) { + HexSerialNumber = other.HexSerialNumber; + } + if (other.lifetime_ != null) { + if (lifetime_ == null) { + Lifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + Lifetime.MergeFrom(other.Lifetime); + } + if (other.notBeforeTime_ != null) { + if (notBeforeTime_ == null) { + NotBeforeTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + NotBeforeTime.MergeFrom(other.NotBeforeTime); + } + if (other.notAfterTime_ != null) { + if (notAfterTime_ == null) { + NotAfterTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + NotAfterTime.MergeFrom(other.NotAfterTime); + } + _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 (subject_ == null) { + Subject = new global::Google.Cloud.Security.PrivateCA.V1.Subject(); + } + input.ReadMessage(Subject); + break; + } + case 18: { + if (subjectAltName_ == null) { + SubjectAltName = new global::Google.Cloud.Security.PrivateCA.V1.SubjectAltNames(); + } + input.ReadMessage(SubjectAltName); + break; + } + case 26: { + HexSerialNumber = input.ReadString(); + break; + } + case 34: { + if (lifetime_ == null) { + Lifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Lifetime); + break; + } + case 42: { + if (notBeforeTime_ == null) { + NotBeforeTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(NotBeforeTime); + break; + } + case 50: { + if (notAfterTime_ == null) { + NotAfterTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(NotAfterTime); + 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 (subject_ == null) { + Subject = new global::Google.Cloud.Security.PrivateCA.V1.Subject(); + } + input.ReadMessage(Subject); + break; + } + case 18: { + if (subjectAltName_ == null) { + SubjectAltName = new global::Google.Cloud.Security.PrivateCA.V1.SubjectAltNames(); + } + input.ReadMessage(SubjectAltName); + break; + } + case 26: { + HexSerialNumber = input.ReadString(); + break; + } + case 34: { + if (lifetime_ == null) { + Lifetime = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Lifetime); + break; + } + case 42: { + if (notBeforeTime_ == null) { + NotBeforeTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(NotBeforeTime); + break; + } + case 50: { + if (notAfterTime_ == null) { + NotAfterTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(NotAfterTime); + break; + } + } + } + } + #endif + + } + + /// + /// A KeyId identifies a specific public key, usually by hashing the public + /// key. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class KeyId : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyId()); + 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.Security.PrivateCA.V1.CertificateDescription.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 KeyId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyId(KeyId other) : this() { + keyId_ = other.keyId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyId Clone() { + return new KeyId(this); + } + + /// Field number for the "key_id" field. + public const int KeyId_FieldNumber = 1; + private string keyId_ = ""; + /// + /// Optional. The value of this KeyId encoded in lowercase hexadecimal. This + /// is most likely the 160 bit SHA-1 hash of the public key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyId_ { + get { return keyId_; } + set { + keyId_ = 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 KeyId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(KeyId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KeyId_ != other.KeyId_) 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 (KeyId_.Length != 0) hash ^= KeyId_.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 (KeyId_.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId_); + } + 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 (KeyId_.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId_); + } + 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 (KeyId_.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyId_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(KeyId other) { + if (other == null) { + return; + } + if (other.KeyId_.Length != 0) { + KeyId_ = other.KeyId_; + } + _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: { + KeyId_ = 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: { + KeyId_ = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A group of fingerprints for the x509 certificate. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CertificateFingerprint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CertificateFingerprint()); + 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.Security.PrivateCA.V1.CertificateDescription.Descriptor.NestedTypes[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 CertificateFingerprint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateFingerprint(CertificateFingerprint other) : this() { + sha256Hash_ = other.sha256Hash_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateFingerprint Clone() { + return new CertificateFingerprint(this); + } + + /// Field number for the "sha256_hash" field. + public const int Sha256HashFieldNumber = 1; + private string sha256Hash_ = ""; + /// + /// The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sha256Hash { + get { return sha256Hash_; } + set { + sha256Hash_ = 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 CertificateFingerprint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CertificateFingerprint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Sha256Hash != other.Sha256Hash) 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 (Sha256Hash.Length != 0) hash ^= Sha256Hash.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 (Sha256Hash.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Sha256Hash); + } + 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 (Sha256Hash.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Sha256Hash); + } + 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 (Sha256Hash.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sha256Hash); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CertificateFingerprint other) { + if (other == null) { + return; + } + if (other.Sha256Hash.Length != 0) { + Sha256Hash = other.Sha256Hash; + } + _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: { + Sha256Hash = 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: { + Sha256Hash = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// An [ObjectId][google.cloud.security.privateca.v1.ObjectId] specifies an + /// object identifier (OID). These provide context and describe types in ASN.1 + /// messages. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ObjectId : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ObjectId()); + 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.Security.PrivateCA.V1.ResourcesReflection.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 ObjectId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ObjectId(ObjectId other) : this() { + objectIdPath_ = other.objectIdPath_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ObjectId Clone() { + return new ObjectId(this); + } + + /// Field number for the "object_id_path" field. + public const int ObjectIdPathFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_objectIdPath_codec + = pb::FieldCodec.ForInt32(10); + private readonly pbc::RepeatedField objectIdPath_ = new pbc::RepeatedField(); + /// + /// Required. The parts of an OID path. The most significant parts of the path + /// come first. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ObjectIdPath { + get { return objectIdPath_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ObjectId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ObjectId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!objectIdPath_.Equals(other.objectIdPath_)) 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 ^= objectIdPath_.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 + objectIdPath_.WriteTo(output, _repeated_objectIdPath_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) { + objectIdPath_.WriteTo(ref output, _repeated_objectIdPath_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 += objectIdPath_.CalculateSize(_repeated_objectIdPath_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ObjectId other) { + if (other == null) { + return; + } + objectIdPath_.Add(other.objectIdPath_); + _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: + case 8: { + objectIdPath_.AddEntriesFrom(input, _repeated_objectIdPath_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: + case 8: { + objectIdPath_.AddEntriesFrom(ref input, _repeated_objectIdPath_codec); + break; + } + } + } + } + #endif + + } + + /// + /// An [X509Extension][google.cloud.security.privateca.v1.X509Extension] + /// specifies an X.509 extension, which may be used in different parts of X.509 + /// objects like certificates, CSRs, and CRLs. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class X509Extension : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new X509Extension()); + 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.Security.PrivateCA.V1.ResourcesReflection.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 X509Extension() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public X509Extension(X509Extension other) : this() { + objectId_ = other.objectId_ != null ? other.objectId_.Clone() : null; + critical_ = other.critical_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public X509Extension Clone() { + return new X509Extension(this); + } + + /// Field number for the "object_id" field. + public const int ObjectIdFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.ObjectId objectId_; + /// + /// Required. The OID for this X.509 extension. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.ObjectId ObjectId { + get { return objectId_; } + set { + objectId_ = value; + } + } + + /// Field number for the "critical" field. + public const int CriticalFieldNumber = 2; + private bool critical_; + /// + /// Optional. Indicates whether or not this extension is critical (i.e., if the + /// client does not know how to handle this extension, the client should + /// consider this to be an error). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Critical { + get { return critical_; } + set { + critical_ = value; + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 3; + private pb::ByteString value_ = pb::ByteString.Empty; + /// + /// Required. The value of this X.509 extension. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Value { + get { return value_; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as X509Extension); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(X509Extension other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ObjectId, other.ObjectId)) return false; + if (Critical != other.Critical) return false; + if (Value != other.Value) 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 (objectId_ != null) hash ^= ObjectId.GetHashCode(); + if (Critical != false) hash ^= Critical.GetHashCode(); + if (Value.Length != 0) hash ^= Value.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 (objectId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ObjectId); + } + if (Critical != false) { + output.WriteRawTag(16); + output.WriteBool(Critical); + } + if (Value.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Value); + } + 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 (objectId_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ObjectId); + } + if (Critical != false) { + output.WriteRawTag(16); + output.WriteBool(Critical); + } + if (Value.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(Value); + } + 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 (objectId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ObjectId); + } + if (Critical != false) { + size += 1 + 1; + } + if (Value.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(X509Extension other) { + if (other == null) { + return; + } + if (other.objectId_ != null) { + if (objectId_ == null) { + ObjectId = new global::Google.Cloud.Security.PrivateCA.V1.ObjectId(); + } + ObjectId.MergeFrom(other.ObjectId); + } + if (other.Critical != false) { + Critical = other.Critical; + } + if (other.Value.Length != 0) { + Value = other.Value; + } + _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 (objectId_ == null) { + ObjectId = new global::Google.Cloud.Security.PrivateCA.V1.ObjectId(); + } + input.ReadMessage(ObjectId); + break; + } + case 16: { + Critical = input.ReadBool(); + break; + } + case 26: { + Value = input.ReadBytes(); + 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 (objectId_ == null) { + ObjectId = new global::Google.Cloud.Security.PrivateCA.V1.ObjectId(); + } + input.ReadMessage(ObjectId); + break; + } + case 16: { + Critical = input.ReadBool(); + break; + } + case 26: { + Value = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + /// + /// A [KeyUsage][google.cloud.security.privateca.v1.KeyUsage] describes key usage + /// values that may appear in an X.509 certificate. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class KeyUsage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyUsage()); + 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.Security.PrivateCA.V1.ResourcesReflection.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 KeyUsage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyUsage(KeyUsage other) : this() { + baseKeyUsage_ = other.baseKeyUsage_ != null ? other.baseKeyUsage_.Clone() : null; + extendedKeyUsage_ = other.extendedKeyUsage_ != null ? other.extendedKeyUsage_.Clone() : null; + unknownExtendedKeyUsages_ = other.unknownExtendedKeyUsages_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyUsage Clone() { + return new KeyUsage(this); + } + + /// Field number for the "base_key_usage" field. + public const int BaseKeyUsageFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.KeyUsageOptions baseKeyUsage_; + /// + /// Describes high-level ways in which a key may be used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.KeyUsageOptions BaseKeyUsage { + get { return baseKeyUsage_; } + set { + baseKeyUsage_ = value; + } + } + + /// Field number for the "extended_key_usage" field. + public const int ExtendedKeyUsageFieldNumber = 2; + private global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.ExtendedKeyUsageOptions extendedKeyUsage_; + /// + /// Detailed scenarios in which a key may be used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.ExtendedKeyUsageOptions ExtendedKeyUsage { + get { return extendedKeyUsage_; } + set { + extendedKeyUsage_ = value; + } + } + + /// Field number for the "unknown_extended_key_usages" field. + public const int UnknownExtendedKeyUsagesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_unknownExtendedKeyUsages_codec + = pb::FieldCodec.ForMessage(26, global::Google.Cloud.Security.PrivateCA.V1.ObjectId.Parser); + private readonly pbc::RepeatedField unknownExtendedKeyUsages_ = new pbc::RepeatedField(); + /// + /// Used to describe extended key usages that are not listed in the + /// [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] + /// message. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnknownExtendedKeyUsages { + get { return unknownExtendedKeyUsages_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as KeyUsage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(KeyUsage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BaseKeyUsage, other.BaseKeyUsage)) return false; + if (!object.Equals(ExtendedKeyUsage, other.ExtendedKeyUsage)) return false; + if(!unknownExtendedKeyUsages_.Equals(other.unknownExtendedKeyUsages_)) 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 (baseKeyUsage_ != null) hash ^= BaseKeyUsage.GetHashCode(); + if (extendedKeyUsage_ != null) hash ^= ExtendedKeyUsage.GetHashCode(); + hash ^= unknownExtendedKeyUsages_.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 (baseKeyUsage_ != null) { + output.WriteRawTag(10); + output.WriteMessage(BaseKeyUsage); + } + if (extendedKeyUsage_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExtendedKeyUsage); + } + unknownExtendedKeyUsages_.WriteTo(output, _repeated_unknownExtendedKeyUsages_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) { + if (baseKeyUsage_ != null) { + output.WriteRawTag(10); + output.WriteMessage(BaseKeyUsage); + } + if (extendedKeyUsage_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExtendedKeyUsage); + } + unknownExtendedKeyUsages_.WriteTo(ref output, _repeated_unknownExtendedKeyUsages_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; + if (baseKeyUsage_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseKeyUsage); + } + if (extendedKeyUsage_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExtendedKeyUsage); + } + size += unknownExtendedKeyUsages_.CalculateSize(_repeated_unknownExtendedKeyUsages_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(KeyUsage other) { + if (other == null) { + return; + } + if (other.baseKeyUsage_ != null) { + if (baseKeyUsage_ == null) { + BaseKeyUsage = new global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.KeyUsageOptions(); + } + BaseKeyUsage.MergeFrom(other.BaseKeyUsage); + } + if (other.extendedKeyUsage_ != null) { + if (extendedKeyUsage_ == null) { + ExtendedKeyUsage = new global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.ExtendedKeyUsageOptions(); + } + ExtendedKeyUsage.MergeFrom(other.ExtendedKeyUsage); + } + unknownExtendedKeyUsages_.Add(other.unknownExtendedKeyUsages_); + _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 (baseKeyUsage_ == null) { + BaseKeyUsage = new global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.KeyUsageOptions(); + } + input.ReadMessage(BaseKeyUsage); + break; + } + case 18: { + if (extendedKeyUsage_ == null) { + ExtendedKeyUsage = new global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.ExtendedKeyUsageOptions(); + } + input.ReadMessage(ExtendedKeyUsage); + break; + } + case 26: { + unknownExtendedKeyUsages_.AddEntriesFrom(input, _repeated_unknownExtendedKeyUsages_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: { + if (baseKeyUsage_ == null) { + BaseKeyUsage = new global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.KeyUsageOptions(); + } + input.ReadMessage(BaseKeyUsage); + break; + } + case 18: { + if (extendedKeyUsage_ == null) { + ExtendedKeyUsage = new global::Google.Cloud.Security.PrivateCA.V1.KeyUsage.Types.ExtendedKeyUsageOptions(); + } + input.ReadMessage(ExtendedKeyUsage); + break; + } + case 26: { + unknownExtendedKeyUsages_.AddEntriesFrom(ref input, _repeated_unknownExtendedKeyUsages_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the KeyUsage message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// [KeyUsage.KeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions] + /// corresponds to the key usage values described in + /// https://tools.ietf.org/html/rfc5280#section-4.2.1.3. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class KeyUsageOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyUsageOptions()); + 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.Security.PrivateCA.V1.KeyUsage.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 KeyUsageOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyUsageOptions(KeyUsageOptions other) : this() { + digitalSignature_ = other.digitalSignature_; + contentCommitment_ = other.contentCommitment_; + keyEncipherment_ = other.keyEncipherment_; + dataEncipherment_ = other.dataEncipherment_; + keyAgreement_ = other.keyAgreement_; + certSign_ = other.certSign_; + crlSign_ = other.crlSign_; + encipherOnly_ = other.encipherOnly_; + decipherOnly_ = other.decipherOnly_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyUsageOptions Clone() { + return new KeyUsageOptions(this); + } + + /// Field number for the "digital_signature" field. + public const int DigitalSignatureFieldNumber = 1; + private bool digitalSignature_; + /// + /// The key may be used for digital signatures. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DigitalSignature { + get { return digitalSignature_; } + set { + digitalSignature_ = value; + } + } + + /// Field number for the "content_commitment" field. + public const int ContentCommitmentFieldNumber = 2; + private bool contentCommitment_; + /// + /// The key may be used for cryptographic commitments. Note that this may + /// also be referred to as "non-repudiation". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ContentCommitment { + get { return contentCommitment_; } + set { + contentCommitment_ = value; + } + } + + /// Field number for the "key_encipherment" field. + public const int KeyEnciphermentFieldNumber = 3; + private bool keyEncipherment_; + /// + /// The key may be used to encipher other keys. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool KeyEncipherment { + get { return keyEncipherment_; } + set { + keyEncipherment_ = value; + } + } + + /// Field number for the "data_encipherment" field. + public const int DataEnciphermentFieldNumber = 4; + private bool dataEncipherment_; + /// + /// The key may be used to encipher data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DataEncipherment { + get { return dataEncipherment_; } + set { + dataEncipherment_ = value; + } + } + + /// Field number for the "key_agreement" field. + public const int KeyAgreementFieldNumber = 5; + private bool keyAgreement_; + /// + /// The key may be used in a key agreement protocol. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool KeyAgreement { + get { return keyAgreement_; } + set { + keyAgreement_ = value; + } + } + + /// Field number for the "cert_sign" field. + public const int CertSignFieldNumber = 6; + private bool certSign_; + /// + /// The key may be used to sign certificates. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CertSign { + get { return certSign_; } + set { + certSign_ = value; + } + } + + /// Field number for the "crl_sign" field. + public const int CrlSignFieldNumber = 7; + private bool crlSign_; + /// + /// The key may be used sign certificate revocation lists. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CrlSign { + get { return crlSign_; } + set { + crlSign_ = value; + } + } + + /// Field number for the "encipher_only" field. + public const int EncipherOnlyFieldNumber = 8; + private bool encipherOnly_; + /// + /// The key may be used to encipher only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EncipherOnly { + get { return encipherOnly_; } + set { + encipherOnly_ = value; + } + } + + /// Field number for the "decipher_only" field. + public const int DecipherOnlyFieldNumber = 9; + private bool decipherOnly_; + /// + /// The key may be used to decipher only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DecipherOnly { + get { return decipherOnly_; } + set { + decipherOnly_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as KeyUsageOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(KeyUsageOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DigitalSignature != other.DigitalSignature) return false; + if (ContentCommitment != other.ContentCommitment) return false; + if (KeyEncipherment != other.KeyEncipherment) return false; + if (DataEncipherment != other.DataEncipherment) return false; + if (KeyAgreement != other.KeyAgreement) return false; + if (CertSign != other.CertSign) return false; + if (CrlSign != other.CrlSign) return false; + if (EncipherOnly != other.EncipherOnly) return false; + if (DecipherOnly != other.DecipherOnly) 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 (DigitalSignature != false) hash ^= DigitalSignature.GetHashCode(); + if (ContentCommitment != false) hash ^= ContentCommitment.GetHashCode(); + if (KeyEncipherment != false) hash ^= KeyEncipherment.GetHashCode(); + if (DataEncipherment != false) hash ^= DataEncipherment.GetHashCode(); + if (KeyAgreement != false) hash ^= KeyAgreement.GetHashCode(); + if (CertSign != false) hash ^= CertSign.GetHashCode(); + if (CrlSign != false) hash ^= CrlSign.GetHashCode(); + if (EncipherOnly != false) hash ^= EncipherOnly.GetHashCode(); + if (DecipherOnly != false) hash ^= DecipherOnly.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 (DigitalSignature != false) { + output.WriteRawTag(8); + output.WriteBool(DigitalSignature); + } + if (ContentCommitment != false) { + output.WriteRawTag(16); + output.WriteBool(ContentCommitment); + } + if (KeyEncipherment != false) { + output.WriteRawTag(24); + output.WriteBool(KeyEncipherment); + } + if (DataEncipherment != false) { + output.WriteRawTag(32); + output.WriteBool(DataEncipherment); + } + if (KeyAgreement != false) { + output.WriteRawTag(40); + output.WriteBool(KeyAgreement); + } + if (CertSign != false) { + output.WriteRawTag(48); + output.WriteBool(CertSign); + } + if (CrlSign != false) { + output.WriteRawTag(56); + output.WriteBool(CrlSign); + } + if (EncipherOnly != false) { + output.WriteRawTag(64); + output.WriteBool(EncipherOnly); + } + if (DecipherOnly != false) { + output.WriteRawTag(72); + output.WriteBool(DecipherOnly); + } + 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 (DigitalSignature != false) { + output.WriteRawTag(8); + output.WriteBool(DigitalSignature); + } + if (ContentCommitment != false) { + output.WriteRawTag(16); + output.WriteBool(ContentCommitment); + } + if (KeyEncipherment != false) { + output.WriteRawTag(24); + output.WriteBool(KeyEncipherment); + } + if (DataEncipherment != false) { + output.WriteRawTag(32); + output.WriteBool(DataEncipherment); + } + if (KeyAgreement != false) { + output.WriteRawTag(40); + output.WriteBool(KeyAgreement); + } + if (CertSign != false) { + output.WriteRawTag(48); + output.WriteBool(CertSign); + } + if (CrlSign != false) { + output.WriteRawTag(56); + output.WriteBool(CrlSign); + } + if (EncipherOnly != false) { + output.WriteRawTag(64); + output.WriteBool(EncipherOnly); + } + if (DecipherOnly != false) { + output.WriteRawTag(72); + output.WriteBool(DecipherOnly); + } + 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 (DigitalSignature != false) { + size += 1 + 1; + } + if (ContentCommitment != false) { + size += 1 + 1; + } + if (KeyEncipherment != false) { + size += 1 + 1; + } + if (DataEncipherment != false) { + size += 1 + 1; + } + if (KeyAgreement != false) { + size += 1 + 1; + } + if (CertSign != false) { + size += 1 + 1; + } + if (CrlSign != false) { + size += 1 + 1; + } + if (EncipherOnly != false) { + size += 1 + 1; + } + if (DecipherOnly != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(KeyUsageOptions other) { + if (other == null) { + return; + } + if (other.DigitalSignature != false) { + DigitalSignature = other.DigitalSignature; + } + if (other.ContentCommitment != false) { + ContentCommitment = other.ContentCommitment; + } + if (other.KeyEncipherment != false) { + KeyEncipherment = other.KeyEncipherment; + } + if (other.DataEncipherment != false) { + DataEncipherment = other.DataEncipherment; + } + if (other.KeyAgreement != false) { + KeyAgreement = other.KeyAgreement; + } + if (other.CertSign != false) { + CertSign = other.CertSign; + } + if (other.CrlSign != false) { + CrlSign = other.CrlSign; + } + if (other.EncipherOnly != false) { + EncipherOnly = other.EncipherOnly; + } + if (other.DecipherOnly != false) { + DecipherOnly = other.DecipherOnly; + } + _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 8: { + DigitalSignature = input.ReadBool(); + break; + } + case 16: { + ContentCommitment = input.ReadBool(); + break; + } + case 24: { + KeyEncipherment = input.ReadBool(); + break; + } + case 32: { + DataEncipherment = input.ReadBool(); + break; + } + case 40: { + KeyAgreement = input.ReadBool(); + break; + } + case 48: { + CertSign = input.ReadBool(); + break; + } + case 56: { + CrlSign = input.ReadBool(); + break; + } + case 64: { + EncipherOnly = input.ReadBool(); + break; + } + case 72: { + DecipherOnly = input.ReadBool(); + 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 8: { + DigitalSignature = input.ReadBool(); + break; + } + case 16: { + ContentCommitment = input.ReadBool(); + break; + } + case 24: { + KeyEncipherment = input.ReadBool(); + break; + } + case 32: { + DataEncipherment = input.ReadBool(); + break; + } + case 40: { + KeyAgreement = input.ReadBool(); + break; + } + case 48: { + CertSign = input.ReadBool(); + break; + } + case 56: { + CrlSign = input.ReadBool(); + break; + } + case 64: { + EncipherOnly = input.ReadBool(); + break; + } + case 72: { + DecipherOnly = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] + /// has fields that correspond to certain common OIDs that could be specified + /// as an extended key usage value. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExtendedKeyUsageOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtendedKeyUsageOptions()); + 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.Security.PrivateCA.V1.KeyUsage.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 ExtendedKeyUsageOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExtendedKeyUsageOptions(ExtendedKeyUsageOptions other) : this() { + serverAuth_ = other.serverAuth_; + clientAuth_ = other.clientAuth_; + codeSigning_ = other.codeSigning_; + emailProtection_ = other.emailProtection_; + timeStamping_ = other.timeStamping_; + ocspSigning_ = other.ocspSigning_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExtendedKeyUsageOptions Clone() { + return new ExtendedKeyUsageOptions(this); + } + + /// Field number for the "server_auth" field. + public const int ServerAuthFieldNumber = 1; + private bool serverAuth_; + /// + /// Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW + /// server authentication", though regularly used for non-WWW TLS. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ServerAuth { + get { return serverAuth_; } + set { + serverAuth_ = value; + } + } + + /// Field number for the "client_auth" field. + public const int ClientAuthFieldNumber = 2; + private bool clientAuth_; + /// + /// Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW + /// client authentication", though regularly used for non-WWW TLS. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ClientAuth { + get { return clientAuth_; } + set { + clientAuth_ = value; + } + } + + /// Field number for the "code_signing" field. + public const int CodeSigningFieldNumber = 3; + private bool codeSigning_; + /// + /// Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of + /// downloadable executable code client authentication". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CodeSigning { + get { return codeSigning_; } + set { + codeSigning_ = value; + } + } + + /// Field number for the "email_protection" field. + public const int EmailProtectionFieldNumber = 4; + private bool emailProtection_; + /// + /// Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email + /// protection". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EmailProtection { + get { return emailProtection_; } + set { + emailProtection_ = value; + } + } + + /// Field number for the "time_stamping" field. + public const int TimeStampingFieldNumber = 5; + private bool timeStamping_; + /// + /// Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding + /// the hash of an object to a time". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool TimeStamping { + get { return timeStamping_; } + set { + timeStamping_ = value; + } + } + + /// Field number for the "ocsp_signing" field. + public const int OcspSigningFieldNumber = 6; + private bool ocspSigning_; + /// + /// Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing + /// OCSP responses". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool OcspSigning { + get { return ocspSigning_; } + set { + ocspSigning_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExtendedKeyUsageOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExtendedKeyUsageOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerAuth != other.ServerAuth) return false; + if (ClientAuth != other.ClientAuth) return false; + if (CodeSigning != other.CodeSigning) return false; + if (EmailProtection != other.EmailProtection) return false; + if (TimeStamping != other.TimeStamping) return false; + if (OcspSigning != other.OcspSigning) 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 (ServerAuth != false) hash ^= ServerAuth.GetHashCode(); + if (ClientAuth != false) hash ^= ClientAuth.GetHashCode(); + if (CodeSigning != false) hash ^= CodeSigning.GetHashCode(); + if (EmailProtection != false) hash ^= EmailProtection.GetHashCode(); + if (TimeStamping != false) hash ^= TimeStamping.GetHashCode(); + if (OcspSigning != false) hash ^= OcspSigning.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 (ServerAuth != false) { + output.WriteRawTag(8); + output.WriteBool(ServerAuth); + } + if (ClientAuth != false) { + output.WriteRawTag(16); + output.WriteBool(ClientAuth); + } + if (CodeSigning != false) { + output.WriteRawTag(24); + output.WriteBool(CodeSigning); + } + if (EmailProtection != false) { + output.WriteRawTag(32); + output.WriteBool(EmailProtection); + } + if (TimeStamping != false) { + output.WriteRawTag(40); + output.WriteBool(TimeStamping); + } + if (OcspSigning != false) { + output.WriteRawTag(48); + output.WriteBool(OcspSigning); + } + 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 (ServerAuth != false) { + output.WriteRawTag(8); + output.WriteBool(ServerAuth); + } + if (ClientAuth != false) { + output.WriteRawTag(16); + output.WriteBool(ClientAuth); + } + if (CodeSigning != false) { + output.WriteRawTag(24); + output.WriteBool(CodeSigning); + } + if (EmailProtection != false) { + output.WriteRawTag(32); + output.WriteBool(EmailProtection); + } + if (TimeStamping != false) { + output.WriteRawTag(40); + output.WriteBool(TimeStamping); + } + if (OcspSigning != false) { + output.WriteRawTag(48); + output.WriteBool(OcspSigning); + } + 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 (ServerAuth != false) { + size += 1 + 1; + } + if (ClientAuth != false) { + size += 1 + 1; + } + if (CodeSigning != false) { + size += 1 + 1; + } + if (EmailProtection != false) { + size += 1 + 1; + } + if (TimeStamping != false) { + size += 1 + 1; + } + if (OcspSigning != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExtendedKeyUsageOptions other) { + if (other == null) { + return; + } + if (other.ServerAuth != false) { + ServerAuth = other.ServerAuth; + } + if (other.ClientAuth != false) { + ClientAuth = other.ClientAuth; + } + if (other.CodeSigning != false) { + CodeSigning = other.CodeSigning; + } + if (other.EmailProtection != false) { + EmailProtection = other.EmailProtection; + } + if (other.TimeStamping != false) { + TimeStamping = other.TimeStamping; + } + if (other.OcspSigning != false) { + OcspSigning = other.OcspSigning; + } + _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 8: { + ServerAuth = input.ReadBool(); + break; + } + case 16: { + ClientAuth = input.ReadBool(); + break; + } + case 24: { + CodeSigning = input.ReadBool(); + break; + } + case 32: { + EmailProtection = input.ReadBool(); + break; + } + case 40: { + TimeStamping = input.ReadBool(); + break; + } + case 48: { + OcspSigning = input.ReadBool(); + 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 8: { + ServerAuth = input.ReadBool(); + break; + } + case 16: { + ClientAuth = input.ReadBool(); + break; + } + case 24: { + CodeSigning = input.ReadBool(); + break; + } + case 32: { + EmailProtection = input.ReadBool(); + break; + } + case 40: { + TimeStamping = input.ReadBool(); + break; + } + case 48: { + OcspSigning = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// [Subject][google.cloud.security.privateca.v1.Subject] describes parts of a + /// distinguished name that, in turn, describes the subject of the certificate. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Subject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Subject()); + 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.Security.PrivateCA.V1.ResourcesReflection.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 Subject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Subject(Subject other) : this() { + commonName_ = other.commonName_; + countryCode_ = other.countryCode_; + organization_ = other.organization_; + organizationalUnit_ = other.organizationalUnit_; + locality_ = other.locality_; + province_ = other.province_; + streetAddress_ = other.streetAddress_; + postalCode_ = other.postalCode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Subject Clone() { + return new Subject(this); + } + + /// Field number for the "common_name" field. + public const int CommonNameFieldNumber = 1; + private string commonName_ = ""; + /// + /// The "common name" of the subject. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CommonName { + get { return commonName_; } + set { + commonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "country_code" field. + public const int CountryCodeFieldNumber = 2; + private string countryCode_ = ""; + /// + /// The country code of the subject. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CountryCode { + get { return countryCode_; } + set { + countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "organization" field. + public const int OrganizationFieldNumber = 3; + private string organization_ = ""; + /// + /// The organization of the subject. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Organization { + get { return organization_; } + set { + organization_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "organizational_unit" field. + public const int OrganizationalUnitFieldNumber = 4; + private string organizationalUnit_ = ""; + /// + /// The organizational_unit of the subject. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrganizationalUnit { + get { return organizationalUnit_; } + set { + organizationalUnit_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "locality" field. + public const int LocalityFieldNumber = 5; + private string locality_ = ""; + /// + /// The locality or city of the subject. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Locality { + get { return locality_; } + set { + locality_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "province" field. + public const int ProvinceFieldNumber = 6; + private string province_ = ""; + /// + /// The province, territory, or regional state of the subject. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Province { + get { return province_; } + set { + province_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "street_address" field. + public const int StreetAddressFieldNumber = 7; + private string streetAddress_ = ""; + /// + /// The street address of the subject. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StreetAddress { + get { return streetAddress_; } + set { + streetAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "postal_code" field. + public const int PostalCodeFieldNumber = 8; + private string postalCode_ = ""; + /// + /// The postal code of the subject. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PostalCode { + get { return postalCode_; } + set { + postalCode_ = 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 Subject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Subject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CommonName != other.CommonName) return false; + if (CountryCode != other.CountryCode) return false; + if (Organization != other.Organization) return false; + if (OrganizationalUnit != other.OrganizationalUnit) return false; + if (Locality != other.Locality) return false; + if (Province != other.Province) return false; + if (StreetAddress != other.StreetAddress) return false; + if (PostalCode != other.PostalCode) 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 (CommonName.Length != 0) hash ^= CommonName.GetHashCode(); + if (CountryCode.Length != 0) hash ^= CountryCode.GetHashCode(); + if (Organization.Length != 0) hash ^= Organization.GetHashCode(); + if (OrganizationalUnit.Length != 0) hash ^= OrganizationalUnit.GetHashCode(); + if (Locality.Length != 0) hash ^= Locality.GetHashCode(); + if (Province.Length != 0) hash ^= Province.GetHashCode(); + if (StreetAddress.Length != 0) hash ^= StreetAddress.GetHashCode(); + if (PostalCode.Length != 0) hash ^= PostalCode.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 (CommonName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CommonName); + } + if (CountryCode.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CountryCode); + } + if (Organization.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Organization); + } + if (OrganizationalUnit.Length != 0) { + output.WriteRawTag(34); + output.WriteString(OrganizationalUnit); + } + if (Locality.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Locality); + } + if (Province.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Province); + } + if (StreetAddress.Length != 0) { + output.WriteRawTag(58); + output.WriteString(StreetAddress); + } + if (PostalCode.Length != 0) { + output.WriteRawTag(66); + output.WriteString(PostalCode); + } + 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 (CommonName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CommonName); + } + if (CountryCode.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CountryCode); + } + if (Organization.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Organization); + } + if (OrganizationalUnit.Length != 0) { + output.WriteRawTag(34); + output.WriteString(OrganizationalUnit); + } + if (Locality.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Locality); + } + if (Province.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Province); + } + if (StreetAddress.Length != 0) { + output.WriteRawTag(58); + output.WriteString(StreetAddress); + } + if (PostalCode.Length != 0) { + output.WriteRawTag(66); + output.WriteString(PostalCode); + } + 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 (CommonName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CommonName); + } + if (CountryCode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); + } + if (Organization.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Organization); + } + if (OrganizationalUnit.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrganizationalUnit); + } + if (Locality.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Locality); + } + if (Province.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Province); + } + if (StreetAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StreetAddress); + } + if (PostalCode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PostalCode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Subject other) { + if (other == null) { + return; + } + if (other.CommonName.Length != 0) { + CommonName = other.CommonName; + } + if (other.CountryCode.Length != 0) { + CountryCode = other.CountryCode; + } + if (other.Organization.Length != 0) { + Organization = other.Organization; + } + if (other.OrganizationalUnit.Length != 0) { + OrganizationalUnit = other.OrganizationalUnit; + } + if (other.Locality.Length != 0) { + Locality = other.Locality; + } + if (other.Province.Length != 0) { + Province = other.Province; + } + if (other.StreetAddress.Length != 0) { + StreetAddress = other.StreetAddress; + } + if (other.PostalCode.Length != 0) { + PostalCode = other.PostalCode; + } + _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: { + CommonName = input.ReadString(); + break; + } + case 18: { + CountryCode = input.ReadString(); + break; + } + case 26: { + Organization = input.ReadString(); + break; + } + case 34: { + OrganizationalUnit = input.ReadString(); + break; + } + case 42: { + Locality = input.ReadString(); + break; + } + case 50: { + Province = input.ReadString(); + break; + } + case 58: { + StreetAddress = input.ReadString(); + break; + } + case 66: { + PostalCode = 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: { + CommonName = input.ReadString(); + break; + } + case 18: { + CountryCode = input.ReadString(); + break; + } + case 26: { + Organization = input.ReadString(); + break; + } + case 34: { + OrganizationalUnit = input.ReadString(); + break; + } + case 42: { + Locality = input.ReadString(); + break; + } + case 50: { + Province = input.ReadString(); + break; + } + case 58: { + StreetAddress = input.ReadString(); + break; + } + case 66: { + PostalCode = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] + /// corresponds to a more modern way of listing what the asserted identity is in + /// a certificate (i.e., compared to the "common name" in the distinguished + /// name). + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SubjectAltNames : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubjectAltNames()); + 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.Security.PrivateCA.V1.ResourcesReflection.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 SubjectAltNames() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubjectAltNames(SubjectAltNames other) : this() { + dnsNames_ = other.dnsNames_.Clone(); + uris_ = other.uris_.Clone(); + emailAddresses_ = other.emailAddresses_.Clone(); + ipAddresses_ = other.ipAddresses_.Clone(); + customSans_ = other.customSans_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubjectAltNames Clone() { + return new SubjectAltNames(this); + } + + /// Field number for the "dns_names" field. + public const int DnsNamesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dnsNames_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField dnsNames_ = new pbc::RepeatedField(); + /// + /// Contains only valid, fully-qualified host names. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DnsNames { + get { return dnsNames_; } + } + + /// Field number for the "uris" field. + public const int UrisFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_uris_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField uris_ = new pbc::RepeatedField(); + /// + /// Contains only valid RFC 3986 URIs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Uris { + get { return uris_; } + } + + /// Field number for the "email_addresses" field. + public const int EmailAddressesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_emailAddresses_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField emailAddresses_ = new pbc::RepeatedField(); + /// + /// Contains only valid RFC 2822 E-mail addresses. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EmailAddresses { + get { return emailAddresses_; } + } + + /// Field number for the "ip_addresses" field. + public const int IpAddressesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_ipAddresses_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField ipAddresses_ = new pbc::RepeatedField(); + /// + /// Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField IpAddresses { + get { return ipAddresses_; } + } + + /// Field number for the "custom_sans" field. + public const int CustomSansFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_customSans_codec + = pb::FieldCodec.ForMessage(42, global::Google.Cloud.Security.PrivateCA.V1.X509Extension.Parser); + private readonly pbc::RepeatedField customSans_ = new pbc::RepeatedField(); + /// + /// Contains additional subject alternative name values. + /// For each custom_san, the `value` field must contain an ASN.1 encoded + /// UTF8String. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CustomSans { + get { return customSans_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SubjectAltNames); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SubjectAltNames other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dnsNames_.Equals(other.dnsNames_)) return false; + if(!uris_.Equals(other.uris_)) return false; + if(!emailAddresses_.Equals(other.emailAddresses_)) return false; + if(!ipAddresses_.Equals(other.ipAddresses_)) return false; + if(!customSans_.Equals(other.customSans_)) 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 ^= dnsNames_.GetHashCode(); + hash ^= uris_.GetHashCode(); + hash ^= emailAddresses_.GetHashCode(); + hash ^= ipAddresses_.GetHashCode(); + hash ^= customSans_.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 + dnsNames_.WriteTo(output, _repeated_dnsNames_codec); + uris_.WriteTo(output, _repeated_uris_codec); + emailAddresses_.WriteTo(output, _repeated_emailAddresses_codec); + ipAddresses_.WriteTo(output, _repeated_ipAddresses_codec); + customSans_.WriteTo(output, _repeated_customSans_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) { + dnsNames_.WriteTo(ref output, _repeated_dnsNames_codec); + uris_.WriteTo(ref output, _repeated_uris_codec); + emailAddresses_.WriteTo(ref output, _repeated_emailAddresses_codec); + ipAddresses_.WriteTo(ref output, _repeated_ipAddresses_codec); + customSans_.WriteTo(ref output, _repeated_customSans_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 += dnsNames_.CalculateSize(_repeated_dnsNames_codec); + size += uris_.CalculateSize(_repeated_uris_codec); + size += emailAddresses_.CalculateSize(_repeated_emailAddresses_codec); + size += ipAddresses_.CalculateSize(_repeated_ipAddresses_codec); + size += customSans_.CalculateSize(_repeated_customSans_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SubjectAltNames other) { + if (other == null) { + return; + } + dnsNames_.Add(other.dnsNames_); + uris_.Add(other.uris_); + emailAddresses_.Add(other.emailAddresses_); + ipAddresses_.Add(other.ipAddresses_); + customSans_.Add(other.customSans_); + _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: { + dnsNames_.AddEntriesFrom(input, _repeated_dnsNames_codec); + break; + } + case 18: { + uris_.AddEntriesFrom(input, _repeated_uris_codec); + break; + } + case 26: { + emailAddresses_.AddEntriesFrom(input, _repeated_emailAddresses_codec); + break; + } + case 34: { + ipAddresses_.AddEntriesFrom(input, _repeated_ipAddresses_codec); + break; + } + case 42: { + customSans_.AddEntriesFrom(input, _repeated_customSans_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: { + dnsNames_.AddEntriesFrom(ref input, _repeated_dnsNames_codec); + break; + } + case 18: { + uris_.AddEntriesFrom(ref input, _repeated_uris_codec); + break; + } + case 26: { + emailAddresses_.AddEntriesFrom(ref input, _repeated_emailAddresses_codec); + break; + } + case 34: { + ipAddresses_.AddEntriesFrom(ref input, _repeated_ipAddresses_codec); + break; + } + case 42: { + customSans_.AddEntriesFrom(ref input, _repeated_customSans_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Describes constraints on a + /// [Certificate][google.cloud.security.privateca.v1.Certificate]'s + /// [Subject][google.cloud.security.privateca.v1.Subject] and + /// [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CertificateIdentityConstraints : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CertificateIdentityConstraints()); + 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.Security.PrivateCA.V1.ResourcesReflection.Descriptor.MessageTypes[15]; } + } + + [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 CertificateIdentityConstraints() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateIdentityConstraints(CertificateIdentityConstraints other) : this() { + _hasBits0 = other._hasBits0; + celExpression_ = other.celExpression_ != null ? other.celExpression_.Clone() : null; + allowSubjectPassthrough_ = other.allowSubjectPassthrough_; + allowSubjectAltNamesPassthrough_ = other.allowSubjectAltNamesPassthrough_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateIdentityConstraints Clone() { + return new CertificateIdentityConstraints(this); + } + + /// Field number for the "cel_expression" field. + public const int CelExpressionFieldNumber = 1; + private global::Google.Type.Expr celExpression_; + /// + /// Optional. A CEL expression that may be used to validate the resolved X.509 + /// Subject and/or Subject Alternative Name before a certificate is signed. To + /// see the full allowed syntax and some examples, see + /// https://cloud.google.com/certificate-authority-service/docs/using-cel + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Type.Expr CelExpression { + get { return celExpression_; } + set { + celExpression_ = value; + } + } + + /// Field number for the "allow_subject_passthrough" field. + public const int AllowSubjectPassthroughFieldNumber = 2; + private readonly static bool AllowSubjectPassthroughDefaultValue = false; + + private bool allowSubjectPassthrough_; + /// + /// Required. If this is true, the + /// [Subject][google.cloud.security.privateca.v1.Subject] field may be copied + /// from a certificate request into the signed certificate. Otherwise, the + /// requested [Subject][google.cloud.security.privateca.v1.Subject] will be + /// discarded. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowSubjectPassthrough { + get { if ((_hasBits0 & 1) != 0) { return allowSubjectPassthrough_; } else { return AllowSubjectPassthroughDefaultValue; } } + set { + _hasBits0 |= 1; + allowSubjectPassthrough_ = value; + } + } + /// Gets whether the "allow_subject_passthrough" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAllowSubjectPassthrough { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "allow_subject_passthrough" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAllowSubjectPassthrough() { + _hasBits0 &= ~1; + } + + /// Field number for the "allow_subject_alt_names_passthrough" field. + public const int AllowSubjectAltNamesPassthroughFieldNumber = 3; + private readonly static bool AllowSubjectAltNamesPassthroughDefaultValue = false; + + private bool allowSubjectAltNamesPassthrough_; + /// + /// Required. If this is true, the + /// [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] + /// extension may be copied from a certificate request into the signed + /// certificate. Otherwise, the requested + /// [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will + /// be discarded. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowSubjectAltNamesPassthrough { + get { if ((_hasBits0 & 2) != 0) { return allowSubjectAltNamesPassthrough_; } else { return AllowSubjectAltNamesPassthroughDefaultValue; } } + set { + _hasBits0 |= 2; + allowSubjectAltNamesPassthrough_ = value; + } + } + /// Gets whether the "allow_subject_alt_names_passthrough" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAllowSubjectAltNamesPassthrough { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "allow_subject_alt_names_passthrough" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAllowSubjectAltNamesPassthrough() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CertificateIdentityConstraints); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CertificateIdentityConstraints other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CelExpression, other.CelExpression)) return false; + if (AllowSubjectPassthrough != other.AllowSubjectPassthrough) return false; + if (AllowSubjectAltNamesPassthrough != other.AllowSubjectAltNamesPassthrough) 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 (celExpression_ != null) hash ^= CelExpression.GetHashCode(); + if (HasAllowSubjectPassthrough) hash ^= AllowSubjectPassthrough.GetHashCode(); + if (HasAllowSubjectAltNamesPassthrough) hash ^= AllowSubjectAltNamesPassthrough.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 (celExpression_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CelExpression); + } + if (HasAllowSubjectPassthrough) { + output.WriteRawTag(16); + output.WriteBool(AllowSubjectPassthrough); + } + if (HasAllowSubjectAltNamesPassthrough) { + output.WriteRawTag(24); + output.WriteBool(AllowSubjectAltNamesPassthrough); + } + 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 (celExpression_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CelExpression); + } + if (HasAllowSubjectPassthrough) { + output.WriteRawTag(16); + output.WriteBool(AllowSubjectPassthrough); + } + if (HasAllowSubjectAltNamesPassthrough) { + output.WriteRawTag(24); + output.WriteBool(AllowSubjectAltNamesPassthrough); + } + 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 (celExpression_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CelExpression); + } + if (HasAllowSubjectPassthrough) { + size += 1 + 1; + } + if (HasAllowSubjectAltNamesPassthrough) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CertificateIdentityConstraints other) { + if (other == null) { + return; + } + if (other.celExpression_ != null) { + if (celExpression_ == null) { + CelExpression = new global::Google.Type.Expr(); + } + CelExpression.MergeFrom(other.CelExpression); + } + if (other.HasAllowSubjectPassthrough) { + AllowSubjectPassthrough = other.AllowSubjectPassthrough; + } + if (other.HasAllowSubjectAltNamesPassthrough) { + AllowSubjectAltNamesPassthrough = other.AllowSubjectAltNamesPassthrough; + } + _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 (celExpression_ == null) { + CelExpression = new global::Google.Type.Expr(); + } + input.ReadMessage(CelExpression); + break; + } + case 16: { + AllowSubjectPassthrough = input.ReadBool(); + break; + } + case 24: { + AllowSubjectAltNamesPassthrough = input.ReadBool(); + 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 (celExpression_ == null) { + CelExpression = new global::Google.Type.Expr(); + } + input.ReadMessage(CelExpression); + break; + } + case 16: { + AllowSubjectPassthrough = input.ReadBool(); + break; + } + case 24: { + AllowSubjectAltNamesPassthrough = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Describes a set of X.509 extensions that may be part of some certificate + /// issuance controls. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CertificateExtensionConstraints : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CertificateExtensionConstraints()); + 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.Security.PrivateCA.V1.ResourcesReflection.Descriptor.MessageTypes[16]; } + } + + [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 CertificateExtensionConstraints() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateExtensionConstraints(CertificateExtensionConstraints other) : this() { + knownExtensions_ = other.knownExtensions_.Clone(); + additionalExtensions_ = other.additionalExtensions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateExtensionConstraints Clone() { + return new CertificateExtensionConstraints(this); + } + + /// Field number for the "known_extensions" field. + public const int KnownExtensionsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_knownExtensions_codec + = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Cloud.Security.PrivateCA.V1.CertificateExtensionConstraints.Types.KnownCertificateExtension) x); + private readonly pbc::RepeatedField knownExtensions_ = new pbc::RepeatedField(); + /// + /// Optional. A set of named X.509 extensions. Will be combined with + /// [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] + /// to determine the full set of X.509 extensions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField KnownExtensions { + get { return knownExtensions_; } + } + + /// Field number for the "additional_extensions" field. + public const int AdditionalExtensionsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_additionalExtensions_codec + = pb::FieldCodec.ForMessage(18, global::Google.Cloud.Security.PrivateCA.V1.ObjectId.Parser); + private readonly pbc::RepeatedField additionalExtensions_ = new pbc::RepeatedField(); + /// + /// Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] + /// identifying custom X.509 extensions. Will be combined with + /// [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] + /// to determine the full set of X.509 extensions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AdditionalExtensions { + get { return additionalExtensions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CertificateExtensionConstraints); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CertificateExtensionConstraints other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!knownExtensions_.Equals(other.knownExtensions_)) return false; + if(!additionalExtensions_.Equals(other.additionalExtensions_)) 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 ^= knownExtensions_.GetHashCode(); + hash ^= additionalExtensions_.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 + knownExtensions_.WriteTo(output, _repeated_knownExtensions_codec); + additionalExtensions_.WriteTo(output, _repeated_additionalExtensions_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) { + knownExtensions_.WriteTo(ref output, _repeated_knownExtensions_codec); + additionalExtensions_.WriteTo(ref output, _repeated_additionalExtensions_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 += knownExtensions_.CalculateSize(_repeated_knownExtensions_codec); + size += additionalExtensions_.CalculateSize(_repeated_additionalExtensions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CertificateExtensionConstraints other) { + if (other == null) { + return; + } + knownExtensions_.Add(other.knownExtensions_); + additionalExtensions_.Add(other.additionalExtensions_); + _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: + case 8: { + knownExtensions_.AddEntriesFrom(input, _repeated_knownExtensions_codec); + break; + } + case 18: { + additionalExtensions_.AddEntriesFrom(input, _repeated_additionalExtensions_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: + case 8: { + knownExtensions_.AddEntriesFrom(ref input, _repeated_knownExtensions_codec); + break; + } + case 18: { + additionalExtensions_.AddEntriesFrom(ref input, _repeated_additionalExtensions_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CertificateExtensionConstraints message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Describes well-known X.509 extensions that can appear in a + /// [Certificate][google.cloud.security.privateca.v1.Certificate], not + /// including the + /// [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] + /// extension. + /// + public enum KnownCertificateExtension { + /// + /// Not specified. + /// + [pbr::OriginalName("KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED")] Unspecified = 0, + /// + /// Refers to a certificate's Key Usage extension, as described in [RFC 5280 + /// section 4.2.1.3](https://tools.ietf.org/html/rfc5280#section-4.2.1.3). + /// This corresponds to the + /// [KeyUsage.base_key_usage][google.cloud.security.privateca.v1.KeyUsage.base_key_usage] + /// field. + /// + [pbr::OriginalName("BASE_KEY_USAGE")] BaseKeyUsage = 1, + /// + /// Refers to a certificate's Extended Key Usage extension, as described in + /// [RFC 5280 + /// section 4.2.1.12](https://tools.ietf.org/html/rfc5280#section-4.2.1.12). + /// This corresponds to the + /// [KeyUsage.extended_key_usage][google.cloud.security.privateca.v1.KeyUsage.extended_key_usage] + /// message. + /// + [pbr::OriginalName("EXTENDED_KEY_USAGE")] ExtendedKeyUsage = 2, + /// + /// Refers to a certificate's Basic Constraints extension, as described in + /// [RFC 5280 + /// section 4.2.1.9](https://tools.ietf.org/html/rfc5280#section-4.2.1.9). + /// This corresponds to the + /// [X509Parameters.ca_options][google.cloud.security.privateca.v1.X509Parameters.ca_options] + /// field. + /// + [pbr::OriginalName("CA_OPTIONS")] CaOptions = 3, + /// + /// Refers to a certificate's Policy object identifiers, as described in + /// [RFC 5280 + /// section 4.2.1.4](https://tools.ietf.org/html/rfc5280#section-4.2.1.4). + /// This corresponds to the + /// [X509Parameters.policy_ids][google.cloud.security.privateca.v1.X509Parameters.policy_ids] + /// field. + /// + [pbr::OriginalName("POLICY_IDS")] PolicyIds = 4, + /// + /// Refers to OCSP servers in a certificate's Authority Information Access + /// extension, as described in + /// [RFC 5280 + /// section 4.2.2.1](https://tools.ietf.org/html/rfc5280#section-4.2.2.1), + /// This corresponds to the + /// [X509Parameters.aia_ocsp_servers][google.cloud.security.privateca.v1.X509Parameters.aia_ocsp_servers] + /// field. + /// + [pbr::OriginalName("AIA_OCSP_SERVERS")] AiaOcspServers = 5, + /// + /// Refers to Name Constraints extension as described in + /// [RFC 5280 + /// section 4.2.1.10](https://tools.ietf.org/html/rfc5280#section-4.2.1.10) + /// + [pbr::OriginalName("NAME_CONSTRAINTS")] NameConstraints = 6, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ResourcesResourceNames.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ResourcesResourceNames.g.cs new file mode 100755 index 000000000000..9128c5b4c838 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ResourcesResourceNames.g.cs @@ -0,0 +1,1548 @@ +// 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 gcspv = Google.Cloud.Security.PrivateCA.V1; +using sys = System; + +namespace Google.Cloud.Security.PrivateCA.V1 +{ + /// Resource name for the CertificateAuthority resource. + public sealed partial class CertificateAuthorityName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority} + /// . + /// + ProjectLocationCaPoolCertificateAuthority = 1, + } + + private static gax::PathTemplate s_projectLocationCaPoolCertificateAuthority = new gax::PathTemplate("projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static CertificateAuthorityName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new CertificateAuthorityName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// + /// The CertificateAuthority ID. Must not be null or empty. + /// + /// + /// A new instance of constructed from the provided ids. + /// + public static CertificateAuthorityName FromProjectLocationCaPoolCertificateAuthority(string projectId, string locationId, string caPoolId, string certificateAuthorityId) => + new CertificateAuthorityName(ResourceNameType.ProjectLocationCaPoolCertificateAuthority, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), caPoolId: gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), certificateAuthorityId: gax::GaxPreconditions.CheckNotNullOrEmpty(certificateAuthorityId, nameof(certificateAuthorityId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// + /// The CertificateAuthority ID. Must not be null or empty. + /// + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority} + /// . + /// + public static string Format(string projectId, string locationId, string caPoolId, string certificateAuthorityId) => + FormatProjectLocationCaPoolCertificateAuthority(projectId, locationId, caPoolId, certificateAuthorityId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// + /// The CertificateAuthority ID. Must not be null or empty. + /// + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority} + /// . + /// + public static string FormatProjectLocationCaPoolCertificateAuthority(string projectId, string locationId, string caPoolId, string certificateAuthorityId) => + s_projectLocationCaPoolCertificateAuthority.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), gax::GaxPreconditions.CheckNotNullOrEmpty(certificateAuthorityId, nameof(certificateAuthorityId))); + + /// + /// 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}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static CertificateAuthorityName Parse(string certificateAuthorityName) => + Parse(certificateAuthorityName, 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}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority} + /// + /// + /// + /// 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 CertificateAuthorityName Parse(string certificateAuthorityName, bool allowUnparsed) => + TryParse(certificateAuthorityName, allowUnparsed, out CertificateAuthorityName 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}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority} + /// + /// + /// + /// + /// 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 certificateAuthorityName, out CertificateAuthorityName result) => + TryParse(certificateAuthorityName, 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}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority} + /// + /// + /// + /// 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 certificateAuthorityName, bool allowUnparsed, out CertificateAuthorityName result) + { + gax::GaxPreconditions.CheckNotNull(certificateAuthorityName, nameof(certificateAuthorityName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationCaPoolCertificateAuthority.TryParseName(certificateAuthorityName, out resourceName)) + { + result = FromProjectLocationCaPoolCertificateAuthority(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(certificateAuthorityName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private CertificateAuthorityName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string caPoolId = null, string certificateAuthorityId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + CaPoolId = caPoolId; + CertificateAuthorityId = certificateAuthorityId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of + /// pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// + /// The CertificateAuthority ID. Must not be null or empty. + /// + public CertificateAuthorityName(string projectId, string locationId, string caPoolId, string certificateAuthorityId) : this(ResourceNameType.ProjectLocationCaPoolCertificateAuthority, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), caPoolId: gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), certificateAuthorityId: gax::GaxPreconditions.CheckNotNullOrEmpty(certificateAuthorityId, nameof(certificateAuthorityId))) + { + } + + /// 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 CaPool ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string CaPoolId { get; } + + /// + /// The CertificateAuthority ID. Will not be null, unless this instance contains an unparsed + /// resource name. + /// + public string CertificateAuthorityId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { 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.ProjectLocationCaPoolCertificateAuthority: return s_projectLocationCaPoolCertificateAuthority.Expand(ProjectId, LocationId, CaPoolId, CertificateAuthorityId); + 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 CertificateAuthorityName); + + /// + public bool Equals(CertificateAuthorityName 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 ==(CertificateAuthorityName a, CertificateAuthorityName 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 !=(CertificateAuthorityName a, CertificateAuthorityName b) => !(a == b); + } + + /// Resource name for the CaPool resource. + public sealed partial class CaPoolName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern projects/{project}/locations/{location}/caPools/{ca_pool}. + /// + ProjectLocationCaPool = 1, + } + + private static gax::PathTemplate s_projectLocationCaPool = new gax::PathTemplate("projects/{project}/locations/{location}/caPools/{ca_pool}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static CaPoolName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new CaPoolName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static CaPoolName FromProjectLocationCaPool(string projectId, string locationId, string caPoolId) => + new CaPoolName(ResourceNameType.ProjectLocationCaPool, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), caPoolId: gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}. + /// + public static string Format(string projectId, string locationId, string caPoolId) => + FormatProjectLocationCaPool(projectId, locationId, caPoolId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}. + /// + public static string FormatProjectLocationCaPool(string projectId, string locationId, string caPoolId) => + s_projectLocationCaPool.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId))); + + /// 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}/locations/{location}/caPools/{ca_pool} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static CaPoolName Parse(string caPoolName) => Parse(caPoolName, 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}/locations/{location}/caPools/{ca_pool} + /// + /// 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 CaPoolName Parse(string caPoolName, bool allowUnparsed) => + TryParse(caPoolName, allowUnparsed, out CaPoolName 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}/locations/{location}/caPools/{ca_pool} + /// + /// + /// 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 caPoolName, out CaPoolName result) => TryParse(caPoolName, 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}/locations/{location}/caPools/{ca_pool} + /// + /// 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 caPoolName, bool allowUnparsed, out CaPoolName result) + { + gax::GaxPreconditions.CheckNotNull(caPoolName, nameof(caPoolName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationCaPool.TryParseName(caPoolName, out resourceName)) + { + result = FromProjectLocationCaPool(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(caPoolName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private CaPoolName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string caPoolId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + CaPoolId = caPoolId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + public CaPoolName(string projectId, string locationId, string caPoolId) : this(ResourceNameType.ProjectLocationCaPool, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), caPoolId: gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId))) + { + } + + /// 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 CaPool ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string CaPoolId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { 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.ProjectLocationCaPool: return s_projectLocationCaPool.Expand(ProjectId, LocationId, CaPoolId); + 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 CaPoolName); + + /// + public bool Equals(CaPoolName 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 ==(CaPoolName a, CaPoolName 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 !=(CaPoolName a, CaPoolName b) => !(a == b); + } + + /// Resource name for the CertificateRevocationList resource. + public sealed partial class CertificateRevocationListName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list} + /// . + /// + ProjectLocationCaPoolCertificateAuthorityCertificateRevocationList = 1, + } + + private static gax::PathTemplate s_projectLocationCaPoolCertificateAuthorityCertificateRevocationList = new gax::PathTemplate("projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list}"); + + /// + /// Creates a containing an unparsed resource name. + /// + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static CertificateRevocationListName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new CertificateRevocationListName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// + /// The CertificateAuthority ID. Must not be null or empty. + /// + /// + /// The CertificateRevocationList ID. Must not be null or empty. + /// + /// + /// A new instance of constructed from the provided ids. + /// + public static CertificateRevocationListName FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList(string projectId, string locationId, string caPoolId, string certificateAuthorityId, string certificateRevocationListId) => + new CertificateRevocationListName(ResourceNameType.ProjectLocationCaPoolCertificateAuthorityCertificateRevocationList, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), caPoolId: gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), certificateAuthorityId: gax::GaxPreconditions.CheckNotNullOrEmpty(certificateAuthorityId, nameof(certificateAuthorityId)), certificateRevocationListId: gax::GaxPreconditions.CheckNotNullOrEmpty(certificateRevocationListId, nameof(certificateRevocationListId))); + + /// + /// Formats the IDs into the string representation of this with + /// pattern + /// + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// + /// The CertificateAuthority ID. Must not be null or empty. + /// + /// + /// The CertificateRevocationList ID. Must not be null or empty. + /// + /// + /// The string representation of this with pattern + /// + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list} + /// . + /// + public static string Format(string projectId, string locationId, string caPoolId, string certificateAuthorityId, string certificateRevocationListId) => + FormatProjectLocationCaPoolCertificateAuthorityCertificateRevocationList(projectId, locationId, caPoolId, certificateAuthorityId, certificateRevocationListId); + + /// + /// Formats the IDs into the string representation of this with + /// pattern + /// + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// + /// The CertificateAuthority ID. Must not be null or empty. + /// + /// + /// The CertificateRevocationList ID. Must not be null or empty. + /// + /// + /// The string representation of this with pattern + /// + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list} + /// . + /// + public static string FormatProjectLocationCaPoolCertificateAuthorityCertificateRevocationList(string projectId, string locationId, string caPoolId, string certificateAuthorityId, string certificateRevocationListId) => + s_projectLocationCaPoolCertificateAuthorityCertificateRevocationList.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), gax::GaxPreconditions.CheckNotNullOrEmpty(certificateAuthorityId, nameof(certificateAuthorityId)), gax::GaxPreconditions.CheckNotNullOrEmpty(certificateRevocationListId, nameof(certificateRevocationListId))); + + /// + /// 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}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list} + /// + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// The parsed if successful. + public static CertificateRevocationListName Parse(string certificateRevocationListName) => + Parse(certificateRevocationListName, 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}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list} + /// + /// + /// + /// 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 CertificateRevocationListName Parse(string certificateRevocationListName, bool allowUnparsed) => + TryParse(certificateRevocationListName, allowUnparsed, out CertificateRevocationListName 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}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list} + /// + /// + /// + /// + /// + /// 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 certificateRevocationListName, out CertificateRevocationListName result) => + TryParse(certificateRevocationListName, 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}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list} + /// + /// + /// + /// 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 certificateRevocationListName, bool allowUnparsed, out CertificateRevocationListName result) + { + gax::GaxPreconditions.CheckNotNull(certificateRevocationListName, nameof(certificateRevocationListName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationCaPoolCertificateAuthorityCertificateRevocationList.TryParseName(certificateRevocationListName, out resourceName)) + { + result = FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList(resourceName[0], resourceName[1], resourceName[2], resourceName[3], resourceName[4]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(certificateRevocationListName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private CertificateRevocationListName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string caPoolId = null, string certificateAuthorityId = null, string certificateRevocationListId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + CaPoolId = caPoolId; + CertificateAuthorityId = certificateAuthorityId; + CertificateRevocationListId = certificateRevocationListId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of + /// pattern + /// + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// + /// The CertificateAuthority ID. Must not be null or empty. + /// + /// + /// The CertificateRevocationList ID. Must not be null or empty. + /// + public CertificateRevocationListName(string projectId, string locationId, string caPoolId, string certificateAuthorityId, string certificateRevocationListId) : this(ResourceNameType.ProjectLocationCaPoolCertificateAuthorityCertificateRevocationList, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), caPoolId: gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), certificateAuthorityId: gax::GaxPreconditions.CheckNotNullOrEmpty(certificateAuthorityId, nameof(certificateAuthorityId)), certificateRevocationListId: gax::GaxPreconditions.CheckNotNullOrEmpty(certificateRevocationListId, nameof(certificateRevocationListId))) + { + } + + /// 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 CaPool ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string CaPoolId { get; } + + /// + /// The CertificateAuthority ID. Will not be null, unless this instance contains an unparsed + /// resource name. + /// + public string CertificateAuthorityId { get; } + + /// + /// The CertificateRevocationList ID. Will not be null, unless this instance contains an unparsed + /// resource name. + /// + public string CertificateRevocationListId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { 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.ProjectLocationCaPoolCertificateAuthorityCertificateRevocationList: return s_projectLocationCaPoolCertificateAuthorityCertificateRevocationList.Expand(ProjectId, LocationId, CaPoolId, CertificateAuthorityId, CertificateRevocationListId); + 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 CertificateRevocationListName); + + /// + public bool Equals(CertificateRevocationListName 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 ==(CertificateRevocationListName a, CertificateRevocationListName 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 !=(CertificateRevocationListName a, CertificateRevocationListName b) => !(a == b); + } + + /// Resource name for the Certificate resource. + public sealed partial class CertificateName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificates/{certificate}. + /// + ProjectLocationCaPoolCertificate = 1, + } + + private static gax::PathTemplate s_projectLocationCaPoolCertificate = new gax::PathTemplate("projects/{project}/locations/{location}/caPools/{ca_pool}/certificates/{certificate}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static CertificateName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new CertificateName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificates/{certificate}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// The Certificate ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static CertificateName FromProjectLocationCaPoolCertificate(string projectId, string locationId, string caPoolId, string certificateId) => + new CertificateName(ResourceNameType.ProjectLocationCaPoolCertificate, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), caPoolId: gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), certificateId: gax::GaxPreconditions.CheckNotNullOrEmpty(certificateId, nameof(certificateId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificates/{certificate}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// The Certificate ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificates/{certificate}. + /// + public static string Format(string projectId, string locationId, string caPoolId, string certificateId) => + FormatProjectLocationCaPoolCertificate(projectId, locationId, caPoolId, certificateId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificates/{certificate}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// The Certificate ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificates/{certificate}. + /// + public static string FormatProjectLocationCaPoolCertificate(string projectId, string locationId, string caPoolId, string certificateId) => + s_projectLocationCaPoolCertificate.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), gax::GaxPreconditions.CheckNotNullOrEmpty(certificateId, nameof(certificateId))); + + /// 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}/locations/{location}/caPools/{ca_pool}/certificates/{certificate} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static CertificateName Parse(string certificateName) => Parse(certificateName, 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}/locations/{location}/caPools/{ca_pool}/certificates/{certificate} + /// + /// + /// + /// 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 CertificateName Parse(string certificateName, bool allowUnparsed) => + TryParse(certificateName, allowUnparsed, out CertificateName 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}/locations/{location}/caPools/{ca_pool}/certificates/{certificate} + /// + /// + /// + /// + /// 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 certificateName, out CertificateName result) => + TryParse(certificateName, 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}/locations/{location}/caPools/{ca_pool}/certificates/{certificate} + /// + /// + /// + /// 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 certificateName, bool allowUnparsed, out CertificateName result) + { + gax::GaxPreconditions.CheckNotNull(certificateName, nameof(certificateName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationCaPoolCertificate.TryParseName(certificateName, out resourceName)) + { + result = FromProjectLocationCaPoolCertificate(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(certificateName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private CertificateName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string caPoolId = null, string certificateId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + CaPoolId = caPoolId; + CertificateId = certificateId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/locations/{location}/caPools/{ca_pool}/certificates/{certificate} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The CaPool ID. Must not be null or empty. + /// The Certificate ID. Must not be null or empty. + public CertificateName(string projectId, string locationId, string caPoolId, string certificateId) : this(ResourceNameType.ProjectLocationCaPoolCertificate, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), caPoolId: gax::GaxPreconditions.CheckNotNullOrEmpty(caPoolId, nameof(caPoolId)), certificateId: gax::GaxPreconditions.CheckNotNullOrEmpty(certificateId, nameof(certificateId))) + { + } + + /// 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 CaPool ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string CaPoolId { get; } + + /// + /// The Certificate ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string CertificateId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { 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.ProjectLocationCaPoolCertificate: return s_projectLocationCaPoolCertificate.Expand(ProjectId, LocationId, CaPoolId, CertificateId); + 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 CertificateName); + + /// + public bool Equals(CertificateName 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 ==(CertificateName a, CertificateName 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 !=(CertificateName a, CertificateName b) => !(a == b); + } + + /// Resource name for the CertificateTemplate resource. + public sealed partial class CertificateTemplateName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/locations/{location}/certificateTemplates/{certificate_template}. + /// + ProjectLocationCertificateTemplate = 1, + } + + private static gax::PathTemplate s_projectLocationCertificateTemplate = new gax::PathTemplate("projects/{project}/locations/{location}/certificateTemplates/{certificate_template}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static CertificateTemplateName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new CertificateTemplateName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/certificateTemplates/{certificate_template}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// + /// The CertificateTemplate ID. Must not be null or empty. + /// + /// + /// A new instance of constructed from the provided ids. + /// + public static CertificateTemplateName FromProjectLocationCertificateTemplate(string projectId, string locationId, string certificateTemplateId) => + new CertificateTemplateName(ResourceNameType.ProjectLocationCertificateTemplate, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), certificateTemplateId: gax::GaxPreconditions.CheckNotNullOrEmpty(certificateTemplateId, nameof(certificateTemplateId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/certificateTemplates/{certificate_template}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// + /// The CertificateTemplate ID. Must not be null or empty. + /// + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/certificateTemplates/{certificate_template}. + /// + public static string Format(string projectId, string locationId, string certificateTemplateId) => + FormatProjectLocationCertificateTemplate(projectId, locationId, certificateTemplateId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/certificateTemplates/{certificate_template}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// + /// The CertificateTemplate ID. Must not be null or empty. + /// + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/certificateTemplates/{certificate_template}. + /// + public static string FormatProjectLocationCertificateTemplate(string projectId, string locationId, string certificateTemplateId) => + s_projectLocationCertificateTemplate.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(certificateTemplateId, nameof(certificateTemplateId))); + + /// + /// 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}/locations/{location}/certificateTemplates/{certificate_template} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static CertificateTemplateName Parse(string certificateTemplateName) => Parse(certificateTemplateName, 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}/locations/{location}/certificateTemplates/{certificate_template} + /// + /// + /// + /// 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 CertificateTemplateName Parse(string certificateTemplateName, bool allowUnparsed) => + TryParse(certificateTemplateName, allowUnparsed, out CertificateTemplateName 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}/locations/{location}/certificateTemplates/{certificate_template} + /// + /// + /// + /// + /// 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 certificateTemplateName, out CertificateTemplateName result) => + TryParse(certificateTemplateName, 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}/locations/{location}/certificateTemplates/{certificate_template} + /// + /// + /// + /// 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 certificateTemplateName, bool allowUnparsed, out CertificateTemplateName result) + { + gax::GaxPreconditions.CheckNotNull(certificateTemplateName, nameof(certificateTemplateName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationCertificateTemplate.TryParseName(certificateTemplateName, out resourceName)) + { + result = FromProjectLocationCertificateTemplate(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(certificateTemplateName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private CertificateTemplateName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string certificateTemplateId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + CertificateTemplateId = certificateTemplateId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of + /// pattern projects/{project}/locations/{location}/certificateTemplates/{certificate_template} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// + /// The CertificateTemplate ID. Must not be null or empty. + /// + public CertificateTemplateName(string projectId, string locationId, string certificateTemplateId) : this(ResourceNameType.ProjectLocationCertificateTemplate, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), certificateTemplateId: gax::GaxPreconditions.CheckNotNullOrEmpty(certificateTemplateId, nameof(certificateTemplateId))) + { + } + + /// 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 CertificateTemplate ID. Will not be null, unless this instance contains an unparsed + /// resource name. + /// + public string CertificateTemplateId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { 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.ProjectLocationCertificateTemplate: return s_projectLocationCertificateTemplate.Expand(ProjectId, LocationId, CertificateTemplateId); + 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 CertificateTemplateName); + + /// + public bool Equals(CertificateTemplateName 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 ==(CertificateTemplateName a, CertificateTemplateName 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 !=(CertificateTemplateName a, CertificateTemplateName b) => !(a == b); + } + + public partial class CertificateAuthority + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateAuthorityName CertificateAuthorityName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateAuthorityName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CaPool + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CaPoolName CaPoolName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CaPoolName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CertificateRevocationList + { + /// + /// -typed view over the resource name + /// property. + /// + public gcspv::CertificateRevocationListName CertificateRevocationListName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateRevocationListName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + + public partial class Types + { + public partial class RevokedCertificate + { + /// + /// -typed view over the resource name property. + /// + public CertificateName CertificateAsCertificateName + { + get => string.IsNullOrEmpty(Certificate) ? null : CertificateName.Parse(Certificate, allowUnparsed: true); + set => Certificate = value?.ToString() ?? ""; + } + } + } + } + + public partial class Certificate + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateName CertificateName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource + /// name property. + /// + public CertificateAuthorityName IssuerCertificateAuthorityAsCertificateAuthorityName + { + get => string.IsNullOrEmpty(IssuerCertificateAuthority) ? null : CertificateAuthorityName.Parse(IssuerCertificateAuthority, allowUnparsed: true); + set => IssuerCertificateAuthority = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name + /// property. + /// + public CertificateTemplateName CertificateTemplateAsCertificateTemplateName + { + get => string.IsNullOrEmpty(CertificateTemplate) ? null : CertificateTemplateName.Parse(CertificateTemplate, allowUnparsed: true); + set => CertificateTemplate = value?.ToString() ?? ""; + } + } + + public partial class CertificateTemplate + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateTemplateName CertificateTemplateName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateTemplateName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class SubordinateConfig + { + /// + /// -typed view over the resource name + /// property. + /// + public CertificateAuthorityName CertificateAuthorityAsCertificateAuthorityName + { + get => string.IsNullOrEmpty(CertificateAuthority) ? null : CertificateAuthorityName.Parse(CertificateAuthority, allowUnparsed: true); + set => CertificateAuthority = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/Service.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/Service.g.cs new file mode 100755 index 000000000000..57f56f3494ac --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/Service.g.cs @@ -0,0 +1,11386 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/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.Security.PrivateCA.V1 { + + /// Holder for reflection information generated from google/cloud/security/privateca/v1/service.proto + public static partial class ServiceReflection { + + #region Descriptor + /// File descriptor for google/cloud/security/privateca/v1/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( + "CjBnb29nbGUvY2xvdWQvc2VjdXJpdHkvcHJpdmF0ZWNhL3YxL3NlcnZpY2Uu", + "cHJvdG8SImdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEaHGdv", + "b2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50", + "LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n", + "bGUvYXBpL3Jlc291cmNlLnByb3RvGjJnb29nbGUvY2xvdWQvc2VjdXJpdHkv", + "cHJpdmF0ZWNhL3YxL3Jlc291cmNlcy5wcm90bxojZ29vZ2xlL2xvbmdydW5u", + "aW5nL29wZXJhdGlvbnMucHJvdG8aG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5w", + "cm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aH2dvb2ds", + "ZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8inwIKGENyZWF0ZUNlcnRpZmlj", + "YXRlUmVxdWVzdBI3CgZwYXJlbnQYASABKAlCJ+BBAvpBIQofcHJpdmF0ZWNh", + "Lmdvb2dsZWFwaXMuY29tL0NhUG9vbBIbCg5jZXJ0aWZpY2F0ZV9pZBgCIAEo", + "CUID4EEBEkkKC2NlcnRpZmljYXRlGAMgASgLMi8uZ29vZ2xlLmNsb3VkLnNl", + "Y3VyaXR5LnByaXZhdGVjYS52MS5DZXJ0aWZpY2F0ZUID4EECEhcKCnJlcXVl", + "c3RfaWQYBCABKAlCA+BBARIaCg12YWxpZGF0ZV9vbmx5GAUgASgIQgPgQQES", + "LQogaXNzdWluZ19jZXJ0aWZpY2F0ZV9hdXRob3JpdHlfaWQYBiABKAlCA+BB", + "ASJTChVHZXRDZXJ0aWZpY2F0ZVJlcXVlc3QSOgoEbmFtZRgBIAEoCUIs4EEC", + "+kEmCiRwcml2YXRlY2EuZ29vZ2xlYXBpcy5jb20vQ2VydGlmaWNhdGUirwEK", + "F0xpc3RDZXJ0aWZpY2F0ZXNSZXF1ZXN0EjcKBnBhcmVudBgBIAEoCUIn4EEC", + "+kEhCh9wcml2YXRlY2EuZ29vZ2xlYXBpcy5jb20vQ2FQb29sEhYKCXBhZ2Vf", + "c2l6ZRgCIAEoBUID4EEBEhcKCnBhZ2VfdG9rZW4YAyABKAlCA+BBARITCgZm", + "aWx0ZXIYBCABKAlCA+BBARIVCghvcmRlcl9ieRgFIAEoCUID4EEBIo8BChhM", + "aXN0Q2VydGlmaWNhdGVzUmVzcG9uc2USRQoMY2VydGlmaWNhdGVzGAEgAygL", + "Mi8uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5DZXJ0aWZp", + "Y2F0ZRIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkSEwoLdW5yZWFjaGFibGUY", + "AyADKAkiugEKGFJldm9rZUNlcnRpZmljYXRlUmVxdWVzdBI6CgRuYW1lGAEg", + "ASgJQizgQQL6QSYKJHByaXZhdGVjYS5nb29nbGVhcGlzLmNvbS9DZXJ0aWZp", + "Y2F0ZRJJCgZyZWFzb24YAiABKA4yNC5nb29nbGUuY2xvdWQuc2VjdXJpdHku", + "cHJpdmF0ZWNhLnYxLlJldm9jYXRpb25SZWFzb25CA+BBAhIXCgpyZXF1ZXN0", + "X2lkGAMgASgJQgPgQQEitAEKGFVwZGF0ZUNlcnRpZmljYXRlUmVxdWVzdBJJ", + "CgtjZXJ0aWZpY2F0ZRgBIAEoCzIvLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5w", + "cml2YXRlY2EudjEuQ2VydGlmaWNhdGVCA+BBAhI0Cgt1cGRhdGVfbWFzaxgC", + "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBAhIXCgpyZXF1", + "ZXN0X2lkGAMgASgJQgPgQQEi/AEKI0FjdGl2YXRlQ2VydGlmaWNhdGVBdXRo", + "b3JpdHlSZXF1ZXN0EkMKBG5hbWUYASABKAlCNeBBAvpBLwotcHJpdmF0ZWNh", + "Lmdvb2dsZWFwaXMuY29tL0NlcnRpZmljYXRlQXV0aG9yaXR5Eh8KEnBlbV9j", + "YV9jZXJ0aWZpY2F0ZRgCIAEoCUID4EECElYKEnN1Ym9yZGluYXRlX2NvbmZp", + "ZxgDIAEoCzI1Lmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEu", + "U3Vib3JkaW5hdGVDb25maWdCA+BBAhIXCgpyZXF1ZXN0X2lkGAQgASgJQgPg", + "QQEi+gEKIUNyZWF0ZUNlcnRpZmljYXRlQXV0aG9yaXR5UmVxdWVzdBI3CgZw", + "YXJlbnQYASABKAlCJ+BBAvpBIQofcHJpdmF0ZWNhLmdvb2dsZWFwaXMuY29t", + "L0NhUG9vbBIlChhjZXJ0aWZpY2F0ZV9hdXRob3JpdHlfaWQYAiABKAlCA+BB", + "AhJcChVjZXJ0aWZpY2F0ZV9hdXRob3JpdHkYAyABKAsyOC5nb29nbGUuY2xv", + "dWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNlcnRpZmljYXRlQXV0aG9yaXR5", + "QgPgQQISFwoKcmVxdWVzdF9pZBgEIAEoCUID4EEBIqsBCiJEaXNhYmxlQ2Vy", + "dGlmaWNhdGVBdXRob3JpdHlSZXF1ZXN0EkMKBG5hbWUYASABKAlCNeBBAvpB", + "LwotcHJpdmF0ZWNhLmdvb2dsZWFwaXMuY29tL0NlcnRpZmljYXRlQXV0aG9y", + "aXR5EhcKCnJlcXVlc3RfaWQYAiABKAlCA+BBARInChppZ25vcmVfZGVwZW5k", + "ZW50X3Jlc291cmNlcxgDIAEoCEID4EEBIoEBCiFFbmFibGVDZXJ0aWZpY2F0", + "ZUF1dGhvcml0eVJlcXVlc3QSQwoEbmFtZRgBIAEoCUI14EEC+kEvCi1wcml2", + "YXRlY2EuZ29vZ2xlYXBpcy5jb20vQ2VydGlmaWNhdGVBdXRob3JpdHkSFwoK", + "cmVxdWVzdF9pZBgCIAEoCUID4EEBImoKI0ZldGNoQ2VydGlmaWNhdGVBdXRo", + "b3JpdHlDc3JSZXF1ZXN0EkMKBG5hbWUYASABKAlCNeBBAvpBLwotcHJpdmF0", + "ZWNhLmdvb2dsZWFwaXMuY29tL0NlcnRpZmljYXRlQXV0aG9yaXR5IjwKJEZl", + "dGNoQ2VydGlmaWNhdGVBdXRob3JpdHlDc3JSZXNwb25zZRIUCgdwZW1fY3Ny", + "GAEgASgJQgPgQQMiZQoeR2V0Q2VydGlmaWNhdGVBdXRob3JpdHlSZXF1ZXN0", + "EkMKBG5hbWUYASABKAlCNeBBAvpBLwotcHJpdmF0ZWNhLmdvb2dsZWFwaXMu", + "Y29tL0NlcnRpZmljYXRlQXV0aG9yaXR5IrkBCiFMaXN0Q2VydGlmaWNhdGVB", + "dXRob3JpdGllc1JlcXVlc3QSNwoGcGFyZW50GAEgASgJQifgQQL6QSEKH3By", + "aXZhdGVjYS5nb29nbGVhcGlzLmNvbS9DYVBvb2wSFgoJcGFnZV9zaXplGAIg", + "ASgFQgPgQQESFwoKcGFnZV90b2tlbhgDIAEoCUID4EEBEhMKBmZpbHRlchgE", + "IAEoCUID4EEBEhUKCG9yZGVyX2J5GAUgASgJQgPgQQEirQEKIkxpc3RDZXJ0", + "aWZpY2F0ZUF1dGhvcml0aWVzUmVzcG9uc2USWQoXY2VydGlmaWNhdGVfYXV0", + "aG9yaXRpZXMYASADKAsyOC5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0", + "ZWNhLnYxLkNlcnRpZmljYXRlQXV0aG9yaXR5EhcKD25leHRfcGFnZV90b2tl", + "bhgCIAEoCRITCgt1bnJlYWNoYWJsZRgDIAMoCSKDAQojVW5kZWxldGVDZXJ0", + "aWZpY2F0ZUF1dGhvcml0eVJlcXVlc3QSQwoEbmFtZRgBIAEoCUI14EEC+kEv", + "Ci1wcml2YXRlY2EuZ29vZ2xlYXBpcy5jb20vQ2VydGlmaWNhdGVBdXRob3Jp", + "dHkSFwoKcmVxdWVzdF9pZBgCIAEoCUID4EEBIvMBCiFEZWxldGVDZXJ0aWZp", + "Y2F0ZUF1dGhvcml0eVJlcXVlc3QSQwoEbmFtZRgBIAEoCUI14EEC+kEvCi1w", + "cml2YXRlY2EuZ29vZ2xlYXBpcy5jb20vQ2VydGlmaWNhdGVBdXRob3JpdHkS", + "FwoKcmVxdWVzdF9pZBgCIAEoCUID4EEBEicKGmlnbm9yZV9hY3RpdmVfY2Vy", + "dGlmaWNhdGVzGAQgASgIQgPgQQESHgoRc2tpcF9ncmFjZV9wZXJpb2QYBSAB", + "KAhCA+BBARInChppZ25vcmVfZGVwZW5kZW50X3Jlc291cmNlcxgGIAEoCEID", + "4EEBItABCiFVcGRhdGVDZXJ0aWZpY2F0ZUF1dGhvcml0eVJlcXVlc3QSXAoV", + "Y2VydGlmaWNhdGVfYXV0aG9yaXR5GAEgASgLMjguZ29vZ2xlLmNsb3VkLnNl", + "Y3VyaXR5LnByaXZhdGVjYS52MS5DZXJ0aWZpY2F0ZUF1dGhvcml0eUID4EEC", + "EjQKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxk", + "TWFza0ID4EECEhcKCnJlcXVlc3RfaWQYAyABKAlCA+BBASLEAQoTQ3JlYXRl", + "Q2FQb29sUmVxdWVzdBI5CgZwYXJlbnQYASABKAlCKeBBAvpBIwohbG9jYXRp", + "b25zLmdvb2dsZWFwaXMuY29tL0xvY2F0aW9uEhcKCmNhX3Bvb2xfaWQYAiAB", + "KAlCA+BBAhJACgdjYV9wb29sGAMgASgLMiouZ29vZ2xlLmNsb3VkLnNlY3Vy", + "aXR5LnByaXZhdGVjYS52MS5DYVBvb2xCA+BBAhIXCgpyZXF1ZXN0X2lkGAQg", + "ASgJQgPgQQEipgEKE1VwZGF0ZUNhUG9vbFJlcXVlc3QSQAoHY2FfcG9vbBgB", + "IAEoCzIqLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuQ2FQ", + "b29sQgPgQQISNAoLdXBkYXRlX21hc2sYAiABKAsyGi5nb29nbGUucHJvdG9i", + "dWYuRmllbGRNYXNrQgPgQQISFwoKcmVxdWVzdF9pZBgDIAEoCUID4EEBIo4B", + "ChNEZWxldGVDYVBvb2xSZXF1ZXN0EjUKBG5hbWUYASABKAlCJ+BBAvpBIQof", + "cHJpdmF0ZWNhLmdvb2dsZWFwaXMuY29tL0NhUG9vbBIXCgpyZXF1ZXN0X2lk", + "GAIgASgJQgPgQQESJwoaaWdub3JlX2RlcGVuZGVudF9yZXNvdXJjZXMYBCAB", + "KAhCA+BBASJoChNGZXRjaENhQ2VydHNSZXF1ZXN0EjgKB2NhX3Bvb2wYASAB", + "KAlCJ+BBAvpBIQofcHJpdmF0ZWNhLmdvb2dsZWFwaXMuY29tL0NhUG9vbBIX", + "CgpyZXF1ZXN0X2lkGAIgASgJQgPgQQEijwEKFEZldGNoQ2FDZXJ0c1Jlc3Bv", + "bnNlElQKCGNhX2NlcnRzGAEgAygLMkIuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5", + "LnByaXZhdGVjYS52MS5GZXRjaENhQ2VydHNSZXNwb25zZS5DZXJ0Q2hhaW4a", + "IQoJQ2VydENoYWluEhQKDGNlcnRpZmljYXRlcxgBIAMoCSJJChBHZXRDYVBv", + "b2xSZXF1ZXN0EjUKBG5hbWUYASABKAlCJ+BBAvpBIQofcHJpdmF0ZWNhLmdv", + "b2dsZWFwaXMuY29tL0NhUG9vbCKsAQoSTGlzdENhUG9vbHNSZXF1ZXN0EjkK", + "BnBhcmVudBgBIAEoCUIp4EEC+kEjCiFsb2NhdGlvbnMuZ29vZ2xlYXBpcy5j", + "b20vTG9jYXRpb24SFgoJcGFnZV9zaXplGAIgASgFQgPgQQESFwoKcGFnZV90", + "b2tlbhgDIAEoCUID4EEBEhMKBmZpbHRlchgEIAEoCUID4EEBEhUKCG9yZGVy", + "X2J5GAUgASgJQgPgQQEigQEKE0xpc3RDYVBvb2xzUmVzcG9uc2USPAoIY2Ff", + "cG9vbHMYASADKAsyKi5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNh", + "LnYxLkNhUG9vbBIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkSEwoLdW5yZWFj", + "aGFibGUYAyADKAkibwojR2V0Q2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdFJl", + "cXVlc3QSSAoEbmFtZRgBIAEoCUI64EEC+kE0CjJwcml2YXRlY2EuZ29vZ2xl", + "YXBpcy5jb20vQ2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdCLLAQolTGlzdENl", + "cnRpZmljYXRlUmV2b2NhdGlvbkxpc3RzUmVxdWVzdBJFCgZwYXJlbnQYASAB", + "KAlCNeBBAvpBLwotcHJpdmF0ZWNhLmdvb2dsZWFwaXMuY29tL0NlcnRpZmlj", + "YXRlQXV0aG9yaXR5EhYKCXBhZ2Vfc2l6ZRgCIAEoBUID4EEBEhcKCnBhZ2Vf", + "dG9rZW4YAyABKAlCA+BBARITCgZmaWx0ZXIYBCABKAlCA+BBARIVCghvcmRl", + "cl9ieRgFIAEoCUID4EEBIrsBCiZMaXN0Q2VydGlmaWNhdGVSZXZvY2F0aW9u", + "TGlzdHNSZXNwb25zZRJjChxjZXJ0aWZpY2F0ZV9yZXZvY2F0aW9uX2xpc3Rz", + "GAEgAygLMj0uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5D", + "ZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0EhcKD25leHRfcGFnZV90b2tlbhgC", + "IAEoCRITCgt1bnJlYWNoYWJsZRgDIAMoCSLgAQomVXBkYXRlQ2VydGlmaWNh", + "dGVSZXZvY2F0aW9uTGlzdFJlcXVlc3QSZwobY2VydGlmaWNhdGVfcmV2b2Nh", + "dGlvbl9saXN0GAEgASgLMj0uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZh", + "dGVjYS52MS5DZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0QgPgQQISNAoLdXBk", + "YXRlX21hc2sYAiABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPg", + "QQISFwoKcmVxdWVzdF9pZBgDIAEoCUID4EEBIvgBCiBDcmVhdGVDZXJ0aWZp", + "Y2F0ZVRlbXBsYXRlUmVxdWVzdBI5CgZwYXJlbnQYASABKAlCKeBBAvpBIwoh", + "bG9jYXRpb25zLmdvb2dsZWFwaXMuY29tL0xvY2F0aW9uEiQKF2NlcnRpZmlj", + "YXRlX3RlbXBsYXRlX2lkGAIgASgJQgPgQQISWgoUY2VydGlmaWNhdGVfdGVt", + "cGxhdGUYAyABKAsyNy5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNh", + "LnYxLkNlcnRpZmljYXRlVGVtcGxhdGVCA+BBAhIXCgpyZXF1ZXN0X2lkGAQg", + "ASgJQgPgQQEifwogRGVsZXRlQ2VydGlmaWNhdGVUZW1wbGF0ZVJlcXVlc3QS", + "QgoEbmFtZRgBIAEoCUI04EEC+kEuCixwcml2YXRlY2EuZ29vZ2xlYXBpcy5j", + "b20vQ2VydGlmaWNhdGVUZW1wbGF0ZRIXCgpyZXF1ZXN0X2lkGAIgASgJQgPg", + "QQEiYwodR2V0Q2VydGlmaWNhdGVUZW1wbGF0ZVJlcXVlc3QSQgoEbmFtZRgB", + "IAEoCUI04EEC+kEuCixwcml2YXRlY2EuZ29vZ2xlYXBpcy5jb20vQ2VydGlm", + "aWNhdGVUZW1wbGF0ZSK5AQofTGlzdENlcnRpZmljYXRlVGVtcGxhdGVzUmVx", + "dWVzdBI5CgZwYXJlbnQYASABKAlCKeBBAvpBIwohbG9jYXRpb25zLmdvb2ds", + "ZWFwaXMuY29tL0xvY2F0aW9uEhYKCXBhZ2Vfc2l6ZRgCIAEoBUID4EEBEhcK", + "CnBhZ2VfdG9rZW4YAyABKAlCA+BBARITCgZmaWx0ZXIYBCABKAlCA+BBARIV", + "CghvcmRlcl9ieRgFIAEoCUID4EEBIqgBCiBMaXN0Q2VydGlmaWNhdGVUZW1w", + "bGF0ZXNSZXNwb25zZRJWChVjZXJ0aWZpY2F0ZV90ZW1wbGF0ZXMYASADKAsy", + "Ny5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNlcnRpZmlj", + "YXRlVGVtcGxhdGUSFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJEhMKC3VucmVh", + "Y2hhYmxlGAMgAygJIs0BCiBVcGRhdGVDZXJ0aWZpY2F0ZVRlbXBsYXRlUmVx", + "dWVzdBJaChRjZXJ0aWZpY2F0ZV90ZW1wbGF0ZRgBIAEoCzI3Lmdvb2dsZS5j", + "bG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuQ2VydGlmaWNhdGVUZW1wbGF0", + "ZUID4EECEjQKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LkZpZWxkTWFza0ID4EECEhcKCnJlcXVlc3RfaWQYAyABKAlCA+BBASKAAgoR", + "T3BlcmF0aW9uTWV0YWRhdGESNAoLY3JlYXRlX3RpbWUYASABKAsyGi5nb29n", + "bGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSMQoIZW5kX3RpbWUYAiABKAsy", + "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSEwoGdGFyZ2V0GAMg", + "ASgJQgPgQQMSEQoEdmVyYhgEIAEoCUID4EEDEhsKDnN0YXR1c19tZXNzYWdl", + "GAUgASgJQgPgQQMSIwoWcmVxdWVzdGVkX2NhbmNlbGxhdGlvbhgGIAEoCEID", + "4EEDEhgKC2FwaV92ZXJzaW9uGAcgASgJQgPgQQMy+jsKG0NlcnRpZmljYXRl", + "QXV0aG9yaXR5U2VydmljZRL3AQoRQ3JlYXRlQ2VydGlmaWNhdGUSPC5nb29n", + "bGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNyZWF0ZUNlcnRpZmlj", + "YXRlUmVxdWVzdBovLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2Eu", + "djEuQ2VydGlmaWNhdGUic9pBIXBhcmVudCxjZXJ0aWZpY2F0ZSxjZXJ0aWZp", + "Y2F0ZV9pZILT5JMCSSI6L3YxL3twYXJlbnQ9cHJvamVjdHMvKi9sb2NhdGlv", + "bnMvKi9jYVBvb2xzLyp9L2NlcnRpZmljYXRlczoLY2VydGlmaWNhdGUSxwEK", + "DkdldENlcnRpZmljYXRlEjkuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZh", + "dGVjYS52MS5HZXRDZXJ0aWZpY2F0ZVJlcXVlc3QaLy5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNlcnRpZmljYXRlIknaQQRuYW1lgtPk", + "kwI8EjovdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9jYVBvb2xz", + "LyovY2VydGlmaWNhdGVzLyp9EtoBChBMaXN0Q2VydGlmaWNhdGVzEjsuZ29v", + "Z2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5MaXN0Q2VydGlmaWNh", + "dGVzUmVxdWVzdBo8Lmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2Eu", + "djEuTGlzdENlcnRpZmljYXRlc1Jlc3BvbnNlIkvaQQZwYXJlbnSC0+STAjwS", + "Oi92MS97cGFyZW50PXByb2plY3RzLyovbG9jYXRpb25zLyovY2FQb29scy8q", + "fS9jZXJ0aWZpY2F0ZXMS1wEKEVJldm9rZUNlcnRpZmljYXRlEjwuZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5SZXZva2VDZXJ0aWZpY2F0", + "ZVJlcXVlc3QaLy5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYx", + "LkNlcnRpZmljYXRlIlPaQQRuYW1lgtPkkwJGIkEvdjEve25hbWU9cHJvamVj", + "dHMvKi9sb2NhdGlvbnMvKi9jYVBvb2xzLyovY2VydGlmaWNhdGVzLyp9OnJl", + "dm9rZToBKhL5AQoRVXBkYXRlQ2VydGlmaWNhdGUSPC5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHkucHJpdmF0ZWNhLnYxLlVwZGF0ZUNlcnRpZmljYXRlUmVxdWVz", + "dBovLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuQ2VydGlm", + "aWNhdGUiddpBF2NlcnRpZmljYXRlLHVwZGF0ZV9tYXNrgtPkkwJVMkYvdjEv", + "e2NlcnRpZmljYXRlLm5hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9jYVBv", + "b2xzLyovY2VydGlmaWNhdGVzLyp9OgtjZXJ0aWZpY2F0ZRKUAgocQWN0aXZh", + "dGVDZXJ0aWZpY2F0ZUF1dGhvcml0eRJHLmdvb2dsZS5jbG91ZC5zZWN1cml0", + "eS5wcml2YXRlY2EudjEuQWN0aXZhdGVDZXJ0aWZpY2F0ZUF1dGhvcml0eVJl", + "cXVlc3QaHS5nb29nbGUubG9uZ3J1bm5pbmcuT3BlcmF0aW9uIosBykEpChRD", + "ZXJ0aWZpY2F0ZUF1dGhvcml0eRIRT3BlcmF0aW9uTWV0YWRhdGHaQQRuYW1l", + "gtPkkwJSIk0vdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9jYVBv", + "b2xzLyovY2VydGlmaWNhdGVBdXRob3JpdGllcy8qfTphY3RpdmF0ZToBKhLM", + "AgoaQ3JlYXRlQ2VydGlmaWNhdGVBdXRob3JpdHkSRS5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHkucHJpdmF0ZWNhLnYxLkNyZWF0ZUNlcnRpZmljYXRlQXV0aG9y", + "aXR5UmVxdWVzdBodLmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24ixwHK", + "QSkKFENlcnRpZmljYXRlQXV0aG9yaXR5EhFPcGVyYXRpb25NZXRhZGF0YdpB", + "NXBhcmVudCxjZXJ0aWZpY2F0ZV9hdXRob3JpdHksY2VydGlmaWNhdGVfYXV0", + "aG9yaXR5X2lkgtPkkwJdIkQvdjEve3BhcmVudD1wcm9qZWN0cy8qL2xvY2F0", + "aW9ucy8qL2NhUG9vbHMvKn0vY2VydGlmaWNhdGVBdXRob3JpdGllczoVY2Vy", + "dGlmaWNhdGVfYXV0aG9yaXR5EpECChtEaXNhYmxlQ2VydGlmaWNhdGVBdXRo", + "b3JpdHkSRi5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLkRp", + "c2FibGVDZXJ0aWZpY2F0ZUF1dGhvcml0eVJlcXVlc3QaHS5nb29nbGUubG9u", + "Z3J1bm5pbmcuT3BlcmF0aW9uIooBykEpChRDZXJ0aWZpY2F0ZUF1dGhvcml0", + "eRIRT3BlcmF0aW9uTWV0YWRhdGHaQQRuYW1lgtPkkwJRIkwvdjEve25hbWU9", + "cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9jYVBvb2xzLyovY2VydGlmaWNhdGVB", + "dXRob3JpdGllcy8qfTpkaXNhYmxlOgEqEo4CChpFbmFibGVDZXJ0aWZpY2F0", + "ZUF1dGhvcml0eRJFLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2Eu", + "djEuRW5hYmxlQ2VydGlmaWNhdGVBdXRob3JpdHlSZXF1ZXN0Gh0uZ29vZ2xl", + "LmxvbmdydW5uaW5nLk9wZXJhdGlvbiKJAcpBKQoUQ2VydGlmaWNhdGVBdXRo", + "b3JpdHkSEU9wZXJhdGlvbk1ldGFkYXRh2kEEbmFtZYLT5JMCUCJLL3YxL3tu", + "YW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovY2FQb29scy8qL2NlcnRpZmlj", + "YXRlQXV0aG9yaXRpZXMvKn06ZW5hYmxlOgEqEowCChxGZXRjaENlcnRpZmlj", + "YXRlQXV0aG9yaXR5Q3NyEkcuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZh", + "dGVjYS52MS5GZXRjaENlcnRpZmljYXRlQXV0aG9yaXR5Q3NyUmVxdWVzdBpI", + "Lmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuRmV0Y2hDZXJ0", + "aWZpY2F0ZUF1dGhvcml0eUNzclJlc3BvbnNlIlnaQQRuYW1lgtPkkwJMEkov", + "djEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9jYVBvb2xzLyovY2Vy", + "dGlmaWNhdGVBdXRob3JpdGllcy8qfTpmZXRjaBLsAQoXR2V0Q2VydGlmaWNh", + "dGVBdXRob3JpdHkSQi5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNh", + "LnYxLkdldENlcnRpZmljYXRlQXV0aG9yaXR5UmVxdWVzdBo4Lmdvb2dsZS5j", + "bG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuQ2VydGlmaWNhdGVBdXRob3Jp", + "dHkiU9pBBG5hbWWC0+STAkYSRC92MS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0", + "aW9ucy8qL2NhUG9vbHMvKi9jZXJ0aWZpY2F0ZUF1dGhvcml0aWVzLyp9EoIC", + "ChpMaXN0Q2VydGlmaWNhdGVBdXRob3JpdGllcxJFLmdvb2dsZS5jbG91ZC5z", + "ZWN1cml0eS5wcml2YXRlY2EudjEuTGlzdENlcnRpZmljYXRlQXV0aG9yaXRp", + "ZXNSZXF1ZXN0GkYuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52", + "MS5MaXN0Q2VydGlmaWNhdGVBdXRob3JpdGllc1Jlc3BvbnNlIlXaQQZwYXJl", + "bnSC0+STAkYSRC92MS97cGFyZW50PXByb2plY3RzLyovbG9jYXRpb25zLyov", + "Y2FQb29scy8qfS9jZXJ0aWZpY2F0ZUF1dGhvcml0aWVzEpQCChxVbmRlbGV0", + "ZUNlcnRpZmljYXRlQXV0aG9yaXR5EkcuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5", + "LnByaXZhdGVjYS52MS5VbmRlbGV0ZUNlcnRpZmljYXRlQXV0aG9yaXR5UmVx", + "dWVzdBodLmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24iiwHKQSkKFENl", + "cnRpZmljYXRlQXV0aG9yaXR5EhFPcGVyYXRpb25NZXRhZGF0YdpBBG5hbWWC", + "0+STAlIiTS92MS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2NhUG9v", + "bHMvKi9jZXJ0aWZpY2F0ZUF1dGhvcml0aWVzLyp9OnVuZGVsZXRlOgEqEoMC", + "ChpEZWxldGVDZXJ0aWZpY2F0ZUF1dGhvcml0eRJFLmdvb2dsZS5jbG91ZC5z", + "ZWN1cml0eS5wcml2YXRlY2EudjEuRGVsZXRlQ2VydGlmaWNhdGVBdXRob3Jp", + "dHlSZXF1ZXN0Gh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbiJ/ykEp", + "ChRDZXJ0aWZpY2F0ZUF1dGhvcml0eRIRT3BlcmF0aW9uTWV0YWRhdGHaQQRu", + "YW1lgtPkkwJGKkQvdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9j", + "YVBvb2xzLyovY2VydGlmaWNhdGVBdXRob3JpdGllcy8qfRLOAgoaVXBkYXRl", + "Q2VydGlmaWNhdGVBdXRob3JpdHkSRS5nb29nbGUuY2xvdWQuc2VjdXJpdHku", + "cHJpdmF0ZWNhLnYxLlVwZGF0ZUNlcnRpZmljYXRlQXV0aG9yaXR5UmVxdWVz", + "dBodLmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24iyQHKQSkKFENlcnRp", + "ZmljYXRlQXV0aG9yaXR5EhFPcGVyYXRpb25NZXRhZGF0YdpBIWNlcnRpZmlj", + "YXRlX2F1dGhvcml0eSx1cGRhdGVfbWFza4LT5JMCczJaL3YxL3tjZXJ0aWZp", + "Y2F0ZV9hdXRob3JpdHkubmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2Nh", + "UG9vbHMvKi9jZXJ0aWZpY2F0ZUF1dGhvcml0aWVzLyp9OhVjZXJ0aWZpY2F0", + "ZV9hdXRob3JpdHkS3gEKDENyZWF0ZUNhUG9vbBI3Lmdvb2dsZS5jbG91ZC5z", + "ZWN1cml0eS5wcml2YXRlY2EudjEuQ3JlYXRlQ2FQb29sUmVxdWVzdBodLmdv", + "b2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24idspBGwoGQ2FQb29sEhFPcGVy", + "YXRpb25NZXRhZGF0YdpBGXBhcmVudCxjYV9wb29sLGNhX3Bvb2xfaWSC0+ST", + "AjYiKy92MS97cGFyZW50PXByb2plY3RzLyovbG9jYXRpb25zLyp9L2NhUG9v", + "bHM6B2NhX3Bvb2wS4AEKDFVwZGF0ZUNhUG9vbBI3Lmdvb2dsZS5jbG91ZC5z", + "ZWN1cml0eS5wcml2YXRlY2EudjEuVXBkYXRlQ2FQb29sUmVxdWVzdBodLmdv", + "b2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24ieMpBGwoGQ2FQb29sEhFPcGVy", + "YXRpb25NZXRhZGF0YdpBE2NhX3Bvb2wsdXBkYXRlX21hc2uC0+STAj4yMy92", + "MS97Y2FfcG9vbC5uYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovY2FQb29s", + "cy8qfToHY2FfcG9vbBKpAQoJR2V0Q2FQb29sEjQuZ29vZ2xlLmNsb3VkLnNl", + "Y3VyaXR5LnByaXZhdGVjYS52MS5HZXRDYVBvb2xSZXF1ZXN0GiouZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5DYVBvb2wiOtpBBG5hbWWC", + "0+STAi0SKy92MS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2NhUG9v", + "bHMvKn0SvAEKC0xpc3RDYVBvb2xzEjYuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5", + "LnByaXZhdGVjYS52MS5MaXN0Q2FQb29sc1JlcXVlc3QaNy5nb29nbGUuY2xv", + "dWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLkxpc3RDYVBvb2xzUmVzcG9uc2Ui", + "PNpBBnBhcmVudILT5JMCLRIrL3YxL3twYXJlbnQ9cHJvamVjdHMvKi9sb2Nh", + "dGlvbnMvKn0vY2FQb29scxLPAQoMRGVsZXRlQ2FQb29sEjcuZ29vZ2xlLmNs", + "b3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5EZWxldGVDYVBvb2xSZXF1ZXN0", + "Gh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbiJnykEqChVnb29nbGUu", + "cHJvdG9idWYuRW1wdHkSEU9wZXJhdGlvbk1ldGFkYXRh2kEEbmFtZYLT5JMC", + "LSorL3YxL3tuYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovY2FQb29scy8q", + "fRLTAQoMRmV0Y2hDYUNlcnRzEjcuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnBy", + "aXZhdGVjYS52MS5GZXRjaENhQ2VydHNSZXF1ZXN0GjguZ29vZ2xlLmNsb3Vk", + "LnNlY3VyaXR5LnByaXZhdGVjYS52MS5GZXRjaENhQ2VydHNSZXNwb25zZSJQ", + "2kEHY2FfcG9vbILT5JMCQCI7L3YxL3tjYV9wb29sPXByb2plY3RzLyovbG9j", + "YXRpb25zLyovY2FQb29scy8qfTpmZXRjaENhQ2VydHM6ASoSmAIKHEdldENl", + "cnRpZmljYXRlUmV2b2NhdGlvbkxpc3QSRy5nb29nbGUuY2xvdWQuc2VjdXJp", + "dHkucHJpdmF0ZWNhLnYxLkdldENlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3RS", + "ZXF1ZXN0Gj0uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5D", + "ZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0InDaQQRuYW1lgtPkkwJjEmEvdjEv", + "e25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9jYVBvb2xzLyovY2VydGlm", + "aWNhdGVBdXRob3JpdGllcy8qL2NlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3Rz", + "Lyp9EqsCCh5MaXN0Q2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdHMSSS5nb29n", + "bGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNhLnYxLkxpc3RDZXJ0aWZpY2F0", + "ZVJldm9jYXRpb25MaXN0c1JlcXVlc3QaSi5nb29nbGUuY2xvdWQuc2VjdXJp", + "dHkucHJpdmF0ZWNhLnYxLkxpc3RDZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0", + "c1Jlc3BvbnNlInLaQQZwYXJlbnSC0+STAmMSYS92MS97cGFyZW50PXByb2pl", + "Y3RzLyovbG9jYXRpb25zLyovY2FQb29scy8qL2NlcnRpZmljYXRlQXV0aG9y", + "aXRpZXMvKn0vY2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdHMSjQMKH1VwZGF0", + "ZUNlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3QSSi5nb29nbGUuY2xvdWQuc2Vj", + "dXJpdHkucHJpdmF0ZWNhLnYxLlVwZGF0ZUNlcnRpZmljYXRlUmV2b2NhdGlv", + "bkxpc3RSZXF1ZXN0Gh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbiL+", + "AcpBLgoZQ2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdBIRT3BlcmF0aW9uTWV0", + "YWRhdGHaQSdjZXJ0aWZpY2F0ZV9yZXZvY2F0aW9uX2xpc3QsdXBkYXRlX21h", + "c2uC0+STApwBMn0vdjEve2NlcnRpZmljYXRlX3Jldm9jYXRpb25fbGlzdC5u", + "YW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovY2FQb29scy8qL2NlcnRpZmlj", + "YXRlQXV0aG9yaXRpZXMvKi9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0cy8q", + "fTobY2VydGlmaWNhdGVfcmV2b2NhdGlvbl9saXN0EroCChlDcmVhdGVDZXJ0", + "aWZpY2F0ZVRlbXBsYXRlEkQuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZh", + "dGVjYS52MS5DcmVhdGVDZXJ0aWZpY2F0ZVRlbXBsYXRlUmVxdWVzdBodLmdv", + "b2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24itwHKQSgKE0NlcnRpZmljYXRl", + "VGVtcGxhdGUSEU9wZXJhdGlvbk1ldGFkYXRh2kEzcGFyZW50LGNlcnRpZmlj", + "YXRlX3RlbXBsYXRlLGNlcnRpZmljYXRlX3RlbXBsYXRlX2lkgtPkkwJQIjgv", + "djEve3BhcmVudD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qfS9jZXJ0aWZpY2F0", + "ZVRlbXBsYXRlczoUY2VydGlmaWNhdGVfdGVtcGxhdGUSmgIKGURlbGV0ZUNl", + "cnRpZmljYXRlVGVtcGxhdGUSRC5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJp", + "dmF0ZWNhLnYxLkRlbGV0ZUNlcnRpZmljYXRlVGVtcGxhdGVSZXF1ZXN0Gh0u", + "Z29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbiKXAcpBTQoVZ29vZ2xlLnBy", + "b3RvYnVmLkVtcHR5EjRnb29nbGUuY2xvdWQuc2VjdXJpdHkucHJpdmF0ZWNh", + "LnYxLk9wZXJhdGlvbk1ldGFkYXRh2kEEbmFtZYLT5JMCOio4L3YxL3tuYW1l", + "PXByb2plY3RzLyovbG9jYXRpb25zLyovY2VydGlmaWNhdGVUZW1wbGF0ZXMv", + "Kn0S3QEKFkdldENlcnRpZmljYXRlVGVtcGxhdGUSQS5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHkucHJpdmF0ZWNhLnYxLkdldENlcnRpZmljYXRlVGVtcGxhdGVS", + "ZXF1ZXN0GjcuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52MS5D", + "ZXJ0aWZpY2F0ZVRlbXBsYXRlIkfaQQRuYW1lgtPkkwI6EjgvdjEve25hbWU9", + "cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9jZXJ0aWZpY2F0ZVRlbXBsYXRlcy8q", + "fRLwAQoYTGlzdENlcnRpZmljYXRlVGVtcGxhdGVzEkMuZ29vZ2xlLmNsb3Vk", + "LnNlY3VyaXR5LnByaXZhdGVjYS52MS5MaXN0Q2VydGlmaWNhdGVUZW1wbGF0", + "ZXNSZXF1ZXN0GkQuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnByaXZhdGVjYS52", + "MS5MaXN0Q2VydGlmaWNhdGVUZW1wbGF0ZXNSZXNwb25zZSJJ2kEGcGFyZW50", + "gtPkkwI6EjgvdjEve3BhcmVudD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qfS9j", + "ZXJ0aWZpY2F0ZVRlbXBsYXRlcxK8AgoZVXBkYXRlQ2VydGlmaWNhdGVUZW1w", + "bGF0ZRJELmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wcml2YXRlY2EudjEuVXBk", + "YXRlQ2VydGlmaWNhdGVUZW1wbGF0ZVJlcXVlc3QaHS5nb29nbGUubG9uZ3J1", + "bm5pbmcuT3BlcmF0aW9uIrkBykEoChNDZXJ0aWZpY2F0ZVRlbXBsYXRlEhFP", + "cGVyYXRpb25NZXRhZGF0YdpBIGNlcnRpZmljYXRlX3RlbXBsYXRlLHVwZGF0", + "ZV9tYXNrgtPkkwJlMk0vdjEve2NlcnRpZmljYXRlX3RlbXBsYXRlLm5hbWU9", + "cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9jZXJ0aWZpY2F0ZVRlbXBsYXRlcy8q", + "fToUY2VydGlmaWNhdGVfdGVtcGxhdGUaTMpBGHByaXZhdGVjYS5nb29nbGVh", + "cGlzLmNvbdJBLmh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvY2xv", + "dWQtcGxhdGZvcm1C9gEKJmNvbS5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHJp", + "dmF0ZWNhLnYxQg5Qcml2YXRlQ2FQcm90b1ABWkRjbG91ZC5nb29nbGUuY29t", + "L2dvL3NlY3VyaXR5L3ByaXZhdGVjYS9hcGl2MS9wcml2YXRlY2FwYjtwcml2", + "YXRlY2FwYvgBAaoCIkdvb2dsZS5DbG91ZC5TZWN1cml0eS5Qcml2YXRlQ0Eu", + "VjHKAiJHb29nbGVcQ2xvdWRcU2VjdXJpdHlcUHJpdmF0ZUNBXFYx6gImR29v", + "Z2xlOjpDbG91ZDo6U2VjdXJpdHk6OlByaXZhdGVDQTo6VjFiBnByb3RvMw==")); + 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.Security.PrivateCA.V1.ResourcesReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateRequest), global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateRequest.Parser, new[]{ "Parent", "CertificateId", "Certificate", "RequestId", "ValidateOnly", "IssuingCertificateAuthorityId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRequest), global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.ListCertificatesRequest), global::Google.Cloud.Security.PrivateCA.V1.ListCertificatesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "OrderBy" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.ListCertificatesResponse), global::Google.Cloud.Security.PrivateCA.V1.ListCertificatesResponse.Parser, new[]{ "Certificates", "NextPageToken", "Unreachable" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.RevokeCertificateRequest), global::Google.Cloud.Security.PrivateCA.V1.RevokeCertificateRequest.Parser, new[]{ "Name", "Reason", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRequest), global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRequest.Parser, new[]{ "Certificate", "UpdateMask", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.ActivateCertificateAuthorityRequest), global::Google.Cloud.Security.PrivateCA.V1.ActivateCertificateAuthorityRequest.Parser, new[]{ "Name", "PemCaCertificate", "SubordinateConfig", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateAuthorityRequest), global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateAuthorityRequest.Parser, new[]{ "Parent", "CertificateAuthorityId", "CertificateAuthority", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.DisableCertificateAuthorityRequest), global::Google.Cloud.Security.PrivateCA.V1.DisableCertificateAuthorityRequest.Parser, new[]{ "Name", "RequestId", "IgnoreDependentResources" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.EnableCertificateAuthorityRequest), global::Google.Cloud.Security.PrivateCA.V1.EnableCertificateAuthorityRequest.Parser, new[]{ "Name", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrRequest), global::Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrResponse), global::Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrResponse.Parser, new[]{ "PemCsr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateAuthorityRequest), global::Google.Cloud.Security.PrivateCA.V1.GetCertificateAuthorityRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesRequest), global::Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "OrderBy" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesResponse), global::Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesResponse.Parser, new[]{ "CertificateAuthorities", "NextPageToken", "Unreachable" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.UndeleteCertificateAuthorityRequest), global::Google.Cloud.Security.PrivateCA.V1.UndeleteCertificateAuthorityRequest.Parser, new[]{ "Name", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateAuthorityRequest), global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateAuthorityRequest.Parser, new[]{ "Name", "RequestId", "IgnoreActiveCertificates", "SkipGracePeriod", "IgnoreDependentResources" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateAuthorityRequest), global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateAuthorityRequest.Parser, new[]{ "CertificateAuthority", "UpdateMask", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CreateCaPoolRequest), global::Google.Cloud.Security.PrivateCA.V1.CreateCaPoolRequest.Parser, new[]{ "Parent", "CaPoolId", "CaPool", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.UpdateCaPoolRequest), global::Google.Cloud.Security.PrivateCA.V1.UpdateCaPoolRequest.Parser, new[]{ "CaPool", "UpdateMask", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.DeleteCaPoolRequest), global::Google.Cloud.Security.PrivateCA.V1.DeleteCaPoolRequest.Parser, new[]{ "Name", "RequestId", "IgnoreDependentResources" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsRequest), global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsRequest.Parser, new[]{ "CaPool", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsResponse), global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsResponse.Parser, new[]{ "CaCerts" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsResponse.Types.CertChain), global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsResponse.Types.CertChain.Parser, new[]{ "Certificates" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.GetCaPoolRequest), global::Google.Cloud.Security.PrivateCA.V1.GetCaPoolRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.ListCaPoolsRequest), global::Google.Cloud.Security.PrivateCA.V1.ListCaPoolsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "OrderBy" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.ListCaPoolsResponse), global::Google.Cloud.Security.PrivateCA.V1.ListCaPoolsResponse.Parser, new[]{ "CaPools", "NextPageToken", "Unreachable" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRevocationListRequest), global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRevocationListRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsRequest), global::Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "OrderBy" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsResponse), global::Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsResponse.Parser, new[]{ "CertificateRevocationLists", "NextPageToken", "Unreachable" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRevocationListRequest), global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRevocationListRequest.Parser, new[]{ "CertificateRevocationList", "UpdateMask", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateTemplateRequest), global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateTemplateRequest.Parser, new[]{ "Parent", "CertificateTemplateId", "CertificateTemplate", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateTemplateRequest), global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateTemplateRequest.Parser, new[]{ "Name", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateTemplateRequest), global::Google.Cloud.Security.PrivateCA.V1.GetCertificateTemplateRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesRequest), global::Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "OrderBy" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesResponse), global::Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesResponse.Parser, new[]{ "CertificateTemplates", "NextPageToken", "Unreachable" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateTemplateRequest), global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateTemplateRequest.Parser, new[]{ "CertificateTemplate", "UpdateMask", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PrivateCA.V1.OperationMetadata), global::Google.Cloud.Security.PrivateCA.V1.OperationMetadata.Parser, new[]{ "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Request message for + /// [CertificateAuthorityService.CreateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateCertificateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateCertificateRequest()); + 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.Security.PrivateCA.V1.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 CreateCertificateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateCertificateRequest(CreateCertificateRequest other) : this() { + parent_ = other.parent_; + certificateId_ = other.certificateId_; + certificate_ = other.certificate_ != null ? other.certificate_.Clone() : null; + requestId_ = other.requestId_; + validateOnly_ = other.validateOnly_; + issuingCertificateAuthorityId_ = other.issuingCertificateAuthorityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateCertificateRequest Clone() { + return new CreateCertificateRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [Certificate][google.cloud.security.privateca.v1.Certificate], in the + /// format `projects/*/locations/*/caPools/*`. + /// + [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 "certificate_id" field. + public const int CertificateIdFieldNumber = 2; + private string certificateId_ = ""; + /// + /// Optional. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the Enterprise [CertificateAuthority.Tier][], but is optional and its + /// value is ignored otherwise. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CertificateId { + get { return certificateId_; } + set { + certificateId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "certificate" field. + public const int CertificateFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.Certificate certificate_; + /// + /// Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] + /// with initial field values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.Certificate Certificate { + get { return certificate_; } + set { + certificate_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 4; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and the + /// request times out. If you make the request again with the same request ID, + /// the server can check if original operation with the same request ID was + /// received, and if so, will ignore the second request. This prevents clients + /// from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "validate_only" field. + public const int ValidateOnlyFieldNumber = 5; + private bool validateOnly_; + /// + /// Optional. If this is true, no + /// [Certificate][google.cloud.security.privateca.v1.Certificate] resource will + /// be persisted regardless of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]'s + /// [tier][google.cloud.security.privateca.v1.CaPool.tier], and the returned + /// [Certificate][google.cloud.security.privateca.v1.Certificate] will not + /// contain the + /// [pem_certificate][google.cloud.security.privateca.v1.Certificate.pem_certificate] + /// field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ValidateOnly { + get { return validateOnly_; } + set { + validateOnly_ = value; + } + } + + /// Field number for the "issuing_certificate_authority_id" field. + public const int IssuingCertificateAuthorityIdFieldNumber = 6; + private string issuingCertificateAuthorityId_ = ""; + /// + /// Optional. The resource ID of the + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that should issue the certificate. This optional field will ignore the + /// load-balancing scheme of the Pool and directly issue the certificate from + /// the CA with the specified ID, contained in the same + /// [CaPool][google.cloud.security.privateca.v1.CaPool] referenced by `parent`. + /// Per-CA quota rules apply. If left empty, a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// will be chosen from the [CaPool][google.cloud.security.privateca.v1.CaPool] + /// by the service. For example, to issue a + /// [Certificate][google.cloud.security.privateca.v1.Certificate] from a + /// Certificate Authority with resource name + /// "projects/my-project/locations/us-central1/caPools/my-pool/certificateAuthorities/my-ca", + /// you can set the + /// [parent][google.cloud.security.privateca.v1.CreateCertificateRequest.parent] + /// to "projects/my-project/locations/us-central1/caPools/my-pool" and the + /// [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] + /// to "my-ca". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IssuingCertificateAuthorityId { + get { return issuingCertificateAuthorityId_; } + set { + issuingCertificateAuthorityId_ = 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 CreateCertificateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateCertificateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (CertificateId != other.CertificateId) return false; + if (!object.Equals(Certificate, other.Certificate)) return false; + if (RequestId != other.RequestId) return false; + if (ValidateOnly != other.ValidateOnly) return false; + if (IssuingCertificateAuthorityId != other.IssuingCertificateAuthorityId) 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 (CertificateId.Length != 0) hash ^= CertificateId.GetHashCode(); + if (certificate_ != null) hash ^= Certificate.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); + if (IssuingCertificateAuthorityId.Length != 0) hash ^= IssuingCertificateAuthorityId.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 (CertificateId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CertificateId); + } + if (certificate_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Certificate); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (ValidateOnly != false) { + output.WriteRawTag(40); + output.WriteBool(ValidateOnly); + } + if (IssuingCertificateAuthorityId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(IssuingCertificateAuthorityId); + } + 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 (CertificateId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CertificateId); + } + if (certificate_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Certificate); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (ValidateOnly != false) { + output.WriteRawTag(40); + output.WriteBool(ValidateOnly); + } + if (IssuingCertificateAuthorityId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(IssuingCertificateAuthorityId); + } + 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 (CertificateId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CertificateId); + } + if (certificate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Certificate); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (ValidateOnly != false) { + size += 1 + 1; + } + if (IssuingCertificateAuthorityId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IssuingCertificateAuthorityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateCertificateRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.CertificateId.Length != 0) { + CertificateId = other.CertificateId; + } + if (other.certificate_ != null) { + if (certificate_ == null) { + Certificate = new global::Google.Cloud.Security.PrivateCA.V1.Certificate(); + } + Certificate.MergeFrom(other.Certificate); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + if (other.ValidateOnly != false) { + ValidateOnly = other.ValidateOnly; + } + if (other.IssuingCertificateAuthorityId.Length != 0) { + IssuingCertificateAuthorityId = other.IssuingCertificateAuthorityId; + } + _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: { + CertificateId = input.ReadString(); + break; + } + case 26: { + if (certificate_ == null) { + Certificate = new global::Google.Cloud.Security.PrivateCA.V1.Certificate(); + } + input.ReadMessage(Certificate); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + case 40: { + ValidateOnly = input.ReadBool(); + break; + } + case 50: { + IssuingCertificateAuthorityId = 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 18: { + CertificateId = input.ReadString(); + break; + } + case 26: { + if (certificate_ == null) { + Certificate = new global::Google.Cloud.Security.PrivateCA.V1.Certificate(); + } + input.ReadMessage(Certificate); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + case 40: { + ValidateOnly = input.ReadBool(); + break; + } + case 50: { + IssuingCertificateAuthorityId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.GetCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetCertificateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCertificateRequest()); + 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.Security.PrivateCA.V1.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 GetCertificateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCertificateRequest(GetCertificateRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCertificateRequest Clone() { + return new GetCertificateRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The [name][google.cloud.security.privateca.v1.Certificate.name] + /// of the [Certificate][google.cloud.security.privateca.v1.Certificate] to + /// get. + /// + [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 GetCertificateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetCertificateRequest 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(GetCertificateRequest 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 + /// [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListCertificatesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListCertificatesRequest()); + 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.Security.PrivateCA.V1.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 ListCertificatesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificatesRequest(ListCertificatesRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + orderBy_ = other.orderBy_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificatesRequest Clone() { + return new ListCertificatesRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the location associated with the + /// [Certificates][google.cloud.security.privateca.v1.Certificate], in the + /// format `projects/*/locations/*/caPools/*`. + /// + [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. Limit on the number of + /// [Certificates][google.cloud.security.privateca.v1.Certificate] to include + /// in the response. Further + /// [Certificates][google.cloud.security.privateca.v1.Certificate] can + /// subsequently be obtained by including the + /// [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.next_page_token] + /// in a subsequent request. If unspecified, the server will pick an + /// appropriate default. + /// + [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 + /// [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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. Only include resources that match the filter in the response. For + /// details on supported filters and syntax, see [Certificates Filtering + /// documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "order_by" field. + public const int OrderByFieldNumber = 5; + private string orderBy_ = ""; + /// + /// Optional. Specify how the results should be sorted. For details on + /// supported fields and syntax, see [Certificates Sorting + /// documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrderBy { + get { return orderBy_; } + set { + orderBy_ = 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 ListCertificatesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListCertificatesRequest 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; + if (OrderBy != other.OrderBy) 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 (OrderBy.Length != 0) hash ^= OrderBy.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 (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + 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 (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + 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 (OrderBy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderBy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListCertificatesRequest 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; + } + if (other.OrderBy.Length != 0) { + OrderBy = other.OrderBy; + } + _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; + } + case 42: { + OrderBy = 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; + } + case 42: { + OrderBy = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListCertificatesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListCertificatesResponse()); + 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.Security.PrivateCA.V1.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 ListCertificatesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificatesResponse(ListCertificatesResponse other) : this() { + certificates_ = other.certificates_.Clone(); + nextPageToken_ = other.nextPageToken_; + unreachable_ = other.unreachable_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificatesResponse Clone() { + return new ListCertificatesResponse(this); + } + + /// Field number for the "certificates" field. + public const int CertificatesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_certificates_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Security.PrivateCA.V1.Certificate.Parser); + private readonly pbc::RepeatedField certificates_ = new pbc::RepeatedField(); + /// + /// The list of [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Certificates { + get { return certificates_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token to retrieve next page of results. Pass this value in + /// [ListCertificatesRequest.next_page_token][] to retrieve the + /// next page of results. + /// + [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 "unreachable" field. + public const int UnreachableFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_unreachable_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField unreachable_ = new pbc::RepeatedField(); + /// + /// A list of locations (e.g. "us-west1") that could not be reached. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Unreachable { + get { return unreachable_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListCertificatesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListCertificatesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!certificates_.Equals(other.certificates_)) return false; + if (NextPageToken != other.NextPageToken) return false; + if(!unreachable_.Equals(other.unreachable_)) 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 ^= certificates_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + hash ^= unreachable_.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 + certificates_.WriteTo(output, _repeated_certificates_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(output, _repeated_unreachable_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) { + certificates_.WriteTo(ref output, _repeated_certificates_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(ref output, _repeated_unreachable_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 += certificates_.CalculateSize(_repeated_certificates_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + size += unreachable_.CalculateSize(_repeated_unreachable_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListCertificatesResponse other) { + if (other == null) { + return; + } + certificates_.Add(other.certificates_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + unreachable_.Add(other.unreachable_); + _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: { + certificates_.AddEntriesFrom(input, _repeated_certificates_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(input, _repeated_unreachable_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: { + certificates_.AddEntriesFrom(ref input, _repeated_certificates_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(ref input, _repeated_unreachable_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.RevokeCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RevokeCertificateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RevokeCertificateRequest()); + 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.Security.PrivateCA.V1.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 RevokeCertificateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RevokeCertificateRequest(RevokeCertificateRequest other) : this() { + name_ = other.name_; + reason_ = other.reason_; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RevokeCertificateRequest Clone() { + return new RevokeCertificateRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name for this + /// [Certificate][google.cloud.security.privateca.v1.Certificate] in the format + /// `projects/*/locations/*/caPools/*/certificates/*`. + /// + [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 "reason" field. + public const int ReasonFieldNumber = 2; + private global::Google.Cloud.Security.PrivateCA.V1.RevocationReason reason_ = global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified; + /// + /// Required. The + /// [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for + /// revoking this certificate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.RevocationReason Reason { + get { return reason_; } + set { + reason_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 3; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RevokeCertificateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RevokeCertificateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Reason != other.Reason) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Reason != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) hash ^= Reason.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Reason != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Reason); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Reason != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Reason); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Reason != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RevokeCertificateRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Reason != global::Google.Cloud.Security.PrivateCA.V1.RevocationReason.Unspecified) { + Reason = other.Reason; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Reason = (global::Google.Cloud.Security.PrivateCA.V1.RevocationReason) input.ReadEnum(); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Reason = (global::Google.Cloud.Security.PrivateCA.V1.RevocationReason) input.ReadEnum(); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.UpdateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateCertificateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateCertificateRequest()); + 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.Security.PrivateCA.V1.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 UpdateCertificateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCertificateRequest(UpdateCertificateRequest other) : this() { + certificate_ = other.certificate_ != null ? other.certificate_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCertificateRequest Clone() { + return new UpdateCertificateRequest(this); + } + + /// Field number for the "certificate" field. + public const int CertificateFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.Certificate certificate_; + /// + /// Required. [Certificate][google.cloud.security.privateca.v1.Certificate] + /// with updated values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.Certificate Certificate { + get { return certificate_; } + set { + certificate_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Required. A list of fields to be updated in this request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 3; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateCertificateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateCertificateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Certificate, other.Certificate)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (certificate_ != null) hash ^= Certificate.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (certificate_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Certificate); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (certificate_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Certificate); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (certificate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Certificate); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateCertificateRequest other) { + if (other == null) { + return; + } + if (other.certificate_ != null) { + if (certificate_ == null) { + Certificate = new global::Google.Cloud.Security.PrivateCA.V1.Certificate(); + } + Certificate.MergeFrom(other.Certificate); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (certificate_ == null) { + Certificate = new global::Google.Cloud.Security.PrivateCA.V1.Certificate(); + } + input.ReadMessage(Certificate); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (certificate_ == null) { + Certificate = new global::Google.Cloud.Security.PrivateCA.V1.Certificate(); + } + input.ReadMessage(Certificate); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActivateCertificateAuthorityRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateCertificateAuthorityRequest()); + 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.Security.PrivateCA.V1.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 ActivateCertificateAuthorityRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateCertificateAuthorityRequest(ActivateCertificateAuthorityRequest other) : this() { + name_ = other.name_; + pemCaCertificate_ = other.pemCaCertificate_; + subordinateConfig_ = other.subordinateConfig_ != null ? other.subordinateConfig_.Clone() : null; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateCertificateAuthorityRequest Clone() { + return new ActivateCertificateAuthorityRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + [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 "pem_ca_certificate" field. + public const int PemCaCertificateFieldNumber = 2; + private string pemCaCertificate_ = ""; + /// + /// Required. The signed CA certificate issued from + /// [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PemCaCertificate { + get { return pemCaCertificate_; } + set { + pemCaCertificate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "subordinate_config" field. + public const int SubordinateConfigFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig subordinateConfig_; + /// + /// Required. Must include information about the issuer of + /// 'pem_ca_certificate', and any further issuers until the self-signed CA. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig SubordinateConfig { + get { return subordinateConfig_; } + set { + subordinateConfig_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 4; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivateCertificateAuthorityRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivateCertificateAuthorityRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (PemCaCertificate != other.PemCaCertificate) return false; + if (!object.Equals(SubordinateConfig, other.SubordinateConfig)) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (PemCaCertificate.Length != 0) hash ^= PemCaCertificate.GetHashCode(); + if (subordinateConfig_ != null) hash ^= SubordinateConfig.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (PemCaCertificate.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PemCaCertificate); + } + if (subordinateConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(SubordinateConfig); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (PemCaCertificate.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PemCaCertificate); + } + if (subordinateConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(SubordinateConfig); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (PemCaCertificate.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PemCaCertificate); + } + if (subordinateConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubordinateConfig); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivateCertificateAuthorityRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.PemCaCertificate.Length != 0) { + PemCaCertificate = other.PemCaCertificate; + } + if (other.subordinateConfig_ != null) { + if (subordinateConfig_ == null) { + SubordinateConfig = new global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig(); + } + SubordinateConfig.MergeFrom(other.SubordinateConfig); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + PemCaCertificate = input.ReadString(); + break; + } + case 26: { + if (subordinateConfig_ == null) { + SubordinateConfig = new global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig(); + } + input.ReadMessage(SubordinateConfig); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + PemCaCertificate = input.ReadString(); + break; + } + case 26: { + if (subordinateConfig_ == null) { + SubordinateConfig = new global::Google.Cloud.Security.PrivateCA.V1.SubordinateConfig(); + } + input.ReadMessage(SubordinateConfig); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.CreateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateCertificateAuthorityRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateCertificateAuthorityRequest()); + 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.Security.PrivateCA.V1.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 CreateCertificateAuthorityRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateCertificateAuthorityRequest(CreateCertificateAuthorityRequest other) : this() { + parent_ = other.parent_; + certificateAuthorityId_ = other.certificateAuthorityId_; + certificateAuthority_ = other.certificateAuthority_ != null ? other.certificateAuthority_.Clone() : null; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateCertificateAuthorityRequest Clone() { + return new CreateCertificateAuthorityRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], + /// in the format `projects/*/locations/*/caPools/*`. + /// + [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 "certificate_authority_id" field. + public const int CertificateAuthorityIdFieldNumber = 2; + private string certificateAuthorityId_ = ""; + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CertificateAuthorityId { + get { return certificateAuthorityId_; } + set { + certificateAuthorityId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "certificate_authority" field. + public const int CertificateAuthorityFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority certificateAuthority_; + /// + /// Required. A + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// with initial field values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority CertificateAuthority { + get { return certificateAuthority_; } + set { + certificateAuthority_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 4; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateCertificateAuthorityRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateCertificateAuthorityRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (CertificateAuthorityId != other.CertificateAuthorityId) return false; + if (!object.Equals(CertificateAuthority, other.CertificateAuthority)) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (CertificateAuthorityId.Length != 0) hash ^= CertificateAuthorityId.GetHashCode(); + if (certificateAuthority_ != null) hash ^= CertificateAuthority.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (CertificateAuthorityId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CertificateAuthorityId); + } + if (certificateAuthority_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CertificateAuthority); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (CertificateAuthorityId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CertificateAuthorityId); + } + if (certificateAuthority_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CertificateAuthority); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (CertificateAuthorityId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CertificateAuthorityId); + } + if (certificateAuthority_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CertificateAuthority); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateCertificateAuthorityRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.CertificateAuthorityId.Length != 0) { + CertificateAuthorityId = other.CertificateAuthorityId; + } + if (other.certificateAuthority_ != null) { + if (certificateAuthority_ == null) { + CertificateAuthority = new global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority(); + } + CertificateAuthority.MergeFrom(other.CertificateAuthority); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + CertificateAuthorityId = input.ReadString(); + break; + } + case 26: { + if (certificateAuthority_ == null) { + CertificateAuthority = new global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority(); + } + input.ReadMessage(CertificateAuthority); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + CertificateAuthorityId = input.ReadString(); + break; + } + case 26: { + if (certificateAuthority_ == null) { + CertificateAuthority = new global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority(); + } + input.ReadMessage(CertificateAuthority); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.DisableCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DisableCertificateAuthorityRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisableCertificateAuthorityRequest()); + 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.Security.PrivateCA.V1.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 DisableCertificateAuthorityRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisableCertificateAuthorityRequest(DisableCertificateAuthorityRequest other) : this() { + name_ = other.name_; + requestId_ = other.requestId_; + ignoreDependentResources_ = other.ignoreDependentResources_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisableCertificateAuthorityRequest Clone() { + return new DisableCertificateAuthorityRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 2; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ignore_dependent_resources" field. + public const int IgnoreDependentResourcesFieldNumber = 3; + private bool ignoreDependentResources_; + /// + /// Optional. This field allows this CA to be disabled even if it's being + /// depended on by another resource. However, doing so may result in unintended + /// and unrecoverable effects on any dependent resources since the CA will + /// no longer be able to issue certificates. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreDependentResources { + get { return ignoreDependentResources_; } + set { + ignoreDependentResources_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DisableCertificateAuthorityRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DisableCertificateAuthorityRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (RequestId != other.RequestId) return false; + if (IgnoreDependentResources != other.IgnoreDependentResources) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (IgnoreDependentResources != false) hash ^= IgnoreDependentResources.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (IgnoreDependentResources != false) { + output.WriteRawTag(24); + output.WriteBool(IgnoreDependentResources); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (IgnoreDependentResources != false) { + output.WriteRawTag(24); + output.WriteBool(IgnoreDependentResources); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (IgnoreDependentResources != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DisableCertificateAuthorityRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + if (other.IgnoreDependentResources != false) { + IgnoreDependentResources = other.IgnoreDependentResources; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + case 24: { + IgnoreDependentResources = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + case 24: { + IgnoreDependentResources = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.EnableCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnableCertificateAuthorityRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnableCertificateAuthorityRequest()); + 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.Security.PrivateCA.V1.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 EnableCertificateAuthorityRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableCertificateAuthorityRequest(EnableCertificateAuthorityRequest other) : this() { + name_ = other.name_; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableCertificateAuthorityRequest Clone() { + return new EnableCertificateAuthorityRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 2; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnableCertificateAuthorityRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnableCertificateAuthorityRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnableCertificateAuthorityRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FetchCertificateAuthorityCsrRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FetchCertificateAuthorityCsrRequest()); + 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.Security.PrivateCA.V1.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 FetchCertificateAuthorityCsrRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FetchCertificateAuthorityCsrRequest(FetchCertificateAuthorityCsrRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FetchCertificateAuthorityCsrRequest Clone() { + return new FetchCertificateAuthorityCsrRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + [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 FetchCertificateAuthorityCsrRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FetchCertificateAuthorityCsrRequest 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(FetchCertificateAuthorityCsrRequest 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 + /// [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FetchCertificateAuthorityCsrResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FetchCertificateAuthorityCsrResponse()); + 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.Security.PrivateCA.V1.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 FetchCertificateAuthorityCsrResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FetchCertificateAuthorityCsrResponse(FetchCertificateAuthorityCsrResponse other) : this() { + pemCsr_ = other.pemCsr_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FetchCertificateAuthorityCsrResponse Clone() { + return new FetchCertificateAuthorityCsrResponse(this); + } + + /// Field number for the "pem_csr" field. + public const int PemCsrFieldNumber = 1; + private string pemCsr_ = ""; + /// + /// Output only. The PEM-encoded signed certificate signing request (CSR). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PemCsr { + get { return pemCsr_; } + set { + pemCsr_ = 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 FetchCertificateAuthorityCsrResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FetchCertificateAuthorityCsrResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PemCsr != other.PemCsr) 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 (PemCsr.Length != 0) hash ^= PemCsr.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 (PemCsr.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PemCsr); + } + 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 (PemCsr.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PemCsr); + } + 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 (PemCsr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PemCsr); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FetchCertificateAuthorityCsrResponse other) { + if (other == null) { + return; + } + if (other.PemCsr.Length != 0) { + PemCsr = other.PemCsr; + } + _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: { + PemCsr = 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: { + PemCsr = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.GetCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetCertificateAuthorityRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCertificateAuthorityRequest()); + 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.Security.PrivateCA.V1.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 GetCertificateAuthorityRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCertificateAuthorityRequest(GetCertificateAuthorityRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCertificateAuthorityRequest Clone() { + return new GetCertificateAuthorityRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// to get. + /// + [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 GetCertificateAuthorityRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetCertificateAuthorityRequest 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(GetCertificateAuthorityRequest 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 + /// [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListCertificateAuthoritiesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListCertificateAuthoritiesRequest()); + 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.Security.PrivateCA.V1.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 ListCertificateAuthoritiesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateAuthoritiesRequest(ListCertificateAuthoritiesRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + orderBy_ = other.orderBy_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateAuthoritiesRequest Clone() { + return new ListCertificateAuthoritiesRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], + /// in the format `projects/*/locations/*/caPools/*`. + /// + [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. Limit on the number of + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] + /// to include in the response. Further + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] + /// can subsequently be obtained by including the + /// [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.next_page_token] + /// in a subsequent request. If unspecified, the server will pick an + /// appropriate default. + /// + [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 + /// [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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. Only include resources that match the filter in the response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "order_by" field. + public const int OrderByFieldNumber = 5; + private string orderBy_ = ""; + /// + /// Optional. Specify how the results should be sorted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrderBy { + get { return orderBy_; } + set { + orderBy_ = 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 ListCertificateAuthoritiesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListCertificateAuthoritiesRequest 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; + if (OrderBy != other.OrderBy) 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 (OrderBy.Length != 0) hash ^= OrderBy.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 (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + 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 (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + 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 (OrderBy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderBy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListCertificateAuthoritiesRequest 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; + } + if (other.OrderBy.Length != 0) { + OrderBy = other.OrderBy; + } + _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; + } + case 42: { + OrderBy = 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; + } + case 42: { + OrderBy = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListCertificateAuthoritiesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListCertificateAuthoritiesResponse()); + 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.Security.PrivateCA.V1.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 ListCertificateAuthoritiesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateAuthoritiesResponse(ListCertificateAuthoritiesResponse other) : this() { + certificateAuthorities_ = other.certificateAuthorities_.Clone(); + nextPageToken_ = other.nextPageToken_; + unreachable_ = other.unreachable_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateAuthoritiesResponse Clone() { + return new ListCertificateAuthoritiesResponse(this); + } + + /// Field number for the "certificate_authorities" field. + public const int CertificateAuthoritiesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_certificateAuthorities_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Parser); + private readonly pbc::RepeatedField certificateAuthorities_ = new pbc::RepeatedField(); + /// + /// The list of + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CertificateAuthorities { + get { return certificateAuthorities_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token to retrieve next page of results. Pass this value in + /// [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next + /// page of results. + /// + [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 "unreachable" field. + public const int UnreachableFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_unreachable_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField unreachable_ = new pbc::RepeatedField(); + /// + /// A list of locations (e.g. "us-west1") that could not be reached. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Unreachable { + get { return unreachable_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListCertificateAuthoritiesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListCertificateAuthoritiesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!certificateAuthorities_.Equals(other.certificateAuthorities_)) return false; + if (NextPageToken != other.NextPageToken) return false; + if(!unreachable_.Equals(other.unreachable_)) 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 ^= certificateAuthorities_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + hash ^= unreachable_.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 + certificateAuthorities_.WriteTo(output, _repeated_certificateAuthorities_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(output, _repeated_unreachable_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) { + certificateAuthorities_.WriteTo(ref output, _repeated_certificateAuthorities_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(ref output, _repeated_unreachable_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 += certificateAuthorities_.CalculateSize(_repeated_certificateAuthorities_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + size += unreachable_.CalculateSize(_repeated_unreachable_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListCertificateAuthoritiesResponse other) { + if (other == null) { + return; + } + certificateAuthorities_.Add(other.certificateAuthorities_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + unreachable_.Add(other.unreachable_); + _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: { + certificateAuthorities_.AddEntriesFrom(input, _repeated_certificateAuthorities_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(input, _repeated_unreachable_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: { + certificateAuthorities_.AddEntriesFrom(ref input, _repeated_certificateAuthorities_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(ref input, _repeated_unreachable_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.UndeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UndeleteCertificateAuthorityRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UndeleteCertificateAuthorityRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[15]; } + } + + [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 UndeleteCertificateAuthorityRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UndeleteCertificateAuthorityRequest(UndeleteCertificateAuthorityRequest other) : this() { + name_ = other.name_; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UndeleteCertificateAuthorityRequest Clone() { + return new UndeleteCertificateAuthorityRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 2; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UndeleteCertificateAuthorityRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UndeleteCertificateAuthorityRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UndeleteCertificateAuthorityRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.DeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteCertificateAuthorityRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteCertificateAuthorityRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[16]; } + } + + [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 DeleteCertificateAuthorityRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteCertificateAuthorityRequest(DeleteCertificateAuthorityRequest other) : this() { + name_ = other.name_; + requestId_ = other.requestId_; + ignoreActiveCertificates_ = other.ignoreActiveCertificates_; + skipGracePeriod_ = other.skipGracePeriod_; + ignoreDependentResources_ = other.ignoreDependentResources_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteCertificateAuthorityRequest Clone() { + return new DeleteCertificateAuthorityRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name for this + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 2; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ignore_active_certificates" field. + public const int IgnoreActiveCertificatesFieldNumber = 4; + private bool ignoreActiveCertificates_; + /// + /// Optional. This field allows the CA to be deleted even if the CA has + /// active certs. Active certs include both unrevoked and unexpired certs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreActiveCertificates { + get { return ignoreActiveCertificates_; } + set { + ignoreActiveCertificates_ = value; + } + } + + /// Field number for the "skip_grace_period" field. + public const int SkipGracePeriodFieldNumber = 5; + private bool skipGracePeriod_; + /// + /// Optional. If this flag is set, the Certificate Authority will be deleted as + /// soon as possible without a 30-day grace period where undeletion would have + /// been allowed. If you proceed, there will be no way to recover this CA. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SkipGracePeriod { + get { return skipGracePeriod_; } + set { + skipGracePeriod_ = value; + } + } + + /// Field number for the "ignore_dependent_resources" field. + public const int IgnoreDependentResourcesFieldNumber = 6; + private bool ignoreDependentResources_; + /// + /// Optional. This field allows this CA to be deleted even if it's being + /// depended on by another resource. However, doing so may result in unintended + /// and unrecoverable effects on any dependent resources since the CA will + /// no longer be able to issue certificates. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreDependentResources { + get { return ignoreDependentResources_; } + set { + ignoreDependentResources_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteCertificateAuthorityRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteCertificateAuthorityRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (RequestId != other.RequestId) return false; + if (IgnoreActiveCertificates != other.IgnoreActiveCertificates) return false; + if (SkipGracePeriod != other.SkipGracePeriod) return false; + if (IgnoreDependentResources != other.IgnoreDependentResources) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (IgnoreActiveCertificates != false) hash ^= IgnoreActiveCertificates.GetHashCode(); + if (SkipGracePeriod != false) hash ^= SkipGracePeriod.GetHashCode(); + if (IgnoreDependentResources != false) hash ^= IgnoreDependentResources.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (IgnoreActiveCertificates != false) { + output.WriteRawTag(32); + output.WriteBool(IgnoreActiveCertificates); + } + if (SkipGracePeriod != false) { + output.WriteRawTag(40); + output.WriteBool(SkipGracePeriod); + } + if (IgnoreDependentResources != false) { + output.WriteRawTag(48); + output.WriteBool(IgnoreDependentResources); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (IgnoreActiveCertificates != false) { + output.WriteRawTag(32); + output.WriteBool(IgnoreActiveCertificates); + } + if (SkipGracePeriod != false) { + output.WriteRawTag(40); + output.WriteBool(SkipGracePeriod); + } + if (IgnoreDependentResources != false) { + output.WriteRawTag(48); + output.WriteBool(IgnoreDependentResources); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (IgnoreActiveCertificates != false) { + size += 1 + 1; + } + if (SkipGracePeriod != false) { + size += 1 + 1; + } + if (IgnoreDependentResources != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteCertificateAuthorityRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + if (other.IgnoreActiveCertificates != false) { + IgnoreActiveCertificates = other.IgnoreActiveCertificates; + } + if (other.SkipGracePeriod != false) { + SkipGracePeriod = other.SkipGracePeriod; + } + if (other.IgnoreDependentResources != false) { + IgnoreDependentResources = other.IgnoreDependentResources; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + case 32: { + IgnoreActiveCertificates = input.ReadBool(); + break; + } + case 40: { + SkipGracePeriod = input.ReadBool(); + break; + } + case 48: { + IgnoreDependentResources = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + case 32: { + IgnoreActiveCertificates = input.ReadBool(); + break; + } + case 40: { + SkipGracePeriod = input.ReadBool(); + break; + } + case 48: { + IgnoreDependentResources = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.UpdateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateCertificateAuthorityRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateCertificateAuthorityRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[17]; } + } + + [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 UpdateCertificateAuthorityRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCertificateAuthorityRequest(UpdateCertificateAuthorityRequest other) : this() { + certificateAuthority_ = other.certificateAuthority_ != null ? other.certificateAuthority_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCertificateAuthorityRequest Clone() { + return new UpdateCertificateAuthorityRequest(this); + } + + /// Field number for the "certificate_authority" field. + public const int CertificateAuthorityFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority certificateAuthority_; + /// + /// Required. + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// with updated values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority CertificateAuthority { + get { return certificateAuthority_; } + set { + certificateAuthority_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Required. A list of fields to be updated in this request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 3; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateCertificateAuthorityRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateCertificateAuthorityRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CertificateAuthority, other.CertificateAuthority)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (certificateAuthority_ != null) hash ^= CertificateAuthority.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (certificateAuthority_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CertificateAuthority); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (certificateAuthority_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CertificateAuthority); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (certificateAuthority_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CertificateAuthority); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateCertificateAuthorityRequest other) { + if (other == null) { + return; + } + if (other.certificateAuthority_ != null) { + if (certificateAuthority_ == null) { + CertificateAuthority = new global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority(); + } + CertificateAuthority.MergeFrom(other.CertificateAuthority); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (certificateAuthority_ == null) { + CertificateAuthority = new global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority(); + } + input.ReadMessage(CertificateAuthority); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (certificateAuthority_ == null) { + CertificateAuthority = new global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority(); + } + input.ReadMessage(CertificateAuthority); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.CreateCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateCaPoolRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateCaPoolRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[18]; } + } + + [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 CreateCaPoolRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateCaPoolRequest(CreateCaPoolRequest other) : this() { + parent_ = other.parent_; + caPoolId_ = other.caPoolId_; + caPool_ = other.caPool_ != null ? other.caPool_.Clone() : null; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateCaPoolRequest Clone() { + return new CreateCaPoolRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the location associated with the + /// [CaPool][google.cloud.security.privateca.v1.CaPool], in the format + /// `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 "ca_pool_id" field. + public const int CaPoolIdFieldNumber = 2; + private string caPoolId_ = ""; + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CaPoolId { + get { return caPoolId_; } + set { + caPoolId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ca_pool" field. + public const int CaPoolFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.CaPool caPool_; + /// + /// Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with + /// initial field values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CaPool CaPool { + get { return caPool_; } + set { + caPool_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 4; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateCaPoolRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateCaPoolRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (CaPoolId != other.CaPoolId) return false; + if (!object.Equals(CaPool, other.CaPool)) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (CaPoolId.Length != 0) hash ^= CaPoolId.GetHashCode(); + if (caPool_ != null) hash ^= CaPool.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (CaPoolId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CaPoolId); + } + if (caPool_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CaPool); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (CaPoolId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CaPoolId); + } + if (caPool_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CaPool); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (CaPoolId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CaPoolId); + } + if (caPool_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaPool); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateCaPoolRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.CaPoolId.Length != 0) { + CaPoolId = other.CaPoolId; + } + if (other.caPool_ != null) { + if (caPool_ == null) { + CaPool = new global::Google.Cloud.Security.PrivateCA.V1.CaPool(); + } + CaPool.MergeFrom(other.CaPool); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + CaPoolId = input.ReadString(); + break; + } + case 26: { + if (caPool_ == null) { + CaPool = new global::Google.Cloud.Security.PrivateCA.V1.CaPool(); + } + input.ReadMessage(CaPool); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + CaPoolId = input.ReadString(); + break; + } + case 26: { + if (caPool_ == null) { + CaPool = new global::Google.Cloud.Security.PrivateCA.V1.CaPool(); + } + input.ReadMessage(CaPool); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.UpdateCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateCaPoolRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateCaPoolRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[19]; } + } + + [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 UpdateCaPoolRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCaPoolRequest(UpdateCaPoolRequest other) : this() { + caPool_ = other.caPool_ != null ? other.caPool_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCaPoolRequest Clone() { + return new UpdateCaPoolRequest(this); + } + + /// Field number for the "ca_pool" field. + public const int CaPoolFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.CaPool caPool_; + /// + /// Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated + /// values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CaPool CaPool { + get { return caPool_; } + set { + caPool_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Required. A list of fields to be updated in this request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 3; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateCaPoolRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateCaPoolRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CaPool, other.CaPool)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (caPool_ != null) hash ^= CaPool.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (caPool_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CaPool); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (caPool_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CaPool); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (caPool_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaPool); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateCaPoolRequest other) { + if (other == null) { + return; + } + if (other.caPool_ != null) { + if (caPool_ == null) { + CaPool = new global::Google.Cloud.Security.PrivateCA.V1.CaPool(); + } + CaPool.MergeFrom(other.CaPool); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (caPool_ == null) { + CaPool = new global::Google.Cloud.Security.PrivateCA.V1.CaPool(); + } + input.ReadMessage(CaPool); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (caPool_ == null) { + CaPool = new global::Google.Cloud.Security.PrivateCA.V1.CaPool(); + } + input.ReadMessage(CaPool); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.DeleteCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteCaPoolRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteCaPoolRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[20]; } + } + + [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 DeleteCaPoolRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteCaPoolRequest(DeleteCaPoolRequest other) : this() { + name_ = other.name_; + requestId_ = other.requestId_; + ignoreDependentResources_ = other.ignoreDependentResources_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteCaPoolRequest Clone() { + return new DeleteCaPoolRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name for this + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 2; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ignore_dependent_resources" field. + public const int IgnoreDependentResourcesFieldNumber = 4; + private bool ignoreDependentResources_; + /// + /// Optional. This field allows this pool to be deleted even if it's being + /// depended on by another resource. However, doing so may result in unintended + /// and unrecoverable effects on any dependent resources since the pool will + /// no longer be able to issue certificates. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreDependentResources { + get { return ignoreDependentResources_; } + set { + ignoreDependentResources_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteCaPoolRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteCaPoolRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (RequestId != other.RequestId) return false; + if (IgnoreDependentResources != other.IgnoreDependentResources) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (IgnoreDependentResources != false) hash ^= IgnoreDependentResources.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (IgnoreDependentResources != false) { + output.WriteRawTag(32); + output.WriteBool(IgnoreDependentResources); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (IgnoreDependentResources != false) { + output.WriteRawTag(32); + output.WriteBool(IgnoreDependentResources); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (IgnoreDependentResources != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteCaPoolRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + if (other.IgnoreDependentResources != false) { + IgnoreDependentResources = other.IgnoreDependentResources; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + case 32: { + IgnoreDependentResources = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + case 32: { + IgnoreDependentResources = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.FetchCaCerts][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FetchCaCertsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FetchCaCertsRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[21]; } + } + + [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 FetchCaCertsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FetchCaCertsRequest(FetchCaCertsRequest other) : this() { + caPool_ = other.caPool_; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FetchCaCertsRequest Clone() { + return new FetchCaCertsRequest(this); + } + + /// Field number for the "ca_pool" field. + public const int CaPoolFieldNumber = 1; + private string caPool_ = ""; + /// + /// Required. The resource name for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] in the format + /// `projects/*/locations/*/caPools/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CaPool { + get { return caPool_; } + set { + caPool_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 2; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FetchCaCertsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FetchCaCertsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CaPool != other.CaPool) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CaPool.Length != 0) hash ^= CaPool.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CaPool.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CaPool); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CaPool.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CaPool); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CaPool.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CaPool); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FetchCaCertsRequest other) { + if (other == null) { + return; + } + if (other.CaPool.Length != 0) { + CaPool = other.CaPool; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + CaPool = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + CaPool = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [CertificateAuthorityService.FetchCaCerts][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FetchCaCertsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FetchCaCertsResponse()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[22]; } + } + + [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 FetchCaCertsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FetchCaCertsResponse(FetchCaCertsResponse other) : this() { + caCerts_ = other.caCerts_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FetchCaCertsResponse Clone() { + return new FetchCaCertsResponse(this); + } + + /// Field number for the "ca_certs" field. + public const int CaCertsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_caCerts_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsResponse.Types.CertChain.Parser); + private readonly pbc::RepeatedField caCerts_ = new pbc::RepeatedField(); + /// + /// The PEM encoded CA certificate chains of all certificate authorities in + /// this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED, + /// DISABLED, or STAGED states. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CaCerts { + get { return caCerts_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FetchCaCertsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FetchCaCertsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!caCerts_.Equals(other.caCerts_)) 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 ^= caCerts_.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 + caCerts_.WriteTo(output, _repeated_caCerts_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) { + caCerts_.WriteTo(ref output, _repeated_caCerts_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 += caCerts_.CalculateSize(_repeated_caCerts_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FetchCaCertsResponse other) { + if (other == null) { + return; + } + caCerts_.Add(other.caCerts_); + _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: { + caCerts_.AddEntriesFrom(input, _repeated_caCerts_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: { + caCerts_.AddEntriesFrom(ref input, _repeated_caCerts_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the FetchCaCertsResponse message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CertChain : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CertChain()); + 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.Security.PrivateCA.V1.FetchCaCertsResponse.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 CertChain() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertChain(CertChain other) : this() { + certificates_ = other.certificates_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertChain Clone() { + return new CertChain(this); + } + + /// Field number for the "certificates" field. + public const int CertificatesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_certificates_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField certificates_ = new pbc::RepeatedField(); + /// + /// The certificates that form the CA chain, from leaf to root order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Certificates { + get { return certificates_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CertChain); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CertChain other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!certificates_.Equals(other.certificates_)) 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 ^= certificates_.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 + certificates_.WriteTo(output, _repeated_certificates_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) { + certificates_.WriteTo(ref output, _repeated_certificates_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 += certificates_.CalculateSize(_repeated_certificates_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CertChain other) { + if (other == null) { + return; + } + certificates_.Add(other.certificates_); + _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: { + certificates_.AddEntriesFrom(input, _repeated_certificates_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: { + certificates_.AddEntriesFrom(ref input, _repeated_certificates_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Request message for + /// [CertificateAuthorityService.GetCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetCaPoolRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCaPoolRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCaPoolRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCaPoolRequest(GetCaPoolRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCaPoolRequest Clone() { + return new GetCaPoolRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the + /// [CaPool][google.cloud.security.privateca.v1.CaPool] to get. + /// + [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 GetCaPoolRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetCaPoolRequest 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(GetCaPoolRequest 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 + /// [CertificateAuthorityService.ListCaPools][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListCaPoolsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListCaPoolsRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCaPoolsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCaPoolsRequest(ListCaPoolsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + orderBy_ = other.orderBy_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCaPoolsRequest Clone() { + return new ListCaPoolsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the location associated with the + /// [CaPools][google.cloud.security.privateca.v1.CaPool], in the format + /// `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. Limit on the number of + /// [CaPools][google.cloud.security.privateca.v1.CaPool] to include in the + /// response. Further [CaPools][google.cloud.security.privateca.v1.CaPool] can + /// subsequently be obtained by including the + /// [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.next_page_token] + /// in a subsequent request. If unspecified, the server will pick an + /// appropriate default. + /// + [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 + /// [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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. Only include resources that match the filter in the response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "order_by" field. + public const int OrderByFieldNumber = 5; + private string orderBy_ = ""; + /// + /// Optional. Specify how the results should be sorted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrderBy { + get { return orderBy_; } + set { + orderBy_ = 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 ListCaPoolsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListCaPoolsRequest 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; + if (OrderBy != other.OrderBy) 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 (OrderBy.Length != 0) hash ^= OrderBy.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 (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + 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 (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + 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 (OrderBy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderBy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListCaPoolsRequest 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; + } + if (other.OrderBy.Length != 0) { + OrderBy = other.OrderBy; + } + _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; + } + case 42: { + OrderBy = 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; + } + case 42: { + OrderBy = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [CertificateAuthorityService.ListCaPools][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListCaPoolsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListCaPoolsResponse()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCaPoolsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCaPoolsResponse(ListCaPoolsResponse other) : this() { + caPools_ = other.caPools_.Clone(); + nextPageToken_ = other.nextPageToken_; + unreachable_ = other.unreachable_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCaPoolsResponse Clone() { + return new ListCaPoolsResponse(this); + } + + /// Field number for the "ca_pools" field. + public const int CaPoolsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_caPools_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Security.PrivateCA.V1.CaPool.Parser); + private readonly pbc::RepeatedField caPools_ = new pbc::RepeatedField(); + /// + /// The list of [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CaPools { + get { return caPools_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token to retrieve next page of results. Pass this value in + /// [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next + /// page of results. + /// + [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 "unreachable" field. + public const int UnreachableFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_unreachable_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField unreachable_ = new pbc::RepeatedField(); + /// + /// A list of locations (e.g. "us-west1") that could not be reached. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Unreachable { + get { return unreachable_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListCaPoolsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListCaPoolsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!caPools_.Equals(other.caPools_)) return false; + if (NextPageToken != other.NextPageToken) return false; + if(!unreachable_.Equals(other.unreachable_)) 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 ^= caPools_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + hash ^= unreachable_.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 + caPools_.WriteTo(output, _repeated_caPools_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(output, _repeated_unreachable_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) { + caPools_.WriteTo(ref output, _repeated_caPools_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(ref output, _repeated_unreachable_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 += caPools_.CalculateSize(_repeated_caPools_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + size += unreachable_.CalculateSize(_repeated_unreachable_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListCaPoolsResponse other) { + if (other == null) { + return; + } + caPools_.Add(other.caPools_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + unreachable_.Add(other.unreachable_); + _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: { + caPools_.AddEntriesFrom(input, _repeated_caPools_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(input, _repeated_unreachable_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: { + caPools_.AddEntriesFrom(ref input, _repeated_caPools_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(ref input, _repeated_unreachable_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.GetCertificateRevocationList][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetCertificateRevocationListRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCertificateRevocationListRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCertificateRevocationListRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCertificateRevocationListRequest(GetCertificateRevocationListRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCertificateRevocationListRequest Clone() { + return new GetCertificateRevocationListRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] + /// of the + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// to get. + /// + [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 GetCertificateRevocationListRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetCertificateRevocationListRequest 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(GetCertificateRevocationListRequest 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 + /// [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListCertificateRevocationListsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListCertificateRevocationListsRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateRevocationListsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateRevocationListsRequest(ListCertificateRevocationListsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + orderBy_ = other.orderBy_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateRevocationListsRequest Clone() { + return new ListCertificateRevocationListsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the location associated with the + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], + /// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. + /// + [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. Limit on the number of + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList] + /// to include in the response. Further + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList] + /// can subsequently be obtained by including the + /// [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.next_page_token] + /// in a subsequent request. If unspecified, the server will pick an + /// appropriate default. + /// + [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 + /// [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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. Only include resources that match the filter in the response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "order_by" field. + public const int OrderByFieldNumber = 5; + private string orderBy_ = ""; + /// + /// Optional. Specify how the results should be sorted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrderBy { + get { return orderBy_; } + set { + orderBy_ = 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 ListCertificateRevocationListsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListCertificateRevocationListsRequest 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; + if (OrderBy != other.OrderBy) 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 (OrderBy.Length != 0) hash ^= OrderBy.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 (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + 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 (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + 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 (OrderBy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderBy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListCertificateRevocationListsRequest 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; + } + if (other.OrderBy.Length != 0) { + OrderBy = other.OrderBy; + } + _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; + } + case 42: { + OrderBy = 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; + } + case 42: { + OrderBy = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListCertificateRevocationListsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListCertificateRevocationListsResponse()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateRevocationListsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateRevocationListsResponse(ListCertificateRevocationListsResponse other) : this() { + certificateRevocationLists_ = other.certificateRevocationLists_.Clone(); + nextPageToken_ = other.nextPageToken_; + unreachable_ = other.unreachable_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateRevocationListsResponse Clone() { + return new ListCertificateRevocationListsResponse(this); + } + + /// Field number for the "certificate_revocation_lists" field. + public const int CertificateRevocationListsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_certificateRevocationLists_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Parser); + private readonly pbc::RepeatedField certificateRevocationLists_ = new pbc::RepeatedField(); + /// + /// The list of + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CertificateRevocationLists { + get { return certificateRevocationLists_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token to retrieve next page of results. Pass this value in + /// [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the + /// next page of results. + /// + [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 "unreachable" field. + public const int UnreachableFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_unreachable_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField unreachable_ = new pbc::RepeatedField(); + /// + /// A list of locations (e.g. "us-west1") that could not be reached. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Unreachable { + get { return unreachable_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListCertificateRevocationListsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListCertificateRevocationListsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!certificateRevocationLists_.Equals(other.certificateRevocationLists_)) return false; + if (NextPageToken != other.NextPageToken) return false; + if(!unreachable_.Equals(other.unreachable_)) 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 ^= certificateRevocationLists_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + hash ^= unreachable_.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 + certificateRevocationLists_.WriteTo(output, _repeated_certificateRevocationLists_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(output, _repeated_unreachable_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) { + certificateRevocationLists_.WriteTo(ref output, _repeated_certificateRevocationLists_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(ref output, _repeated_unreachable_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 += certificateRevocationLists_.CalculateSize(_repeated_certificateRevocationLists_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + size += unreachable_.CalculateSize(_repeated_unreachable_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListCertificateRevocationListsResponse other) { + if (other == null) { + return; + } + certificateRevocationLists_.Add(other.certificateRevocationLists_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + unreachable_.Add(other.unreachable_); + _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: { + certificateRevocationLists_.AddEntriesFrom(input, _repeated_certificateRevocationLists_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(input, _repeated_unreachable_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: { + certificateRevocationLists_.AddEntriesFrom(ref input, _repeated_certificateRevocationLists_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(ref input, _repeated_unreachable_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.UpdateCertificateRevocationList][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateRevocationList]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateCertificateRevocationListRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateCertificateRevocationListRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCertificateRevocationListRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCertificateRevocationListRequest(UpdateCertificateRevocationListRequest other) : this() { + certificateRevocationList_ = other.certificateRevocationList_ != null ? other.certificateRevocationList_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCertificateRevocationListRequest Clone() { + return new UpdateCertificateRevocationListRequest(this); + } + + /// Field number for the "certificate_revocation_list" field. + public const int CertificateRevocationListFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList certificateRevocationList_; + /// + /// Required. + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] + /// with updated values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList CertificateRevocationList { + get { return certificateRevocationList_; } + set { + certificateRevocationList_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Required. A list of fields to be updated in this request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 3; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateCertificateRevocationListRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateCertificateRevocationListRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CertificateRevocationList, other.CertificateRevocationList)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (certificateRevocationList_ != null) hash ^= CertificateRevocationList.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (certificateRevocationList_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CertificateRevocationList); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (certificateRevocationList_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CertificateRevocationList); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (certificateRevocationList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CertificateRevocationList); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateCertificateRevocationListRequest other) { + if (other == null) { + return; + } + if (other.certificateRevocationList_ != null) { + if (certificateRevocationList_ == null) { + CertificateRevocationList = new global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList(); + } + CertificateRevocationList.MergeFrom(other.CertificateRevocationList); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (certificateRevocationList_ == null) { + CertificateRevocationList = new global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList(); + } + input.ReadMessage(CertificateRevocationList); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (certificateRevocationList_ == null) { + CertificateRevocationList = new global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList(); + } + input.ReadMessage(CertificateRevocationList); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.CreateCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateCertificateTemplateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateCertificateTemplateRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateCertificateTemplateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateCertificateTemplateRequest(CreateCertificateTemplateRequest other) : this() { + parent_ = other.parent_; + certificateTemplateId_ = other.certificateTemplateId_; + certificateTemplate_ = other.certificateTemplate_ != null ? other.certificateTemplate_.Clone() : null; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateCertificateTemplateRequest Clone() { + return new CreateCertificateTemplateRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the location associated with the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], + /// in the format `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 "certificate_template_id" field. + public const int CertificateTemplateIdFieldNumber = 2; + private string certificateTemplateId_ = ""; + /// + /// Required. It must be unique within a location and match the regular + /// expression `[a-zA-Z0-9_-]{1,63}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CertificateTemplateId { + get { return certificateTemplateId_; } + set { + certificateTemplateId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "certificate_template" field. + public const int CertificateTemplateFieldNumber = 3; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate certificateTemplate_; + /// + /// Required. A + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// with initial field values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate CertificateTemplate { + get { return certificateTemplate_; } + set { + certificateTemplate_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 4; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateCertificateTemplateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateCertificateTemplateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (CertificateTemplateId != other.CertificateTemplateId) return false; + if (!object.Equals(CertificateTemplate, other.CertificateTemplate)) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (CertificateTemplateId.Length != 0) hash ^= CertificateTemplateId.GetHashCode(); + if (certificateTemplate_ != null) hash ^= CertificateTemplate.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (CertificateTemplateId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CertificateTemplateId); + } + if (certificateTemplate_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CertificateTemplate); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (CertificateTemplateId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CertificateTemplateId); + } + if (certificateTemplate_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CertificateTemplate); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (CertificateTemplateId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CertificateTemplateId); + } + if (certificateTemplate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CertificateTemplate); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateCertificateTemplateRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.CertificateTemplateId.Length != 0) { + CertificateTemplateId = other.CertificateTemplateId; + } + if (other.certificateTemplate_ != null) { + if (certificateTemplate_ == null) { + CertificateTemplate = new global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate(); + } + CertificateTemplate.MergeFrom(other.CertificateTemplate); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + CertificateTemplateId = input.ReadString(); + break; + } + case 26: { + if (certificateTemplate_ == null) { + CertificateTemplate = new global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate(); + } + input.ReadMessage(CertificateTemplate); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + CertificateTemplateId = input.ReadString(); + break; + } + case 26: { + if (certificateTemplate_ == null) { + CertificateTemplate = new global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate(); + } + input.ReadMessage(CertificateTemplate); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.DeleteCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteCertificateTemplateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteCertificateTemplateRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteCertificateTemplateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteCertificateTemplateRequest(DeleteCertificateTemplateRequest other) : this() { + name_ = other.name_; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteCertificateTemplateRequest Clone() { + return new DeleteCertificateTemplateRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name for this + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in the format `projects/*/locations/*/certificateTemplates/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 2; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteCertificateTemplateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteCertificateTemplateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteCertificateTemplateRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.GetCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetCertificateTemplateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCertificateTemplateRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[32]; } + } + + [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 GetCertificateTemplateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCertificateTemplateRequest(GetCertificateTemplateRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCertificateTemplateRequest Clone() { + return new GetCertificateTemplateRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The + /// [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// to get. + /// + [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 GetCertificateTemplateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetCertificateTemplateRequest 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(GetCertificateTemplateRequest 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 + /// [CertificateAuthorityService.ListCertificateTemplates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListCertificateTemplatesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListCertificateTemplatesRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[33]; } + } + + [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 ListCertificateTemplatesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateTemplatesRequest(ListCertificateTemplatesRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + orderBy_ = other.orderBy_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateTemplatesRequest Clone() { + return new ListCertificateTemplatesRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the location associated with the + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], + /// in the format `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. Limit on the number of + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate] + /// to include in the response. Further + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate] + /// can subsequently be obtained by including the + /// [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.next_page_token] + /// in a subsequent request. If unspecified, the server will pick an + /// appropriate default. + /// + [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 + /// [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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. Only include resources that match the filter in the response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "order_by" field. + public const int OrderByFieldNumber = 5; + private string orderBy_ = ""; + /// + /// Optional. Specify how the results should be sorted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrderBy { + get { return orderBy_; } + set { + orderBy_ = 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 ListCertificateTemplatesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListCertificateTemplatesRequest 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; + if (OrderBy != other.OrderBy) 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 (OrderBy.Length != 0) hash ^= OrderBy.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 (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + 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 (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + 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 (OrderBy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderBy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListCertificateTemplatesRequest 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; + } + if (other.OrderBy.Length != 0) { + OrderBy = other.OrderBy; + } + _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; + } + case 42: { + OrderBy = 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; + } + case 42: { + OrderBy = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [CertificateAuthorityService.ListCertificateTemplates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListCertificateTemplatesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListCertificateTemplatesResponse()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[34]; } + } + + [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 ListCertificateTemplatesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateTemplatesResponse(ListCertificateTemplatesResponse other) : this() { + certificateTemplates_ = other.certificateTemplates_.Clone(); + nextPageToken_ = other.nextPageToken_; + unreachable_ = other.unreachable_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListCertificateTemplatesResponse Clone() { + return new ListCertificateTemplatesResponse(this); + } + + /// Field number for the "certificate_templates" field. + public const int CertificateTemplatesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_certificateTemplates_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate.Parser); + private readonly pbc::RepeatedField certificateTemplates_ = new pbc::RepeatedField(); + /// + /// The list of + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CertificateTemplates { + get { return certificateTemplates_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token to retrieve next page of results. Pass this value in + /// [ListCertificateTemplatesRequest.next_page_token][] to retrieve + /// the next page of results. + /// + [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 "unreachable" field. + public const int UnreachableFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_unreachable_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField unreachable_ = new pbc::RepeatedField(); + /// + /// A list of locations (e.g. "us-west1") that could not be reached. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Unreachable { + get { return unreachable_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListCertificateTemplatesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListCertificateTemplatesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!certificateTemplates_.Equals(other.certificateTemplates_)) return false; + if (NextPageToken != other.NextPageToken) return false; + if(!unreachable_.Equals(other.unreachable_)) 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 ^= certificateTemplates_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + hash ^= unreachable_.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 + certificateTemplates_.WriteTo(output, _repeated_certificateTemplates_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(output, _repeated_unreachable_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) { + certificateTemplates_.WriteTo(ref output, _repeated_certificateTemplates_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(ref output, _repeated_unreachable_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 += certificateTemplates_.CalculateSize(_repeated_certificateTemplates_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + size += unreachable_.CalculateSize(_repeated_unreachable_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListCertificateTemplatesResponse other) { + if (other == null) { + return; + } + certificateTemplates_.Add(other.certificateTemplates_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + unreachable_.Add(other.unreachable_); + _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: { + certificateTemplates_.AddEntriesFrom(input, _repeated_certificateTemplates_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(input, _repeated_unreachable_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: { + certificateTemplates_.AddEntriesFrom(ref input, _repeated_certificateTemplates_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(ref input, _repeated_unreachable_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [CertificateAuthorityService.UpdateCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateTemplate]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateCertificateTemplateRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateCertificateTemplateRequest()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[35]; } + } + + [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 UpdateCertificateTemplateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCertificateTemplateRequest(UpdateCertificateTemplateRequest other) : this() { + certificateTemplate_ = other.certificateTemplate_ != null ? other.certificateTemplate_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCertificateTemplateRequest Clone() { + return new UpdateCertificateTemplateRequest(this); + } + + /// Field number for the "certificate_template" field. + public const int CertificateTemplateFieldNumber = 1; + private global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate certificateTemplate_; + /// + /// Required. + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// with updated values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate CertificateTemplate { + get { return certificateTemplate_; } + set { + certificateTemplate_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Required. A list of fields to be updated in this request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 3; + private string requestId_ = ""; + /// + /// Optional. An ID to identify requests. Specify a unique request ID so that + /// if you must retry your request, the server will know to ignore the request + /// if it has already been completed. The server will guarantee that for at + /// least 60 minutes since the first request. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateCertificateTemplateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateCertificateTemplateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CertificateTemplate, other.CertificateTemplate)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (certificateTemplate_ != null) hash ^= CertificateTemplate.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (certificateTemplate_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CertificateTemplate); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (certificateTemplate_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CertificateTemplate); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (certificateTemplate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CertificateTemplate); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateCertificateTemplateRequest other) { + if (other == null) { + return; + } + if (other.certificateTemplate_ != null) { + if (certificateTemplate_ == null) { + CertificateTemplate = new global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate(); + } + CertificateTemplate.MergeFrom(other.CertificateTemplate); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (certificateTemplate_ == null) { + CertificateTemplate = new global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate(); + } + input.ReadMessage(CertificateTemplate); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (certificateTemplate_ == null) { + CertificateTemplate = new global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate(); + } + input.ReadMessage(CertificateTemplate); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the metadata of the long-running operation. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OperationMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OperationMetadata()); + 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.Security.PrivateCA.V1.ServiceReflection.Descriptor.MessageTypes[36]; } + } + + [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 OperationMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OperationMetadata(OperationMetadata other) : this() { + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + target_ = other.target_; + verb_ = other.verb_; + statusMessage_ = other.statusMessage_; + requestedCancellation_ = other.requestedCancellation_; + apiVersion_ = other.apiVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OperationMetadata Clone() { + return new OperationMetadata(this); + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time the operation 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 "end_time" field. + public const int EndTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. The time the operation finished running. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 3; + private string target_ = ""; + /// + /// Output only. Server-defined resource path for the target of the operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Target { + get { return target_; } + set { + target_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "verb" field. + public const int VerbFieldNumber = 4; + private string verb_ = ""; + /// + /// Output only. Name of the verb executed by the operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Verb { + get { return verb_; } + set { + verb_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "status_message" field. + public const int StatusMessageFieldNumber = 5; + private string statusMessage_ = ""; + /// + /// Output only. Human-readable status of the operation, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StatusMessage { + get { return statusMessage_; } + set { + statusMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "requested_cancellation" field. + public const int RequestedCancellationFieldNumber = 6; + private bool requestedCancellation_; + /// + /// Output only. Identifies whether the user has requested cancellation + /// of the operation. Operations that have successfully been cancelled + /// have [Operation.error][] value with a + /// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + /// `Code.CANCELLED`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool RequestedCancellation { + get { return requestedCancellation_; } + set { + requestedCancellation_ = value; + } + } + + /// Field number for the "api_version" field. + public const int ApiVersionFieldNumber = 7; + private string apiVersion_ = ""; + /// + /// Output only. API version used to start the operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApiVersion { + get { return apiVersion_; } + set { + apiVersion_ = 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 OperationMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OperationMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (Target != other.Target) return false; + if (Verb != other.Verb) return false; + if (StatusMessage != other.StatusMessage) return false; + if (RequestedCancellation != other.RequestedCancellation) return false; + if (ApiVersion != other.ApiVersion) 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 (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (Target.Length != 0) hash ^= Target.GetHashCode(); + if (Verb.Length != 0) hash ^= Verb.GetHashCode(); + if (StatusMessage.Length != 0) hash ^= StatusMessage.GetHashCode(); + if (RequestedCancellation != false) hash ^= RequestedCancellation.GetHashCode(); + if (ApiVersion.Length != 0) hash ^= ApiVersion.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 (createTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreateTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (Target.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Target); + } + if (Verb.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Verb); + } + if (StatusMessage.Length != 0) { + output.WriteRawTag(42); + output.WriteString(StatusMessage); + } + if (RequestedCancellation != false) { + output.WriteRawTag(48); + output.WriteBool(RequestedCancellation); + } + if (ApiVersion.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ApiVersion); + } + 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 (createTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreateTime); + } + if (endTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EndTime); + } + if (Target.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Target); + } + if (Verb.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Verb); + } + if (StatusMessage.Length != 0) { + output.WriteRawTag(42); + output.WriteString(StatusMessage); + } + if (RequestedCancellation != false) { + output.WriteRawTag(48); + output.WriteBool(RequestedCancellation); + } + if (ApiVersion.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ApiVersion); + } + 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 (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (Target.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Target); + } + if (Verb.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Verb); + } + if (StatusMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StatusMessage); + } + if (RequestedCancellation != false) { + size += 1 + 1; + } + if (ApiVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApiVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OperationMetadata other) { + if (other == null) { + return; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.Target.Length != 0) { + Target = other.Target; + } + if (other.Verb.Length != 0) { + Verb = other.Verb; + } + if (other.StatusMessage.Length != 0) { + StatusMessage = other.StatusMessage; + } + if (other.RequestedCancellation != false) { + RequestedCancellation = other.RequestedCancellation; + } + if (other.ApiVersion.Length != 0) { + ApiVersion = other.ApiVersion; + } + _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 (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 26: { + Target = input.ReadString(); + break; + } + case 34: { + Verb = input.ReadString(); + break; + } + case 42: { + StatusMessage = input.ReadString(); + break; + } + case 48: { + RequestedCancellation = input.ReadBool(); + break; + } + case 58: { + ApiVersion = 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: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 18: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 26: { + Target = input.ReadString(); + break; + } + case 34: { + Verb = input.ReadString(); + break; + } + case 42: { + StatusMessage = input.ReadString(); + break; + } + case 48: { + RequestedCancellation = input.ReadBool(); + break; + } + case 58: { + ApiVersion = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ServiceCollectionExtensions.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ServiceCollectionExtensions.g.cs new file mode 100755 index 000000000000..5c7534584285 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ServiceCollectionExtensions.g.cs @@ -0,0 +1,69 @@ +// 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 gciv = Google.Cloud.Iam.V1; +using gcl = Google.Cloud.Location; +using gcspv = Google.Cloud.Security.PrivateCA.V1; +using gpr = Google.Protobuf.Reflection; +using lro = Google.LongRunning; +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 AddCertificateAuthorityServiceClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gcspv::CertificateAuthorityServiceClientBuilder builder = new gcspv::CertificateAuthorityServiceClientBuilder(); + 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 AddCertificateAuthorityServiceClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gcspv::CertificateAuthorityServiceClientBuilder builder = new gcspv::CertificateAuthorityServiceClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ServiceGrpc.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ServiceGrpc.g.cs new file mode 100755 index 000000000000..e382b3e80ca5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ServiceGrpc.g.cs @@ -0,0 +1,2474 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/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.Security.PrivateCA.V1 { + /// + /// [Certificate Authority + /// Service][google.cloud.security.privateca.v1.CertificateAuthorityService] + /// manages private certificate authorities and issued certificates. + /// + public static partial class CertificateAuthorityService + { + static readonly string __ServiceName = "google.cloud.security.privateca.v1.CertificateAuthorityService"; + + [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_security_privateca_v1_CreateCertificateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_Certificate = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.Certificate.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_GetCertificateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_ListCertificatesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.ListCertificatesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_ListCertificatesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.ListCertificatesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_RevokeCertificateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.RevokeCertificateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_UpdateCertificateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.ActivateCertificateAuthorityRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_longrunning_Operation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.LongRunning.Operation.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateAuthorityRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.DisableCertificateAuthorityRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.EnableCertificateAuthorityRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.GetCertificateAuthorityRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_CertificateAuthority = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.UndeleteCertificateAuthorityRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateAuthorityRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateAuthorityRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_CreateCaPoolRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.CreateCaPoolRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_UpdateCaPoolRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.UpdateCaPoolRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_GetCaPoolRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.GetCaPoolRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_CaPool = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.CaPool.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_ListCaPoolsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.ListCaPoolsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_ListCaPoolsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.ListCaPoolsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_DeleteCaPoolRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.DeleteCaPoolRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_FetchCaCertsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_FetchCaCertsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRevocationListRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_CertificateRevocationList = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.CertificateRevocationList.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRevocationListRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateTemplateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateTemplateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_GetCertificateTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.GetCertificateTemplateRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_CertificateTemplate = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.CertificateTemplate.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateTemplateRequest.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateCertificate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateCertificate", + __Marshaller_google_cloud_security_privateca_v1_CreateCertificateRequest, + __Marshaller_google_cloud_security_privateca_v1_Certificate); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetCertificate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetCertificate", + __Marshaller_google_cloud_security_privateca_v1_GetCertificateRequest, + __Marshaller_google_cloud_security_privateca_v1_Certificate); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListCertificates = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListCertificates", + __Marshaller_google_cloud_security_privateca_v1_ListCertificatesRequest, + __Marshaller_google_cloud_security_privateca_v1_ListCertificatesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_RevokeCertificate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "RevokeCertificate", + __Marshaller_google_cloud_security_privateca_v1_RevokeCertificateRequest, + __Marshaller_google_cloud_security_privateca_v1_Certificate); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateCertificate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateCertificate", + __Marshaller_google_cloud_security_privateca_v1_UpdateCertificateRequest, + __Marshaller_google_cloud_security_privateca_v1_Certificate); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ActivateCertificateAuthority = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ActivateCertificateAuthority", + __Marshaller_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateCertificateAuthority = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateCertificateAuthority", + __Marshaller_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DisableCertificateAuthority = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DisableCertificateAuthority", + __Marshaller_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_EnableCertificateAuthority = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "EnableCertificateAuthority", + __Marshaller_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_FetchCertificateAuthorityCsr = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "FetchCertificateAuthorityCsr", + __Marshaller_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest, + __Marshaller_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetCertificateAuthority = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetCertificateAuthority", + __Marshaller_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest, + __Marshaller_google_cloud_security_privateca_v1_CertificateAuthority); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListCertificateAuthorities = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListCertificateAuthorities", + __Marshaller_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest, + __Marshaller_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UndeleteCertificateAuthority = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UndeleteCertificateAuthority", + __Marshaller_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteCertificateAuthority = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteCertificateAuthority", + __Marshaller_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateCertificateAuthority = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateCertificateAuthority", + __Marshaller_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateCaPool = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateCaPool", + __Marshaller_google_cloud_security_privateca_v1_CreateCaPoolRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateCaPool = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateCaPool", + __Marshaller_google_cloud_security_privateca_v1_UpdateCaPoolRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetCaPool = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetCaPool", + __Marshaller_google_cloud_security_privateca_v1_GetCaPoolRequest, + __Marshaller_google_cloud_security_privateca_v1_CaPool); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListCaPools = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListCaPools", + __Marshaller_google_cloud_security_privateca_v1_ListCaPoolsRequest, + __Marshaller_google_cloud_security_privateca_v1_ListCaPoolsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteCaPool = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteCaPool", + __Marshaller_google_cloud_security_privateca_v1_DeleteCaPoolRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_FetchCaCerts = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "FetchCaCerts", + __Marshaller_google_cloud_security_privateca_v1_FetchCaCertsRequest, + __Marshaller_google_cloud_security_privateca_v1_FetchCaCertsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetCertificateRevocationList = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetCertificateRevocationList", + __Marshaller_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest, + __Marshaller_google_cloud_security_privateca_v1_CertificateRevocationList); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListCertificateRevocationLists = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListCertificateRevocationLists", + __Marshaller_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest, + __Marshaller_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateCertificateRevocationList = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateCertificateRevocationList", + __Marshaller_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateCertificateTemplate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateCertificateTemplate", + __Marshaller_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteCertificateTemplate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteCertificateTemplate", + __Marshaller_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetCertificateTemplate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetCertificateTemplate", + __Marshaller_google_cloud_security_privateca_v1_GetCertificateTemplateRequest, + __Marshaller_google_cloud_security_privateca_v1_CertificateTemplate); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListCertificateTemplates = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListCertificateTemplates", + __Marshaller_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest, + __Marshaller_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateCertificateTemplate = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateCertificateTemplate", + __Marshaller_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest, + __Marshaller_google_longrunning_Operation); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Cloud.Security.PrivateCA.V1.ServiceReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of CertificateAuthorityService + [grpc::BindServiceMethod(typeof(CertificateAuthorityService), "BindService")] + public abstract partial class CertificateAuthorityServiceBase + { + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 CreateCertificate(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 GetCertificate(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 ListCertificates(global::Google.Cloud.Security.PrivateCA.V1.ListCertificatesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 RevokeCertificate(global::Google.Cloud.Security.PrivateCA.V1.RevokeCertificateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// 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 UpdateCertificate(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// 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 ActivateCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.ActivateCertificateAuthorityRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// 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 CreateCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateAuthorityRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 DisableCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.DisableCertificateAuthorityRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 EnableCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.EnableCertificateAuthorityRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// 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 FetchCertificateAuthorityCsr(global::Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 GetCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateAuthorityRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 ListCertificateAuthorities(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// 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 UndeleteCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.UndeleteCertificateAuthorityRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 DeleteCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateAuthorityRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 UpdateCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateAuthorityRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 CreateCaPool(global::Google.Cloud.Security.PrivateCA.V1.CreateCaPoolRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 UpdateCaPool(global::Google.Cloud.Security.PrivateCA.V1.UpdateCaPoolRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 GetCaPool(global::Google.Cloud.Security.PrivateCA.V1.GetCaPoolRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 ListCaPools(global::Google.Cloud.Security.PrivateCA.V1.ListCaPoolsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 DeleteCaPool(global::Google.Cloud.Security.PrivateCA.V1.DeleteCaPoolRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// 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 FetchCaCerts(global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 GetCertificateRevocationList(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRevocationListRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 ListCertificateRevocationLists(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 UpdateCertificateRevocationList(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRevocationListRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// 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 CreateCertificateTemplate(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateTemplateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 DeleteCertificateTemplate(global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateTemplateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 GetCertificateTemplate(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateTemplateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 ListCertificateTemplates(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 UpdateCertificateTemplate(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateTemplateRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for CertificateAuthorityService + public partial class CertificateAuthorityServiceClient : grpc::ClientBase + { + /// Creates a new client for CertificateAuthorityService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public CertificateAuthorityServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for CertificateAuthorityService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public CertificateAuthorityServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected CertificateAuthorityServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected CertificateAuthorityServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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.Security.PrivateCA.V1.Certificate CreateCertificate(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateCertificate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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.Security.PrivateCA.V1.Certificate CreateCertificate(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateCertificate, null, options, request); + } + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 CreateCertificateAsync(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateCertificateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] + /// in a given Project, Location from a particular + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 CreateCertificateAsync(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateCertificate, null, options, request); + } + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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.Security.PrivateCA.V1.Certificate GetCertificate(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetCertificate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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.Security.PrivateCA.V1.Certificate GetCertificate(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetCertificate, null, options, request); + } + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 GetCertificateAsync(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetCertificateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 GetCertificateAsync(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetCertificate, null, options, request); + } + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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.Security.PrivateCA.V1.ListCertificatesResponse ListCertificates(global::Google.Cloud.Security.PrivateCA.V1.ListCertificatesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListCertificates(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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.Security.PrivateCA.V1.ListCertificatesResponse ListCertificates(global::Google.Cloud.Security.PrivateCA.V1.ListCertificatesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListCertificates, null, options, request); + } + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 ListCertificatesAsync(global::Google.Cloud.Security.PrivateCA.V1.ListCertificatesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListCertificatesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists [Certificates][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 ListCertificatesAsync(global::Google.Cloud.Security.PrivateCA.V1.ListCertificatesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListCertificates, null, options, request); + } + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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.Security.PrivateCA.V1.Certificate RevokeCertificate(global::Google.Cloud.Security.PrivateCA.V1.RevokeCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RevokeCertificate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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.Security.PrivateCA.V1.Certificate RevokeCertificate(global::Google.Cloud.Security.PrivateCA.V1.RevokeCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_RevokeCertificate, null, options, request); + } + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 RevokeCertificateAsync(global::Google.Cloud.Security.PrivateCA.V1.RevokeCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RevokeCertificateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// + /// 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 RevokeCertificateAsync(global::Google.Cloud.Security.PrivateCA.V1.RevokeCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_RevokeCertificate, null, options, request); + } + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// 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.Security.PrivateCA.V1.Certificate UpdateCertificate(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCertificate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// 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.Security.PrivateCA.V1.Certificate UpdateCertificate(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateCertificate, null, options, request); + } + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// 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 UpdateCertificateAsync(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCertificateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. + /// Currently, the only field you can update is the + /// [labels][google.cloud.security.privateca.v1.Certificate.labels] field. + /// + /// 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 UpdateCertificateAsync(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateCertificate, null, options, request); + } + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation ActivateCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.ActivateCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ActivateCertificateAuthority(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation ActivateCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.ActivateCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ActivateCertificateAuthority, null, options, request); + } + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// 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 ActivateCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.ActivateCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ActivateCertificateAuthorityAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Activate a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// After the parent Certificate Authority signs a certificate signing request + /// from + /// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], + /// this method can complete the activation process. + /// + /// 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 ActivateCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.ActivateCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ActivateCertificateAuthority, null, options, request); + } + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateCertificateAuthority(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateCertificateAuthority, null, options, request); + } + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// 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 CreateCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateCertificateAuthorityAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create a new + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// in a given Project and Location. + /// + /// 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 CreateCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateCertificateAuthority, null, options, request); + } + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DisableCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.DisableCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DisableCertificateAuthority(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DisableCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.DisableCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DisableCertificateAuthority, null, options, request); + } + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 DisableCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.DisableCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DisableCertificateAuthorityAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Disable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 DisableCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.DisableCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DisableCertificateAuthority, null, options, request); + } + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation EnableCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.EnableCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return EnableCertificateAuthority(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation EnableCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.EnableCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_EnableCertificateAuthority, null, options, request); + } + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 EnableCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.EnableCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return EnableCertificateAuthorityAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Enable a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 EnableCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.EnableCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_EnableCertificateAuthority, null, options, request); + } + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// 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.Security.PrivateCA.V1.FetchCertificateAuthorityCsrResponse FetchCertificateAuthorityCsr(global::Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FetchCertificateAuthorityCsr(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// 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.Security.PrivateCA.V1.FetchCertificateAuthorityCsrResponse FetchCertificateAuthorityCsr(global::Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_FetchCertificateAuthorityCsr, null, options, request); + } + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// 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 FetchCertificateAuthorityCsrAsync(global::Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FetchCertificateAuthorityCsrAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Fetch a certificate signing request (CSR) from a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that is in state + /// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] + /// and is of type + /// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. + /// The CSR must then be signed by the desired parent Certificate Authority, + /// which could be another + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// resource, or could be an on-prem certificate authority. See also + /// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority]. + /// + /// 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 FetchCertificateAuthorityCsrAsync(global::Google.Cloud.Security.PrivateCA.V1.FetchCertificateAuthorityCsrRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_FetchCertificateAuthorityCsr, null, options, request); + } + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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.Security.PrivateCA.V1.CertificateAuthority GetCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetCertificateAuthority(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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.Security.PrivateCA.V1.CertificateAuthority GetCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetCertificateAuthority, null, options, request); + } + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 GetCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetCertificateAuthorityAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 GetCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetCertificateAuthority, null, options, request); + } + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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.Security.PrivateCA.V1.ListCertificateAuthoritiesResponse ListCertificateAuthorities(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListCertificateAuthorities(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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.Security.PrivateCA.V1.ListCertificateAuthoritiesResponse ListCertificateAuthorities(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListCertificateAuthorities, null, options, request); + } + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 ListCertificateAuthoritiesAsync(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListCertificateAuthoritiesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists + /// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 ListCertificateAuthoritiesAsync(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateAuthoritiesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListCertificateAuthorities, null, options, request); + } + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UndeleteCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.UndeleteCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UndeleteCertificateAuthority(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UndeleteCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.UndeleteCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UndeleteCertificateAuthority, null, options, request); + } + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// 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 UndeleteCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.UndeleteCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UndeleteCertificateAuthorityAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Undelete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + /// that has been deleted. + /// + /// 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 UndeleteCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.UndeleteCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UndeleteCertificateAuthority, null, options, request); + } + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteCertificateAuthority(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteCertificateAuthority, null, options, request); + } + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 DeleteCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteCertificateAuthorityAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 DeleteCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteCertificateAuthority, null, options, request); + } + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCertificateAuthority(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateCertificateAuthority(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateCertificateAuthority, null, options, request); + } + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 UpdateCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateAuthorityRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCertificateAuthorityAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update a + /// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + /// + /// 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 UpdateCertificateAuthorityAsync(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateAuthorityRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateCertificateAuthority, null, options, request); + } + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateCaPool(global::Google.Cloud.Security.PrivateCA.V1.CreateCaPoolRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateCaPool(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateCaPool(global::Google.Cloud.Security.PrivateCA.V1.CreateCaPoolRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateCaPool, null, options, request); + } + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 CreateCaPoolAsync(global::Google.Cloud.Security.PrivateCA.V1.CreateCaPoolRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateCaPoolAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 CreateCaPoolAsync(global::Google.Cloud.Security.PrivateCA.V1.CreateCaPoolRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateCaPool, null, options, request); + } + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateCaPool(global::Google.Cloud.Security.PrivateCA.V1.UpdateCaPoolRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCaPool(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateCaPool(global::Google.Cloud.Security.PrivateCA.V1.UpdateCaPoolRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateCaPool, null, options, request); + } + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 UpdateCaPoolAsync(global::Google.Cloud.Security.PrivateCA.V1.UpdateCaPoolRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCaPoolAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 UpdateCaPoolAsync(global::Google.Cloud.Security.PrivateCA.V1.UpdateCaPoolRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateCaPool, null, options, request); + } + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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.Security.PrivateCA.V1.CaPool GetCaPool(global::Google.Cloud.Security.PrivateCA.V1.GetCaPoolRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetCaPool(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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.Security.PrivateCA.V1.CaPool GetCaPool(global::Google.Cloud.Security.PrivateCA.V1.GetCaPoolRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetCaPool, null, options, request); + } + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 GetCaPoolAsync(global::Google.Cloud.Security.PrivateCA.V1.GetCaPoolRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetCaPoolAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 GetCaPoolAsync(global::Google.Cloud.Security.PrivateCA.V1.GetCaPoolRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetCaPool, null, options, request); + } + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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.Security.PrivateCA.V1.ListCaPoolsResponse ListCaPools(global::Google.Cloud.Security.PrivateCA.V1.ListCaPoolsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListCaPools(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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.Security.PrivateCA.V1.ListCaPoolsResponse ListCaPools(global::Google.Cloud.Security.PrivateCA.V1.ListCaPoolsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListCaPools, null, options, request); + } + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 ListCaPoolsAsync(global::Google.Cloud.Security.PrivateCA.V1.ListCaPoolsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListCaPoolsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists [CaPools][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 ListCaPoolsAsync(global::Google.Cloud.Security.PrivateCA.V1.ListCaPoolsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListCaPools, null, options, request); + } + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteCaPool(global::Google.Cloud.Security.PrivateCA.V1.DeleteCaPoolRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteCaPool(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteCaPool(global::Google.Cloud.Security.PrivateCA.V1.DeleteCaPoolRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteCaPool, null, options, request); + } + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 DeleteCaPoolAsync(global::Google.Cloud.Security.PrivateCA.V1.DeleteCaPoolRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteCaPoolAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool]. + /// + /// 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 DeleteCaPoolAsync(global::Google.Cloud.Security.PrivateCA.V1.DeleteCaPoolRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteCaPool, null, options, request); + } + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// 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.Security.PrivateCA.V1.FetchCaCertsResponse FetchCaCerts(global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FetchCaCerts(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// 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.Security.PrivateCA.V1.FetchCaCertsResponse FetchCaCerts(global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_FetchCaCerts, null, options, request); + } + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// 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 FetchCaCertsAsync(global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return FetchCaCertsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// FetchCaCerts returns the current trust anchor for the + /// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA + /// certificate chains for all certificate authorities in the ENABLED, + /// DISABLED, or STAGED states. + /// + /// 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 FetchCaCertsAsync(global::Google.Cloud.Security.PrivateCA.V1.FetchCaCertsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_FetchCaCerts, null, options, request); + } + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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.Security.PrivateCA.V1.CertificateRevocationList GetCertificateRevocationList(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRevocationListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetCertificateRevocationList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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.Security.PrivateCA.V1.CertificateRevocationList GetCertificateRevocationList(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRevocationListRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetCertificateRevocationList, null, options, request); + } + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 GetCertificateRevocationListAsync(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRevocationListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetCertificateRevocationListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 GetCertificateRevocationListAsync(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateRevocationListRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetCertificateRevocationList, null, options, request); + } + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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.Security.PrivateCA.V1.ListCertificateRevocationListsResponse ListCertificateRevocationLists(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListCertificateRevocationLists(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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.Security.PrivateCA.V1.ListCertificateRevocationListsResponse ListCertificateRevocationLists(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListCertificateRevocationLists, null, options, request); + } + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 ListCertificateRevocationListsAsync(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListCertificateRevocationListsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists + /// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 ListCertificateRevocationListsAsync(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateRevocationListsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListCertificateRevocationLists, null, options, request); + } + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateCertificateRevocationList(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRevocationListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCertificateRevocationList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateCertificateRevocationList(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRevocationListRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateCertificateRevocationList, null, options, request); + } + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 UpdateCertificateRevocationListAsync(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRevocationListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCertificateRevocationListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update a + /// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. + /// + /// 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 UpdateCertificateRevocationListAsync(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateRevocationListRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateCertificateRevocationList, null, options, request); + } + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateCertificateTemplate(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateCertificateTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateCertificateTemplate(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateCertificateTemplate, null, options, request); + } + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// 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 CreateCertificateTemplateAsync(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateCertificateTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Create a new + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] + /// in a given Project and Location. + /// + /// 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 CreateCertificateTemplateAsync(global::Google.Cloud.Security.PrivateCA.V1.CreateCertificateTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateCertificateTemplate, null, options, request); + } + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteCertificateTemplate(global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteCertificateTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteCertificateTemplate(global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteCertificateTemplate, null, options, request); + } + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 DeleteCertificateTemplateAsync(global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteCertificateTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// DeleteCertificateTemplate deletes a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 DeleteCertificateTemplateAsync(global::Google.Cloud.Security.PrivateCA.V1.DeleteCertificateTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteCertificateTemplate, null, options, request); + } + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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.Security.PrivateCA.V1.CertificateTemplate GetCertificateTemplate(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetCertificateTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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.Security.PrivateCA.V1.CertificateTemplate GetCertificateTemplate(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetCertificateTemplate, null, options, request); + } + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 GetCertificateTemplateAsync(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetCertificateTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 GetCertificateTemplateAsync(global::Google.Cloud.Security.PrivateCA.V1.GetCertificateTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetCertificateTemplate, null, options, request); + } + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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.Security.PrivateCA.V1.ListCertificateTemplatesResponse ListCertificateTemplates(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListCertificateTemplates(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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.Security.PrivateCA.V1.ListCertificateTemplatesResponse ListCertificateTemplates(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListCertificateTemplates, null, options, request); + } + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 ListCertificateTemplatesAsync(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListCertificateTemplatesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists + /// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 ListCertificateTemplatesAsync(global::Google.Cloud.Security.PrivateCA.V1.ListCertificateTemplatesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListCertificateTemplates, null, options, request); + } + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateCertificateTemplate(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCertificateTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateCertificateTemplate(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateCertificateTemplate, null, options, request); + } + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 UpdateCertificateTemplateAsync(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCertificateTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update a + /// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. + /// + /// 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 UpdateCertificateTemplateAsync(global::Google.Cloud.Security.PrivateCA.V1.UpdateCertificateTemplateRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateCertificateTemplate, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override CertificateAuthorityServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new CertificateAuthorityServiceClient(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(CertificateAuthorityServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_CreateCertificate, serviceImpl.CreateCertificate) + .AddMethod(__Method_GetCertificate, serviceImpl.GetCertificate) + .AddMethod(__Method_ListCertificates, serviceImpl.ListCertificates) + .AddMethod(__Method_RevokeCertificate, serviceImpl.RevokeCertificate) + .AddMethod(__Method_UpdateCertificate, serviceImpl.UpdateCertificate) + .AddMethod(__Method_ActivateCertificateAuthority, serviceImpl.ActivateCertificateAuthority) + .AddMethod(__Method_CreateCertificateAuthority, serviceImpl.CreateCertificateAuthority) + .AddMethod(__Method_DisableCertificateAuthority, serviceImpl.DisableCertificateAuthority) + .AddMethod(__Method_EnableCertificateAuthority, serviceImpl.EnableCertificateAuthority) + .AddMethod(__Method_FetchCertificateAuthorityCsr, serviceImpl.FetchCertificateAuthorityCsr) + .AddMethod(__Method_GetCertificateAuthority, serviceImpl.GetCertificateAuthority) + .AddMethod(__Method_ListCertificateAuthorities, serviceImpl.ListCertificateAuthorities) + .AddMethod(__Method_UndeleteCertificateAuthority, serviceImpl.UndeleteCertificateAuthority) + .AddMethod(__Method_DeleteCertificateAuthority, serviceImpl.DeleteCertificateAuthority) + .AddMethod(__Method_UpdateCertificateAuthority, serviceImpl.UpdateCertificateAuthority) + .AddMethod(__Method_CreateCaPool, serviceImpl.CreateCaPool) + .AddMethod(__Method_UpdateCaPool, serviceImpl.UpdateCaPool) + .AddMethod(__Method_GetCaPool, serviceImpl.GetCaPool) + .AddMethod(__Method_ListCaPools, serviceImpl.ListCaPools) + .AddMethod(__Method_DeleteCaPool, serviceImpl.DeleteCaPool) + .AddMethod(__Method_FetchCaCerts, serviceImpl.FetchCaCerts) + .AddMethod(__Method_GetCertificateRevocationList, serviceImpl.GetCertificateRevocationList) + .AddMethod(__Method_ListCertificateRevocationLists, serviceImpl.ListCertificateRevocationLists) + .AddMethod(__Method_UpdateCertificateRevocationList, serviceImpl.UpdateCertificateRevocationList) + .AddMethod(__Method_CreateCertificateTemplate, serviceImpl.CreateCertificateTemplate) + .AddMethod(__Method_DeleteCertificateTemplate, serviceImpl.DeleteCertificateTemplate) + .AddMethod(__Method_GetCertificateTemplate, serviceImpl.GetCertificateTemplate) + .AddMethod(__Method_ListCertificateTemplates, serviceImpl.ListCertificateTemplates) + .AddMethod(__Method_UpdateCertificateTemplate, serviceImpl.UpdateCertificateTemplate).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, CertificateAuthorityServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_CreateCertificate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateCertificate)); + serviceBinder.AddMethod(__Method_GetCertificate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetCertificate)); + serviceBinder.AddMethod(__Method_ListCertificates, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListCertificates)); + serviceBinder.AddMethod(__Method_RevokeCertificate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RevokeCertificate)); + serviceBinder.AddMethod(__Method_UpdateCertificate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateCertificate)); + serviceBinder.AddMethod(__Method_ActivateCertificateAuthority, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ActivateCertificateAuthority)); + serviceBinder.AddMethod(__Method_CreateCertificateAuthority, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateCertificateAuthority)); + serviceBinder.AddMethod(__Method_DisableCertificateAuthority, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DisableCertificateAuthority)); + serviceBinder.AddMethod(__Method_EnableCertificateAuthority, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.EnableCertificateAuthority)); + serviceBinder.AddMethod(__Method_FetchCertificateAuthorityCsr, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FetchCertificateAuthorityCsr)); + serviceBinder.AddMethod(__Method_GetCertificateAuthority, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetCertificateAuthority)); + serviceBinder.AddMethod(__Method_ListCertificateAuthorities, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListCertificateAuthorities)); + serviceBinder.AddMethod(__Method_UndeleteCertificateAuthority, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UndeleteCertificateAuthority)); + serviceBinder.AddMethod(__Method_DeleteCertificateAuthority, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteCertificateAuthority)); + serviceBinder.AddMethod(__Method_UpdateCertificateAuthority, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateCertificateAuthority)); + serviceBinder.AddMethod(__Method_CreateCaPool, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateCaPool)); + serviceBinder.AddMethod(__Method_UpdateCaPool, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateCaPool)); + serviceBinder.AddMethod(__Method_GetCaPool, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetCaPool)); + serviceBinder.AddMethod(__Method_ListCaPools, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListCaPools)); + serviceBinder.AddMethod(__Method_DeleteCaPool, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteCaPool)); + serviceBinder.AddMethod(__Method_FetchCaCerts, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FetchCaCerts)); + serviceBinder.AddMethod(__Method_GetCertificateRevocationList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetCertificateRevocationList)); + serviceBinder.AddMethod(__Method_ListCertificateRevocationLists, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListCertificateRevocationLists)); + serviceBinder.AddMethod(__Method_UpdateCertificateRevocationList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateCertificateRevocationList)); + serviceBinder.AddMethod(__Method_CreateCertificateTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateCertificateTemplate)); + serviceBinder.AddMethod(__Method_DeleteCertificateTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteCertificateTemplate)); + serviceBinder.AddMethod(__Method_GetCertificateTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetCertificateTemplate)); + serviceBinder.AddMethod(__Method_ListCertificateTemplates, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListCertificateTemplates)); + serviceBinder.AddMethod(__Method_UpdateCertificateTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateCertificateTemplate)); + } + + } +} +#endregion diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ServiceResourceNames.g.cs b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ServiceResourceNames.g.cs new file mode 100755 index 000000000000..d3de12e7baa9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/Google.Cloud.Security.PrivateCA.V1/ServiceResourceNames.g.cs @@ -0,0 +1,301 @@ +// 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 gcspv = Google.Cloud.Security.PrivateCA.V1; + +namespace Google.Cloud.Security.PrivateCA.V1 +{ + public partial class CreateCertificateRequest + { + /// -typed view over the resource name property. + public CaPoolName ParentAsCaPoolName + { + get => string.IsNullOrEmpty(Parent) ? null : CaPoolName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetCertificateRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateName CertificateName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListCertificatesRequest + { + /// -typed view over the resource name property. + public CaPoolName ParentAsCaPoolName + { + get => string.IsNullOrEmpty(Parent) ? null : CaPoolName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class RevokeCertificateRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateName CertificateName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ActivateCertificateAuthorityRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateAuthorityName CertificateAuthorityName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateAuthorityName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CreateCertificateAuthorityRequest + { + /// -typed view over the resource name property. + public CaPoolName ParentAsCaPoolName + { + get => string.IsNullOrEmpty(Parent) ? null : CaPoolName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class DisableCertificateAuthorityRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateAuthorityName CertificateAuthorityName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateAuthorityName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class EnableCertificateAuthorityRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateAuthorityName CertificateAuthorityName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateAuthorityName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class FetchCertificateAuthorityCsrRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateAuthorityName CertificateAuthorityName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateAuthorityName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class GetCertificateAuthorityRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateAuthorityName CertificateAuthorityName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateAuthorityName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListCertificateAuthoritiesRequest + { + /// -typed view over the resource name property. + public CaPoolName ParentAsCaPoolName + { + get => string.IsNullOrEmpty(Parent) ? null : CaPoolName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class UndeleteCertificateAuthorityRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateAuthorityName CertificateAuthorityName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateAuthorityName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class DeleteCertificateAuthorityRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateAuthorityName CertificateAuthorityName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateAuthorityName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CreateCaPoolRequest + { + /// + /// -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() ?? ""; + } + } + + public partial class DeleteCaPoolRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CaPoolName CaPoolName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CaPoolName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class FetchCaCertsRequest + { + /// -typed view over the resource name property. + public CaPoolName CaPoolAsCaPoolName + { + get => string.IsNullOrEmpty(CaPool) ? null : CaPoolName.Parse(CaPool, allowUnparsed: true); + set => CaPool = value?.ToString() ?? ""; + } + } + + public partial class GetCaPoolRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CaPoolName CaPoolName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CaPoolName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListCaPoolsRequest + { + /// + /// -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() ?? ""; + } + } + + public partial class GetCertificateRevocationListRequest + { + /// + /// -typed view over the resource name + /// property. + /// + public gcspv::CertificateRevocationListName CertificateRevocationListName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateRevocationListName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListCertificateRevocationListsRequest + { + /// + /// -typed view over the resource name property. + /// + public CertificateAuthorityName ParentAsCertificateAuthorityName + { + get => string.IsNullOrEmpty(Parent) ? null : CertificateAuthorityName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class CreateCertificateTemplateRequest + { + /// + /// -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() ?? ""; + } + } + + public partial class DeleteCertificateTemplateRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateTemplateName CertificateTemplateName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateTemplateName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class GetCertificateTemplateRequest + { + /// + /// -typed view over the resource name property. + /// + public gcspv::CertificateTemplateName CertificateTemplateName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::CertificateTemplateName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListCertificateTemplatesRequest + { + /// + /// -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() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/gapic_metadata.json b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/gapic_metadata.json new file mode 100755 index 000000000000..e181604220b7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PrivateCA.V1/gapic_metadata.json @@ -0,0 +1,192 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "csharp", + "protoPackage": "google.cloud.security.privateca.v1", + "libraryPackage": "Google.Cloud.Security.PrivateCA.V1", + "services": { + "CertificateAuthorityService": { + "clients": { + "grpc": { + "libraryClient": "CertificateAuthorityServiceClient", + "rpcs": { + "ActivateCertificateAuthority": { + "methods": [ + "ActivateCertificateAuthority", + "ActivateCertificateAuthorityAsync" + ] + }, + "CreateCaPool": { + "methods": [ + "CreateCaPool", + "CreateCaPoolAsync" + ] + }, + "CreateCertificate": { + "methods": [ + "CreateCertificate", + "CreateCertificateAsync" + ] + }, + "CreateCertificateAuthority": { + "methods": [ + "CreateCertificateAuthority", + "CreateCertificateAuthorityAsync" + ] + }, + "CreateCertificateTemplate": { + "methods": [ + "CreateCertificateTemplate", + "CreateCertificateTemplateAsync" + ] + }, + "DeleteCaPool": { + "methods": [ + "DeleteCaPool", + "DeleteCaPoolAsync" + ] + }, + "DeleteCertificateAuthority": { + "methods": [ + "DeleteCertificateAuthority", + "DeleteCertificateAuthorityAsync" + ] + }, + "DeleteCertificateTemplate": { + "methods": [ + "DeleteCertificateTemplate", + "DeleteCertificateTemplateAsync" + ] + }, + "DisableCertificateAuthority": { + "methods": [ + "DisableCertificateAuthority", + "DisableCertificateAuthorityAsync" + ] + }, + "EnableCertificateAuthority": { + "methods": [ + "EnableCertificateAuthority", + "EnableCertificateAuthorityAsync" + ] + }, + "FetchCaCerts": { + "methods": [ + "FetchCaCerts", + "FetchCaCertsAsync" + ] + }, + "FetchCertificateAuthorityCsr": { + "methods": [ + "FetchCertificateAuthorityCsr", + "FetchCertificateAuthorityCsrAsync" + ] + }, + "GetCaPool": { + "methods": [ + "GetCaPool", + "GetCaPoolAsync" + ] + }, + "GetCertificate": { + "methods": [ + "GetCertificate", + "GetCertificateAsync" + ] + }, + "GetCertificateAuthority": { + "methods": [ + "GetCertificateAuthority", + "GetCertificateAuthorityAsync" + ] + }, + "GetCertificateRevocationList": { + "methods": [ + "GetCertificateRevocationList", + "GetCertificateRevocationListAsync" + ] + }, + "GetCertificateTemplate": { + "methods": [ + "GetCertificateTemplate", + "GetCertificateTemplateAsync" + ] + }, + "ListCaPools": { + "methods": [ + "ListCaPools", + "ListCaPoolsAsync" + ] + }, + "ListCertificateAuthorities": { + "methods": [ + "ListCertificateAuthorities", + "ListCertificateAuthoritiesAsync" + ] + }, + "ListCertificateRevocationLists": { + "methods": [ + "ListCertificateRevocationLists", + "ListCertificateRevocationListsAsync" + ] + }, + "ListCertificateTemplates": { + "methods": [ + "ListCertificateTemplates", + "ListCertificateTemplatesAsync" + ] + }, + "ListCertificates": { + "methods": [ + "ListCertificates", + "ListCertificatesAsync" + ] + }, + "RevokeCertificate": { + "methods": [ + "RevokeCertificate", + "RevokeCertificateAsync" + ] + }, + "UndeleteCertificateAuthority": { + "methods": [ + "UndeleteCertificateAuthority", + "UndeleteCertificateAuthorityAsync" + ] + }, + "UpdateCaPool": { + "methods": [ + "UpdateCaPool", + "UpdateCaPoolAsync" + ] + }, + "UpdateCertificate": { + "methods": [ + "UpdateCertificate", + "UpdateCertificateAsync" + ] + }, + "UpdateCertificateAuthority": { + "methods": [ + "UpdateCertificateAuthority", + "UpdateCertificateAuthorityAsync" + ] + }, + "UpdateCertificateRevocationList": { + "methods": [ + "UpdateCertificateRevocationList", + "UpdateCertificateRevocationListAsync" + ] + }, + "UpdateCertificateTemplate": { + "methods": [ + "UpdateCertificateTemplate", + "UpdateCertificateTemplateAsync" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets.csproj b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets.csproj new file mode 100755 index 000000000000..ef93cd8239f3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsyncSnippet.g.cs new file mode 100755 index 000000000000..487e275e3d71 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsyncSnippet.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 publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async_flattened] + using Google.Cloud.Security.PublicCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKeyAsync + /// + /// 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 CreateExternalAccountKeyAsync() + { + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(parent, externalAccountKey); + } + } + // [END publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..c241cdbd2c73 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectAsyncSnippet.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 publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PublicCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKeyAsync + /// + /// 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 CreateExternalAccountKeyRequestObjectAsync() + { + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateExternalAccountKeyRequest request = new CreateExternalAccountKeyRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + ExternalAccountKey = new ExternalAccountKey(), + }; + // Make the request + ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(request); + } + } + // [END publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..a79d696060fb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectSnippet.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 publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PublicCA.V1; + + public sealed partial class GeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKey + /// + /// 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 CreateExternalAccountKeyRequestObject() + { + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CreateExternalAccountKeyRequest request = new CreateExternalAccountKeyRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + ExternalAccountKey = new ExternalAccountKey(), + }; + // Make the request + ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(request); + } + } + // [END publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..10315b1f42f6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesAsyncSnippet.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 publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PublicCA.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKeyAsync + /// + /// 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 CreateExternalAccountKeyResourceNamesAsync() + { + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(parent, externalAccountKey); + } + } + // [END publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..7e76d330841e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesSnippet.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 publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PublicCA.V1; + + public sealed partial class GeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKey + /// + /// 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 CreateExternalAccountKeyResourceNames() + { + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(parent, externalAccountKey); + } + } + // [END publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeySnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeySnippet.g.cs new file mode 100755 index 000000000000..d7d62528eac1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeySnippet.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 publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync_flattened] + using Google.Cloud.Security.PublicCA.V1; + + public sealed partial class GeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKey + /// + /// 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 CreateExternalAccountKey() + { + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(parent, externalAccountKey); + } + } + // [END publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/snippet_metadata_google.cloud.security.publicca.v1.json b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/snippet_metadata_google.cloud.security.publicca.v1.json new file mode 100755 index 000000000000..174449ecbfc5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.GeneratedSnippets/snippet_metadata_google.cloud.security.publicca.v1.json @@ -0,0 +1,317 @@ +{ + "clientLibrary": { + "name": "Google.Cloud.Security.PublicCA.V1", + "language": "C_SHARP", + "apis": [ + { + "id": "google.cloud.security.publicca.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync", + "title": "CreateExternalAccountKeyRequestObject", + "description": "Snippet for CreateExternalAccountKey", + "file": "PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateExternalAccountKey", + "fullName": "Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient.CreateExternalAccountKey", + "parameters": [ + { + "type": "Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PublicCA.V1.ExternalAccountKey", + "client": { + "shortName": "PublicCertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async", + "title": "CreateExternalAccountKeyRequestObjectAsync", + "description": "Snippet for CreateExternalAccountKeyAsync", + "file": "PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateExternalAccountKeyAsync", + "fullName": "Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "PublicCertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync_flattened", + "title": "CreateExternalAccountKey", + "description": "Snippet for CreateExternalAccountKey", + "file": "PublicCertificateAuthorityServiceClient.CreateExternalAccountKeySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateExternalAccountKey", + "fullName": "Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient.CreateExternalAccountKey", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PublicCA.V1.ExternalAccountKey", + "name": "externalAccountKey" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PublicCA.V1.ExternalAccountKey", + "client": { + "shortName": "PublicCertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async_flattened", + "title": "CreateExternalAccountKeyAsync", + "description": "Snippet for CreateExternalAccountKeyAsync", + "file": "PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateExternalAccountKeyAsync", + "fullName": "Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PublicCA.V1.ExternalAccountKey", + "name": "externalAccountKey" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "PublicCertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync_flattened_resourceNames", + "title": "CreateExternalAccountKeyResourceNames", + "description": "Snippet for CreateExternalAccountKey", + "file": "PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateExternalAccountKey", + "fullName": "Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient.CreateExternalAccountKey", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PublicCA.V1.ExternalAccountKey", + "name": "externalAccountKey" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PublicCA.V1.ExternalAccountKey", + "client": { + "shortName": "PublicCertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async_flattened_resourceNames", + "title": "CreateExternalAccountKeyResourceNamesAsync", + "description": "Snippet for CreateExternalAccountKeyAsync", + "file": "PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateExternalAccountKeyAsync", + "fullName": "Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PublicCA.V1.ExternalAccountKey", + "name": "externalAccountKey" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "PublicCertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + } + ] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.Snippets/Google.Cloud.Security.PublicCA.V1.Snippets.csproj b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.Snippets/Google.Cloud.Security.PublicCA.V1.Snippets.csproj new file mode 100755 index 000000000000..ef93cd8239f3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.Snippets/Google.Cloud.Security.PublicCA.V1.Snippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.Snippets/PublicCertificateAuthorityServiceClientSnippets.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.Snippets/PublicCertificateAuthorityServiceClientSnippets.g.cs new file mode 100755 index 000000000000..1fb96c6b958b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.Snippets/PublicCertificateAuthorityServiceClientSnippets.g.cs @@ -0,0 +1,119 @@ +// 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.ResourceNames; + using Google.Cloud.Security.PublicCA.V1; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKey + public void CreateExternalAccountKeyRequestObject() + { + // Snippet: CreateExternalAccountKey(CreateExternalAccountKeyRequest, CallSettings) + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CreateExternalAccountKeyRequest request = new CreateExternalAccountKeyRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + ExternalAccountKey = new ExternalAccountKey(), + }; + // Make the request + ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(request); + // End snippet + } + + /// Snippet for CreateExternalAccountKeyAsync + public async Task CreateExternalAccountKeyRequestObjectAsync() + { + // Snippet: CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest, CallSettings) + // Additional: CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest, CancellationToken) + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateExternalAccountKeyRequest request = new CreateExternalAccountKeyRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + ExternalAccountKey = new ExternalAccountKey(), + }; + // Make the request + ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(request); + // End snippet + } + + /// Snippet for CreateExternalAccountKey + public void CreateExternalAccountKey() + { + // Snippet: CreateExternalAccountKey(string, ExternalAccountKey, CallSettings) + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(parent, externalAccountKey); + // End snippet + } + + /// Snippet for CreateExternalAccountKeyAsync + public async Task CreateExternalAccountKeyAsync() + { + // Snippet: CreateExternalAccountKeyAsync(string, ExternalAccountKey, CallSettings) + // Additional: CreateExternalAccountKeyAsync(string, ExternalAccountKey, CancellationToken) + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(parent, externalAccountKey); + // End snippet + } + + /// Snippet for CreateExternalAccountKey + public void CreateExternalAccountKeyResourceNames() + { + // Snippet: CreateExternalAccountKey(LocationName, ExternalAccountKey, CallSettings) + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(parent, externalAccountKey); + // End snippet + } + + /// Snippet for CreateExternalAccountKeyAsync + public async Task CreateExternalAccountKeyResourceNamesAsync() + { + // Snippet: CreateExternalAccountKeyAsync(LocationName, ExternalAccountKey, CallSettings) + // Additional: CreateExternalAccountKeyAsync(LocationName, ExternalAccountKey, CancellationToken) + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(parent, externalAccountKey); + // End snippet + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.csproj b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.csproj new file mode 100755 index 000000000000..96dcf096b75f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1.csproj @@ -0,0 +1,47 @@ + + + + + + 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.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/PackageApiMetadata.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/PackageApiMetadata.g.cs new file mode 100755 index 000000000000..3edcdf26b26f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/PackageApiMetadata.g.cs @@ -0,0 +1,37 @@ +// 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 gpr = Google.Protobuf.Reflection; +using scg = System.Collections.Generic; + +namespace Google.Cloud.Security.PublicCA.V1 +{ + /// 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.Security.PublicCA.V1", GetFileDescriptors) + .WithRequestNumericEnumJsonEncoding(true); + + private static scg::IEnumerable GetFileDescriptors() + { + yield return ResourcesReflection.Descriptor; + yield return ServiceReflection.Descriptor; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/PublicCertificateAuthorityServiceClient.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/PublicCertificateAuthorityServiceClient.g.cs new file mode 100755 index 000000000000..7c774cdcb977 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/PublicCertificateAuthorityServiceClient.g.cs @@ -0,0 +1,474 @@ +// 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 grpccore = Grpc.Core; +using grpcinter = Grpc.Core.Interceptors; +using mel = Microsoft.Extensions.Logging; +using proto = Google.Protobuf; +using scg = System.Collections.Generic; +using sco = System.Collections.ObjectModel; +using st = System.Threading; +using stt = System.Threading.Tasks; +using sys = System; + +namespace Google.Cloud.Security.PublicCA.V1 +{ + /// Settings for instances. + public sealed partial class PublicCertificateAuthorityServiceSettings : gaxgrpc::ServiceSettingsBase + { + /// + /// Get a new instance of the default . + /// + /// A new instance of the default . + public static PublicCertificateAuthorityServiceSettings GetDefault() => + new PublicCertificateAuthorityServiceSettings(); + + /// + /// Constructs a new object with default settings. + /// + public PublicCertificateAuthorityServiceSettings() + { + } + + private PublicCertificateAuthorityServiceSettings(PublicCertificateAuthorityServiceSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + CreateExternalAccountKeySettings = existing.CreateExternalAccountKeySettings; + OnCopy(existing); + } + + partial void OnCopy(PublicCertificateAuthorityServiceSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// PublicCertificateAuthorityServiceClient.CreateExternalAccountKey and + /// PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings CreateExternalAccountKeySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public PublicCertificateAuthorityServiceSettings Clone() => new PublicCertificateAuthorityServiceSettings(this); + } + + /// + /// Builder class for to provide simple configuration of + /// credentials, endpoint etc. + /// + public sealed partial class PublicCertificateAuthorityServiceClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public PublicCertificateAuthorityServiceSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public PublicCertificateAuthorityServiceClientBuilder() : base(PublicCertificateAuthorityServiceClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref PublicCertificateAuthorityServiceClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override PublicCertificateAuthorityServiceClient Build() + { + PublicCertificateAuthorityServiceClient 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 PublicCertificateAuthorityServiceClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return PublicCertificateAuthorityServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return PublicCertificateAuthorityServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => PublicCertificateAuthorityServiceClient.ChannelPool; + } + + /// PublicCertificateAuthorityService client wrapper, for convenient use. + /// + /// Manages the resources required for ACME [external account + /// binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for + /// the public certificate authority service. + /// + public abstract partial class PublicCertificateAuthorityServiceClient + { + /// + /// The default endpoint for the PublicCertificateAuthorityService service, which is a host of + /// "publicca.googleapis.com" and a port of 443. + /// + public static string DefaultEndpoint { get; } = "publicca.googleapis.com:443"; + + /// The default PublicCertificateAuthorityService scopes. + /// + /// The default PublicCertificateAuthorityService 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(PublicCertificateAuthorityService.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 PublicCertificateAuthorityServiceClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, + /// endpoint and settings. To specify custom credentials or other settings, use + /// . + /// + /// The created . + public static PublicCertificateAuthorityServiceClient Create() => + new PublicCertificateAuthorityServiceClientBuilder().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 PublicCertificateAuthorityServiceClient Create(grpccore::CallInvoker callInvoker, PublicCertificateAuthorityServiceSettings 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); + } + PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient grpcClient = new PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient(callInvoker); + return new PublicCertificateAuthorityServiceClientImpl(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 PublicCertificateAuthorityService client + public virtual PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient GrpcClient => throw new sys::NotImplementedException(); + + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// 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 ExternalAccountKey CreateExternalAccountKey(CreateExternalAccountKeyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// 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 CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// 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 CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest request, st::CancellationToken cancellationToken) => + CreateExternalAccountKeyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// + /// Required. The parent resource where this external_account_key will be + /// created. Format: projects/[project_id]/locations/[location]. At present + /// only the "global" location is supported. + /// + /// + /// Required. The external account key to create. This field only exists to + /// future-proof the API. At present, all fields in ExternalAccountKey are + /// output only and all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ExternalAccountKey CreateExternalAccountKey(string parent, ExternalAccountKey externalAccountKey, gaxgrpc::CallSettings callSettings = null) => + CreateExternalAccountKey(new CreateExternalAccountKeyRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + ExternalAccountKey = gax::GaxPreconditions.CheckNotNull(externalAccountKey, nameof(externalAccountKey)), + }, callSettings); + + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// + /// Required. The parent resource where this external_account_key will be + /// created. Format: projects/[project_id]/locations/[location]. At present + /// only the "global" location is supported. + /// + /// + /// Required. The external account key to create. This field only exists to + /// future-proof the API. At present, all fields in ExternalAccountKey are + /// output only and all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateExternalAccountKeyAsync(string parent, ExternalAccountKey externalAccountKey, gaxgrpc::CallSettings callSettings = null) => + CreateExternalAccountKeyAsync(new CreateExternalAccountKeyRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + ExternalAccountKey = gax::GaxPreconditions.CheckNotNull(externalAccountKey, nameof(externalAccountKey)), + }, callSettings); + + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// + /// Required. The parent resource where this external_account_key will be + /// created. Format: projects/[project_id]/locations/[location]. At present + /// only the "global" location is supported. + /// + /// + /// Required. The external account key to create. This field only exists to + /// future-proof the API. At present, all fields in ExternalAccountKey are + /// output only and all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateExternalAccountKeyAsync(string parent, ExternalAccountKey externalAccountKey, st::CancellationToken cancellationToken) => + CreateExternalAccountKeyAsync(parent, externalAccountKey, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// + /// Required. The parent resource where this external_account_key will be + /// created. Format: projects/[project_id]/locations/[location]. At present + /// only the "global" location is supported. + /// + /// + /// Required. The external account key to create. This field only exists to + /// future-proof the API. At present, all fields in ExternalAccountKey are + /// output only and all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ExternalAccountKey CreateExternalAccountKey(gagr::LocationName parent, ExternalAccountKey externalAccountKey, gaxgrpc::CallSettings callSettings = null) => + CreateExternalAccountKey(new CreateExternalAccountKeyRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + ExternalAccountKey = gax::GaxPreconditions.CheckNotNull(externalAccountKey, nameof(externalAccountKey)), + }, callSettings); + + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// + /// Required. The parent resource where this external_account_key will be + /// created. Format: projects/[project_id]/locations/[location]. At present + /// only the "global" location is supported. + /// + /// + /// Required. The external account key to create. This field only exists to + /// future-proof the API. At present, all fields in ExternalAccountKey are + /// output only and all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateExternalAccountKeyAsync(gagr::LocationName parent, ExternalAccountKey externalAccountKey, gaxgrpc::CallSettings callSettings = null) => + CreateExternalAccountKeyAsync(new CreateExternalAccountKeyRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + ExternalAccountKey = gax::GaxPreconditions.CheckNotNull(externalAccountKey, nameof(externalAccountKey)), + }, callSettings); + + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// + /// Required. The parent resource where this external_account_key will be + /// created. Format: projects/[project_id]/locations/[location]. At present + /// only the "global" location is supported. + /// + /// + /// Required. The external account key to create. This field only exists to + /// future-proof the API. At present, all fields in ExternalAccountKey are + /// output only and all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateExternalAccountKeyAsync(gagr::LocationName parent, ExternalAccountKey externalAccountKey, st::CancellationToken cancellationToken) => + CreateExternalAccountKeyAsync(parent, externalAccountKey, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + } + + /// PublicCertificateAuthorityService client wrapper implementation, for convenient use. + /// + /// Manages the resources required for ACME [external account + /// binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for + /// the public certificate authority service. + /// + public sealed partial class PublicCertificateAuthorityServiceClientImpl : PublicCertificateAuthorityServiceClient + { + private readonly gaxgrpc::ApiCall _callCreateExternalAccountKey; + + /// + /// Constructs a client wrapper for the PublicCertificateAuthorityService 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 PublicCertificateAuthorityServiceClientImpl(PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient grpcClient, PublicCertificateAuthorityServiceSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + PublicCertificateAuthorityServiceSettings effectiveSettings = settings ?? PublicCertificateAuthorityServiceSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + Settings = effectiveSettings, + Logger = logger, + }); + _callCreateExternalAccountKey = clientHelper.BuildApiCall("CreateExternalAccountKey", grpcClient.CreateExternalAccountKeyAsync, grpcClient.CreateExternalAccountKey, effectiveSettings.CreateExternalAccountKeySettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateExternalAccountKey); + Modify_CreateExternalAccountKeyApiCall(ref _callCreateExternalAccountKey); + 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_CreateExternalAccountKeyApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient grpcClient, PublicCertificateAuthorityServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC PublicCertificateAuthorityService client + public override PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient GrpcClient { get; } + + partial void Modify_CreateExternalAccountKeyRequest(ref CreateExternalAccountKeyRequest request, ref gaxgrpc::CallSettings settings); + + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// 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 ExternalAccountKey CreateExternalAccountKey(CreateExternalAccountKeyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateExternalAccountKeyRequest(ref request, ref callSettings); + return _callCreateExternalAccountKey.Sync(request, callSettings); + } + + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// 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 CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateExternalAccountKeyRequest(ref request, ref callSettings); + return _callCreateExternalAccountKey.Async(request, callSettings); + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/Resources.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/Resources.g.cs new file mode 100755 index 000000000000..30fa18239903 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/Resources.g.cs @@ -0,0 +1,337 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/publicca/v1/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.Security.PublicCA.V1 { + + /// Holder for reflection information generated from google/cloud/security/publicca/v1/resources.proto + public static partial class ResourcesReflection { + + #region Descriptor + /// File descriptor for google/cloud/security/publicca/v1/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( + "CjFnb29nbGUvY2xvdWQvc2VjdXJpdHkvcHVibGljY2EvdjEvcmVzb3VyY2Vz", + "LnByb3RvEiFnb29nbGUuY2xvdWQuc2VjdXJpdHkucHVibGljY2EudjEaH2dv", + "b2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVz", + "b3VyY2UucHJvdG8i3QEKEkV4dGVybmFsQWNjb3VudEtleRIRCgRuYW1lGAEg", + "ASgJQgPgQQMSEwoGa2V5X2lkGAIgASgJQgPgQQMSGAoLYjY0X21hY19rZXkY", + "AyABKAxCA+BBAzqEAepBgAEKKnB1YmxpY2NhLmdvb2dsZWFwaXMuY29tL0V4", + "dGVybmFsQWNjb3VudEtleRJScHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9u", + "cy97bG9jYXRpb259L2V4dGVybmFsQWNjb3VudEtleXMve2V4dGVybmFsX2Fj", + "Y291bnRfa2V5fULvAQolY29tLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wdWJs", + "aWNjYS52MUIOUmVzb3VyY2VzUHJvdG9QAVpBY2xvdWQuZ29vZ2xlLmNvbS9n", + "by9zZWN1cml0eS9wdWJsaWNjYS9hcGl2MS9wdWJsaWNjYXBiO3B1YmxpY2Nh", + "cGL4AQGqAiFHb29nbGUuQ2xvdWQuU2VjdXJpdHkuUHVibGljQ0EuVjHKAiFH", + "b29nbGVcQ2xvdWRcU2VjdXJpdHlcUHVibGljQ0FcVjHqAiVHb29nbGU6OkNs", + "b3VkOjpTZWN1cml0eTo6UHVibGljQ0E6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PublicCA.V1.ExternalAccountKey), global::Google.Cloud.Security.PublicCA.V1.ExternalAccountKey.Parser, new[]{ "Name", "KeyId", "B64MacKey" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A representation of an ExternalAccountKey used for [external account + /// binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) within ACME. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExternalAccountKey : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalAccountKey()); + 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.Security.PublicCA.V1.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 ExternalAccountKey() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalAccountKey(ExternalAccountKey other) : this() { + name_ = other.name_; + keyId_ = other.keyId_; + b64MacKey_ = other.b64MacKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalAccountKey Clone() { + return new ExternalAccountKey(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. Resource name. + /// projects/{project}/locations/{location}/externalAccountKeys/{key_id} + /// + [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 "key_id" field. + public const int KeyIdFieldNumber = 2; + private string keyId_ = ""; + /// + /// Output only. Key ID. + /// It is generated by the PublicCertificateAuthorityService + /// when the ExternalAccountKey is created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyId { + get { return keyId_; } + set { + keyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "b64_mac_key" field. + public const int B64MacKeyFieldNumber = 3; + private pb::ByteString b64MacKey_ = pb::ByteString.Empty; + /// + /// Output only. Base64-URL-encoded HS256 key. + /// It is generated by the PublicCertificateAuthorityService + /// when the ExternalAccountKey is created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString B64MacKey { + get { return b64MacKey_; } + set { + b64MacKey_ = 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 ExternalAccountKey); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExternalAccountKey other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (KeyId != other.KeyId) return false; + if (B64MacKey != other.B64MacKey) 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 (KeyId.Length != 0) hash ^= KeyId.GetHashCode(); + if (B64MacKey.Length != 0) hash ^= B64MacKey.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 (KeyId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(KeyId); + } + if (B64MacKey.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(B64MacKey); + } + 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 (KeyId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(KeyId); + } + if (B64MacKey.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(B64MacKey); + } + 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 (KeyId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyId); + } + if (B64MacKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(B64MacKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExternalAccountKey other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.KeyId.Length != 0) { + KeyId = other.KeyId; + } + if (other.B64MacKey.Length != 0) { + B64MacKey = other.B64MacKey; + } + _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: { + KeyId = input.ReadString(); + break; + } + case 26: { + B64MacKey = input.ReadBytes(); + 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: { + KeyId = input.ReadString(); + break; + } + case 26: { + B64MacKey = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ResourcesResourceNames.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ResourcesResourceNames.g.cs new file mode 100755 index 000000000000..7b723ee07953 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ResourcesResourceNames.g.cs @@ -0,0 +1,306 @@ +// 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 gcspv = Google.Cloud.Security.PublicCA.V1; +using sys = System; + +namespace Google.Cloud.Security.PublicCA.V1 +{ + /// Resource name for the ExternalAccountKey resource. + public sealed partial class ExternalAccountKeyName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}. + /// + ProjectLocationExternalAccountKey = 1, + } + + private static gax::PathTemplate s_projectLocationExternalAccountKey = new gax::PathTemplate("projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static ExternalAccountKeyName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new ExternalAccountKeyName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// + /// The ExternalAccountKey ID. Must not be null or empty. + /// + /// A new instance of constructed from the provided ids. + public static ExternalAccountKeyName FromProjectLocationExternalAccountKey(string projectId, string locationId, string externalAccountKeyId) => + new ExternalAccountKeyName(ResourceNameType.ProjectLocationExternalAccountKey, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), externalAccountKeyId: gax::GaxPreconditions.CheckNotNullOrEmpty(externalAccountKeyId, nameof(externalAccountKeyId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// + /// The ExternalAccountKey ID. Must not be null or empty. + /// + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}. + /// + public static string Format(string projectId, string locationId, string externalAccountKeyId) => + FormatProjectLocationExternalAccountKey(projectId, locationId, externalAccountKeyId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// + /// The ExternalAccountKey ID. Must not be null or empty. + /// + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}. + /// + public static string FormatProjectLocationExternalAccountKey(string projectId, string locationId, string externalAccountKeyId) => + s_projectLocationExternalAccountKey.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(externalAccountKeyId, nameof(externalAccountKeyId))); + + /// + /// 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}/locations/{location}/externalAccountKeys/{external_account_key} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static ExternalAccountKeyName Parse(string externalAccountKeyName) => Parse(externalAccountKeyName, 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}/locations/{location}/externalAccountKeys/{external_account_key} + /// + /// + /// + /// 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 ExternalAccountKeyName Parse(string externalAccountKeyName, bool allowUnparsed) => + TryParse(externalAccountKeyName, allowUnparsed, out ExternalAccountKeyName 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}/locations/{location}/externalAccountKeys/{external_account_key} + /// + /// + /// + /// + /// 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 externalAccountKeyName, out ExternalAccountKeyName result) => + TryParse(externalAccountKeyName, 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}/locations/{location}/externalAccountKeys/{external_account_key} + /// + /// + /// + /// 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 externalAccountKeyName, bool allowUnparsed, out ExternalAccountKeyName result) + { + gax::GaxPreconditions.CheckNotNull(externalAccountKeyName, nameof(externalAccountKeyName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationExternalAccountKey.TryParseName(externalAccountKeyName, out resourceName)) + { + result = FromProjectLocationExternalAccountKey(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(externalAccountKeyName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private ExternalAccountKeyName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string externalAccountKeyId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ExternalAccountKeyId = externalAccountKeyId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of + /// pattern projects/{project}/locations/{location}/externalAccountKeys/{external_account_key} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// + /// The ExternalAccountKey ID. Must not be null or empty. + /// + public ExternalAccountKeyName(string projectId, string locationId, string externalAccountKeyId) : this(ResourceNameType.ProjectLocationExternalAccountKey, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), externalAccountKeyId: gax::GaxPreconditions.CheckNotNullOrEmpty(externalAccountKeyId, nameof(externalAccountKeyId))) + { + } + + /// 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 ExternalAccountKey ID. Will not be null, unless this instance contains an unparsed + /// resource name. + /// + public string ExternalAccountKeyId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { 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.ProjectLocationExternalAccountKey: return s_projectLocationExternalAccountKey.Expand(ProjectId, LocationId, ExternalAccountKeyId); + 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 ExternalAccountKeyName); + + /// + public bool Equals(ExternalAccountKeyName 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 ==(ExternalAccountKeyName a, ExternalAccountKeyName 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 !=(ExternalAccountKeyName a, ExternalAccountKeyName b) => !(a == b); + } + + public partial class ExternalAccountKey + { + /// + /// -typed view over the resource name property. + /// + public gcspv::ExternalAccountKeyName ExternalAccountKeyName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::ExternalAccountKeyName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/Service.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/Service.g.cs new file mode 100755 index 000000000000..873c4bd99ce9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/Service.g.cs @@ -0,0 +1,317 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/publicca/v1/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.Security.PublicCA.V1 { + + /// Holder for reflection information generated from google/cloud/security/publicca/v1/service.proto + public static partial class ServiceReflection { + + #region Descriptor + /// File descriptor for google/cloud/security/publicca/v1/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( + "Ci9nb29nbGUvY2xvdWQvc2VjdXJpdHkvcHVibGljY2EvdjEvc2VydmljZS5w", + "cm90bxIhZ29vZ2xlLmNsb3VkLnNlY3VyaXR5LnB1YmxpY2NhLnYxGhxnb29n", + "bGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5w", + "cm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xl", + "L2FwaS9yZXNvdXJjZS5wcm90bxoxZ29vZ2xlL2Nsb3VkL3NlY3VyaXR5L3B1", + "YmxpY2NhL3YxL3Jlc291cmNlcy5wcm90byK/AQofQ3JlYXRlRXh0ZXJuYWxB", + "Y2NvdW50S2V5UmVxdWVzdBJCCgZwYXJlbnQYASABKAlCMuBBAvpBLBIqcHVi", + "bGljY2EuZ29vZ2xlYXBpcy5jb20vRXh0ZXJuYWxBY2NvdW50S2V5ElgKFGV4", + "dGVybmFsX2FjY291bnRfa2V5GAIgASgLMjUuZ29vZ2xlLmNsb3VkLnNlY3Vy", + "aXR5LnB1YmxpY2NhLnYxLkV4dGVybmFsQWNjb3VudEtleUID4EECMv0CCiFQ", + "dWJsaWNDZXJ0aWZpY2F0ZUF1dGhvcml0eVNlcnZpY2USigIKGENyZWF0ZUV4", + "dGVybmFsQWNjb3VudEtleRJCLmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wdWJs", + "aWNjYS52MS5DcmVhdGVFeHRlcm5hbEFjY291bnRLZXlSZXF1ZXN0GjUuZ29v", + "Z2xlLmNsb3VkLnNlY3VyaXR5LnB1YmxpY2NhLnYxLkV4dGVybmFsQWNjb3Vu", + "dEtleSJz2kEbcGFyZW50LGV4dGVybmFsX2FjY291bnRfa2V5gtPkkwJPIjcv", + "djEve3BhcmVudD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qfS9leHRlcm5hbEFj", + "Y291bnRLZXlzOhRleHRlcm5hbF9hY2NvdW50X2tleRpLykEXcHVibGljY2Eu", + "Z29vZ2xlYXBpcy5jb23SQS5odHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9h", + "dXRoL2Nsb3VkLXBsYXRmb3JtQu0BCiVjb20uZ29vZ2xlLmNsb3VkLnNlY3Vy", + "aXR5LnB1YmxpY2NhLnYxQgxTZXJ2aWNlUHJvdG9QAVpBY2xvdWQuZ29vZ2xl", + "LmNvbS9nby9zZWN1cml0eS9wdWJsaWNjYS9hcGl2MS9wdWJsaWNjYXBiO3B1", + "YmxpY2NhcGL4AQGqAiFHb29nbGUuQ2xvdWQuU2VjdXJpdHkuUHVibGljQ0Eu", + "VjHKAiFHb29nbGVcQ2xvdWRcU2VjdXJpdHlcUHVibGljQ0FcVjHqAiVHb29n", + "bGU6OkNsb3VkOjpTZWN1cml0eTo6UHVibGljQ0E6OlYxYgZwcm90bzM=")); + 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.Security.PublicCA.V1.ResourcesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest), global::Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest.Parser, new[]{ "Parent", "ExternalAccountKey" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] in + /// a given project. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateExternalAccountKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateExternalAccountKeyRequest()); + 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.Security.PublicCA.V1.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 CreateExternalAccountKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateExternalAccountKeyRequest(CreateExternalAccountKeyRequest other) : this() { + parent_ = other.parent_; + externalAccountKey_ = other.externalAccountKey_ != null ? other.externalAccountKey_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateExternalAccountKeyRequest Clone() { + return new CreateExternalAccountKeyRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The parent resource where this external_account_key will be + /// created. Format: projects/[project_id]/locations/[location]. At present + /// only the "global" location is supported. + /// + [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 "external_account_key" field. + public const int ExternalAccountKeyFieldNumber = 2; + private global::Google.Cloud.Security.PublicCA.V1.ExternalAccountKey externalAccountKey_; + /// + /// Required. The external account key to create. This field only exists to + /// future-proof the API. At present, all fields in ExternalAccountKey are + /// output only and all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PublicCA.V1.ExternalAccountKey ExternalAccountKey { + get { return externalAccountKey_; } + set { + externalAccountKey_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateExternalAccountKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateExternalAccountKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(ExternalAccountKey, other.ExternalAccountKey)) 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 (externalAccountKey_ != null) hash ^= ExternalAccountKey.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 (externalAccountKey_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExternalAccountKey); + } + 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 (externalAccountKey_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExternalAccountKey); + } + 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 (externalAccountKey_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalAccountKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateExternalAccountKeyRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.externalAccountKey_ != null) { + if (externalAccountKey_ == null) { + ExternalAccountKey = new global::Google.Cloud.Security.PublicCA.V1.ExternalAccountKey(); + } + ExternalAccountKey.MergeFrom(other.ExternalAccountKey); + } + _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 (externalAccountKey_ == null) { + ExternalAccountKey = new global::Google.Cloud.Security.PublicCA.V1.ExternalAccountKey(); + } + input.ReadMessage(ExternalAccountKey); + 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 (externalAccountKey_ == null) { + ExternalAccountKey = new global::Google.Cloud.Security.PublicCA.V1.ExternalAccountKey(); + } + input.ReadMessage(ExternalAccountKey); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ServiceCollectionExtensions.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ServiceCollectionExtensions.g.cs new file mode 100755 index 000000000000..1db9d9d1e80f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/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 gcspv = Google.Cloud.Security.PublicCA.V1; +using gpr = Google.Protobuf.Reflection; +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 AddPublicCertificateAuthorityServiceClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gcspv::PublicCertificateAuthorityServiceClientBuilder builder = new gcspv::PublicCertificateAuthorityServiceClientBuilder(); + 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 AddPublicCertificateAuthorityServiceClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gcspv::PublicCertificateAuthorityServiceClientBuilder builder = new gcspv::PublicCertificateAuthorityServiceClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ServiceGrpc.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ServiceGrpc.g.cs new file mode 100755 index 000000000000..90965c737dbc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ServiceGrpc.g.cs @@ -0,0 +1,219 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/publicca/v1/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.Security.PublicCA.V1 { + /// + /// Manages the resources required for ACME [external account + /// binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for + /// the public certificate authority service. + /// + public static partial class PublicCertificateAuthorityService + { + static readonly string __ServiceName = "google.cloud.security.publicca.v1.PublicCertificateAuthorityService"; + + [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_security_publicca_v1_CreateExternalAccountKeyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_publicca_v1_ExternalAccountKey = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PublicCA.V1.ExternalAccountKey.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateExternalAccountKey = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateExternalAccountKey", + __Marshaller_google_cloud_security_publicca_v1_CreateExternalAccountKeyRequest, + __Marshaller_google_cloud_security_publicca_v1_ExternalAccountKey); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Cloud.Security.PublicCA.V1.ServiceReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of PublicCertificateAuthorityService + [grpc::BindServiceMethod(typeof(PublicCertificateAuthorityService), "BindService")] + public abstract partial class PublicCertificateAuthorityServiceBase + { + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// 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 CreateExternalAccountKey(global::Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for PublicCertificateAuthorityService + public partial class PublicCertificateAuthorityServiceClient : grpc::ClientBase + { + /// Creates a new client for PublicCertificateAuthorityService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public PublicCertificateAuthorityServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for PublicCertificateAuthorityService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public PublicCertificateAuthorityServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected PublicCertificateAuthorityServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected PublicCertificateAuthorityServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// 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.Security.PublicCA.V1.ExternalAccountKey CreateExternalAccountKey(global::Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateExternalAccountKey(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// 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.Security.PublicCA.V1.ExternalAccountKey CreateExternalAccountKey(global::Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateExternalAccountKey, null, options, request); + } + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// 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 CreateExternalAccountKeyAsync(global::Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateExternalAccountKeyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new + /// [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] + /// bound to the project. + /// + /// 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 CreateExternalAccountKeyAsync(global::Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateExternalAccountKey, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override PublicCertificateAuthorityServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new PublicCertificateAuthorityServiceClient(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(PublicCertificateAuthorityServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_CreateExternalAccountKey, serviceImpl.CreateExternalAccountKey).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, PublicCertificateAuthorityServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_CreateExternalAccountKey, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateExternalAccountKey)); + } + + } +} +#endregion diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ServiceResourceNames.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ServiceResourceNames.g.cs new file mode 100755 index 000000000000..f97b6494dc35 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/Google.Cloud.Security.PublicCA.V1/ServiceResourceNames.g.cs @@ -0,0 +1,33 @@ +// 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; + +namespace Google.Cloud.Security.PublicCA.V1 +{ + public partial class CreateExternalAccountKeyRequest + { + /// + /// -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() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/gapic_metadata.json b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/gapic_metadata.json new file mode 100755 index 000000000000..fea3747ca0b3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1/gapic_metadata.json @@ -0,0 +1,24 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "csharp", + "protoPackage": "google.cloud.security.publicca.v1", + "libraryPackage": "Google.Cloud.Security.PublicCA.V1", + "services": { + "PublicCertificateAuthorityService": { + "clients": { + "grpc": { + "libraryClient": "PublicCertificateAuthorityServiceClient", + "rpcs": { + "CreateExternalAccountKey": { + "methods": [ + "CreateExternalAccountKey", + "CreateExternalAccountKeyAsync" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets.csproj b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets.csproj new file mode 100755 index 000000000000..c1692a148405 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsyncSnippet.g.cs new file mode 100755 index 000000000000..c0feca8e367a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsyncSnippet.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 publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async_flattened] + using Google.Cloud.Security.PublicCA.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKeyAsync + /// + /// 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 CreateExternalAccountKeyAsync() + { + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(parent, externalAccountKey); + } + } + // [END publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..094bc45b446e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectAsyncSnippet.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 publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PublicCA.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKeyAsync + /// + /// 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 CreateExternalAccountKeyRequestObjectAsync() + { + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateExternalAccountKeyRequest request = new CreateExternalAccountKeyRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + ExternalAccountKey = new ExternalAccountKey(), + }; + // Make the request + ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(request); + } + } + // [END publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..30c335429ebe --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectSnippet.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 publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PublicCA.V1Beta1; + + public sealed partial class GeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKey + /// + /// 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 CreateExternalAccountKeyRequestObject() + { + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CreateExternalAccountKeyRequest request = new CreateExternalAccountKeyRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + ExternalAccountKey = new ExternalAccountKey(), + }; + // Make the request + ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(request); + } + } + // [END publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..a0c8a9e989d1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesAsyncSnippet.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 publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PublicCA.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKeyAsync + /// + /// 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 CreateExternalAccountKeyResourceNamesAsync() + { + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(parent, externalAccountKey); + } + } + // [END publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..bb48ca3b4e84 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesSnippet.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 publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Security.PublicCA.V1Beta1; + + public sealed partial class GeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKey + /// + /// 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 CreateExternalAccountKeyResourceNames() + { + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(parent, externalAccountKey); + } + } + // [END publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeySnippet.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeySnippet.g.cs new file mode 100755 index 000000000000..abd40ac50ee4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/PublicCertificateAuthorityServiceClient.CreateExternalAccountKeySnippet.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 publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync_flattened] + using Google.Cloud.Security.PublicCA.V1Beta1; + + public sealed partial class GeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKey + /// + /// 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 CreateExternalAccountKey() + { + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(parent, externalAccountKey); + } + } + // [END publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.security.publicca.v1beta1.json b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.security.publicca.v1beta1.json new file mode 100755 index 000000000000..957e441e245c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.security.publicca.v1beta1.json @@ -0,0 +1,317 @@ +{ + "clientLibrary": { + "name": "Google.Cloud.Security.PublicCA.V1Beta1", + "language": "C_SHARP", + "apis": [ + { + "id": "google.cloud.security.publicca.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync", + "title": "CreateExternalAccountKeyRequestObject", + "description": "Snippet for CreateExternalAccountKey", + "file": "PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateExternalAccountKey", + "fullName": "Google.Cloud.Security.PublicCA.V1Beta1.PublicCertificateAuthorityServiceClient.CreateExternalAccountKey", + "parameters": [ + { + "type": "Google.Cloud.Security.PublicCA.V1Beta1.CreateExternalAccountKeyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey", + "client": { + "shortName": "PublicCertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PublicCA.V1Beta1.PublicCertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async", + "title": "CreateExternalAccountKeyRequestObjectAsync", + "description": "Snippet for CreateExternalAccountKeyAsync", + "file": "PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateExternalAccountKeyAsync", + "fullName": "Google.Cloud.Security.PublicCA.V1Beta1.PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Security.PublicCA.V1Beta1.CreateExternalAccountKeyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "PublicCertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PublicCA.V1Beta1.PublicCertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync_flattened", + "title": "CreateExternalAccountKey", + "description": "Snippet for CreateExternalAccountKey", + "file": "PublicCertificateAuthorityServiceClient.CreateExternalAccountKeySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateExternalAccountKey", + "fullName": "Google.Cloud.Security.PublicCA.V1Beta1.PublicCertificateAuthorityServiceClient.CreateExternalAccountKey", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey", + "name": "externalAccountKey" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey", + "client": { + "shortName": "PublicCertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PublicCA.V1Beta1.PublicCertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async_flattened", + "title": "CreateExternalAccountKeyAsync", + "description": "Snippet for CreateExternalAccountKeyAsync", + "file": "PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateExternalAccountKeyAsync", + "fullName": "Google.Cloud.Security.PublicCA.V1Beta1.PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey", + "name": "externalAccountKey" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "PublicCertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PublicCA.V1Beta1.PublicCertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync_flattened_resourceNames", + "title": "CreateExternalAccountKeyResourceNames", + "description": "Snippet for CreateExternalAccountKey", + "file": "PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateExternalAccountKey", + "fullName": "Google.Cloud.Security.PublicCA.V1Beta1.PublicCertificateAuthorityServiceClient.CreateExternalAccountKey", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey", + "name": "externalAccountKey" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey", + "client": { + "shortName": "PublicCertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PublicCA.V1Beta1.PublicCertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async_flattened_resourceNames", + "title": "CreateExternalAccountKeyResourceNamesAsync", + "description": "Snippet for CreateExternalAccountKeyAsync", + "file": "PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateExternalAccountKeyAsync", + "fullName": "Google.Cloud.Security.PublicCA.V1Beta1.PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey", + "name": "externalAccountKey" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "PublicCertificateAuthorityServiceClient", + "fullName": "Google.Cloud.Security.PublicCA.V1Beta1.PublicCertificateAuthorityServiceClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + } + ] +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.Snippets/Google.Cloud.Security.PublicCA.V1Beta1.Snippets.csproj b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.Snippets/Google.Cloud.Security.PublicCA.V1Beta1.Snippets.csproj new file mode 100755 index 000000000000..c1692a148405 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.Snippets/Google.Cloud.Security.PublicCA.V1Beta1.Snippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.Snippets/PublicCertificateAuthorityServiceClientSnippets.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.Snippets/PublicCertificateAuthorityServiceClientSnippets.g.cs new file mode 100755 index 000000000000..b8bf9b999087 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.Snippets/PublicCertificateAuthorityServiceClientSnippets.g.cs @@ -0,0 +1,119 @@ +// 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.ResourceNames; + using Google.Cloud.Security.PublicCA.V1Beta1; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedPublicCertificateAuthorityServiceClientSnippets + { + /// Snippet for CreateExternalAccountKey + public void CreateExternalAccountKeyRequestObject() + { + // Snippet: CreateExternalAccountKey(CreateExternalAccountKeyRequest, CallSettings) + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + CreateExternalAccountKeyRequest request = new CreateExternalAccountKeyRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + ExternalAccountKey = new ExternalAccountKey(), + }; + // Make the request + ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(request); + // End snippet + } + + /// Snippet for CreateExternalAccountKeyAsync + public async Task CreateExternalAccountKeyRequestObjectAsync() + { + // Snippet: CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest, CallSettings) + // Additional: CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest, CancellationToken) + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateExternalAccountKeyRequest request = new CreateExternalAccountKeyRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + ExternalAccountKey = new ExternalAccountKey(), + }; + // Make the request + ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(request); + // End snippet + } + + /// Snippet for CreateExternalAccountKey + public void CreateExternalAccountKey() + { + // Snippet: CreateExternalAccountKey(string, ExternalAccountKey, CallSettings) + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(parent, externalAccountKey); + // End snippet + } + + /// Snippet for CreateExternalAccountKeyAsync + public async Task CreateExternalAccountKeyAsync() + { + // Snippet: CreateExternalAccountKeyAsync(string, ExternalAccountKey, CallSettings) + // Additional: CreateExternalAccountKeyAsync(string, ExternalAccountKey, CancellationToken) + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(parent, externalAccountKey); + // End snippet + } + + /// Snippet for CreateExternalAccountKey + public void CreateExternalAccountKeyResourceNames() + { + // Snippet: CreateExternalAccountKey(LocationName, ExternalAccountKey, CallSettings) + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(parent, externalAccountKey); + // End snippet + } + + /// Snippet for CreateExternalAccountKeyAsync + public async Task CreateExternalAccountKeyResourceNamesAsync() + { + // Snippet: CreateExternalAccountKeyAsync(LocationName, ExternalAccountKey, CallSettings) + // Additional: CreateExternalAccountKeyAsync(LocationName, ExternalAccountKey, CancellationToken) + // Create client + PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + ExternalAccountKey externalAccountKey = new ExternalAccountKey(); + // Make the request + ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(parent, externalAccountKey); + // End snippet + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.csproj b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.csproj new file mode 100755 index 000000000000..96dcf096b75f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1.csproj @@ -0,0 +1,47 @@ + + + + + + 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.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/PackageApiMetadata.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/PackageApiMetadata.g.cs new file mode 100755 index 000000000000..a0c374e9d1b4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/PackageApiMetadata.g.cs @@ -0,0 +1,37 @@ +// 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 gpr = Google.Protobuf.Reflection; +using scg = System.Collections.Generic; + +namespace Google.Cloud.Security.PublicCA.V1Beta1 +{ + /// 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.Security.PublicCA.V1Beta1", GetFileDescriptors) + .WithRequestNumericEnumJsonEncoding(true); + + private static scg::IEnumerable GetFileDescriptors() + { + yield return ResourcesReflection.Descriptor; + yield return ServiceReflection.Descriptor; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/PublicCertificateAuthorityServiceClient.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/PublicCertificateAuthorityServiceClient.g.cs new file mode 100755 index 000000000000..2e514c5b5274 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/PublicCertificateAuthorityServiceClient.g.cs @@ -0,0 +1,452 @@ +// 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 grpccore = Grpc.Core; +using grpcinter = Grpc.Core.Interceptors; +using mel = Microsoft.Extensions.Logging; +using proto = Google.Protobuf; +using scg = System.Collections.Generic; +using sco = System.Collections.ObjectModel; +using st = System.Threading; +using stt = System.Threading.Tasks; +using sys = System; + +namespace Google.Cloud.Security.PublicCA.V1Beta1 +{ + /// Settings for instances. + public sealed partial class PublicCertificateAuthorityServiceSettings : gaxgrpc::ServiceSettingsBase + { + /// + /// Get a new instance of the default . + /// + /// A new instance of the default . + public static PublicCertificateAuthorityServiceSettings GetDefault() => + new PublicCertificateAuthorityServiceSettings(); + + /// + /// Constructs a new object with default settings. + /// + public PublicCertificateAuthorityServiceSettings() + { + } + + private PublicCertificateAuthorityServiceSettings(PublicCertificateAuthorityServiceSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + CreateExternalAccountKeySettings = existing.CreateExternalAccountKeySettings; + OnCopy(existing); + } + + partial void OnCopy(PublicCertificateAuthorityServiceSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// PublicCertificateAuthorityServiceClient.CreateExternalAccountKey and + /// PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings CreateExternalAccountKeySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public PublicCertificateAuthorityServiceSettings Clone() => new PublicCertificateAuthorityServiceSettings(this); + } + + /// + /// Builder class for to provide simple configuration of + /// credentials, endpoint etc. + /// + public sealed partial class PublicCertificateAuthorityServiceClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public PublicCertificateAuthorityServiceSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public PublicCertificateAuthorityServiceClientBuilder() : base(PublicCertificateAuthorityServiceClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref PublicCertificateAuthorityServiceClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override PublicCertificateAuthorityServiceClient Build() + { + PublicCertificateAuthorityServiceClient 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 PublicCertificateAuthorityServiceClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return PublicCertificateAuthorityServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return PublicCertificateAuthorityServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => PublicCertificateAuthorityServiceClient.ChannelPool; + } + + /// PublicCertificateAuthorityService client wrapper, for convenient use. + /// + /// Manages the resources required for ACME [external account + /// binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for + /// the public certificate authority service. + /// + public abstract partial class PublicCertificateAuthorityServiceClient + { + /// + /// The default endpoint for the PublicCertificateAuthorityService service, which is a host of + /// "publicca.googleapis.com" and a port of 443. + /// + public static string DefaultEndpoint { get; } = "publicca.googleapis.com:443"; + + /// The default PublicCertificateAuthorityService scopes. + /// + /// The default PublicCertificateAuthorityService 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(PublicCertificateAuthorityService.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 PublicCertificateAuthorityServiceClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, + /// endpoint and settings. To specify custom credentials or other settings, use + /// . + /// + /// The created . + public static PublicCertificateAuthorityServiceClient Create() => + new PublicCertificateAuthorityServiceClientBuilder().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 PublicCertificateAuthorityServiceClient Create(grpccore::CallInvoker callInvoker, PublicCertificateAuthorityServiceSettings 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); + } + PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient grpcClient = new PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient(callInvoker); + return new PublicCertificateAuthorityServiceClientImpl(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 PublicCertificateAuthorityService client + public virtual PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient GrpcClient => throw new sys::NotImplementedException(); + + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// 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 ExternalAccountKey CreateExternalAccountKey(CreateExternalAccountKeyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// 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 CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// 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 CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest request, st::CancellationToken cancellationToken) => + CreateExternalAccountKeyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// + /// Required. The parent resource where this external_account_key will be created. + /// Format: projects/[project_id]/locations/[location]. + /// At present only the "global" location is supported. + /// + /// + /// Required. The external account key to create. This field only exists to future-proof + /// the API. At present, all fields in ExternalAccountKey are output only and + /// all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ExternalAccountKey CreateExternalAccountKey(string parent, ExternalAccountKey externalAccountKey, gaxgrpc::CallSettings callSettings = null) => + CreateExternalAccountKey(new CreateExternalAccountKeyRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + ExternalAccountKey = gax::GaxPreconditions.CheckNotNull(externalAccountKey, nameof(externalAccountKey)), + }, callSettings); + + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// + /// Required. The parent resource where this external_account_key will be created. + /// Format: projects/[project_id]/locations/[location]. + /// At present only the "global" location is supported. + /// + /// + /// Required. The external account key to create. This field only exists to future-proof + /// the API. At present, all fields in ExternalAccountKey are output only and + /// all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateExternalAccountKeyAsync(string parent, ExternalAccountKey externalAccountKey, gaxgrpc::CallSettings callSettings = null) => + CreateExternalAccountKeyAsync(new CreateExternalAccountKeyRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + ExternalAccountKey = gax::GaxPreconditions.CheckNotNull(externalAccountKey, nameof(externalAccountKey)), + }, callSettings); + + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// + /// Required. The parent resource where this external_account_key will be created. + /// Format: projects/[project_id]/locations/[location]. + /// At present only the "global" location is supported. + /// + /// + /// Required. The external account key to create. This field only exists to future-proof + /// the API. At present, all fields in ExternalAccountKey are output only and + /// all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateExternalAccountKeyAsync(string parent, ExternalAccountKey externalAccountKey, st::CancellationToken cancellationToken) => + CreateExternalAccountKeyAsync(parent, externalAccountKey, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// + /// Required. The parent resource where this external_account_key will be created. + /// Format: projects/[project_id]/locations/[location]. + /// At present only the "global" location is supported. + /// + /// + /// Required. The external account key to create. This field only exists to future-proof + /// the API. At present, all fields in ExternalAccountKey are output only and + /// all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ExternalAccountKey CreateExternalAccountKey(gagr::LocationName parent, ExternalAccountKey externalAccountKey, gaxgrpc::CallSettings callSettings = null) => + CreateExternalAccountKey(new CreateExternalAccountKeyRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + ExternalAccountKey = gax::GaxPreconditions.CheckNotNull(externalAccountKey, nameof(externalAccountKey)), + }, callSettings); + + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// + /// Required. The parent resource where this external_account_key will be created. + /// Format: projects/[project_id]/locations/[location]. + /// At present only the "global" location is supported. + /// + /// + /// Required. The external account key to create. This field only exists to future-proof + /// the API. At present, all fields in ExternalAccountKey are output only and + /// all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateExternalAccountKeyAsync(gagr::LocationName parent, ExternalAccountKey externalAccountKey, gaxgrpc::CallSettings callSettings = null) => + CreateExternalAccountKeyAsync(new CreateExternalAccountKeyRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + ExternalAccountKey = gax::GaxPreconditions.CheckNotNull(externalAccountKey, nameof(externalAccountKey)), + }, callSettings); + + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// + /// Required. The parent resource where this external_account_key will be created. + /// Format: projects/[project_id]/locations/[location]. + /// At present only the "global" location is supported. + /// + /// + /// Required. The external account key to create. This field only exists to future-proof + /// the API. At present, all fields in ExternalAccountKey are output only and + /// all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateExternalAccountKeyAsync(gagr::LocationName parent, ExternalAccountKey externalAccountKey, st::CancellationToken cancellationToken) => + CreateExternalAccountKeyAsync(parent, externalAccountKey, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + } + + /// PublicCertificateAuthorityService client wrapper implementation, for convenient use. + /// + /// Manages the resources required for ACME [external account + /// binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for + /// the public certificate authority service. + /// + public sealed partial class PublicCertificateAuthorityServiceClientImpl : PublicCertificateAuthorityServiceClient + { + private readonly gaxgrpc::ApiCall _callCreateExternalAccountKey; + + /// + /// Constructs a client wrapper for the PublicCertificateAuthorityService 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 PublicCertificateAuthorityServiceClientImpl(PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient grpcClient, PublicCertificateAuthorityServiceSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + PublicCertificateAuthorityServiceSettings effectiveSettings = settings ?? PublicCertificateAuthorityServiceSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + Settings = effectiveSettings, + Logger = logger, + }); + _callCreateExternalAccountKey = clientHelper.BuildApiCall("CreateExternalAccountKey", grpcClient.CreateExternalAccountKeyAsync, grpcClient.CreateExternalAccountKey, effectiveSettings.CreateExternalAccountKeySettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateExternalAccountKey); + Modify_CreateExternalAccountKeyApiCall(ref _callCreateExternalAccountKey); + 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_CreateExternalAccountKeyApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient grpcClient, PublicCertificateAuthorityServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC PublicCertificateAuthorityService client + public override PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient GrpcClient { get; } + + partial void Modify_CreateExternalAccountKeyRequest(ref CreateExternalAccountKeyRequest request, ref gaxgrpc::CallSettings settings); + + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// 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 ExternalAccountKey CreateExternalAccountKey(CreateExternalAccountKeyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateExternalAccountKeyRequest(ref request, ref callSettings); + return _callCreateExternalAccountKey.Sync(request, callSettings); + } + + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// 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 CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateExternalAccountKeyRequest(ref request, ref callSettings); + return _callCreateExternalAccountKey.Async(request, callSettings); + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/Resources.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/Resources.g.cs new file mode 100755 index 000000000000..e91754d1c01f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/Resources.g.cs @@ -0,0 +1,338 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/publicca/v1beta1/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.Security.PublicCA.V1Beta1 { + + /// Holder for reflection information generated from google/cloud/security/publicca/v1beta1/resources.proto + public static partial class ResourcesReflection { + + #region Descriptor + /// File descriptor for google/cloud/security/publicca/v1beta1/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( + "CjZnb29nbGUvY2xvdWQvc2VjdXJpdHkvcHVibGljY2EvdjFiZXRhMS9yZXNv", + "dXJjZXMucHJvdG8SJmdvb2dsZS5jbG91ZC5zZWN1cml0eS5wdWJsaWNjYS52", + "MWJldGExGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n", + "bGUvYXBpL3Jlc291cmNlLnByb3RvIt0BChJFeHRlcm5hbEFjY291bnRLZXkS", + "EQoEbmFtZRgBIAEoCUID4EEDEhMKBmtleV9pZBgCIAEoCUID4EEDEhgKC2I2", + "NF9tYWNfa2V5GAMgASgMQgPgQQM6hAHqQYABCipwdWJsaWNjYS5nb29nbGVh", + "cGlzLmNvbS9FeHRlcm5hbEFjY291bnRLZXkSUnByb2plY3RzL3twcm9qZWN0", + "fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9leHRlcm5hbEFjY291bnRLZXlzL3tl", + "eHRlcm5hbF9hY2NvdW50X2tleX1CiAIKKmNvbS5nb29nbGUuY2xvdWQuc2Vj", + "dXJpdHkucHVibGljY2EudjFiZXRhMUIOUmVzb3VyY2VzUHJvdG9QAVpGY2xv", + "dWQuZ29vZ2xlLmNvbS9nby9zZWN1cml0eS9wdWJsaWNjYS9hcGl2MWJldGEx", + "L3B1YmxpY2NhcGI7cHVibGljY2FwYvgBAaoCJkdvb2dsZS5DbG91ZC5TZWN1", + "cml0eS5QdWJsaWNDQS5WMUJldGExygImR29vZ2xlXENsb3VkXFNlY3VyaXR5", + "XFB1YmxpY0NBXFYxYmV0YTHqAipHb29nbGU6OkNsb3VkOjpTZWN1cml0eTo6", + "UHVibGljQ0E6OlYxYmV0YTFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey), global::Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey.Parser, new[]{ "Name", "KeyId", "B64MacKey" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A representation of an ExternalAccountKey used for [external account + /// binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) within ACME. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExternalAccountKey : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalAccountKey()); + 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.Security.PublicCA.V1Beta1.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 ExternalAccountKey() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalAccountKey(ExternalAccountKey other) : this() { + name_ = other.name_; + keyId_ = other.keyId_; + b64MacKey_ = other.b64MacKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalAccountKey Clone() { + return new ExternalAccountKey(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. Resource name. + /// projects/{project}/locations/{location}/externalAccountKeys/{key_id} + /// + [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 "key_id" field. + public const int KeyIdFieldNumber = 2; + private string keyId_ = ""; + /// + /// Output only. Key ID. + /// It is generated by the PublicCertificateAuthorityService + /// when the ExternalAccountKey is created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyId { + get { return keyId_; } + set { + keyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "b64_mac_key" field. + public const int B64MacKeyFieldNumber = 3; + private pb::ByteString b64MacKey_ = pb::ByteString.Empty; + /// + /// Output only. Base64-URL-encoded HS256 key. + /// It is generated by the PublicCertificateAuthorityService + /// when the ExternalAccountKey is created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString B64MacKey { + get { return b64MacKey_; } + set { + b64MacKey_ = 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 ExternalAccountKey); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExternalAccountKey other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (KeyId != other.KeyId) return false; + if (B64MacKey != other.B64MacKey) 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 (KeyId.Length != 0) hash ^= KeyId.GetHashCode(); + if (B64MacKey.Length != 0) hash ^= B64MacKey.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 (KeyId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(KeyId); + } + if (B64MacKey.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(B64MacKey); + } + 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 (KeyId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(KeyId); + } + if (B64MacKey.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(B64MacKey); + } + 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 (KeyId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyId); + } + if (B64MacKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(B64MacKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExternalAccountKey other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.KeyId.Length != 0) { + KeyId = other.KeyId; + } + if (other.B64MacKey.Length != 0) { + B64MacKey = other.B64MacKey; + } + _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: { + KeyId = input.ReadString(); + break; + } + case 26: { + B64MacKey = input.ReadBytes(); + 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: { + KeyId = input.ReadString(); + break; + } + case 26: { + B64MacKey = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ResourcesResourceNames.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ResourcesResourceNames.g.cs new file mode 100755 index 000000000000..7f1de3e0f443 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ResourcesResourceNames.g.cs @@ -0,0 +1,306 @@ +// 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 gcspv = Google.Cloud.Security.PublicCA.V1Beta1; +using sys = System; + +namespace Google.Cloud.Security.PublicCA.V1Beta1 +{ + /// Resource name for the ExternalAccountKey resource. + public sealed partial class ExternalAccountKeyName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}. + /// + ProjectLocationExternalAccountKey = 1, + } + + private static gax::PathTemplate s_projectLocationExternalAccountKey = new gax::PathTemplate("projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static ExternalAccountKeyName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new ExternalAccountKeyName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// + /// The ExternalAccountKey ID. Must not be null or empty. + /// + /// A new instance of constructed from the provided ids. + public static ExternalAccountKeyName FromProjectLocationExternalAccountKey(string projectId, string locationId, string externalAccountKeyId) => + new ExternalAccountKeyName(ResourceNameType.ProjectLocationExternalAccountKey, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), externalAccountKeyId: gax::GaxPreconditions.CheckNotNullOrEmpty(externalAccountKeyId, nameof(externalAccountKeyId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// + /// The ExternalAccountKey ID. Must not be null or empty. + /// + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}. + /// + public static string Format(string projectId, string locationId, string externalAccountKeyId) => + FormatProjectLocationExternalAccountKey(projectId, locationId, externalAccountKeyId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// + /// The ExternalAccountKey ID. Must not be null or empty. + /// + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}. + /// + public static string FormatProjectLocationExternalAccountKey(string projectId, string locationId, string externalAccountKeyId) => + s_projectLocationExternalAccountKey.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(externalAccountKeyId, nameof(externalAccountKeyId))); + + /// + /// 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}/locations/{location}/externalAccountKeys/{external_account_key} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static ExternalAccountKeyName Parse(string externalAccountKeyName) => Parse(externalAccountKeyName, 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}/locations/{location}/externalAccountKeys/{external_account_key} + /// + /// + /// + /// 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 ExternalAccountKeyName Parse(string externalAccountKeyName, bool allowUnparsed) => + TryParse(externalAccountKeyName, allowUnparsed, out ExternalAccountKeyName 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}/locations/{location}/externalAccountKeys/{external_account_key} + /// + /// + /// + /// + /// 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 externalAccountKeyName, out ExternalAccountKeyName result) => + TryParse(externalAccountKeyName, 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}/locations/{location}/externalAccountKeys/{external_account_key} + /// + /// + /// + /// 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 externalAccountKeyName, bool allowUnparsed, out ExternalAccountKeyName result) + { + gax::GaxPreconditions.CheckNotNull(externalAccountKeyName, nameof(externalAccountKeyName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationExternalAccountKey.TryParseName(externalAccountKeyName, out resourceName)) + { + result = FromProjectLocationExternalAccountKey(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(externalAccountKeyName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private ExternalAccountKeyName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string externalAccountKeyId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ExternalAccountKeyId = externalAccountKeyId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of + /// pattern projects/{project}/locations/{location}/externalAccountKeys/{external_account_key} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// + /// The ExternalAccountKey ID. Must not be null or empty. + /// + public ExternalAccountKeyName(string projectId, string locationId, string externalAccountKeyId) : this(ResourceNameType.ProjectLocationExternalAccountKey, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), externalAccountKeyId: gax::GaxPreconditions.CheckNotNullOrEmpty(externalAccountKeyId, nameof(externalAccountKeyId))) + { + } + + /// 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 ExternalAccountKey ID. Will not be null, unless this instance contains an unparsed + /// resource name. + /// + public string ExternalAccountKeyId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { 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.ProjectLocationExternalAccountKey: return s_projectLocationExternalAccountKey.Expand(ProjectId, LocationId, ExternalAccountKeyId); + 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 ExternalAccountKeyName); + + /// + public bool Equals(ExternalAccountKeyName 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 ==(ExternalAccountKeyName a, ExternalAccountKeyName 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 !=(ExternalAccountKeyName a, ExternalAccountKeyName b) => !(a == b); + } + + public partial class ExternalAccountKey + { + /// + /// -typed view over the resource name property. + /// + public gcspv::ExternalAccountKeyName ExternalAccountKeyName + { + get => string.IsNullOrEmpty(Name) ? null : gcspv::ExternalAccountKeyName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/Service.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/Service.g.cs new file mode 100755 index 000000000000..11e1b7d09f76 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/Service.g.cs @@ -0,0 +1,317 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/publicca/v1beta1/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.Security.PublicCA.V1Beta1 { + + /// Holder for reflection information generated from google/cloud/security/publicca/v1beta1/service.proto + public static partial class ServiceReflection { + + #region Descriptor + /// File descriptor for google/cloud/security/publicca/v1beta1/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( + "CjRnb29nbGUvY2xvdWQvc2VjdXJpdHkvcHVibGljY2EvdjFiZXRhMS9zZXJ2", + "aWNlLnByb3RvEiZnb29nbGUuY2xvdWQuc2VjdXJpdHkucHVibGljY2EudjFi", + "ZXRhMRocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2Fw", + "aS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJv", + "dG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aNmdvb2dsZS9jbG91ZC9z", + "ZWN1cml0eS9wdWJsaWNjYS92MWJldGExL3Jlc291cmNlcy5wcm90byLEAQof", + "Q3JlYXRlRXh0ZXJuYWxBY2NvdW50S2V5UmVxdWVzdBJCCgZwYXJlbnQYASAB", + "KAlCMuBBAvpBLBIqcHVibGljY2EuZ29vZ2xlYXBpcy5jb20vRXh0ZXJuYWxB", + "Y2NvdW50S2V5El0KFGV4dGVybmFsX2FjY291bnRfa2V5GAIgASgLMjouZ29v", + "Z2xlLmNsb3VkLnNlY3VyaXR5LnB1YmxpY2NhLnYxYmV0YTEuRXh0ZXJuYWxB", + "Y2NvdW50S2V5QgPgQQIyjAMKIVB1YmxpY0NlcnRpZmljYXRlQXV0aG9yaXR5", + "U2VydmljZRKZAgoYQ3JlYXRlRXh0ZXJuYWxBY2NvdW50S2V5EkcuZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5LnB1YmxpY2NhLnYxYmV0YTEuQ3JlYXRlRXh0ZXJu", + "YWxBY2NvdW50S2V5UmVxdWVzdBo6Lmdvb2dsZS5jbG91ZC5zZWN1cml0eS5w", + "dWJsaWNjYS52MWJldGExLkV4dGVybmFsQWNjb3VudEtleSJ42kEbcGFyZW50", + "LGV4dGVybmFsX2FjY291bnRfa2V5gtPkkwJUIjwvdjFiZXRhMS97cGFyZW50", + "PXByb2plY3RzLyovbG9jYXRpb25zLyp9L2V4dGVybmFsQWNjb3VudEtleXM6", + "FGV4dGVybmFsX2FjY291bnRfa2V5GkvKQRdwdWJsaWNjYS5nb29nbGVhcGlz", + "LmNvbdJBLmh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvY2xvdWQt", + "cGxhdGZvcm1ChgIKKmNvbS5nb29nbGUuY2xvdWQuc2VjdXJpdHkucHVibGlj", + "Y2EudjFiZXRhMUIMU2VydmljZVByb3RvUAFaRmNsb3VkLmdvb2dsZS5jb20v", + "Z28vc2VjdXJpdHkvcHVibGljY2EvYXBpdjFiZXRhMS9wdWJsaWNjYXBiO3B1", + "YmxpY2NhcGL4AQGqAiZHb29nbGUuQ2xvdWQuU2VjdXJpdHkuUHVibGljQ0Eu", + "VjFCZXRhMcoCJkdvb2dsZVxDbG91ZFxTZWN1cml0eVxQdWJsaWNDQVxWMWJl", + "dGEx6gIqR29vZ2xlOjpDbG91ZDo6U2VjdXJpdHk6OlB1YmxpY0NBOjpWMWJl", + "dGExYgZwcm90bzM=")); + 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.Security.PublicCA.V1Beta1.ResourcesReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Security.PublicCA.V1Beta1.CreateExternalAccountKeyRequest), global::Google.Cloud.Security.PublicCA.V1Beta1.CreateExternalAccountKeyRequest.Parser, new[]{ "Parent", "ExternalAccountKey" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] in a given project. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateExternalAccountKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateExternalAccountKeyRequest()); + 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.Security.PublicCA.V1Beta1.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 CreateExternalAccountKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateExternalAccountKeyRequest(CreateExternalAccountKeyRequest other) : this() { + parent_ = other.parent_; + externalAccountKey_ = other.externalAccountKey_ != null ? other.externalAccountKey_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateExternalAccountKeyRequest Clone() { + return new CreateExternalAccountKeyRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The parent resource where this external_account_key will be created. + /// Format: projects/[project_id]/locations/[location]. + /// At present only the "global" location is supported. + /// + [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 "external_account_key" field. + public const int ExternalAccountKeyFieldNumber = 2; + private global::Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey externalAccountKey_; + /// + /// Required. The external account key to create. This field only exists to future-proof + /// the API. At present, all fields in ExternalAccountKey are output only and + /// all values are ignored. For the purpose of the + /// CreateExternalAccountKeyRequest, set it to a default/empty value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey ExternalAccountKey { + get { return externalAccountKey_; } + set { + externalAccountKey_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateExternalAccountKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateExternalAccountKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(ExternalAccountKey, other.ExternalAccountKey)) 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 (externalAccountKey_ != null) hash ^= ExternalAccountKey.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 (externalAccountKey_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExternalAccountKey); + } + 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 (externalAccountKey_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExternalAccountKey); + } + 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 (externalAccountKey_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalAccountKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateExternalAccountKeyRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.externalAccountKey_ != null) { + if (externalAccountKey_ == null) { + ExternalAccountKey = new global::Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey(); + } + ExternalAccountKey.MergeFrom(other.ExternalAccountKey); + } + _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 (externalAccountKey_ == null) { + ExternalAccountKey = new global::Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey(); + } + input.ReadMessage(ExternalAccountKey); + 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 (externalAccountKey_ == null) { + ExternalAccountKey = new global::Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey(); + } + input.ReadMessage(ExternalAccountKey); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ServiceCollectionExtensions.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ServiceCollectionExtensions.g.cs new file mode 100755 index 000000000000..ef35cbf65b26 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/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 gcspv = Google.Cloud.Security.PublicCA.V1Beta1; +using gpr = Google.Protobuf.Reflection; +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 AddPublicCertificateAuthorityServiceClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gcspv::PublicCertificateAuthorityServiceClientBuilder builder = new gcspv::PublicCertificateAuthorityServiceClientBuilder(); + 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 AddPublicCertificateAuthorityServiceClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gcspv::PublicCertificateAuthorityServiceClientBuilder builder = new gcspv::PublicCertificateAuthorityServiceClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ServiceGrpc.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ServiceGrpc.g.cs new file mode 100755 index 000000000000..4387a249bad6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ServiceGrpc.g.cs @@ -0,0 +1,209 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/publicca/v1beta1/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.Security.PublicCA.V1Beta1 { + /// + /// Manages the resources required for ACME [external account + /// binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for + /// the public certificate authority service. + /// + public static partial class PublicCertificateAuthorityService + { + static readonly string __ServiceName = "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService"; + + [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_security_publicca_v1beta1_CreateExternalAccountKeyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PublicCA.V1Beta1.CreateExternalAccountKeyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_security_publicca_v1beta1_ExternalAccountKey = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateExternalAccountKey = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateExternalAccountKey", + __Marshaller_google_cloud_security_publicca_v1beta1_CreateExternalAccountKeyRequest, + __Marshaller_google_cloud_security_publicca_v1beta1_ExternalAccountKey); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Cloud.Security.PublicCA.V1Beta1.ServiceReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of PublicCertificateAuthorityService + [grpc::BindServiceMethod(typeof(PublicCertificateAuthorityService), "BindService")] + public abstract partial class PublicCertificateAuthorityServiceBase + { + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// 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 CreateExternalAccountKey(global::Google.Cloud.Security.PublicCA.V1Beta1.CreateExternalAccountKeyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for PublicCertificateAuthorityService + public partial class PublicCertificateAuthorityServiceClient : grpc::ClientBase + { + /// Creates a new client for PublicCertificateAuthorityService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public PublicCertificateAuthorityServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for PublicCertificateAuthorityService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public PublicCertificateAuthorityServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected PublicCertificateAuthorityServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected PublicCertificateAuthorityServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// 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.Security.PublicCA.V1Beta1.ExternalAccountKey CreateExternalAccountKey(global::Google.Cloud.Security.PublicCA.V1Beta1.CreateExternalAccountKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateExternalAccountKey(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// 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.Security.PublicCA.V1Beta1.ExternalAccountKey CreateExternalAccountKey(global::Google.Cloud.Security.PublicCA.V1Beta1.CreateExternalAccountKeyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateExternalAccountKey, null, options, request); + } + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// 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 CreateExternalAccountKeyAsync(global::Google.Cloud.Security.PublicCA.V1Beta1.CreateExternalAccountKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateExternalAccountKeyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. + /// + /// 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 CreateExternalAccountKeyAsync(global::Google.Cloud.Security.PublicCA.V1Beta1.CreateExternalAccountKeyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateExternalAccountKey, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override PublicCertificateAuthorityServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new PublicCertificateAuthorityServiceClient(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(PublicCertificateAuthorityServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_CreateExternalAccountKey, serviceImpl.CreateExternalAccountKey).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, PublicCertificateAuthorityServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_CreateExternalAccountKey, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateExternalAccountKey)); + } + + } +} +#endregion diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ServiceResourceNames.g.cs b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ServiceResourceNames.g.cs new file mode 100755 index 000000000000..353c6b4f70f1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/Google.Cloud.Security.PublicCA.V1Beta1/ServiceResourceNames.g.cs @@ -0,0 +1,33 @@ +// 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; + +namespace Google.Cloud.Security.PublicCA.V1Beta1 +{ + public partial class CreateExternalAccountKeyRequest + { + /// + /// -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() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/gapic_metadata.json b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/gapic_metadata.json new file mode 100755 index 000000000000..e869e20dcf61 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Security.PublicCA.V1Beta1/gapic_metadata.json @@ -0,0 +1,24 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "csharp", + "protoPackage": "google.cloud.security.publicca.v1beta1", + "libraryPackage": "Google.Cloud.Security.PublicCA.V1Beta1", + "services": { + "PublicCertificateAuthorityService": { + "clients": { + "grpc": { + "libraryClient": "PublicCertificateAuthorityServiceClient", + "rpcs": { + "CreateExternalAccountKey": { + "methods": [ + "CreateExternalAccountKey", + "CreateExternalAccountKeyAsync" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets.csproj b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets.csproj new file mode 100755 index 000000000000..dfe56764c54e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..8c10eb8f83e0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchCalculateEffectiveSettings_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for BatchCalculateEffectiveSettingsAsync + /// + /// 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 BatchCalculateEffectiveSettingsRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + BatchCalculateEffectiveSettingsRequest request = new BatchCalculateEffectiveSettingsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Requests = + { + new CalculateEffectiveSettingsRequest(), + }, + }; + // Make the request + BatchCalculateEffectiveSettingsResponse response = await securityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsAsync(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchCalculateEffectiveSettings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..bdef6c5ac407 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchCalculateEffectiveSettings_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for BatchCalculateEffectiveSettings + /// + /// 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 BatchCalculateEffectiveSettingsRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + BatchCalculateEffectiveSettingsRequest request = new BatchCalculateEffectiveSettingsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Requests = + { + new CalculateEffectiveSettingsRequest(), + }, + }; + // Make the request + BatchCalculateEffectiveSettingsResponse response = securityCenterSettingsServiceClient.BatchCalculateEffectiveSettings(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchCalculateEffectiveSettings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchGetSettingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchGetSettingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..d27eb4e016c2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchGetSettingsRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchGetSettings_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for BatchGetSettingsAsync + /// + /// 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 BatchGetSettingsRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + BatchGetSettingsRequest request = new BatchGetSettingsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Names = { "", }, + }; + // Make the request + BatchGetSettingsResponse response = await securityCenterSettingsServiceClient.BatchGetSettingsAsync(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchGetSettings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchGetSettingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchGetSettingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..3539a9abc5e7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.BatchGetSettingsRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchGetSettings_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for BatchGetSettings + /// + /// 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 BatchGetSettingsRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + BatchGetSettingsRequest request = new BatchGetSettingsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Names = { "", }, + }; + // Make the request + BatchGetSettingsResponse response = securityCenterSettingsServiceClient.BatchGetSettings(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchGetSettings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsyncSnippet.g.cs new file mode 100755 index 000000000000..b4c170418fd2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_async_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for CalculateEffectiveComponentSettingsAsync + /// + /// 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 CalculateEffectiveComponentSettingsAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings"; + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..1ff1b08baf68 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_async] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for CalculateEffectiveComponentSettingsAsync + /// + /// 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 CalculateEffectiveComponentSettingsRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + CalculateEffectiveComponentSettingsRequest request = new CalculateEffectiveComponentSettingsRequest + { + ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"), + }; + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..485041990dcc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_sync] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for CalculateEffectiveComponentSettings + /// + /// 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 CalculateEffectiveComponentSettingsRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + CalculateEffectiveComponentSettingsRequest request = new CalculateEffectiveComponentSettingsRequest + { + ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"), + }; + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.CalculateEffectiveComponentSettings(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..638012e46996 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsResourceNamesAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for CalculateEffectiveComponentSettingsAsync + /// + /// 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 CalculateEffectiveComponentSettingsResourceNamesAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"); + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..221364c59ec0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsResourceNamesSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for CalculateEffectiveComponentSettings + /// + /// 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 CalculateEffectiveComponentSettingsResourceNames() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"); + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.CalculateEffectiveComponentSettings(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsSnippet.g.cs new file mode 100755 index 000000000000..242e391ec2d0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_sync_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for CalculateEffectiveComponentSettings + /// + /// 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 CalculateEffectiveComponentSettings() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings"; + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.CalculateEffectiveComponentSettings(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsAsyncSnippet.g.cs new file mode 100755 index 000000000000..2be9b40639ed --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_async_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for CalculateEffectiveSettingsAsync + /// + /// 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 CalculateEffectiveSettingsAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/settings"; + // Make the request + Settings response = await securityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..64333c870106 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_async] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for CalculateEffectiveSettingsAsync + /// + /// 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 CalculateEffectiveSettingsRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + CalculateEffectiveSettingsRequest request = new CalculateEffectiveSettingsRequest + { + SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + Settings response = await securityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..bf68e5c197b1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_sync] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for CalculateEffectiveSettings + /// + /// 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 CalculateEffectiveSettingsRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + CalculateEffectiveSettingsRequest request = new CalculateEffectiveSettingsRequest + { + SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + Settings response = securityCenterSettingsServiceClient.CalculateEffectiveSettings(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..57eae3c6ddfa --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsResourceNamesAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for CalculateEffectiveSettingsAsync + /// + /// 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 CalculateEffectiveSettingsResourceNamesAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + Settings response = await securityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..479e273fc8bb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsResourceNamesSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for CalculateEffectiveSettings + /// + /// 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 CalculateEffectiveSettingsResourceNames() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + Settings response = securityCenterSettingsServiceClient.CalculateEffectiveSettings(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsSnippet.g.cs new file mode 100755 index 000000000000..a53c67b1fc46 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_sync_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for CalculateEffectiveSettings + /// + /// 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 CalculateEffectiveSettings() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/settings"; + // Make the request + Settings response = securityCenterSettingsServiceClient.CalculateEffectiveSettings(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsAsyncSnippet.g.cs new file mode 100755 index 000000000000..fc0fcc898470 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_async_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetComponentSettingsAsync + /// + /// 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 GetComponentSettingsAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings"; + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.GetComponentSettingsAsync(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..8299a2daca98 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_async] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetComponentSettingsAsync + /// + /// 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 GetComponentSettingsRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + GetComponentSettingsRequest request = new GetComponentSettingsRequest + { + ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"), + }; + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.GetComponentSettingsAsync(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..abc0bf0c8cfd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_sync] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetComponentSettings + /// + /// 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 GetComponentSettingsRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + GetComponentSettingsRequest request = new GetComponentSettingsRequest + { + ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"), + }; + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.GetComponentSettings(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..a00613ebbe64 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsResourceNamesAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetComponentSettingsAsync + /// + /// 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 GetComponentSettingsResourceNamesAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"); + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.GetComponentSettingsAsync(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..05af2896a4c3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsResourceNamesSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetComponentSettings + /// + /// 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 GetComponentSettingsResourceNames() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"); + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.GetComponentSettings(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsSnippet.g.cs new file mode 100755 index 000000000000..f34ecf74befb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetComponentSettingsSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_sync_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetComponentSettings + /// + /// 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 GetComponentSettings() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings"; + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.GetComponentSettings(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountAsyncSnippet.g.cs new file mode 100755 index 000000000000..e6965a72711c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_async_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetServiceAccountAsync + /// + /// 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 GetServiceAccountAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/serviceAccount"; + // Make the request + ServiceAccount response = await securityCenterSettingsServiceClient.GetServiceAccountAsync(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2ef6b0d5aebc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_async] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetServiceAccountAsync + /// + /// 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 GetServiceAccountRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + GetServiceAccountRequest request = new GetServiceAccountRequest + { + ServiceAccountName = ServiceAccountName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + ServiceAccount response = await securityCenterSettingsServiceClient.GetServiceAccountAsync(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..bf84146dfcff --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_sync] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetServiceAccount + /// + /// 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 GetServiceAccountRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + GetServiceAccountRequest request = new GetServiceAccountRequest + { + ServiceAccountName = ServiceAccountName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + ServiceAccount response = securityCenterSettingsServiceClient.GetServiceAccount(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..63d2b5f2a82f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountResourceNamesAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetServiceAccountAsync + /// + /// 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 GetServiceAccountResourceNamesAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ServiceAccountName name = ServiceAccountName.FromOrganization("[ORGANIZATION]"); + // Make the request + ServiceAccount response = await securityCenterSettingsServiceClient.GetServiceAccountAsync(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..19ea8abc3feb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountResourceNamesSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetServiceAccount + /// + /// 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 GetServiceAccountResourceNames() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ServiceAccountName name = ServiceAccountName.FromOrganization("[ORGANIZATION]"); + // Make the request + ServiceAccount response = securityCenterSettingsServiceClient.GetServiceAccount(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountSnippet.g.cs new file mode 100755 index 000000000000..9b54deb542a4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetServiceAccountSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_sync_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetServiceAccount + /// + /// 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 GetServiceAccount() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/serviceAccount"; + // Make the request + ServiceAccount response = securityCenterSettingsServiceClient.GetServiceAccount(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsAsyncSnippet.g.cs new file mode 100755 index 000000000000..61a7ba09f652 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_async_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetSettingsAsync + /// + /// 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 GetSettingsAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/settings"; + // Make the request + Settings response = await securityCenterSettingsServiceClient.GetSettingsAsync(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..bfb88a60b70e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_async] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetSettingsAsync + /// + /// 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 GetSettingsRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + GetSettingsRequest request = new GetSettingsRequest + { + SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + Settings response = await securityCenterSettingsServiceClient.GetSettingsAsync(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..173c93e99ca1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_sync] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetSettings + /// + /// 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 GetSettingsRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + GetSettingsRequest request = new GetSettingsRequest + { + SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + Settings response = securityCenterSettingsServiceClient.GetSettings(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..c35eb7387470 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsResourceNamesAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetSettingsAsync + /// + /// 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 GetSettingsResourceNamesAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + Settings response = await securityCenterSettingsServiceClient.GetSettingsAsync(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..c3c7ccd57181 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsResourceNamesSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetSettings + /// + /// 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 GetSettingsResourceNames() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + Settings response = securityCenterSettingsServiceClient.GetSettings(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsSnippet.g.cs new file mode 100755 index 000000000000..26b3b88c2bfa --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.GetSettingsSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_sync_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetSettings + /// + /// 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 GetSettings() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/settings"; + // Make the request + Settings response = securityCenterSettingsServiceClient.GetSettings(name); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsAsyncSnippet.g.cs new file mode 100755 index 000000000000..6f0cc5abeacd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ListComponentsAsync + /// + /// 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 ListComponentsAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterSettingsServiceClient.ListComponentsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((string 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((ListComponentsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (string 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 (string 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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..af195f04135a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ListComponentsAsync + /// + /// 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 ListComponentsRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ListComponentsRequest request = new ListComponentsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterSettingsServiceClient.ListComponentsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((string 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((ListComponentsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (string 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 (string 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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..50822d2e65e8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ListComponents + /// + /// 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 ListComponentsRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ListComponentsRequest request = new ListComponentsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterSettingsServiceClient.ListComponents(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (string 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 (ListComponentsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (string 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 (string 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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..fabf4592a4c5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsResourceNamesAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ListComponentsAsync + /// + /// 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 ListComponentsResourceNamesAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterSettingsServiceClient.ListComponentsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((string 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((ListComponentsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (string 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 (string 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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..8d8e7df88782 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsResourceNamesSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ListComponents + /// + /// 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 ListComponentsResourceNames() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterSettingsServiceClient.ListComponents(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (string 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 (ListComponentsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (string 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 (string 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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsSnippet.g.cs new file mode 100755 index 000000000000..8d40526340d0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListComponentsSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ListComponents + /// + /// 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 ListComponents() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterSettingsServiceClient.ListComponents(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (string 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 (ListComponentsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (string 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 (string 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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsAsyncSnippet.g.cs new file mode 100755 index 000000000000..4d46c48582eb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ListDetectorsAsync + /// + /// 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 ListDetectorsAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterSettingsServiceClient.ListDetectorsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Detector 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((ListDetectorsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Detector 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 (Detector 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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..adef469c5ced --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ListDetectorsAsync + /// + /// 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 ListDetectorsRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ListDetectorsRequest request = new ListDetectorsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Filter = "", + }; + // Make the request + PagedAsyncEnumerable response = securityCenterSettingsServiceClient.ListDetectorsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Detector 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((ListDetectorsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Detector 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 (Detector 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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..7441a3ceacbd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ListDetectors + /// + /// 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 ListDetectorsRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ListDetectorsRequest request = new ListDetectorsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Filter = "", + }; + // Make the request + PagedEnumerable response = securityCenterSettingsServiceClient.ListDetectors(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Detector 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 (ListDetectorsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Detector 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 (Detector 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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..f431a2ed9d35 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsResourceNamesAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ListDetectorsAsync + /// + /// 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 ListDetectorsResourceNamesAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterSettingsServiceClient.ListDetectorsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Detector 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((ListDetectorsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Detector 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 (Detector 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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..f5033caa2c77 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsResourceNamesSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ListDetectors + /// + /// 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 ListDetectorsResourceNames() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterSettingsServiceClient.ListDetectors(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Detector 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 (ListDetectorsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Detector 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 (Detector 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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsSnippet.g.cs new file mode 100755 index 000000000000..a088feeb2be1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ListDetectorsSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ListDetectors + /// + /// 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 ListDetectors() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterSettingsServiceClient.ListDetectors(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Detector 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 (ListDetectorsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Detector 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 (Detector 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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetComponentSettingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetComponentSettingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..bb4d5766c10c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetComponentSettingsRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetComponentSettings_async] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ResetComponentSettingsAsync + /// + /// 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 ResetComponentSettingsRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ResetComponentSettingsRequest request = new ResetComponentSettingsRequest + { + ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"), + Etag = "", + }; + // Make the request + await securityCenterSettingsServiceClient.ResetComponentSettingsAsync(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetComponentSettings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetComponentSettingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetComponentSettingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..cbc6b5d50d00 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetComponentSettingsRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetComponentSettings_sync] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ResetComponentSettings + /// + /// 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 ResetComponentSettingsRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ResetComponentSettingsRequest request = new ResetComponentSettingsRequest + { + ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"), + Etag = "", + }; + // Make the request + securityCenterSettingsServiceClient.ResetComponentSettings(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetComponentSettings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetSettingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetSettingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..becc1fe1c869 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetSettingsRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetSettings_async] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ResetSettingsAsync + /// + /// 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 ResetSettingsRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ResetSettingsRequest request = new ResetSettingsRequest + { + SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"), + Etag = "", + }; + // Make the request + await securityCenterSettingsServiceClient.ResetSettingsAsync(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetSettings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetSettingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetSettingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..85e84e2196ea --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.ResetSettingsRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetSettings_sync] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for ResetSettings + /// + /// 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 ResetSettingsRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ResetSettingsRequest request = new ResetSettingsRequest + { + SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"), + Etag = "", + }; + // Make the request + securityCenterSettingsServiceClient.ResetSettings(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetSettings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsAsyncSnippet.g.cs new file mode 100755 index 000000000000..0b8bc031f8d4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_async_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for UpdateComponentSettingsAsync + /// + /// 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 UpdateComponentSettingsAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ComponentSettings componentSettings = new ComponentSettings(); + FieldMask updateMask = new FieldMask(); + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.UpdateComponentSettingsAsync(componentSettings, updateMask); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..990b81836f0f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_async] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for UpdateComponentSettingsAsync + /// + /// 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 UpdateComponentSettingsRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateComponentSettingsRequest request = new UpdateComponentSettingsRequest + { + ComponentSettings = new ComponentSettings(), + UpdateMask = new FieldMask(), + }; + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.UpdateComponentSettingsAsync(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..6e83370474a7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_sync] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for UpdateComponentSettings + /// + /// 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 UpdateComponentSettingsRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + UpdateComponentSettingsRequest request = new UpdateComponentSettingsRequest + { + ComponentSettings = new ComponentSettings(), + UpdateMask = new FieldMask(), + }; + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.UpdateComponentSettings(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsSnippet.g.cs new file mode 100755 index 000000000000..8dfe2e23ccba --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateComponentSettingsSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_sync_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for UpdateComponentSettings + /// + /// 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 UpdateComponentSettings() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ComponentSettings componentSettings = new ComponentSettings(); + FieldMask updateMask = new FieldMask(); + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.UpdateComponentSettings(componentSettings, updateMask); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsAsyncSnippet.g.cs new file mode 100755 index 000000000000..408f2dd24d99 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_async_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for UpdateSettingsAsync + /// + /// 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 UpdateSettingsAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + Settings settings = new Settings(); + FieldMask updateMask = new FieldMask(); + // Make the request + Settings response = await securityCenterSettingsServiceClient.UpdateSettingsAsync(settings, updateMask); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..5bb1370e50c2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsRequestObjectAsyncSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_async] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for UpdateSettingsAsync + /// + /// 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 UpdateSettingsRequestObjectAsync() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateSettingsRequest request = new UpdateSettingsRequest + { + Settings = new Settings(), + UpdateMask = new FieldMask(), + }; + // Make the request + Settings response = await securityCenterSettingsServiceClient.UpdateSettingsAsync(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c672747a4542 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsRequestObjectSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_sync] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for UpdateSettings + /// + /// 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 UpdateSettingsRequestObject() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + UpdateSettingsRequest request = new UpdateSettingsRequest + { + Settings = new Settings(), + UpdateMask = new FieldMask(), + }; + // Make the request + Settings response = securityCenterSettingsServiceClient.UpdateSettings(request); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsSnippet.g.cs new file mode 100755 index 000000000000..8a814c5cae51 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.UpdateSettingsSnippet.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 securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_sync_flattened] + using Google.Cloud.SecurityCenter.Settings.V1Beta1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for UpdateSettings + /// + /// 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 UpdateSettings() + { + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + Settings settings = new Settings(); + FieldMask updateMask = new FieldMask(); + // Make the request + Settings response = securityCenterSettingsServiceClient.UpdateSettings(settings, updateMask); + } + } + // [END securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.securitycenter.settings.v1beta1.json b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.securitycenter.settings.v1beta1.json new file mode 100755 index 000000000000..5ddfa26eb807 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.securitycenter.settings.v1beta1.json @@ -0,0 +1,2873 @@ +{ + "clientLibrary": { + "name": "Google.Cloud.SecurityCenter.Settings.V1Beta1", + "language": "C_SHARP", + "apis": [ + { + "id": "google.cloud.securitycenter.settings.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_sync", + "title": "GetServiceAccountRequestObject", + "description": "Snippet for GetServiceAccount", + "file": "SecurityCenterSettingsServiceClient.GetServiceAccountRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetServiceAccount", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetServiceAccount", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.GetServiceAccountRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ServiceAccount", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetServiceAccount", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetServiceAccount", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_async", + "title": "GetServiceAccountRequestObjectAsync", + "description": "Snippet for GetServiceAccountAsync", + "file": "SecurityCenterSettingsServiceClient.GetServiceAccountRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetServiceAccountAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetServiceAccountAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.GetServiceAccountRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetServiceAccount", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetServiceAccount", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_sync_flattened", + "title": "GetServiceAccount", + "description": "Snippet for GetServiceAccount", + "file": "SecurityCenterSettingsServiceClient.GetServiceAccountSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetServiceAccount", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetServiceAccount", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ServiceAccount", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetServiceAccount", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetServiceAccount", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_async_flattened", + "title": "GetServiceAccountAsync", + "description": "Snippet for GetServiceAccountAsync", + "file": "SecurityCenterSettingsServiceClient.GetServiceAccountAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetServiceAccountAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetServiceAccountAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetServiceAccount", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetServiceAccount", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_sync_flattened_resourceNames", + "title": "GetServiceAccountResourceNames", + "description": "Snippet for GetServiceAccount", + "file": "SecurityCenterSettingsServiceClient.GetServiceAccountResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetServiceAccount", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetServiceAccount", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ServiceAccountName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ServiceAccount", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetServiceAccount", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetServiceAccount", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_async_flattened_resourceNames", + "title": "GetServiceAccountResourceNamesAsync", + "description": "Snippet for GetServiceAccountAsync", + "file": "SecurityCenterSettingsServiceClient.GetServiceAccountResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetServiceAccountAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetServiceAccountAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ServiceAccountName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetServiceAccount", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetServiceAccount", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_sync", + "title": "GetSettingsRequestObject", + "description": "Snippet for GetSettings", + "file": "SecurityCenterSettingsServiceClient.GetSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.GetSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_async", + "title": "GetSettingsRequestObjectAsync", + "description": "Snippet for GetSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.GetSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.GetSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_sync_flattened", + "title": "GetSettings", + "description": "Snippet for GetSettings", + "file": "SecurityCenterSettingsServiceClient.GetSettingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetSettings", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_async_flattened", + "title": "GetSettingsAsync", + "description": "Snippet for GetSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.GetSettingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetSettingsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_sync_flattened_resourceNames", + "title": "GetSettingsResourceNames", + "description": "Snippet for GetSettings", + "file": "SecurityCenterSettingsServiceClient.GetSettingsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SettingsName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_async_flattened_resourceNames", + "title": "GetSettingsResourceNamesAsync", + "description": "Snippet for GetSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.GetSettingsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SettingsName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_sync", + "title": "UpdateSettingsRequestObject", + "description": "Snippet for UpdateSettings", + "file": "SecurityCenterSettingsServiceClient.UpdateSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.UpdateSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "UpdateSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.UpdateSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_async", + "title": "UpdateSettingsRequestObjectAsync", + "description": "Snippet for UpdateSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.UpdateSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.UpdateSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "UpdateSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.UpdateSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_sync_flattened", + "title": "UpdateSettings", + "description": "Snippet for UpdateSettings", + "file": "SecurityCenterSettingsServiceClient.UpdateSettingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.UpdateSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings", + "name": "settings" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "UpdateSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.UpdateSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_async_flattened", + "title": "UpdateSettingsAsync", + "description": "Snippet for UpdateSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.UpdateSettingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.UpdateSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings", + "name": "settings" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "UpdateSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.UpdateSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetSettings_sync", + "title": "ResetSettingsRequestObject", + "description": "Snippet for ResetSettings", + "file": "SecurityCenterSettingsServiceClient.ResetSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ResetSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ResetSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ResetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ResetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetSettings_async", + "title": "ResetSettingsRequestObjectAsync", + "description": "Snippet for ResetSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.ResetSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ResetSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ResetSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ResetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ResetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchGetSettings_sync", + "title": "BatchGetSettingsRequestObject", + "description": "Snippet for BatchGetSettings", + "file": "SecurityCenterSettingsServiceClient.BatchGetSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchGetSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.BatchGetSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsResponse", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "BatchGetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.BatchGetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchGetSettings_async", + "title": "BatchGetSettingsRequestObjectAsync", + "description": "Snippet for BatchGetSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.BatchGetSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchGetSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.BatchGetSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "BatchGetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.BatchGetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_sync", + "title": "CalculateEffectiveSettingsRequestObject", + "description": "Snippet for CalculateEffectiveSettings", + "file": "SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CalculateEffectiveSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.CalculateEffectiveSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "CalculateEffectiveSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_async", + "title": "CalculateEffectiveSettingsRequestObjectAsync", + "description": "Snippet for CalculateEffectiveSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CalculateEffectiveSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "CalculateEffectiveSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_sync_flattened", + "title": "CalculateEffectiveSettings", + "description": "Snippet for CalculateEffectiveSettings", + "file": "SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CalculateEffectiveSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.CalculateEffectiveSettings", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "CalculateEffectiveSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_async_flattened", + "title": "CalculateEffectiveSettingsAsync", + "description": "Snippet for CalculateEffectiveSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CalculateEffectiveSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "CalculateEffectiveSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_sync_flattened_resourceNames", + "title": "CalculateEffectiveSettingsResourceNames", + "description": "Snippet for CalculateEffectiveSettings", + "file": "SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CalculateEffectiveSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.CalculateEffectiveSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SettingsName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "CalculateEffectiveSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_async_flattened_resourceNames", + "title": "CalculateEffectiveSettingsResourceNamesAsync", + "description": "Snippet for CalculateEffectiveSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CalculateEffectiveSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SettingsName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "CalculateEffectiveSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchCalculateEffectiveSettings_sync", + "title": "BatchCalculateEffectiveSettingsRequestObject", + "description": "Snippet for BatchCalculateEffectiveSettings", + "file": "SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchCalculateEffectiveSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsResponse", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "BatchCalculateEffectiveSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.BatchCalculateEffectiveSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 35, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchCalculateEffectiveSettings_async", + "title": "BatchCalculateEffectiveSettingsRequestObjectAsync", + "description": "Snippet for BatchCalculateEffectiveSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchCalculateEffectiveSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "BatchCalculateEffectiveSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.BatchCalculateEffectiveSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 36, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_sync", + "title": "GetComponentSettingsRequestObject", + "description": "Snippet for GetComponentSettings", + "file": "SecurityCenterSettingsServiceClient.GetComponentSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetComponentSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetComponentSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.GetComponentSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_async", + "title": "GetComponentSettingsRequestObjectAsync", + "description": "Snippet for GetComponentSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.GetComponentSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetComponentSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetComponentSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.GetComponentSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_sync_flattened", + "title": "GetComponentSettings", + "description": "Snippet for GetComponentSettings", + "file": "SecurityCenterSettingsServiceClient.GetComponentSettingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetComponentSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetComponentSettings", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_async_flattened", + "title": "GetComponentSettingsAsync", + "description": "Snippet for GetComponentSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.GetComponentSettingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetComponentSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetComponentSettingsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_sync_flattened_resourceNames", + "title": "GetComponentSettingsResourceNames", + "description": "Snippet for GetComponentSettings", + "file": "SecurityCenterSettingsServiceClient.GetComponentSettingsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetComponentSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetComponentSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettingsName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_async_flattened_resourceNames", + "title": "GetComponentSettingsResourceNamesAsync", + "description": "Snippet for GetComponentSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.GetComponentSettingsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetComponentSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.GetComponentSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettingsName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "GetComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_sync", + "title": "UpdateComponentSettingsRequestObject", + "description": "Snippet for UpdateComponentSettings", + "file": "SecurityCenterSettingsServiceClient.UpdateComponentSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateComponentSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.UpdateComponentSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateComponentSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "UpdateComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.UpdateComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_async", + "title": "UpdateComponentSettingsRequestObjectAsync", + "description": "Snippet for UpdateComponentSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.UpdateComponentSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateComponentSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.UpdateComponentSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateComponentSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "UpdateComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.UpdateComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_sync_flattened", + "title": "UpdateComponentSettings", + "description": "Snippet for UpdateComponentSettings", + "file": "SecurityCenterSettingsServiceClient.UpdateComponentSettingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateComponentSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.UpdateComponentSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings", + "name": "componentSettings" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "UpdateComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.UpdateComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_async_flattened", + "title": "UpdateComponentSettingsAsync", + "description": "Snippet for UpdateComponentSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.UpdateComponentSettingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateComponentSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.UpdateComponentSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings", + "name": "componentSettings" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "UpdateComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.UpdateComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetComponentSettings_sync", + "title": "ResetComponentSettingsRequestObject", + "description": "Snippet for ResetComponentSettings", + "file": "SecurityCenterSettingsServiceClient.ResetComponentSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ResetComponentSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ResetComponentSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetComponentSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ResetComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ResetComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetComponentSettings_async", + "title": "ResetComponentSettingsRequestObjectAsync", + "description": "Snippet for ResetComponentSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.ResetComponentSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ResetComponentSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ResetComponentSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetComponentSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ResetComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ResetComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_sync", + "title": "CalculateEffectiveComponentSettingsRequestObject", + "description": "Snippet for CalculateEffectiveComponentSettings", + "file": "SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CalculateEffectiveComponentSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveComponentSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "CalculateEffectiveComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_async", + "title": "CalculateEffectiveComponentSettingsRequestObjectAsync", + "description": "Snippet for CalculateEffectiveComponentSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CalculateEffectiveComponentSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveComponentSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "CalculateEffectiveComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_sync_flattened", + "title": "CalculateEffectiveComponentSettings", + "description": "Snippet for CalculateEffectiveComponentSettings", + "file": "SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CalculateEffectiveComponentSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettings", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "CalculateEffectiveComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_async_flattened", + "title": "CalculateEffectiveComponentSettingsAsync", + "description": "Snippet for CalculateEffectiveComponentSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CalculateEffectiveComponentSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "CalculateEffectiveComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_sync_flattened_resourceNames", + "title": "CalculateEffectiveComponentSettingsResourceNames", + "description": "Snippet for CalculateEffectiveComponentSettings", + "file": "SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CalculateEffectiveComponentSettings", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettingsName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "CalculateEffectiveComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_async_flattened_resourceNames", + "title": "CalculateEffectiveComponentSettingsResourceNamesAsync", + "description": "Snippet for CalculateEffectiveComponentSettingsAsync", + "file": "SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CalculateEffectiveComponentSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettingsName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "CalculateEffectiveComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_sync", + "title": "ListDetectorsRequestObject", + "description": "Snippet for ListDetectors", + "file": "SecurityCenterSettingsServiceClient.ListDetectorsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDetectors", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ListDetectors", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ListDetectors", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListDetectors", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 37, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_async", + "title": "ListDetectorsRequestObjectAsync", + "description": "Snippet for ListDetectorsAsync", + "file": "SecurityCenterSettingsServiceClient.ListDetectorsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDetectorsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ListDetectorsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ListDetectors", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListDetectors", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 82, + "type": "FULL" + }, + { + "start": 39, + "end": 80, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_sync_flattened", + "title": "ListDetectors", + "description": "Snippet for ListDetectors", + "file": "SecurityCenterSettingsServiceClient.ListDetectorsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDetectors", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ListDetectors", + "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": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ListDetectors", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListDetectors", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_async_flattened", + "title": "ListDetectorsAsync", + "description": "Snippet for ListDetectorsAsync", + "file": "SecurityCenterSettingsServiceClient.ListDetectorsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDetectorsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ListDetectorsAsync", + "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": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ListDetectors", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListDetectors", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_sync_flattened_resourceNames", + "title": "ListDetectorsResourceNames", + "description": "Snippet for ListDetectors", + "file": "SecurityCenterSettingsServiceClient.ListDetectorsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDetectors", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ListDetectors", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ListDetectors", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListDetectors", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_async_flattened_resourceNames", + "title": "ListDetectorsResourceNamesAsync", + "description": "Snippet for ListDetectorsAsync", + "file": "SecurityCenterSettingsServiceClient.ListDetectorsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDetectorsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ListDetectorsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ListDetectors", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListDetectors", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_sync", + "title": "ListComponentsRequestObject", + "description": "Snippet for ListComponents", + "file": "SecurityCenterSettingsServiceClient.ListComponentsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListComponents", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ListComponents", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ListComponents", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListComponents", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 37, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_async", + "title": "ListComponentsRequestObjectAsync", + "description": "Snippet for ListComponentsAsync", + "file": "SecurityCenterSettingsServiceClient.ListComponentsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListComponentsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ListComponentsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ListComponents", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListComponents", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 39, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_sync_flattened", + "title": "ListComponents", + "description": "Snippet for ListComponents", + "file": "SecurityCenterSettingsServiceClient.ListComponentsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListComponents", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ListComponents", + "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": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ListComponents", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListComponents", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_async_flattened", + "title": "ListComponentsAsync", + "description": "Snippet for ListComponentsAsync", + "file": "SecurityCenterSettingsServiceClient.ListComponentsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListComponentsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ListComponentsAsync", + "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": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ListComponents", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListComponents", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_sync_flattened_resourceNames", + "title": "ListComponentsResourceNames", + "description": "Snippet for ListComponents", + "file": "SecurityCenterSettingsServiceClient.ListComponentsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListComponents", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ListComponents", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ListComponents", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListComponents", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_async_flattened_resourceNames", + "title": "ListComponentsResourceNamesAsync", + "description": "Snippet for ListComponentsAsync", + "file": "SecurityCenterSettingsServiceClient.ListComponentsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListComponentsAsync", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient.ListComponentsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterSettingsServiceClient", + "fullName": "Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityCenterSettingsServiceClient" + }, + "method": { + "shortName": "ListComponents", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListComponents", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + } + ] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.Snippets/Google.Cloud.SecurityCenter.Settings.V1Beta1.Snippets.csproj b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.Snippets/Google.Cloud.SecurityCenter.Settings.V1Beta1.Snippets.csproj new file mode 100755 index 000000000000..dfe56764c54e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.Snippets/Google.Cloud.SecurityCenter.Settings.V1Beta1.Snippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.Snippets/SecurityCenterSettingsServiceClientSnippets.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.Snippets/SecurityCenterSettingsServiceClientSnippets.g.cs new file mode 100755 index 000000000000..b738acd3a891 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.Snippets/SecurityCenterSettingsServiceClientSnippets.g.cs @@ -0,0 +1,1293 @@ +// 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.SecurityCenter.Settings.V1Beta1; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Linq; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedSecurityCenterSettingsServiceClientSnippets + { + /// Snippet for GetServiceAccount + public void GetServiceAccountRequestObject() + { + // Snippet: GetServiceAccount(GetServiceAccountRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + GetServiceAccountRequest request = new GetServiceAccountRequest + { + ServiceAccountName = ServiceAccountName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + ServiceAccount response = securityCenterSettingsServiceClient.GetServiceAccount(request); + // End snippet + } + + /// Snippet for GetServiceAccountAsync + public async Task GetServiceAccountRequestObjectAsync() + { + // Snippet: GetServiceAccountAsync(GetServiceAccountRequest, CallSettings) + // Additional: GetServiceAccountAsync(GetServiceAccountRequest, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + GetServiceAccountRequest request = new GetServiceAccountRequest + { + ServiceAccountName = ServiceAccountName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + ServiceAccount response = await securityCenterSettingsServiceClient.GetServiceAccountAsync(request); + // End snippet + } + + /// Snippet for GetServiceAccount + public void GetServiceAccount() + { + // Snippet: GetServiceAccount(string, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/serviceAccount"; + // Make the request + ServiceAccount response = securityCenterSettingsServiceClient.GetServiceAccount(name); + // End snippet + } + + /// Snippet for GetServiceAccountAsync + public async Task GetServiceAccountAsync() + { + // Snippet: GetServiceAccountAsync(string, CallSettings) + // Additional: GetServiceAccountAsync(string, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/serviceAccount"; + // Make the request + ServiceAccount response = await securityCenterSettingsServiceClient.GetServiceAccountAsync(name); + // End snippet + } + + /// Snippet for GetServiceAccount + public void GetServiceAccountResourceNames() + { + // Snippet: GetServiceAccount(ServiceAccountName, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ServiceAccountName name = ServiceAccountName.FromOrganization("[ORGANIZATION]"); + // Make the request + ServiceAccount response = securityCenterSettingsServiceClient.GetServiceAccount(name); + // End snippet + } + + /// Snippet for GetServiceAccountAsync + public async Task GetServiceAccountResourceNamesAsync() + { + // Snippet: GetServiceAccountAsync(ServiceAccountName, CallSettings) + // Additional: GetServiceAccountAsync(ServiceAccountName, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ServiceAccountName name = ServiceAccountName.FromOrganization("[ORGANIZATION]"); + // Make the request + ServiceAccount response = await securityCenterSettingsServiceClient.GetServiceAccountAsync(name); + // End snippet + } + + /// Snippet for GetSettings + public void GetSettingsRequestObject() + { + // Snippet: GetSettings(GetSettingsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + GetSettingsRequest request = new GetSettingsRequest + { + SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + Settings response = securityCenterSettingsServiceClient.GetSettings(request); + // End snippet + } + + /// Snippet for GetSettingsAsync + public async Task GetSettingsRequestObjectAsync() + { + // Snippet: GetSettingsAsync(GetSettingsRequest, CallSettings) + // Additional: GetSettingsAsync(GetSettingsRequest, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + GetSettingsRequest request = new GetSettingsRequest + { + SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + Settings response = await securityCenterSettingsServiceClient.GetSettingsAsync(request); + // End snippet + } + + /// Snippet for GetSettings + public void GetSettings() + { + // Snippet: GetSettings(string, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/settings"; + // Make the request + Settings response = securityCenterSettingsServiceClient.GetSettings(name); + // End snippet + } + + /// Snippet for GetSettingsAsync + public async Task GetSettingsAsync() + { + // Snippet: GetSettingsAsync(string, CallSettings) + // Additional: GetSettingsAsync(string, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/settings"; + // Make the request + Settings response = await securityCenterSettingsServiceClient.GetSettingsAsync(name); + // End snippet + } + + /// Snippet for GetSettings + public void GetSettingsResourceNames() + { + // Snippet: GetSettings(SettingsName, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + Settings response = securityCenterSettingsServiceClient.GetSettings(name); + // End snippet + } + + /// Snippet for GetSettingsAsync + public async Task GetSettingsResourceNamesAsync() + { + // Snippet: GetSettingsAsync(SettingsName, CallSettings) + // Additional: GetSettingsAsync(SettingsName, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + Settings response = await securityCenterSettingsServiceClient.GetSettingsAsync(name); + // End snippet + } + + /// Snippet for UpdateSettings + public void UpdateSettingsRequestObject() + { + // Snippet: UpdateSettings(UpdateSettingsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + UpdateSettingsRequest request = new UpdateSettingsRequest + { + Settings = new Settings(), + UpdateMask = new FieldMask(), + }; + // Make the request + Settings response = securityCenterSettingsServiceClient.UpdateSettings(request); + // End snippet + } + + /// Snippet for UpdateSettingsAsync + public async Task UpdateSettingsRequestObjectAsync() + { + // Snippet: UpdateSettingsAsync(UpdateSettingsRequest, CallSettings) + // Additional: UpdateSettingsAsync(UpdateSettingsRequest, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateSettingsRequest request = new UpdateSettingsRequest + { + Settings = new Settings(), + UpdateMask = new FieldMask(), + }; + // Make the request + Settings response = await securityCenterSettingsServiceClient.UpdateSettingsAsync(request); + // End snippet + } + + /// Snippet for UpdateSettings + public void UpdateSettings() + { + // Snippet: UpdateSettings(Settings, FieldMask, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + Settings settings = new Settings(); + FieldMask updateMask = new FieldMask(); + // Make the request + Settings response = securityCenterSettingsServiceClient.UpdateSettings(settings, updateMask); + // End snippet + } + + /// Snippet for UpdateSettingsAsync + public async Task UpdateSettingsAsync() + { + // Snippet: UpdateSettingsAsync(Settings, FieldMask, CallSettings) + // Additional: UpdateSettingsAsync(Settings, FieldMask, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + Settings settings = new Settings(); + FieldMask updateMask = new FieldMask(); + // Make the request + Settings response = await securityCenterSettingsServiceClient.UpdateSettingsAsync(settings, updateMask); + // End snippet + } + + /// Snippet for ResetSettings + public void ResetSettingsRequestObject() + { + // Snippet: ResetSettings(ResetSettingsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ResetSettingsRequest request = new ResetSettingsRequest + { + SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"), + Etag = "", + }; + // Make the request + securityCenterSettingsServiceClient.ResetSettings(request); + // End snippet + } + + /// Snippet for ResetSettingsAsync + public async Task ResetSettingsRequestObjectAsync() + { + // Snippet: ResetSettingsAsync(ResetSettingsRequest, CallSettings) + // Additional: ResetSettingsAsync(ResetSettingsRequest, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ResetSettingsRequest request = new ResetSettingsRequest + { + SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"), + Etag = "", + }; + // Make the request + await securityCenterSettingsServiceClient.ResetSettingsAsync(request); + // End snippet + } + + /// Snippet for BatchGetSettings + public void BatchGetSettingsRequestObject() + { + // Snippet: BatchGetSettings(BatchGetSettingsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + BatchGetSettingsRequest request = new BatchGetSettingsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Names = { "", }, + }; + // Make the request + BatchGetSettingsResponse response = securityCenterSettingsServiceClient.BatchGetSettings(request); + // End snippet + } + + /// Snippet for BatchGetSettingsAsync + public async Task BatchGetSettingsRequestObjectAsync() + { + // Snippet: BatchGetSettingsAsync(BatchGetSettingsRequest, CallSettings) + // Additional: BatchGetSettingsAsync(BatchGetSettingsRequest, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + BatchGetSettingsRequest request = new BatchGetSettingsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Names = { "", }, + }; + // Make the request + BatchGetSettingsResponse response = await securityCenterSettingsServiceClient.BatchGetSettingsAsync(request); + // End snippet + } + + /// Snippet for CalculateEffectiveSettings + public void CalculateEffectiveSettingsRequestObject() + { + // Snippet: CalculateEffectiveSettings(CalculateEffectiveSettingsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + CalculateEffectiveSettingsRequest request = new CalculateEffectiveSettingsRequest + { + SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + Settings response = securityCenterSettingsServiceClient.CalculateEffectiveSettings(request); + // End snippet + } + + /// Snippet for CalculateEffectiveSettingsAsync + public async Task CalculateEffectiveSettingsRequestObjectAsync() + { + // Snippet: CalculateEffectiveSettingsAsync(CalculateEffectiveSettingsRequest, CallSettings) + // Additional: CalculateEffectiveSettingsAsync(CalculateEffectiveSettingsRequest, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + CalculateEffectiveSettingsRequest request = new CalculateEffectiveSettingsRequest + { + SettingsName = SettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + Settings response = await securityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync(request); + // End snippet + } + + /// Snippet for CalculateEffectiveSettings + public void CalculateEffectiveSettings() + { + // Snippet: CalculateEffectiveSettings(string, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/settings"; + // Make the request + Settings response = securityCenterSettingsServiceClient.CalculateEffectiveSettings(name); + // End snippet + } + + /// Snippet for CalculateEffectiveSettingsAsync + public async Task CalculateEffectiveSettingsAsync() + { + // Snippet: CalculateEffectiveSettingsAsync(string, CallSettings) + // Additional: CalculateEffectiveSettingsAsync(string, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/settings"; + // Make the request + Settings response = await securityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync(name); + // End snippet + } + + /// Snippet for CalculateEffectiveSettings + public void CalculateEffectiveSettingsResourceNames() + { + // Snippet: CalculateEffectiveSettings(SettingsName, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + Settings response = securityCenterSettingsServiceClient.CalculateEffectiveSettings(name); + // End snippet + } + + /// Snippet for CalculateEffectiveSettingsAsync + public async Task CalculateEffectiveSettingsResourceNamesAsync() + { + // Snippet: CalculateEffectiveSettingsAsync(SettingsName, CallSettings) + // Additional: CalculateEffectiveSettingsAsync(SettingsName, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + SettingsName name = SettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + Settings response = await securityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync(name); + // End snippet + } + + /// Snippet for BatchCalculateEffectiveSettings + public void BatchCalculateEffectiveSettingsRequestObject() + { + // Snippet: BatchCalculateEffectiveSettings(BatchCalculateEffectiveSettingsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + BatchCalculateEffectiveSettingsRequest request = new BatchCalculateEffectiveSettingsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Requests = + { + new CalculateEffectiveSettingsRequest(), + }, + }; + // Make the request + BatchCalculateEffectiveSettingsResponse response = securityCenterSettingsServiceClient.BatchCalculateEffectiveSettings(request); + // End snippet + } + + /// Snippet for BatchCalculateEffectiveSettingsAsync + public async Task BatchCalculateEffectiveSettingsRequestObjectAsync() + { + // Snippet: BatchCalculateEffectiveSettingsAsync(BatchCalculateEffectiveSettingsRequest, CallSettings) + // Additional: BatchCalculateEffectiveSettingsAsync(BatchCalculateEffectiveSettingsRequest, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + BatchCalculateEffectiveSettingsRequest request = new BatchCalculateEffectiveSettingsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Requests = + { + new CalculateEffectiveSettingsRequest(), + }, + }; + // Make the request + BatchCalculateEffectiveSettingsResponse response = await securityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsAsync(request); + // End snippet + } + + /// Snippet for GetComponentSettings + public void GetComponentSettingsRequestObject() + { + // Snippet: GetComponentSettings(GetComponentSettingsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + GetComponentSettingsRequest request = new GetComponentSettingsRequest + { + ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"), + }; + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.GetComponentSettings(request); + // End snippet + } + + /// Snippet for GetComponentSettingsAsync + public async Task GetComponentSettingsRequestObjectAsync() + { + // Snippet: GetComponentSettingsAsync(GetComponentSettingsRequest, CallSettings) + // Additional: GetComponentSettingsAsync(GetComponentSettingsRequest, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + GetComponentSettingsRequest request = new GetComponentSettingsRequest + { + ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"), + }; + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.GetComponentSettingsAsync(request); + // End snippet + } + + /// Snippet for GetComponentSettings + public void GetComponentSettings() + { + // Snippet: GetComponentSettings(string, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings"; + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.GetComponentSettings(name); + // End snippet + } + + /// Snippet for GetComponentSettingsAsync + public async Task GetComponentSettingsAsync() + { + // Snippet: GetComponentSettingsAsync(string, CallSettings) + // Additional: GetComponentSettingsAsync(string, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings"; + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.GetComponentSettingsAsync(name); + // End snippet + } + + /// Snippet for GetComponentSettings + public void GetComponentSettingsResourceNames() + { + // Snippet: GetComponentSettings(ComponentSettingsName, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"); + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.GetComponentSettings(name); + // End snippet + } + + /// Snippet for GetComponentSettingsAsync + public async Task GetComponentSettingsResourceNamesAsync() + { + // Snippet: GetComponentSettingsAsync(ComponentSettingsName, CallSettings) + // Additional: GetComponentSettingsAsync(ComponentSettingsName, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"); + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.GetComponentSettingsAsync(name); + // End snippet + } + + /// Snippet for UpdateComponentSettings + public void UpdateComponentSettingsRequestObject() + { + // Snippet: UpdateComponentSettings(UpdateComponentSettingsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + UpdateComponentSettingsRequest request = new UpdateComponentSettingsRequest + { + ComponentSettings = new ComponentSettings(), + UpdateMask = new FieldMask(), + }; + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.UpdateComponentSettings(request); + // End snippet + } + + /// Snippet for UpdateComponentSettingsAsync + public async Task UpdateComponentSettingsRequestObjectAsync() + { + // Snippet: UpdateComponentSettingsAsync(UpdateComponentSettingsRequest, CallSettings) + // Additional: UpdateComponentSettingsAsync(UpdateComponentSettingsRequest, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateComponentSettingsRequest request = new UpdateComponentSettingsRequest + { + ComponentSettings = new ComponentSettings(), + UpdateMask = new FieldMask(), + }; + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.UpdateComponentSettingsAsync(request); + // End snippet + } + + /// Snippet for UpdateComponentSettings + public void UpdateComponentSettings() + { + // Snippet: UpdateComponentSettings(ComponentSettings, FieldMask, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ComponentSettings componentSettings = new ComponentSettings(); + FieldMask updateMask = new FieldMask(); + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.UpdateComponentSettings(componentSettings, updateMask); + // End snippet + } + + /// Snippet for UpdateComponentSettingsAsync + public async Task UpdateComponentSettingsAsync() + { + // Snippet: UpdateComponentSettingsAsync(ComponentSettings, FieldMask, CallSettings) + // Additional: UpdateComponentSettingsAsync(ComponentSettings, FieldMask, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ComponentSettings componentSettings = new ComponentSettings(); + FieldMask updateMask = new FieldMask(); + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.UpdateComponentSettingsAsync(componentSettings, updateMask); + // End snippet + } + + /// Snippet for ResetComponentSettings + public void ResetComponentSettingsRequestObject() + { + // Snippet: ResetComponentSettings(ResetComponentSettingsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ResetComponentSettingsRequest request = new ResetComponentSettingsRequest + { + ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"), + Etag = "", + }; + // Make the request + securityCenterSettingsServiceClient.ResetComponentSettings(request); + // End snippet + } + + /// Snippet for ResetComponentSettingsAsync + public async Task ResetComponentSettingsRequestObjectAsync() + { + // Snippet: ResetComponentSettingsAsync(ResetComponentSettingsRequest, CallSettings) + // Additional: ResetComponentSettingsAsync(ResetComponentSettingsRequest, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ResetComponentSettingsRequest request = new ResetComponentSettingsRequest + { + ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"), + Etag = "", + }; + // Make the request + await securityCenterSettingsServiceClient.ResetComponentSettingsAsync(request); + // End snippet + } + + /// Snippet for CalculateEffectiveComponentSettings + public void CalculateEffectiveComponentSettingsRequestObject() + { + // Snippet: CalculateEffectiveComponentSettings(CalculateEffectiveComponentSettingsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + CalculateEffectiveComponentSettingsRequest request = new CalculateEffectiveComponentSettingsRequest + { + ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"), + }; + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.CalculateEffectiveComponentSettings(request); + // End snippet + } + + /// Snippet for CalculateEffectiveComponentSettingsAsync + public async Task CalculateEffectiveComponentSettingsRequestObjectAsync() + { + // Snippet: CalculateEffectiveComponentSettingsAsync(CalculateEffectiveComponentSettingsRequest, CallSettings) + // Additional: CalculateEffectiveComponentSettingsAsync(CalculateEffectiveComponentSettingsRequest, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + CalculateEffectiveComponentSettingsRequest request = new CalculateEffectiveComponentSettingsRequest + { + ComponentSettingsName = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"), + }; + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync(request); + // End snippet + } + + /// Snippet for CalculateEffectiveComponentSettings + public void CalculateEffectiveComponentSettings() + { + // Snippet: CalculateEffectiveComponentSettings(string, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings"; + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.CalculateEffectiveComponentSettings(name); + // End snippet + } + + /// Snippet for CalculateEffectiveComponentSettingsAsync + public async Task CalculateEffectiveComponentSettingsAsync() + { + // Snippet: CalculateEffectiveComponentSettingsAsync(string, CallSettings) + // Additional: CalculateEffectiveComponentSettingsAsync(string, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/components/[COMPONENT]/settings"; + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync(name); + // End snippet + } + + /// Snippet for CalculateEffectiveComponentSettings + public void CalculateEffectiveComponentSettingsResourceNames() + { + // Snippet: CalculateEffectiveComponentSettings(ComponentSettingsName, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"); + // Make the request + ComponentSettings response = securityCenterSettingsServiceClient.CalculateEffectiveComponentSettings(name); + // End snippet + } + + /// Snippet for CalculateEffectiveComponentSettingsAsync + public async Task CalculateEffectiveComponentSettingsResourceNamesAsync() + { + // Snippet: CalculateEffectiveComponentSettingsAsync(ComponentSettingsName, CallSettings) + // Additional: CalculateEffectiveComponentSettingsAsync(ComponentSettingsName, CancellationToken) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ComponentSettingsName name = ComponentSettingsName.FromOrganizationComponent("[ORGANIZATION]", "[COMPONENT]"); + // Make the request + ComponentSettings response = await securityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync(name); + // End snippet + } + + /// Snippet for ListDetectors + public void ListDetectorsRequestObject() + { + // Snippet: ListDetectors(ListDetectorsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ListDetectorsRequest request = new ListDetectorsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Filter = "", + }; + // Make the request + PagedEnumerable response = securityCenterSettingsServiceClient.ListDetectors(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Detector 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 (ListDetectorsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Detector 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 (Detector 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 ListDetectorsAsync + public async Task ListDetectorsRequestObjectAsync() + { + // Snippet: ListDetectorsAsync(ListDetectorsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ListDetectorsRequest request = new ListDetectorsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Filter = "", + }; + // Make the request + PagedAsyncEnumerable response = securityCenterSettingsServiceClient.ListDetectorsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Detector 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((ListDetectorsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Detector 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 (Detector 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 ListDetectors + public void ListDetectors() + { + // Snippet: ListDetectors(string, string, int?, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterSettingsServiceClient.ListDetectors(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Detector 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 (ListDetectorsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Detector 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 (Detector 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 ListDetectorsAsync + public async Task ListDetectorsAsync() + { + // Snippet: ListDetectorsAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterSettingsServiceClient.ListDetectorsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Detector 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((ListDetectorsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Detector 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 (Detector 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 ListDetectors + public void ListDetectorsResourceNames() + { + // Snippet: ListDetectors(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterSettingsServiceClient.ListDetectors(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Detector 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 (ListDetectorsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Detector 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 (Detector 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 ListDetectorsAsync + public async Task ListDetectorsResourceNamesAsync() + { + // Snippet: ListDetectorsAsync(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterSettingsServiceClient.ListDetectorsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Detector 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((ListDetectorsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Detector 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 (Detector 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 ListComponents + public void ListComponentsRequestObject() + { + // Snippet: ListComponents(ListComponentsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + ListComponentsRequest request = new ListComponentsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterSettingsServiceClient.ListComponents(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (string 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 (ListComponentsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (string 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 (string 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 ListComponentsAsync + public async Task ListComponentsRequestObjectAsync() + { + // Snippet: ListComponentsAsync(ListComponentsRequest, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + ListComponentsRequest request = new ListComponentsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterSettingsServiceClient.ListComponentsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((string 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((ListComponentsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (string 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 (string 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 ListComponents + public void ListComponents() + { + // Snippet: ListComponents(string, string, int?, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterSettingsServiceClient.ListComponents(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (string 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 (ListComponentsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (string 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 (string 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 ListComponentsAsync + public async Task ListComponentsAsync() + { + // Snippet: ListComponentsAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterSettingsServiceClient.ListComponentsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((string 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((ListComponentsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (string 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 (string 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 ListComponents + public void ListComponentsResourceNames() + { + // Snippet: ListComponents(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = SecurityCenterSettingsServiceClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterSettingsServiceClient.ListComponents(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (string 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 (ListComponentsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (string 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 (string 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 ListComponentsAsync + public async Task ListComponentsResourceNamesAsync() + { + // Snippet: ListComponentsAsync(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = await SecurityCenterSettingsServiceClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterSettingsServiceClient.ListComponentsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((string 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((ListComponentsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (string 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 (string 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 + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/BillingSettings.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/BillingSettings.g.cs new file mode 100755 index 000000000000..92896cd8f7a3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/BillingSettings.g.cs @@ -0,0 +1,444 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/settings/v1beta1/billing_settings.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.SecurityCenter.Settings.V1Beta1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/settings/v1beta1/billing_settings.proto + public static partial class BillingSettingsReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/settings/v1beta1/billing_settings.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BillingSettingsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CkNnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvc2V0dGluZ3MvdjFiZXRh", + "MS9iaWxsaW5nX3NldHRpbmdzLnByb3RvEixnb29nbGUuY2xvdWQuc2VjdXJp", + "dHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMRofZ29vZ2xlL2FwaS9maWVsZF9i", + "ZWhhdmlvci5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90", + "byKoAgoPQmlsbGluZ1NldHRpbmdzElQKDGJpbGxpbmdfdGllchgBIAEoDjI5", + "Lmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci5zZXR0aW5ncy52MWJldGEx", + "LkJpbGxpbmdUaWVyQgPgQQMSVAoMYmlsbGluZ190eXBlGAIgASgOMjkuZ29v", + "Z2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEuQmls", + "bGluZ1R5cGVCA+BBAxIzCgpzdGFydF90aW1lGAMgASgLMhouZ29vZ2xlLnBy", + "b3RvYnVmLlRpbWVzdGFtcEID4EEDEjQKC2V4cGlyZV90aW1lGAQgASgLMhou", + "Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDKkYKC0JpbGxpbmdUaWVy", + "EhwKGEJJTExJTkdfVElFUl9VTlNQRUNJRklFRBAAEgwKCFNUQU5EQVJEEAES", + "CwoHUFJFTUlVTRACKmAKC0JpbGxpbmdUeXBlEhwKGEJJTExJTkdfVFlQRV9V", + "TlNQRUNJRklFRBAAEhAKDFNVQlNDUklQVElPThABEhYKElRSSUFMX1NVQlND", + "UklQVElPThACEgkKBUFMUEhBEANCrAIKMGNvbS5nb29nbGUuY2xvdWQuc2Vj", + "dXJpdHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMUIUQmlsbGluZ1NldHRpbmdz", + "UHJvdG9QAVpMY2xvdWQuZ29vZ2xlLmNvbS9nby9zZWN1cml0eWNlbnRlci9z", + "ZXR0aW5ncy9hcGl2MWJldGExL3NldHRpbmdzcGI7c2V0dGluZ3NwYvgBAaoC", + "LEdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5TZXR0aW5ncy5WMUJldGEx", + "ygIsR29vZ2xlXENsb3VkXFNlY3VyaXR5Q2VudGVyXFNldHRpbmdzXFYxYmV0", + "YTHqAjBHb29nbGU6OkNsb3VkOjpTZWN1cml0eUNlbnRlcjo6U2V0dGluZ3M6", + "OlYxYmV0YTFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier), typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingSettings), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingSettings.Parser, new[]{ "BillingTier", "BillingType", "StartTime", "ExpireTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + /// + /// Billing tier options + /// + public enum BillingTier { + /// + /// Default value. This value is unused. + /// + [pbr::OriginalName("BILLING_TIER_UNSPECIFIED")] Unspecified = 0, + /// + /// The standard billing tier. + /// + [pbr::OriginalName("STANDARD")] Standard = 1, + /// + /// The premium billing tier. + /// + [pbr::OriginalName("PREMIUM")] Premium = 2, + } + + /// + /// Billing type + /// + public enum BillingType { + /// + /// Default billing type + /// + [pbr::OriginalName("BILLING_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Subscription for Premium billing tier + /// + [pbr::OriginalName("SUBSCRIPTION")] Subscription = 1, + /// + /// Trial subscription for Premium billing tier + /// + [pbr::OriginalName("TRIAL_SUBSCRIPTION")] TrialSubscription = 2, + /// + /// Alpha customer for Premium billing tier + /// + [pbr::OriginalName("ALPHA")] Alpha = 3, + } + + #endregion + + #region Messages + /// + /// Billing settings + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BillingSettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BillingSettings()); + 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.SecurityCenter.Settings.V1Beta1.BillingSettingsReflection.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 BillingSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BillingSettings(BillingSettings other) : this() { + billingTier_ = other.billingTier_; + billingType_ = other.billingType_; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + expireTime_ = other.expireTime_ != null ? other.expireTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BillingSettings Clone() { + return new BillingSettings(this); + } + + /// Field number for the "billing_tier" field. + public const int BillingTierFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier billingTier_ = global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified; + /// + /// Output only. Billing tier selected by customer + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier BillingTier { + get { return billingTier_; } + set { + billingTier_ = value; + } + } + + /// Field number for the "billing_type" field. + public const int BillingTypeFieldNumber = 2; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingType billingType_ = global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingType.Unspecified; + /// + /// Output only. Type of billing method + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingType BillingType { + get { return billingType_; } + set { + billingType_ = value; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Output only. The absolute point in time when the subscription became effective. + /// Can be compared to expire_time value to determine full contract duration + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "expire_time" field. + public const int ExpireTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp expireTime_; + /// + /// Output only. The absolute point in time when the subscription expires. + /// + /// If this field is populated and billing_tier is STANDARD, this is + /// indication of a point in the _past_ when a PREMIUM access ended. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpireTime { + get { return expireTime_; } + set { + expireTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BillingSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BillingSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BillingTier != other.BillingTier) return false; + if (BillingType != other.BillingType) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(ExpireTime, other.ExpireTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BillingTier != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified) hash ^= BillingTier.GetHashCode(); + if (BillingType != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingType.Unspecified) hash ^= BillingType.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (expireTime_ != null) hash ^= ExpireTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BillingTier != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) BillingTier); + } + if (BillingType != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) BillingType); + } + if (startTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTime); + } + if (expireTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExpireTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BillingTier != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) BillingTier); + } + if (BillingType != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) BillingType); + } + if (startTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTime); + } + if (expireTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExpireTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BillingTier != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BillingTier); + } + if (BillingType != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BillingType); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (expireTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpireTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BillingSettings other) { + if (other == null) { + return; + } + if (other.BillingTier != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified) { + BillingTier = other.BillingTier; + } + if (other.BillingType != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingType.Unspecified) { + BillingType = other.BillingType; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.expireTime_ != null) { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpireTime.MergeFrom(other.ExpireTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BillingTier = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier) input.ReadEnum(); + break; + } + case 16: { + BillingType = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingType) input.ReadEnum(); + break; + } + case 26: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 34: { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpireTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BillingTier = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier) input.ReadEnum(); + break; + } + case 16: { + BillingType = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingType) input.ReadEnum(); + break; + } + case 26: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 34: { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpireTime); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/ComponentSettings.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/ComponentSettings.g.cs new file mode 100755 index 000000000000..317a31158b8d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/ComponentSettings.g.cs @@ -0,0 +1,2119 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/settings/v1beta1/component_settings.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.SecurityCenter.Settings.V1Beta1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/settings/v1beta1/component_settings.proto + public static partial class ComponentSettingsReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/settings/v1beta1/component_settings.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ComponentSettingsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CkVnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvc2V0dGluZ3MvdjFiZXRh", + "MS9jb21wb25lbnRfc2V0dGluZ3MucHJvdG8SLGdvb2dsZS5jbG91ZC5zZWN1", + "cml0eWNlbnRlci5zZXR0aW5ncy52MWJldGExGh9nb29nbGUvYXBpL2ZpZWxk", + "X2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvGh9n", + "b29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvIqcMChFDb21wb25lbnRT", + "ZXR0aW5ncxIMCgRuYW1lGAEgASgJElUKBXN0YXRlGAIgASgOMkYuZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEuQ29tcG9u", + "ZW50RW5hYmxlbWVudFN0YXRlEiQKF3Byb2plY3Rfc2VydmljZV9hY2NvdW50", + "GAMgASgJQgPgQQMScAoRZGV0ZWN0b3Jfc2V0dGluZ3MYBCADKAsyVS5nb29n", + "bGUuY2xvdWQuc2VjdXJpdHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMS5Db21w", + "b25lbnRTZXR0aW5ncy5EZXRlY3RvclNldHRpbmdzRW50cnkSEQoEZXRhZxgF", + "IAEoCUID4EEDEjQKC3VwZGF0ZV90aW1lGAYgASgLMhouZ29vZ2xlLnByb3Rv", + "YnVmLlRpbWVzdGFtcEID4EEDEn0KI2NvbnRhaW5lcl90aHJlYXRfZGV0ZWN0", + "aW9uX3NldHRpbmdzGCkgASgLMk4uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2Vu", + "dGVyLnNldHRpbmdzLnYxYmV0YTEuQ29udGFpbmVyVGhyZWF0RGV0ZWN0aW9u", + "U2V0dGluZ3NIABJ1Ch9ldmVudF90aHJlYXRfZGV0ZWN0aW9uX3NldHRpbmdz", + "GCogASgLMkouZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRpbmdz", + "LnYxYmV0YTEuRXZlbnRUaHJlYXREZXRlY3Rpb25TZXR0aW5nc0gAEnsKInNl", + "Y3VyaXR5X2hlYWx0aF9hbmFseXRpY3Nfc2V0dGluZ3MYLCABKAsyTS5nb29n", + "bGUuY2xvdWQuc2VjdXJpdHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMS5TZWN1", + "cml0eUhlYWx0aEFuYWx5dGljc1NldHRpbmdzSAASaQodd2ViX3NlY3VyaXR5", + "X3NjYW5uZXJfc2V0dGluZ3MYKCABKAsyQC5nb29nbGUuY2xvdWQuc2VjdXJp", + "dHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMS5XZWJTZWN1cml0eVNjYW5uZXJI", + "ABppChBEZXRlY3RvclNldHRpbmdzElUKBXN0YXRlGAEgASgOMkYuZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEuQ29tcG9u", + "ZW50RW5hYmxlbWVudFN0YXRlGokBChVEZXRlY3RvclNldHRpbmdzRW50cnkS", + "CwoDa2V5GAEgASgJEl8KBXZhbHVlGAIgASgLMlAuZ29vZ2xlLmNsb3VkLnNl", + "Y3VyaXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEuQ29tcG9uZW50U2V0dGlu", + "Z3MuRGV0ZWN0b3JTZXR0aW5nczoCOAE64QPqQd0DCi9zZWN1cml0eWNlbnRl", + "ci5nb29nbGVhcGlzLmNvbS9Db21wb25lbnRTZXR0aW5ncxI8b3JnYW5pemF0", + "aW9ucy97b3JnYW5pemF0aW9ufS9jb21wb25lbnRzL3tjb21wb25lbnR9L3Nl", + "dHRpbmdzEjBmb2xkZXJzL3tmb2xkZXJ9L2NvbXBvbmVudHMve2NvbXBvbmVu", + "dH0vc2V0dGluZ3MSMnByb2plY3RzL3twcm9qZWN0fS9jb21wb25lbnRzL3tj", + "b21wb25lbnR9L3NldHRpbmdzElpwcm9qZWN0cy97cHJvamVjdH0vbG9jYXRp", + "b25zL3tsb2NhdGlvbn0vY2x1c3RlcnMve2NsdXN0ZXJ9L2NvbXBvbmVudHMv", + "e2NvbXBvbmVudH0vc2V0dGluZ3MSVnByb2plY3RzL3twcm9qZWN0fS9yZWdp", + "b25zL3tyZWdpb259L2NsdXN0ZXJzL3tjbHVzdGVyfS9jb21wb25lbnRzL3tj", + "b21wb25lbnR9L3NldHRpbmdzElJwcm9qZWN0cy97cHJvamVjdH0vem9uZXMv", + "e3pvbmV9L2NsdXN0ZXJzL3tjbHVzdGVyfS9jb21wb25lbnRzL3tjb21wb25l", + "bnR9L3NldHRpbmdzQhMKEXNwZWNpZmljX3NldHRpbmdzIhQKEldlYlNlY3Vy", + "aXR5U2Nhbm5lciIiCiBDb250YWluZXJUaHJlYXREZXRlY3Rpb25TZXR0aW5n", + "cyIeChxFdmVudFRocmVhdERldGVjdGlvblNldHRpbmdzIrYDCh9TZWN1cml0", + "eUhlYWx0aEFuYWx5dGljc1NldHRpbmdzEooBChtub25fb3JnX2lhbV9tZW1i", + "ZXJfc2V0dGluZ3MYASABKAsyZS5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50", + "ZXIuc2V0dGluZ3MudjFiZXRhMS5TZWN1cml0eUhlYWx0aEFuYWx5dGljc1Nl", + "dHRpbmdzLk5vbk9yZ0lhbU1lbWJlclNldHRpbmdzEpEBCh5hZG1pbl9zZXJ2", + "aWNlX2FjY291bnRfc2V0dGluZ3MYAiABKAsyaS5nb29nbGUuY2xvdWQuc2Vj", + "dXJpdHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMS5TZWN1cml0eUhlYWx0aEFu", + "YWx5dGljc1NldHRpbmdzLkFkbWluU2VydmljZUFjY291bnRTZXR0aW5ncxo2", + "ChdOb25PcmdJYW1NZW1iZXJTZXR0aW5ncxIbChNhcHByb3ZlZF9pZGVudGl0", + "aWVzGAEgAygJGjoKG0FkbWluU2VydmljZUFjY291bnRTZXR0aW5ncxIbChNh", + "cHByb3ZlZF9pZGVudGl0aWVzGAEgAygJKmwKGENvbXBvbmVudEVuYWJsZW1l", + "bnRTdGF0ZRIqCiZDT01QT05FTlRfRU5BQkxFTUVOVF9TVEFURV9VTlNQRUNJ", + "RklFRBAAEgsKB0RJU0FCTEUQARIKCgZFTkFCTEUQAhILCgdJTkhFUklUEANC", + "rgIKMGNvbS5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIuc2V0dGluZ3Mu", + "djFiZXRhMUIWQ29tcG9uZW50U2V0dGluZ3NQcm90b1ABWkxjbG91ZC5nb29n", + "bGUuY29tL2dvL3NlY3VyaXR5Y2VudGVyL3NldHRpbmdzL2FwaXYxYmV0YTEv", + "c2V0dGluZ3NwYjtzZXR0aW5nc3Bi+AEBqgIsR29vZ2xlLkNsb3VkLlNlY3Vy", + "aXR5Q2VudGVyLlNldHRpbmdzLlYxQmV0YTHKAixHb29nbGVcQ2xvdWRcU2Vj", + "dXJpdHlDZW50ZXJcU2V0dGluZ3NcVjFiZXRhMeoCMEdvb2dsZTo6Q2xvdWQ6", + "OlNlY3VyaXR5Q2VudGVyOjpTZXR0aW5nczo6VjFiZXRhMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings.Parser, new[]{ "Name", "State", "ProjectServiceAccount", "DetectorSettings", "Etag", "UpdateTime", "ContainerThreatDetectionSettings", "EventThreatDetectionSettings", "SecurityHealthAnalyticsSettings", "WebSecurityScannerSettings" }, new[]{ "SpecificSettings" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings.Types.DetectorSettings), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings.Types.DetectorSettings.Parser, new[]{ "State" }, null, null, null, null), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.WebSecurityScanner), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.WebSecurityScanner.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ContainerThreatDetectionSettings), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ContainerThreatDetectionSettings.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.EventThreatDetectionSettings), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.EventThreatDetectionSettings.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Parser, new[]{ "NonOrgIamMemberSettings", "AdminServiceAccountSettings" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.NonOrgIamMemberSettings), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.NonOrgIamMemberSettings.Parser, new[]{ "ApprovedIdentities" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.AdminServiceAccountSettings), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.AdminServiceAccountSettings.Parser, new[]{ "ApprovedIdentities" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Enums + /// + /// Valid states for a component + /// + public enum ComponentEnablementState { + /// + /// No state specified, equivalent of INHERIT + /// + [pbr::OriginalName("COMPONENT_ENABLEMENT_STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// Disable the component + /// + [pbr::OriginalName("DISABLE")] Disable = 1, + /// + /// Enable the component + /// + [pbr::OriginalName("ENABLE")] Enable = 2, + /// + /// Inherit the state from resources parent folder or organization. + /// + [pbr::OriginalName("INHERIT")] Inherit = 3, + } + + #endregion + + #region Messages + /// + /// Component Settings for Security Command Center + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ComponentSettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComponentSettings()); + 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.SecurityCenter.Settings.V1Beta1.ComponentSettingsReflection.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 ComponentSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComponentSettings(ComponentSettings other) : this() { + name_ = other.name_; + state_ = other.state_; + projectServiceAccount_ = other.projectServiceAccount_; + detectorSettings_ = other.detectorSettings_.Clone(); + etag_ = other.etag_; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + switch (other.SpecificSettingsCase) { + case SpecificSettingsOneofCase.ContainerThreatDetectionSettings: + ContainerThreatDetectionSettings = other.ContainerThreatDetectionSettings.Clone(); + break; + case SpecificSettingsOneofCase.EventThreatDetectionSettings: + EventThreatDetectionSettings = other.EventThreatDetectionSettings.Clone(); + break; + case SpecificSettingsOneofCase.SecurityHealthAnalyticsSettings: + SecurityHealthAnalyticsSettings = other.SecurityHealthAnalyticsSettings.Clone(); + break; + case SpecificSettingsOneofCase.WebSecurityScannerSettings: + WebSecurityScannerSettings = other.WebSecurityScannerSettings.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComponentSettings Clone() { + return new ComponentSettings(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The relative resource name of the component settings. + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + [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 "state" field. + public const int StateFieldNumber = 2; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState state_ = global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified; + /// + /// ENABLE to enable component, DISABLE to disable and INHERIT to inherit + /// setting from ancestors. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "project_service_account" field. + public const int ProjectServiceAccountFieldNumber = 3; + private string projectServiceAccount_ = ""; + /// + /// Output only. The service account to be used for security center component. + /// The component must have permission to "act as" the service account. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ProjectServiceAccount { + get { return projectServiceAccount_; } + set { + projectServiceAccount_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "detector_settings" field. + public const int DetectorSettingsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_detectorSettings_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings.Types.DetectorSettings.Parser), 34); + private readonly pbc::MapField detectorSettings_ = new pbc::MapField(); + /// + /// Settings for detectors. Not all detectors must have settings present at + /// each and every level in the hierarchy. If it is not present the setting + /// will be inherited from its ancestors folders, organizations or the + /// defaults. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField DetectorSettings { + get { return detectorSettings_; } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 5; + private string etag_ = ""; + /// + /// Output only. An fingerprint used for optimistic concurrency. If none is provided + /// on updates then the existing metadata will be blindly overwritten. + /// + [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 "update_time" field. + public const int UpdateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time these settings were last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "container_threat_detection_settings" field. + public const int ContainerThreatDetectionSettingsFieldNumber = 41; + /// + /// Container Threate Detection specific settings + /// For component, expect CONTAINER_THREAT_DETECTION + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ContainerThreatDetectionSettings ContainerThreatDetectionSettings { + get { return specificSettingsCase_ == SpecificSettingsOneofCase.ContainerThreatDetectionSettings ? (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ContainerThreatDetectionSettings) specificSettings_ : null; } + set { + specificSettings_ = value; + specificSettingsCase_ = value == null ? SpecificSettingsOneofCase.None : SpecificSettingsOneofCase.ContainerThreatDetectionSettings; + } + } + + /// Field number for the "event_threat_detection_settings" field. + public const int EventThreatDetectionSettingsFieldNumber = 42; + /// + /// Event Threat Detection specific settings + /// For component, expect EVENT_THREAT_DETECTION + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.EventThreatDetectionSettings EventThreatDetectionSettings { + get { return specificSettingsCase_ == SpecificSettingsOneofCase.EventThreatDetectionSettings ? (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.EventThreatDetectionSettings) specificSettings_ : null; } + set { + specificSettings_ = value; + specificSettingsCase_ = value == null ? SpecificSettingsOneofCase.None : SpecificSettingsOneofCase.EventThreatDetectionSettings; + } + } + + /// Field number for the "security_health_analytics_settings" field. + public const int SecurityHealthAnalyticsSettingsFieldNumber = 44; + /// + /// Security Health Analytics specific settings + /// For component, expect SECURITY_HEALTH_ANALYTICS + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings SecurityHealthAnalyticsSettings { + get { return specificSettingsCase_ == SpecificSettingsOneofCase.SecurityHealthAnalyticsSettings ? (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings) specificSettings_ : null; } + set { + specificSettings_ = value; + specificSettingsCase_ = value == null ? SpecificSettingsOneofCase.None : SpecificSettingsOneofCase.SecurityHealthAnalyticsSettings; + } + } + + /// Field number for the "web_security_scanner_settings" field. + public const int WebSecurityScannerSettingsFieldNumber = 40; + /// + /// Web Security Scanner specific settings + /// For component, expect WEB_SECURITY_SCANNER + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.WebSecurityScanner WebSecurityScannerSettings { + get { return specificSettingsCase_ == SpecificSettingsOneofCase.WebSecurityScannerSettings ? (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.WebSecurityScanner) specificSettings_ : null; } + set { + specificSettings_ = value; + specificSettingsCase_ = value == null ? SpecificSettingsOneofCase.None : SpecificSettingsOneofCase.WebSecurityScannerSettings; + } + } + + private object specificSettings_; + /// Enum of possible cases for the "specific_settings" oneof. + public enum SpecificSettingsOneofCase { + None = 0, + ContainerThreatDetectionSettings = 41, + EventThreatDetectionSettings = 42, + SecurityHealthAnalyticsSettings = 44, + WebSecurityScannerSettings = 40, + } + private SpecificSettingsOneofCase specificSettingsCase_ = SpecificSettingsOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SpecificSettingsOneofCase SpecificSettingsCase { + get { return specificSettingsCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSpecificSettings() { + specificSettingsCase_ = SpecificSettingsOneofCase.None; + specificSettings_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ComponentSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComponentSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (State != other.State) return false; + if (ProjectServiceAccount != other.ProjectServiceAccount) return false; + if (!DetectorSettings.Equals(other.DetectorSettings)) return false; + if (Etag != other.Etag) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(ContainerThreatDetectionSettings, other.ContainerThreatDetectionSettings)) return false; + if (!object.Equals(EventThreatDetectionSettings, other.EventThreatDetectionSettings)) return false; + if (!object.Equals(SecurityHealthAnalyticsSettings, other.SecurityHealthAnalyticsSettings)) return false; + if (!object.Equals(WebSecurityScannerSettings, other.WebSecurityScannerSettings)) return false; + if (SpecificSettingsCase != other.SpecificSettingsCase) 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 (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) hash ^= State.GetHashCode(); + if (ProjectServiceAccount.Length != 0) hash ^= ProjectServiceAccount.GetHashCode(); + hash ^= DetectorSettings.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (specificSettingsCase_ == SpecificSettingsOneofCase.ContainerThreatDetectionSettings) hash ^= ContainerThreatDetectionSettings.GetHashCode(); + if (specificSettingsCase_ == SpecificSettingsOneofCase.EventThreatDetectionSettings) hash ^= EventThreatDetectionSettings.GetHashCode(); + if (specificSettingsCase_ == SpecificSettingsOneofCase.SecurityHealthAnalyticsSettings) hash ^= SecurityHealthAnalyticsSettings.GetHashCode(); + if (specificSettingsCase_ == SpecificSettingsOneofCase.WebSecurityScannerSettings) hash ^= WebSecurityScannerSettings.GetHashCode(); + hash ^= (int) specificSettingsCase_; + 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 (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (ProjectServiceAccount.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ProjectServiceAccount); + } + detectorSettings_.WriteTo(output, _map_detectorSettings_codec); + if (Etag.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Etag); + } + if (updateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateTime); + } + if (specificSettingsCase_ == SpecificSettingsOneofCase.WebSecurityScannerSettings) { + output.WriteRawTag(194, 2); + output.WriteMessage(WebSecurityScannerSettings); + } + if (specificSettingsCase_ == SpecificSettingsOneofCase.ContainerThreatDetectionSettings) { + output.WriteRawTag(202, 2); + output.WriteMessage(ContainerThreatDetectionSettings); + } + if (specificSettingsCase_ == SpecificSettingsOneofCase.EventThreatDetectionSettings) { + output.WriteRawTag(210, 2); + output.WriteMessage(EventThreatDetectionSettings); + } + if (specificSettingsCase_ == SpecificSettingsOneofCase.SecurityHealthAnalyticsSettings) { + output.WriteRawTag(226, 2); + output.WriteMessage(SecurityHealthAnalyticsSettings); + } + 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 (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (ProjectServiceAccount.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ProjectServiceAccount); + } + detectorSettings_.WriteTo(ref output, _map_detectorSettings_codec); + if (Etag.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Etag); + } + if (updateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateTime); + } + if (specificSettingsCase_ == SpecificSettingsOneofCase.WebSecurityScannerSettings) { + output.WriteRawTag(194, 2); + output.WriteMessage(WebSecurityScannerSettings); + } + if (specificSettingsCase_ == SpecificSettingsOneofCase.ContainerThreatDetectionSettings) { + output.WriteRawTag(202, 2); + output.WriteMessage(ContainerThreatDetectionSettings); + } + if (specificSettingsCase_ == SpecificSettingsOneofCase.EventThreatDetectionSettings) { + output.WriteRawTag(210, 2); + output.WriteMessage(EventThreatDetectionSettings); + } + if (specificSettingsCase_ == SpecificSettingsOneofCase.SecurityHealthAnalyticsSettings) { + output.WriteRawTag(226, 2); + output.WriteMessage(SecurityHealthAnalyticsSettings); + } + 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 (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (ProjectServiceAccount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ProjectServiceAccount); + } + size += detectorSettings_.CalculateSize(_map_detectorSettings_codec); + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (specificSettingsCase_ == SpecificSettingsOneofCase.ContainerThreatDetectionSettings) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ContainerThreatDetectionSettings); + } + if (specificSettingsCase_ == SpecificSettingsOneofCase.EventThreatDetectionSettings) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(EventThreatDetectionSettings); + } + if (specificSettingsCase_ == SpecificSettingsOneofCase.SecurityHealthAnalyticsSettings) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SecurityHealthAnalyticsSettings); + } + if (specificSettingsCase_ == SpecificSettingsOneofCase.WebSecurityScannerSettings) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(WebSecurityScannerSettings); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComponentSettings other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) { + State = other.State; + } + if (other.ProjectServiceAccount.Length != 0) { + ProjectServiceAccount = other.ProjectServiceAccount; + } + detectorSettings_.MergeFrom(other.detectorSettings_); + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + switch (other.SpecificSettingsCase) { + case SpecificSettingsOneofCase.ContainerThreatDetectionSettings: + if (ContainerThreatDetectionSettings == null) { + ContainerThreatDetectionSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ContainerThreatDetectionSettings(); + } + ContainerThreatDetectionSettings.MergeFrom(other.ContainerThreatDetectionSettings); + break; + case SpecificSettingsOneofCase.EventThreatDetectionSettings: + if (EventThreatDetectionSettings == null) { + EventThreatDetectionSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.EventThreatDetectionSettings(); + } + EventThreatDetectionSettings.MergeFrom(other.EventThreatDetectionSettings); + break; + case SpecificSettingsOneofCase.SecurityHealthAnalyticsSettings: + if (SecurityHealthAnalyticsSettings == null) { + SecurityHealthAnalyticsSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings(); + } + SecurityHealthAnalyticsSettings.MergeFrom(other.SecurityHealthAnalyticsSettings); + break; + case SpecificSettingsOneofCase.WebSecurityScannerSettings: + if (WebSecurityScannerSettings == null) { + WebSecurityScannerSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.WebSecurityScanner(); + } + WebSecurityScannerSettings.MergeFrom(other.WebSecurityScannerSettings); + 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 16: { + State = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState) input.ReadEnum(); + break; + } + case 26: { + ProjectServiceAccount = input.ReadString(); + break; + } + case 34: { + detectorSettings_.AddEntriesFrom(input, _map_detectorSettings_codec); + break; + } + case 42: { + Etag = input.ReadString(); + break; + } + case 50: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 322: { + global::Google.Cloud.SecurityCenter.Settings.V1Beta1.WebSecurityScanner subBuilder = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.WebSecurityScanner(); + if (specificSettingsCase_ == SpecificSettingsOneofCase.WebSecurityScannerSettings) { + subBuilder.MergeFrom(WebSecurityScannerSettings); + } + input.ReadMessage(subBuilder); + WebSecurityScannerSettings = subBuilder; + break; + } + case 330: { + global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ContainerThreatDetectionSettings subBuilder = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ContainerThreatDetectionSettings(); + if (specificSettingsCase_ == SpecificSettingsOneofCase.ContainerThreatDetectionSettings) { + subBuilder.MergeFrom(ContainerThreatDetectionSettings); + } + input.ReadMessage(subBuilder); + ContainerThreatDetectionSettings = subBuilder; + break; + } + case 338: { + global::Google.Cloud.SecurityCenter.Settings.V1Beta1.EventThreatDetectionSettings subBuilder = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.EventThreatDetectionSettings(); + if (specificSettingsCase_ == SpecificSettingsOneofCase.EventThreatDetectionSettings) { + subBuilder.MergeFrom(EventThreatDetectionSettings); + } + input.ReadMessage(subBuilder); + EventThreatDetectionSettings = subBuilder; + break; + } + case 354: { + global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings subBuilder = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings(); + if (specificSettingsCase_ == SpecificSettingsOneofCase.SecurityHealthAnalyticsSettings) { + subBuilder.MergeFrom(SecurityHealthAnalyticsSettings); + } + input.ReadMessage(subBuilder); + SecurityHealthAnalyticsSettings = 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: { + Name = input.ReadString(); + break; + } + case 16: { + State = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState) input.ReadEnum(); + break; + } + case 26: { + ProjectServiceAccount = input.ReadString(); + break; + } + case 34: { + detectorSettings_.AddEntriesFrom(ref input, _map_detectorSettings_codec); + break; + } + case 42: { + Etag = input.ReadString(); + break; + } + case 50: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 322: { + global::Google.Cloud.SecurityCenter.Settings.V1Beta1.WebSecurityScanner subBuilder = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.WebSecurityScanner(); + if (specificSettingsCase_ == SpecificSettingsOneofCase.WebSecurityScannerSettings) { + subBuilder.MergeFrom(WebSecurityScannerSettings); + } + input.ReadMessage(subBuilder); + WebSecurityScannerSettings = subBuilder; + break; + } + case 330: { + global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ContainerThreatDetectionSettings subBuilder = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ContainerThreatDetectionSettings(); + if (specificSettingsCase_ == SpecificSettingsOneofCase.ContainerThreatDetectionSettings) { + subBuilder.MergeFrom(ContainerThreatDetectionSettings); + } + input.ReadMessage(subBuilder); + ContainerThreatDetectionSettings = subBuilder; + break; + } + case 338: { + global::Google.Cloud.SecurityCenter.Settings.V1Beta1.EventThreatDetectionSettings subBuilder = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.EventThreatDetectionSettings(); + if (specificSettingsCase_ == SpecificSettingsOneofCase.EventThreatDetectionSettings) { + subBuilder.MergeFrom(EventThreatDetectionSettings); + } + input.ReadMessage(subBuilder); + EventThreatDetectionSettings = subBuilder; + break; + } + case 354: { + global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings subBuilder = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings(); + if (specificSettingsCase_ == SpecificSettingsOneofCase.SecurityHealthAnalyticsSettings) { + subBuilder.MergeFrom(SecurityHealthAnalyticsSettings); + } + input.ReadMessage(subBuilder); + SecurityHealthAnalyticsSettings = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ComponentSettings message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Settings for each detector. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DetectorSettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DetectorSettings()); + 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.SecurityCenter.Settings.V1Beta1.ComponentSettings.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 DetectorSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DetectorSettings(DetectorSettings other) : this() { + state_ = other.state_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DetectorSettings Clone() { + return new DetectorSettings(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState state_ = global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified; + /// + /// ENABLE to enable component, DISABLE to disable and INHERIT to inherit + /// setting from ancestors. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DetectorSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DetectorSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (State != other.State) 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 (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) hash ^= State.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 (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + 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 (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + 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 (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DetectorSettings other) { + if (other == null) { + return; + } + if (other.State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) { + State = other.State; + } + _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 8: { + State = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState) input.ReadEnum(); + 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 8: { + State = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// User specified settings for Web Security Scanner + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WebSecurityScanner : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WebSecurityScanner()); + 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.SecurityCenter.Settings.V1Beta1.ComponentSettingsReflection.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 WebSecurityScanner() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WebSecurityScanner(WebSecurityScanner other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WebSecurityScanner Clone() { + return new WebSecurityScanner(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WebSecurityScanner); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WebSecurityScanner other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WebSecurityScanner other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// User specified settings for KTD + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ContainerThreatDetectionSettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContainerThreatDetectionSettings()); + 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.SecurityCenter.Settings.V1Beta1.ComponentSettingsReflection.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 ContainerThreatDetectionSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContainerThreatDetectionSettings(ContainerThreatDetectionSettings other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContainerThreatDetectionSettings Clone() { + return new ContainerThreatDetectionSettings(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ContainerThreatDetectionSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ContainerThreatDetectionSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ContainerThreatDetectionSettings other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// User specified settings for ETD + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EventThreatDetectionSettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EventThreatDetectionSettings()); + 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.SecurityCenter.Settings.V1Beta1.ComponentSettingsReflection.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 EventThreatDetectionSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventThreatDetectionSettings(EventThreatDetectionSettings other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventThreatDetectionSettings Clone() { + return new EventThreatDetectionSettings(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EventThreatDetectionSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EventThreatDetectionSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EventThreatDetectionSettings other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// User specified settings for Security Health Analytics + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SecurityHealthAnalyticsSettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SecurityHealthAnalyticsSettings()); + 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.SecurityCenter.Settings.V1Beta1.ComponentSettingsReflection.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 SecurityHealthAnalyticsSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecurityHealthAnalyticsSettings(SecurityHealthAnalyticsSettings other) : this() { + nonOrgIamMemberSettings_ = other.nonOrgIamMemberSettings_ != null ? other.nonOrgIamMemberSettings_.Clone() : null; + adminServiceAccountSettings_ = other.adminServiceAccountSettings_ != null ? other.adminServiceAccountSettings_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecurityHealthAnalyticsSettings Clone() { + return new SecurityHealthAnalyticsSettings(this); + } + + /// Field number for the "non_org_iam_member_settings" field. + public const int NonOrgIamMemberSettingsFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.NonOrgIamMemberSettings nonOrgIamMemberSettings_; + /// + /// Settings for "NON_ORG_IAM_MEMBER" scanner. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.NonOrgIamMemberSettings NonOrgIamMemberSettings { + get { return nonOrgIamMemberSettings_; } + set { + nonOrgIamMemberSettings_ = value; + } + } + + /// Field number for the "admin_service_account_settings" field. + public const int AdminServiceAccountSettingsFieldNumber = 2; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.AdminServiceAccountSettings adminServiceAccountSettings_; + /// + /// Settings for "ADMIN_SERVICE_ACCOUNT" scanner. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.AdminServiceAccountSettings AdminServiceAccountSettings { + get { return adminServiceAccountSettings_; } + set { + adminServiceAccountSettings_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SecurityHealthAnalyticsSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SecurityHealthAnalyticsSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(NonOrgIamMemberSettings, other.NonOrgIamMemberSettings)) return false; + if (!object.Equals(AdminServiceAccountSettings, other.AdminServiceAccountSettings)) 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 (nonOrgIamMemberSettings_ != null) hash ^= NonOrgIamMemberSettings.GetHashCode(); + if (adminServiceAccountSettings_ != null) hash ^= AdminServiceAccountSettings.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 (nonOrgIamMemberSettings_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NonOrgIamMemberSettings); + } + if (adminServiceAccountSettings_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AdminServiceAccountSettings); + } + 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 (nonOrgIamMemberSettings_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NonOrgIamMemberSettings); + } + if (adminServiceAccountSettings_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AdminServiceAccountSettings); + } + 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 (nonOrgIamMemberSettings_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NonOrgIamMemberSettings); + } + if (adminServiceAccountSettings_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdminServiceAccountSettings); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SecurityHealthAnalyticsSettings other) { + if (other == null) { + return; + } + if (other.nonOrgIamMemberSettings_ != null) { + if (nonOrgIamMemberSettings_ == null) { + NonOrgIamMemberSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.NonOrgIamMemberSettings(); + } + NonOrgIamMemberSettings.MergeFrom(other.NonOrgIamMemberSettings); + } + if (other.adminServiceAccountSettings_ != null) { + if (adminServiceAccountSettings_ == null) { + AdminServiceAccountSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.AdminServiceAccountSettings(); + } + AdminServiceAccountSettings.MergeFrom(other.AdminServiceAccountSettings); + } + _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 (nonOrgIamMemberSettings_ == null) { + NonOrgIamMemberSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.NonOrgIamMemberSettings(); + } + input.ReadMessage(NonOrgIamMemberSettings); + break; + } + case 18: { + if (adminServiceAccountSettings_ == null) { + AdminServiceAccountSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.AdminServiceAccountSettings(); + } + input.ReadMessage(AdminServiceAccountSettings); + 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 (nonOrgIamMemberSettings_ == null) { + NonOrgIamMemberSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.NonOrgIamMemberSettings(); + } + input.ReadMessage(NonOrgIamMemberSettings); + break; + } + case 18: { + if (adminServiceAccountSettings_ == null) { + AdminServiceAccountSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.Types.AdminServiceAccountSettings(); + } + input.ReadMessage(AdminServiceAccountSettings); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the SecurityHealthAnalyticsSettings message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Settings for "NON_ORG_IAM_MEMBER" scanner. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NonOrgIamMemberSettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NonOrgIamMemberSettings()); + 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.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.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 NonOrgIamMemberSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NonOrgIamMemberSettings(NonOrgIamMemberSettings other) : this() { + approvedIdentities_ = other.approvedIdentities_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NonOrgIamMemberSettings Clone() { + return new NonOrgIamMemberSettings(this); + } + + /// Field number for the "approved_identities" field. + public const int ApprovedIdentitiesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_approvedIdentities_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField approvedIdentities_ = new pbc::RepeatedField(); + /// + /// User emails ending in the provided identities are allowed to have IAM + /// permissions on a project or the organization. Otherwise a finding will + /// be created. + /// A valid identity can be: + /// * a domain that starts with "@", e.g. "@yourdomain.com". + /// * a fully specified email address that does not start with "@", e.g. + /// "abc@gmail.com" + /// Regular expressions are not supported. + /// Service accounts are not examined by the scanner and will be omitted if + /// added to the list. + /// If not specified, only Gmail accounts will be considered as non-approved. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ApprovedIdentities { + get { return approvedIdentities_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NonOrgIamMemberSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NonOrgIamMemberSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!approvedIdentities_.Equals(other.approvedIdentities_)) 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 ^= approvedIdentities_.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 + approvedIdentities_.WriteTo(output, _repeated_approvedIdentities_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) { + approvedIdentities_.WriteTo(ref output, _repeated_approvedIdentities_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 += approvedIdentities_.CalculateSize(_repeated_approvedIdentities_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NonOrgIamMemberSettings other) { + if (other == null) { + return; + } + approvedIdentities_.Add(other.approvedIdentities_); + _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: { + approvedIdentities_.AddEntriesFrom(input, _repeated_approvedIdentities_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: { + approvedIdentities_.AddEntriesFrom(ref input, _repeated_approvedIdentities_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Settings for "ADMIN_SERVICE_ACCOUNT" scanner. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AdminServiceAccountSettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdminServiceAccountSettings()); + 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.SecurityCenter.Settings.V1Beta1.SecurityHealthAnalyticsSettings.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 AdminServiceAccountSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdminServiceAccountSettings(AdminServiceAccountSettings other) : this() { + approvedIdentities_ = other.approvedIdentities_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdminServiceAccountSettings Clone() { + return new AdminServiceAccountSettings(this); + } + + /// Field number for the "approved_identities" field. + public const int ApprovedIdentitiesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_approvedIdentities_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField approvedIdentities_ = new pbc::RepeatedField(); + /// + /// User-created service accounts ending in the provided identities are + /// allowed to have Admin, Owner or Editor roles granted to them. Otherwise + /// a finding will be created. + /// A valid identity can be: + /// * a partilly specified service account that starts with "@", e.g. + /// "@myproject.iam.gserviceaccount.com". This approves all the service + /// accounts suffixed with the specified identity. + /// * a fully specified service account that does not start with "@", e.g. + /// "myadmin@myproject.iam.gserviceaccount.com". + /// Google-created service accounts are all approved. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ApprovedIdentities { + get { return approvedIdentities_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AdminServiceAccountSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AdminServiceAccountSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!approvedIdentities_.Equals(other.approvedIdentities_)) 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 ^= approvedIdentities_.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 + approvedIdentities_.WriteTo(output, _repeated_approvedIdentities_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) { + approvedIdentities_.WriteTo(ref output, _repeated_approvedIdentities_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 += approvedIdentities_.CalculateSize(_repeated_approvedIdentities_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AdminServiceAccountSettings other) { + if (other == null) { + return; + } + approvedIdentities_.Add(other.approvedIdentities_); + _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: { + approvedIdentities_.AddEntriesFrom(input, _repeated_approvedIdentities_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: { + approvedIdentities_.AddEntriesFrom(ref input, _repeated_approvedIdentities_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/ComponentSettingsResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/ComponentSettingsResourceNames.g.cs new file mode 100755 index 000000000000..9b3f33a144b4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/ComponentSettingsResourceNames.g.cs @@ -0,0 +1,568 @@ +// 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 gcssv = Google.Cloud.SecurityCenter.Settings.V1Beta1; +using sys = System; + +namespace Google.Cloud.SecurityCenter.Settings.V1Beta1 +{ + /// Resource name for the ComponentSettings resource. + public sealed partial class ComponentSettingsName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern organizations/{organization}/components/{component}/settings. + /// + OrganizationComponent = 1, + + /// A resource name with pattern folders/{folder}/components/{component}/settings. + FolderComponent = 2, + + /// + /// A resource name with pattern projects/{project}/components/{component}/settings. + /// + ProjectComponent = 3, + + /// + /// A resource name with pattern + /// projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings. + /// + ProjectLocationClusterComponent = 4, + + /// + /// A resource name with pattern + /// projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings. + /// + ProjectRegionClusterComponent = 5, + + /// + /// A resource name with pattern + /// projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings. + /// + ProjectZoneClusterComponent = 6, + } + + private static gax::PathTemplate s_organizationComponent = new gax::PathTemplate("organizations/{organization}/components/{component}/settings"); + + private static gax::PathTemplate s_folderComponent = new gax::PathTemplate("folders/{folder}/components/{component}/settings"); + + private static gax::PathTemplate s_projectComponent = new gax::PathTemplate("projects/{project}/components/{component}/settings"); + + private static gax::PathTemplate s_projectLocationClusterComponent = new gax::PathTemplate("projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings"); + + private static gax::PathTemplate s_projectRegionClusterComponent = new gax::PathTemplate("projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings"); + + private static gax::PathTemplate s_projectZoneClusterComponent = new gax::PathTemplate("projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static ComponentSettingsName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new ComponentSettingsName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// organizations/{organization}/components/{component}/settings. + /// + /// The Organization ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ComponentSettingsName FromOrganizationComponent(string organizationId, string componentId) => + new ComponentSettingsName(ResourceNameType.OrganizationComponent, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), componentId: gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))); + + /// + /// Creates a with the pattern + /// folders/{folder}/components/{component}/settings. + /// + /// The Folder ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ComponentSettingsName FromFolderComponent(string folderId, string componentId) => + new ComponentSettingsName(ResourceNameType.FolderComponent, folderId: gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), componentId: gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))); + + /// + /// Creates a with the pattern + /// projects/{project}/components/{component}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ComponentSettingsName FromProjectComponent(string projectId, string componentId) => + new ComponentSettingsName(ResourceNameType.ProjectComponent, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), componentId: gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ComponentSettingsName FromProjectLocationClusterComponent(string projectId, string locationId, string clusterId, string componentId) => + new ComponentSettingsName(ResourceNameType.ProjectLocationClusterComponent, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), componentId: gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))); + + /// + /// Creates a with the pattern + /// projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Region ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ComponentSettingsName FromProjectRegionClusterComponent(string projectId, string regionId, string clusterId, string componentId) => + new ComponentSettingsName(ResourceNameType.ProjectRegionClusterComponent, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), regionId: gax::GaxPreconditions.CheckNotNullOrEmpty(regionId, nameof(regionId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), componentId: gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))); + + /// + /// Creates a with the pattern + /// projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Zone ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ComponentSettingsName FromProjectZoneClusterComponent(string projectId, string zoneId, string clusterId, string componentId) => + new ComponentSettingsName(ResourceNameType.ProjectZoneClusterComponent, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), zoneId: gax::GaxPreconditions.CheckNotNullOrEmpty(zoneId, nameof(zoneId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), componentId: gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/components/{component}/settings. + /// + /// The Organization ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/components/{component}/settings. + /// + public static string Format(string organizationId, string componentId) => + FormatOrganizationComponent(organizationId, componentId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/components/{component}/settings. + /// + /// The Organization ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/components/{component}/settings. + /// + public static string FormatOrganizationComponent(string organizationId, string componentId) => + s_organizationComponent.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// folders/{folder}/components/{component}/settings. + /// + /// The Folder ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// folders/{folder}/components/{component}/settings. + /// + public static string FormatFolderComponent(string folderId, string componentId) => + s_folderComponent.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/components/{component}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/components/{component}/settings. + /// + public static string FormatProjectComponent(string projectId, string componentId) => + s_projectComponent.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings. + /// + public static string FormatProjectLocationClusterComponent(string projectId, string locationId, string clusterId, string componentId) => + s_projectLocationClusterComponent.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Region ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings. + /// + public static string FormatProjectRegionClusterComponent(string projectId, string regionId, string clusterId, string componentId) => + s_projectRegionClusterComponent.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(regionId, nameof(regionId)), gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Zone ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings. + /// + public static string FormatProjectZoneClusterComponent(string projectId, string zoneId, string clusterId, string componentId) => + s_projectZoneClusterComponent.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(zoneId, nameof(zoneId)), gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))); + + /// + /// Parses the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// organizations/{organization}/components/{component}/settings + /// folders/{folder}/components/{component}/settings + /// projects/{project}/components/{component}/settings + /// + /// + /// projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings + /// + /// + /// + /// + /// projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings + /// + /// + /// + /// + /// projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static ComponentSettingsName Parse(string componentSettingsName) => Parse(componentSettingsName, 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: + /// + /// organizations/{organization}/components/{component}/settings + /// folders/{folder}/components/{component}/settings + /// projects/{project}/components/{component}/settings + /// + /// + /// projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings + /// + /// + /// + /// + /// projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings + /// + /// + /// + /// + /// projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings + /// + /// + /// + /// 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 ComponentSettingsName Parse(string componentSettingsName, bool allowUnparsed) => + TryParse(componentSettingsName, allowUnparsed, out ComponentSettingsName 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: + /// + /// organizations/{organization}/components/{component}/settings + /// folders/{folder}/components/{component}/settings + /// projects/{project}/components/{component}/settings + /// + /// + /// projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings + /// + /// + /// + /// + /// projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings + /// + /// + /// + /// + /// projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings + /// + /// + /// + /// + /// 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 componentSettingsName, out ComponentSettingsName result) => + TryParse(componentSettingsName, 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: + /// + /// organizations/{organization}/components/{component}/settings + /// folders/{folder}/components/{component}/settings + /// projects/{project}/components/{component}/settings + /// + /// + /// projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings + /// + /// + /// + /// + /// projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings + /// + /// + /// + /// + /// projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings + /// + /// + /// + /// 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 componentSettingsName, bool allowUnparsed, out ComponentSettingsName result) + { + gax::GaxPreconditions.CheckNotNull(componentSettingsName, nameof(componentSettingsName)); + gax::TemplatedResourceName resourceName; + if (s_organizationComponent.TryParseName(componentSettingsName, out resourceName)) + { + result = FromOrganizationComponent(resourceName[0], resourceName[1]); + return true; + } + if (s_folderComponent.TryParseName(componentSettingsName, out resourceName)) + { + result = FromFolderComponent(resourceName[0], resourceName[1]); + return true; + } + if (s_projectComponent.TryParseName(componentSettingsName, out resourceName)) + { + result = FromProjectComponent(resourceName[0], resourceName[1]); + return true; + } + if (s_projectLocationClusterComponent.TryParseName(componentSettingsName, out resourceName)) + { + result = FromProjectLocationClusterComponent(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (s_projectRegionClusterComponent.TryParseName(componentSettingsName, out resourceName)) + { + result = FromProjectRegionClusterComponent(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (s_projectZoneClusterComponent.TryParseName(componentSettingsName, out resourceName)) + { + result = FromProjectZoneClusterComponent(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(componentSettingsName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private ComponentSettingsName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string clusterId = null, string componentId = null, string folderId = null, string locationId = null, string organizationId = null, string projectId = null, string regionId = null, string zoneId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ClusterId = clusterId; + ComponentId = componentId; + FolderId = folderId; + LocationId = locationId; + OrganizationId = organizationId; + ProjectId = projectId; + RegionId = regionId; + ZoneId = zoneId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// organizations/{organization}/components/{component}/settings + /// + /// The Organization ID. Must not be null or empty. + /// The Component ID. Must not be null or empty. + public ComponentSettingsName(string organizationId, string componentId) : this(ResourceNameType.OrganizationComponent, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), componentId: gax::GaxPreconditions.CheckNotNullOrEmpty(componentId, nameof(componentId))) + { + } + + /// 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 Cluster ID. May be null, depending on which resource name is contained by this instance. + /// + public string ClusterId { get; } + + /// + /// The Component ID. May be null, depending on which resource name is contained by this instance. + /// + public string ComponentId { get; } + + /// + /// The Folder ID. May be null, depending on which resource name is contained by this instance. + /// + public string FolderId { get; } + + /// + /// The Location ID. May be null, depending on which resource name is contained by this instance. + /// + public string LocationId { get; } + + /// + /// The Organization ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string OrganizationId { get; } + + /// + /// The Project ID. May be null, depending on which resource name is contained by this instance. + /// + public string ProjectId { get; } + + /// + /// The Region ID. May be null, depending on which resource name is contained by this instance. + /// + public string RegionId { get; } + + /// + /// The Zone ID. May be null, depending on which resource name is contained by this instance. + /// + public string ZoneId { 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.OrganizationComponent: return s_organizationComponent.Expand(OrganizationId, ComponentId); + case ResourceNameType.FolderComponent: return s_folderComponent.Expand(FolderId, ComponentId); + case ResourceNameType.ProjectComponent: return s_projectComponent.Expand(ProjectId, ComponentId); + case ResourceNameType.ProjectLocationClusterComponent: return s_projectLocationClusterComponent.Expand(ProjectId, LocationId, ClusterId, ComponentId); + case ResourceNameType.ProjectRegionClusterComponent: return s_projectRegionClusterComponent.Expand(ProjectId, RegionId, ClusterId, ComponentId); + case ResourceNameType.ProjectZoneClusterComponent: return s_projectZoneClusterComponent.Expand(ProjectId, ZoneId, ClusterId, ComponentId); + 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 ComponentSettingsName); + + /// + public bool Equals(ComponentSettingsName 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 ==(ComponentSettingsName a, ComponentSettingsName 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 !=(ComponentSettingsName a, ComponentSettingsName b) => !(a == b); + } + + public partial class ComponentSettings + { + /// + /// -typed view over the resource name property. + /// + public gcssv::ComponentSettingsName ComponentSettingsName + { + get => string.IsNullOrEmpty(Name) ? null : gcssv::ComponentSettingsName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/Detector.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/Detector.g.cs new file mode 100755 index 000000000000..2afde6bdfe0a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/Detector.g.cs @@ -0,0 +1,374 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/settings/v1beta1/detector.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.SecurityCenter.Settings.V1Beta1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/settings/v1beta1/detector.proto + public static partial class DetectorReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/settings/v1beta1/detector.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DetectorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cjtnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvc2V0dGluZ3MvdjFiZXRh", + "MS9kZXRlY3Rvci5wcm90bxIsZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVy", + "LnNldHRpbmdzLnYxYmV0YTEaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", + "cHJvdG8aQ2dvb2dsZS9jbG91ZC9zZWN1cml0eWNlbnRlci9zZXR0aW5ncy92", + "MWJldGExL2JpbGxpbmdfc2V0dGluZ3MucHJvdG8irQEKCERldGVjdG9yEhUK", + "CGRldGVjdG9yGAEgASgJQgPgQQMSFgoJY29tcG9uZW50GAIgASgJQgPgQQMS", + "VAoMYmlsbGluZ190aWVyGAMgASgOMjkuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5", + "Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEuQmlsbGluZ1RpZXJCA+BBAxIcCg9k", + "ZXRlY3Rvcl9sYWJlbHMYBCADKAlCA+BBA0KmAgowY29tLmdvb2dsZS5jbG91", + "ZC5zZWN1cml0eWNlbnRlci5zZXR0aW5ncy52MWJldGExQg5EZXRlY3RvcnNQ", + "cm90b1ABWkxjbG91ZC5nb29nbGUuY29tL2dvL3NlY3VyaXR5Y2VudGVyL3Nl", + "dHRpbmdzL2FwaXYxYmV0YTEvc2V0dGluZ3NwYjtzZXR0aW5nc3Bi+AEBqgIs", + "R29vZ2xlLkNsb3VkLlNlY3VyaXR5Q2VudGVyLlNldHRpbmdzLlYxQmV0YTHK", + "AixHb29nbGVcQ2xvdWRcU2VjdXJpdHlDZW50ZXJcU2V0dGluZ3NcVjFiZXRh", + "MeoCMEdvb2dsZTo6Q2xvdWQ6OlNlY3VyaXR5Q2VudGVyOjpTZXR0aW5nczo6", + "VjFiZXRhMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingSettingsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Detector), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Detector.Parser, new[]{ "Detector_", "Component", "BillingTier", "DetectorLabels" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Detector is a set of detectors or scanners act as individual checks done + /// within a component e.g. bad IP, bad domains, IAM anomaly, cryptomining, open + /// firewall, etc. Detector is independent of Organization, meaning each detector + /// must be defined for a given Security Center component under a specified + /// billing tier. Organizations can configure the list of detectors based on + /// their subscribed billing tier. + /// + /// Defines a detector, its billing tier and any applicable labels. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Detector : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Detector()); + 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.SecurityCenter.Settings.V1Beta1.DetectorReflection.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 Detector() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Detector(Detector other) : this() { + detector_ = other.detector_; + component_ = other.component_; + billingTier_ = other.billingTier_; + detectorLabels_ = other.detectorLabels_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Detector Clone() { + return new Detector(this); + } + + /// Field number for the "detector" field. + public const int Detector_FieldNumber = 1; + private string detector_ = ""; + /// + /// Output only. Detector Identifier + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Detector_ { + get { return detector_; } + set { + detector_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "component" field. + public const int ComponentFieldNumber = 2; + private string component_ = ""; + /// + /// Output only. Component that supports detector type. Multiple components may support the + /// same detector. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Component { + get { return component_; } + set { + component_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "billing_tier" field. + public const int BillingTierFieldNumber = 3; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier billingTier_ = global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified; + /// + /// Output only. The billing tier may be different for a detector of the same name in + /// another component. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier BillingTier { + get { return billingTier_; } + set { + billingTier_ = value; + } + } + + /// Field number for the "detector_labels" field. + public const int DetectorLabelsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_detectorLabels_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField detectorLabels_ = new pbc::RepeatedField(); + /// + /// Output only. Google curated detector labels. These are alphanumeric tags that are not + /// necessarily human readable. Labels can be used to group detectors together + /// in the future. An example might be tagging all detectors “PCI” that help + /// with PCI compliance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DetectorLabels { + get { return detectorLabels_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Detector); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Detector other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Detector_ != other.Detector_) return false; + if (Component != other.Component) return false; + if (BillingTier != other.BillingTier) return false; + if(!detectorLabels_.Equals(other.detectorLabels_)) 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 (Detector_.Length != 0) hash ^= Detector_.GetHashCode(); + if (Component.Length != 0) hash ^= Component.GetHashCode(); + if (BillingTier != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified) hash ^= BillingTier.GetHashCode(); + hash ^= detectorLabels_.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 (Detector_.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Detector_); + } + if (Component.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Component); + } + if (BillingTier != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) BillingTier); + } + detectorLabels_.WriteTo(output, _repeated_detectorLabels_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) { + if (Detector_.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Detector_); + } + if (Component.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Component); + } + if (BillingTier != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) BillingTier); + } + detectorLabels_.WriteTo(ref output, _repeated_detectorLabels_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; + if (Detector_.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Detector_); + } + if (Component.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Component); + } + if (BillingTier != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BillingTier); + } + size += detectorLabels_.CalculateSize(_repeated_detectorLabels_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Detector other) { + if (other == null) { + return; + } + if (other.Detector_.Length != 0) { + Detector_ = other.Detector_; + } + if (other.Component.Length != 0) { + Component = other.Component; + } + if (other.BillingTier != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified) { + BillingTier = other.BillingTier; + } + detectorLabels_.Add(other.detectorLabels_); + _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: { + Detector_ = input.ReadString(); + break; + } + case 18: { + Component = input.ReadString(); + break; + } + case 24: { + BillingTier = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier) input.ReadEnum(); + break; + } + case 34: { + detectorLabels_.AddEntriesFrom(input, _repeated_detectorLabels_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: { + Detector_ = input.ReadString(); + break; + } + case 18: { + Component = input.ReadString(); + break; + } + case 24: { + BillingTier = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier) input.ReadEnum(); + break; + } + case 34: { + detectorLabels_.AddEntriesFrom(ref input, _repeated_detectorLabels_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.csproj b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.csproj new file mode 100755 index 000000000000..96dcf096b75f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.csproj @@ -0,0 +1,47 @@ + + + + + + 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.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/PackageApiMetadata.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/PackageApiMetadata.g.cs new file mode 100755 index 000000000000..95e9eb9bdf56 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/PackageApiMetadata.g.cs @@ -0,0 +1,40 @@ +// 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 gpr = Google.Protobuf.Reflection; +using scg = System.Collections.Generic; + +namespace Google.Cloud.SecurityCenter.Settings.V1Beta1 +{ + /// 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.SecurityCenter.Settings.V1Beta1", GetFileDescriptors); + + private static scg::IEnumerable GetFileDescriptors() + { + yield return BillingSettingsReflection.Descriptor; + yield return ComponentSettingsReflection.Descriptor; + yield return DetectorReflection.Descriptor; + yield return SecuritycenterSettingsServiceReflection.Descriptor; + yield return SettingsReflection.Descriptor; + yield return SinkSettingsReflection.Descriptor; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecurityCenterSettingsServiceClient.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecurityCenterSettingsServiceClient.g.cs new file mode 100755 index 000000000000..f42bf1444571 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecurityCenterSettingsServiceClient.g.cs @@ -0,0 +1,2622 @@ +// 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 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.SecurityCenter.Settings.V1Beta1 +{ + /// Settings for instances. + public sealed partial class SecurityCenterSettingsServiceSettings : gaxgrpc::ServiceSettingsBase + { + /// Get a new instance of the default . + /// A new instance of the default . + public static SecurityCenterSettingsServiceSettings GetDefault() => new SecurityCenterSettingsServiceSettings(); + + /// + /// Constructs a new object with default settings. + /// + public SecurityCenterSettingsServiceSettings() + { + } + + private SecurityCenterSettingsServiceSettings(SecurityCenterSettingsServiceSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + GetServiceAccountSettings = existing.GetServiceAccountSettings; + GetSettingsSettings = existing.GetSettingsSettings; + UpdateSettingsSettings = existing.UpdateSettingsSettings; + ResetSettingsSettings = existing.ResetSettingsSettings; + BatchGetSettingsSettings = existing.BatchGetSettingsSettings; + CalculateEffectiveSettingsSettings = existing.CalculateEffectiveSettingsSettings; + BatchCalculateEffectiveSettingsSettings = existing.BatchCalculateEffectiveSettingsSettings; + GetComponentSettingsSettings = existing.GetComponentSettingsSettings; + UpdateComponentSettingsSettings = existing.UpdateComponentSettingsSettings; + ResetComponentSettingsSettings = existing.ResetComponentSettingsSettings; + CalculateEffectiveComponentSettingsSettings = existing.CalculateEffectiveComponentSettingsSettings; + ListDetectorsSettings = existing.ListDetectorsSettings; + ListComponentsSettings = existing.ListComponentsSettings; + OnCopy(existing); + } + + partial void OnCopy(SecurityCenterSettingsServiceSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.GetServiceAccount and + /// SecurityCenterSettingsServiceClient.GetServiceAccountAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings GetServiceAccountSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.GetSettings and + /// SecurityCenterSettingsServiceClient.GetSettingsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings GetSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.UpdateSettings and + /// SecurityCenterSettingsServiceClient.UpdateSettingsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.ResetSettings and + /// SecurityCenterSettingsServiceClient.ResetSettingsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings ResetSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.BatchGetSettings and + /// SecurityCenterSettingsServiceClient.BatchGetSettingsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings BatchGetSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.CalculateEffectiveSettings and + /// SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings CalculateEffectiveSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettings and + /// SecurityCenterSettingsServiceClient.BatchCalculateEffectiveSettingsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings BatchCalculateEffectiveSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.GetComponentSettings and + /// SecurityCenterSettingsServiceClient.GetComponentSettingsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings GetComponentSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.UpdateComponentSettings and + /// SecurityCenterSettingsServiceClient.UpdateComponentSettingsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateComponentSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.ResetComponentSettings and + /// SecurityCenterSettingsServiceClient.ResetComponentSettingsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings ResetComponentSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettings and + /// SecurityCenterSettingsServiceClient.CalculateEffectiveComponentSettingsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings CalculateEffectiveComponentSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.ListDetectors and + /// SecurityCenterSettingsServiceClient.ListDetectorsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings ListDetectorsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// SecurityCenterSettingsServiceClient.ListComponents and + /// SecurityCenterSettingsServiceClient.ListComponentsAsync. + /// + /// + /// + /// Initial retry delay: 100 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: Unlimited + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 600 seconds. + /// + /// + public gaxgrpc::CallSettings ListComponentsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable))); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public SecurityCenterSettingsServiceSettings Clone() => new SecurityCenterSettingsServiceSettings(this); + } + + /// + /// Builder class for to provide simple configuration of + /// credentials, endpoint etc. + /// + public sealed partial class SecurityCenterSettingsServiceClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public SecurityCenterSettingsServiceSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public SecurityCenterSettingsServiceClientBuilder() : base(SecurityCenterSettingsServiceClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref SecurityCenterSettingsServiceClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override SecurityCenterSettingsServiceClient Build() + { + SecurityCenterSettingsServiceClient 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 SecurityCenterSettingsServiceClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return SecurityCenterSettingsServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return SecurityCenterSettingsServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => SecurityCenterSettingsServiceClient.ChannelPool; + } + + /// SecurityCenterSettingsService client wrapper, for convenient use. + /// + /// ## API Overview + /// + /// The SecurityCenterSettingsService is a sub-api of + /// `securitycenter.googleapis.com`. The service provides methods to manage + /// Security Center Settings, and Component Settings for GCP organizations, + /// folders, projects, and clusters. + /// + public abstract partial class SecurityCenterSettingsServiceClient + { + /// + /// The default endpoint for the SecurityCenterSettingsService service, which is a host of + /// "securitycenter.googleapis.com" and a port of 443. + /// + public static string DefaultEndpoint { get; } = "securitycenter.googleapis.com:443"; + + /// The default SecurityCenterSettingsService scopes. + /// + /// The default SecurityCenterSettingsService 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(SecurityCenterSettingsService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, 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 SecurityCenterSettingsServiceClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, + /// endpoint and settings. To specify custom credentials or other settings, use + /// . + /// + /// The created . + public static SecurityCenterSettingsServiceClient Create() => + new SecurityCenterSettingsServiceClientBuilder().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 SecurityCenterSettingsServiceClient Create(grpccore::CallInvoker callInvoker, SecurityCenterSettingsServiceSettings 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); + } + SecurityCenterSettingsService.SecurityCenterSettingsServiceClient grpcClient = new SecurityCenterSettingsService.SecurityCenterSettingsServiceClient(callInvoker); + return new SecurityCenterSettingsServiceClientImpl(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 SecurityCenterSettingsService client + public virtual SecurityCenterSettingsService.SecurityCenterSettingsServiceClient GrpcClient => throw new sys::NotImplementedException(); + + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// 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 ServiceAccount GetServiceAccount(GetServiceAccountRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// 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 GetServiceAccountAsync(GetServiceAccountRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// 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 GetServiceAccountAsync(GetServiceAccountRequest request, st::CancellationToken cancellationToken) => + GetServiceAccountAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// + /// Required. The relative resource name of the service account resource. + /// Format: + /// * `organizations/{organization}/serviceAccount` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ServiceAccount GetServiceAccount(string name, gaxgrpc::CallSettings callSettings = null) => + GetServiceAccount(new GetServiceAccountRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// + /// Required. The relative resource name of the service account resource. + /// Format: + /// * `organizations/{organization}/serviceAccount` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetServiceAccountAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetServiceAccountAsync(new GetServiceAccountRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// + /// Required. The relative resource name of the service account resource. + /// Format: + /// * `organizations/{organization}/serviceAccount` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetServiceAccountAsync(string name, st::CancellationToken cancellationToken) => + GetServiceAccountAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// + /// Required. The relative resource name of the service account resource. + /// Format: + /// * `organizations/{organization}/serviceAccount` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ServiceAccount GetServiceAccount(ServiceAccountName name, gaxgrpc::CallSettings callSettings = null) => + GetServiceAccount(new GetServiceAccountRequest + { + ServiceAccountName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// + /// Required. The relative resource name of the service account resource. + /// Format: + /// * `organizations/{organization}/serviceAccount` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetServiceAccountAsync(ServiceAccountName name, gaxgrpc::CallSettings callSettings = null) => + GetServiceAccountAsync(new GetServiceAccountRequest + { + ServiceAccountName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// + /// Required. The relative resource name of the service account resource. + /// Format: + /// * `organizations/{organization}/serviceAccount` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetServiceAccountAsync(ServiceAccountName name, st::CancellationToken cancellationToken) => + GetServiceAccountAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the Settings. + /// + /// 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 Settings GetSettings(GetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the Settings. + /// + /// 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 GetSettingsAsync(GetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the Settings. + /// + /// 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 GetSettingsAsync(GetSettingsRequest request, st::CancellationToken cancellationToken) => + GetSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the Settings. + /// + /// + /// Required. The name of the settings to retrieve. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Settings GetSettings(string name, gaxgrpc::CallSettings callSettings = null) => + GetSettings(new GetSettingsRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets the Settings. + /// + /// + /// Required. The name of the settings to retrieve. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSettingsAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetSettingsAsync(new GetSettingsRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets the Settings. + /// + /// + /// Required. The name of the settings to retrieve. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSettingsAsync(string name, st::CancellationToken cancellationToken) => + GetSettingsAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the Settings. + /// + /// + /// Required. The name of the settings to retrieve. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Settings GetSettings(SettingsName name, gaxgrpc::CallSettings callSettings = null) => + GetSettings(new GetSettingsRequest + { + SettingsName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets the Settings. + /// + /// + /// Required. The name of the settings to retrieve. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSettingsAsync(SettingsName name, gaxgrpc::CallSettings callSettings = null) => + GetSettingsAsync(new GetSettingsRequest + { + SettingsName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets the Settings. + /// + /// + /// Required. The name of the settings to retrieve. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSettingsAsync(SettingsName name, st::CancellationToken cancellationToken) => + GetSettingsAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates the Settings. + /// + /// 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 Settings UpdateSettings(UpdateSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates the Settings. + /// + /// 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 UpdateSettingsAsync(UpdateSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates the Settings. + /// + /// 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 UpdateSettingsAsync(UpdateSettingsRequest request, st::CancellationToken cancellationToken) => + UpdateSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates the Settings. + /// + /// + /// Required. The settings to update. + /// + /// The settings' `name` field is used to identify the settings to be updated. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + /// + /// The list of fields to be updated on the settings. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Settings UpdateSettings(Settings settings, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateSettings(new UpdateSettingsRequest + { + Settings = gax::GaxPreconditions.CheckNotNull(settings, nameof(settings)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates the Settings. + /// + /// + /// Required. The settings to update. + /// + /// The settings' `name` field is used to identify the settings to be updated. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + /// + /// The list of fields to be updated on the settings. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateSettingsAsync(Settings settings, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateSettingsAsync(new UpdateSettingsRequest + { + Settings = gax::GaxPreconditions.CheckNotNull(settings, nameof(settings)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates the Settings. + /// + /// + /// Required. The settings to update. + /// + /// The settings' `name` field is used to identify the settings to be updated. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + /// + /// The list of fields to be updated on the settings. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateSettingsAsync(Settings settings, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateSettingsAsync(settings, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Reset the organization, folder or project's settings and return + /// the settings of just that resource to the default. + /// + /// Settings are present at the organization, folder, project, and cluster + /// levels. Using Reset on a sub-organization level will remove that resource's + /// override and result in the parent's settings being used (eg: if Reset on a + /// cluster, project settings will be used). + /// + /// Using Reset on organization will remove the override that was set and + /// result in default settings being used. + /// + /// 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 ResetSettings(ResetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Reset the organization, folder or project's settings and return + /// the settings of just that resource to the default. + /// + /// Settings are present at the organization, folder, project, and cluster + /// levels. Using Reset on a sub-organization level will remove that resource's + /// override and result in the parent's settings being used (eg: if Reset on a + /// cluster, project settings will be used). + /// + /// Using Reset on organization will remove the override that was set and + /// result in default settings being used. + /// + /// 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 ResetSettingsAsync(ResetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Reset the organization, folder or project's settings and return + /// the settings of just that resource to the default. + /// + /// Settings are present at the organization, folder, project, and cluster + /// levels. Using Reset on a sub-organization level will remove that resource's + /// override and result in the parent's settings being used (eg: if Reset on a + /// cluster, project settings will be used). + /// + /// Using Reset on organization will remove the override that was set and + /// result in default settings being used. + /// + /// 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 ResetSettingsAsync(ResetSettingsRequest request, st::CancellationToken cancellationToken) => + ResetSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets a list of settings. + /// + /// 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 BatchGetSettingsResponse BatchGetSettings(BatchGetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets a list of settings. + /// + /// 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 BatchGetSettingsAsync(BatchGetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets a list of settings. + /// + /// 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 BatchGetSettingsAsync(BatchGetSettingsRequest request, st::CancellationToken cancellationToken) => + BatchGetSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// 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 Settings CalculateEffectiveSettings(CalculateEffectiveSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// 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 CalculateEffectiveSettingsAsync(CalculateEffectiveSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// 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 CalculateEffectiveSettingsAsync(CalculateEffectiveSettingsRequest request, st::CancellationToken cancellationToken) => + CalculateEffectiveSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// + /// Required. The name of the effective settings to retrieve. + /// Formats: + /// * `organizations/{organization}/effectiveSettings` + /// * `folders/{folder}/effectiveSettings` + /// * `projects/{project}/effectiveSettings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/effectiveSettings` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Settings CalculateEffectiveSettings(string name, gaxgrpc::CallSettings callSettings = null) => + CalculateEffectiveSettings(new CalculateEffectiveSettingsRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// + /// Required. The name of the effective settings to retrieve. + /// Formats: + /// * `organizations/{organization}/effectiveSettings` + /// * `folders/{folder}/effectiveSettings` + /// * `projects/{project}/effectiveSettings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/effectiveSettings` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CalculateEffectiveSettingsAsync(string name, gaxgrpc::CallSettings callSettings = null) => + CalculateEffectiveSettingsAsync(new CalculateEffectiveSettingsRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// + /// Required. The name of the effective settings to retrieve. + /// Formats: + /// * `organizations/{organization}/effectiveSettings` + /// * `folders/{folder}/effectiveSettings` + /// * `projects/{project}/effectiveSettings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/effectiveSettings` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CalculateEffectiveSettingsAsync(string name, st::CancellationToken cancellationToken) => + CalculateEffectiveSettingsAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// + /// Required. The name of the effective settings to retrieve. + /// Formats: + /// * `organizations/{organization}/effectiveSettings` + /// * `folders/{folder}/effectiveSettings` + /// * `projects/{project}/effectiveSettings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/effectiveSettings` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Settings CalculateEffectiveSettings(SettingsName name, gaxgrpc::CallSettings callSettings = null) => + CalculateEffectiveSettings(new CalculateEffectiveSettingsRequest + { + SettingsName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// + /// Required. The name of the effective settings to retrieve. + /// Formats: + /// * `organizations/{organization}/effectiveSettings` + /// * `folders/{folder}/effectiveSettings` + /// * `projects/{project}/effectiveSettings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/effectiveSettings` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CalculateEffectiveSettingsAsync(SettingsName name, gaxgrpc::CallSettings callSettings = null) => + CalculateEffectiveSettingsAsync(new CalculateEffectiveSettingsRequest + { + SettingsName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// + /// Required. The name of the effective settings to retrieve. + /// Formats: + /// * `organizations/{organization}/effectiveSettings` + /// * `folders/{folder}/effectiveSettings` + /// * `projects/{project}/effectiveSettings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/effectiveSettings` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CalculateEffectiveSettingsAsync(SettingsName name, st::CancellationToken cancellationToken) => + CalculateEffectiveSettingsAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets a list of effective settings. + /// + /// 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 BatchCalculateEffectiveSettingsResponse BatchCalculateEffectiveSettings(BatchCalculateEffectiveSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets a list of effective settings. + /// + /// 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 BatchCalculateEffectiveSettingsAsync(BatchCalculateEffectiveSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets a list of effective settings. + /// + /// 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 BatchCalculateEffectiveSettingsAsync(BatchCalculateEffectiveSettingsRequest request, st::CancellationToken cancellationToken) => + BatchCalculateEffectiveSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the Component Settings. + /// + /// 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 ComponentSettings GetComponentSettings(GetComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the Component Settings. + /// + /// 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 GetComponentSettingsAsync(GetComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the Component Settings. + /// + /// 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 GetComponentSettingsAsync(GetComponentSettingsRequest request, st::CancellationToken cancellationToken) => + GetComponentSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the Component Settings. + /// + /// + /// Required. The component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ComponentSettings GetComponentSettings(string name, gaxgrpc::CallSettings callSettings = null) => + GetComponentSettings(new GetComponentSettingsRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets the Component Settings. + /// + /// + /// Required. The component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetComponentSettingsAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetComponentSettingsAsync(new GetComponentSettingsRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets the Component Settings. + /// + /// + /// Required. The component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetComponentSettingsAsync(string name, st::CancellationToken cancellationToken) => + GetComponentSettingsAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the Component Settings. + /// + /// + /// Required. The component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ComponentSettings GetComponentSettings(ComponentSettingsName name, gaxgrpc::CallSettings callSettings = null) => + GetComponentSettings(new GetComponentSettingsRequest + { + ComponentSettingsName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets the Component Settings. + /// + /// + /// Required. The component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetComponentSettingsAsync(ComponentSettingsName name, gaxgrpc::CallSettings callSettings = null) => + GetComponentSettingsAsync(new GetComponentSettingsRequest + { + ComponentSettingsName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets the Component Settings. + /// + /// + /// Required. The component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetComponentSettingsAsync(ComponentSettingsName name, st::CancellationToken cancellationToken) => + GetComponentSettingsAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates the Component Settings. + /// + /// 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 ComponentSettings UpdateComponentSettings(UpdateComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates the Component Settings. + /// + /// 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 UpdateComponentSettingsAsync(UpdateComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates the Component Settings. + /// + /// 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 UpdateComponentSettingsAsync(UpdateComponentSettingsRequest request, st::CancellationToken cancellationToken) => + UpdateComponentSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates the Component Settings. + /// + /// + /// Required. The component settings to update. + /// + /// The component settings' `name` field is used to identify the component + /// settings to be updated. Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// + /// The list of fields to be updated on the component settings resource. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ComponentSettings UpdateComponentSettings(ComponentSettings componentSettings, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateComponentSettings(new UpdateComponentSettingsRequest + { + ComponentSettings = gax::GaxPreconditions.CheckNotNull(componentSettings, nameof(componentSettings)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates the Component Settings. + /// + /// + /// Required. The component settings to update. + /// + /// The component settings' `name` field is used to identify the component + /// settings to be updated. Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// + /// The list of fields to be updated on the component settings resource. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateComponentSettingsAsync(ComponentSettings componentSettings, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateComponentSettingsAsync(new UpdateComponentSettingsRequest + { + ComponentSettings = gax::GaxPreconditions.CheckNotNull(componentSettings, nameof(componentSettings)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates the Component Settings. + /// + /// + /// Required. The component settings to update. + /// + /// The component settings' `name` field is used to identify the component + /// settings to be updated. Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// + /// The list of fields to be updated on the component settings resource. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateComponentSettingsAsync(ComponentSettings componentSettings, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateComponentSettingsAsync(componentSettings, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Reset the organization, folder or project's component settings and return + /// the settings to the default. Settings are present at the + /// organization, folder and project levels. Using Reset for a folder or + /// project will remove the override that was set and result in the + /// organization-level settings being used. + /// + /// 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 ResetComponentSettings(ResetComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Reset the organization, folder or project's component settings and return + /// the settings to the default. Settings are present at the + /// organization, folder and project levels. Using Reset for a folder or + /// project will remove the override that was set and result in the + /// organization-level settings being used. + /// + /// 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 ResetComponentSettingsAsync(ResetComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Reset the organization, folder or project's component settings and return + /// the settings to the default. Settings are present at the + /// organization, folder and project levels. Using Reset for a folder or + /// project will remove the override that was set and result in the + /// organization-level settings being used. + /// + /// 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 ResetComponentSettingsAsync(ResetComponentSettingsRequest request, st::CancellationToken cancellationToken) => + ResetComponentSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the Effective Component Settings. + /// + /// 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 ComponentSettings CalculateEffectiveComponentSettings(CalculateEffectiveComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the Effective Component Settings. + /// + /// 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 CalculateEffectiveComponentSettingsAsync(CalculateEffectiveComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the Effective Component Settings. + /// + /// 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 CalculateEffectiveComponentSettingsAsync(CalculateEffectiveComponentSettingsRequest request, st::CancellationToken cancellationToken) => + CalculateEffectiveComponentSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the Effective Component Settings. + /// + /// + /// Required. The effective component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ComponentSettings CalculateEffectiveComponentSettings(string name, gaxgrpc::CallSettings callSettings = null) => + CalculateEffectiveComponentSettings(new CalculateEffectiveComponentSettingsRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets the Effective Component Settings. + /// + /// + /// Required. The effective component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CalculateEffectiveComponentSettingsAsync(string name, gaxgrpc::CallSettings callSettings = null) => + CalculateEffectiveComponentSettingsAsync(new CalculateEffectiveComponentSettingsRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets the Effective Component Settings. + /// + /// + /// Required. The effective component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CalculateEffectiveComponentSettingsAsync(string name, st::CancellationToken cancellationToken) => + CalculateEffectiveComponentSettingsAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the Effective Component Settings. + /// + /// + /// Required. The effective component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ComponentSettings CalculateEffectiveComponentSettings(ComponentSettingsName name, gaxgrpc::CallSettings callSettings = null) => + CalculateEffectiveComponentSettings(new CalculateEffectiveComponentSettingsRequest + { + ComponentSettingsName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets the Effective Component Settings. + /// + /// + /// Required. The effective component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CalculateEffectiveComponentSettingsAsync(ComponentSettingsName name, gaxgrpc::CallSettings callSettings = null) => + CalculateEffectiveComponentSettingsAsync(new CalculateEffectiveComponentSettingsRequest + { + ComponentSettingsName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets the Effective Component Settings. + /// + /// + /// Required. The effective component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CalculateEffectiveComponentSettingsAsync(ComponentSettingsName name, st::CancellationToken cancellationToken) => + CalculateEffectiveComponentSettingsAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Retrieves an unordered list of available detectors. + /// + /// 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 ListDetectors(ListDetectorsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Retrieves an unordered list of available detectors. + /// + /// 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 ListDetectorsAsync(ListDetectorsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Retrieves an unordered list of available detectors. + /// + /// + /// Required. The parent, which owns this collection of detectors. + /// Format: + /// * `organizations/{organization}` + /// + /// + /// 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 ListDetectors(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListDetectorsRequest request = new ListDetectorsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListDetectors(request, callSettings); + } + + /// + /// Retrieves an unordered list of available detectors. + /// + /// + /// Required. The parent, which owns this collection of detectors. + /// Format: + /// * `organizations/{organization}` + /// + /// + /// 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 ListDetectorsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListDetectorsRequest request = new ListDetectorsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListDetectorsAsync(request, callSettings); + } + + /// + /// Retrieves an unordered list of available detectors. + /// + /// + /// Required. The parent, which owns this collection of detectors. + /// Format: + /// * `organizations/{organization}` + /// + /// + /// 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 ListDetectors(gagr::OrganizationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListDetectorsRequest request = new ListDetectorsRequest + { + ParentAsOrganizationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListDetectors(request, callSettings); + } + + /// + /// Retrieves an unordered list of available detectors. + /// + /// + /// Required. The parent, which owns this collection of detectors. + /// Format: + /// * `organizations/{organization}` + /// + /// + /// 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 ListDetectorsAsync(gagr::OrganizationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListDetectorsRequest request = new ListDetectorsRequest + { + ParentAsOrganizationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListDetectorsAsync(request, callSettings); + } + + /// + /// Retrieves an unordered list of available SCC components. + /// + /// 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 ListComponents(ListComponentsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Retrieves an unordered list of available SCC components. + /// + /// 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 ListComponentsAsync(ListComponentsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Retrieves an unordered list of available SCC components. + /// + /// + /// Required. The parent, which owns this collection of components. + /// Format: + /// * `organizations/{organization}` + /// + /// + /// 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 ListComponents(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListComponentsRequest request = new ListComponentsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListComponents(request, callSettings); + } + + /// + /// Retrieves an unordered list of available SCC components. + /// + /// + /// Required. The parent, which owns this collection of components. + /// Format: + /// * `organizations/{organization}` + /// + /// + /// 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 ListComponentsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListComponentsRequest request = new ListComponentsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListComponentsAsync(request, callSettings); + } + + /// + /// Retrieves an unordered list of available SCC components. + /// + /// + /// Required. The parent, which owns this collection of components. + /// Format: + /// * `organizations/{organization}` + /// + /// + /// 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 ListComponents(gagr::OrganizationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListComponentsRequest request = new ListComponentsRequest + { + ParentAsOrganizationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListComponents(request, callSettings); + } + + /// + /// Retrieves an unordered list of available SCC components. + /// + /// + /// Required. The parent, which owns this collection of components. + /// Format: + /// * `organizations/{organization}` + /// + /// + /// 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 ListComponentsAsync(gagr::OrganizationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListComponentsRequest request = new ListComponentsRequest + { + ParentAsOrganizationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListComponentsAsync(request, callSettings); + } + } + + /// SecurityCenterSettingsService client wrapper implementation, for convenient use. + /// + /// ## API Overview + /// + /// The SecurityCenterSettingsService is a sub-api of + /// `securitycenter.googleapis.com`. The service provides methods to manage + /// Security Center Settings, and Component Settings for GCP organizations, + /// folders, projects, and clusters. + /// + public sealed partial class SecurityCenterSettingsServiceClientImpl : SecurityCenterSettingsServiceClient + { + private readonly gaxgrpc::ApiCall _callGetServiceAccount; + + private readonly gaxgrpc::ApiCall _callGetSettings; + + private readonly gaxgrpc::ApiCall _callUpdateSettings; + + private readonly gaxgrpc::ApiCall _callResetSettings; + + private readonly gaxgrpc::ApiCall _callBatchGetSettings; + + private readonly gaxgrpc::ApiCall _callCalculateEffectiveSettings; + + private readonly gaxgrpc::ApiCall _callBatchCalculateEffectiveSettings; + + private readonly gaxgrpc::ApiCall _callGetComponentSettings; + + private readonly gaxgrpc::ApiCall _callUpdateComponentSettings; + + private readonly gaxgrpc::ApiCall _callResetComponentSettings; + + private readonly gaxgrpc::ApiCall _callCalculateEffectiveComponentSettings; + + private readonly gaxgrpc::ApiCall _callListDetectors; + + private readonly gaxgrpc::ApiCall _callListComponents; + + /// + /// Constructs a client wrapper for the SecurityCenterSettingsService 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 SecurityCenterSettingsServiceClientImpl(SecurityCenterSettingsService.SecurityCenterSettingsServiceClient grpcClient, SecurityCenterSettingsServiceSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + SecurityCenterSettingsServiceSettings effectiveSettings = settings ?? SecurityCenterSettingsServiceSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + Settings = effectiveSettings, + Logger = logger, + }); + _callGetServiceAccount = clientHelper.BuildApiCall("GetServiceAccount", grpcClient.GetServiceAccountAsync, grpcClient.GetServiceAccount, effectiveSettings.GetServiceAccountSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetServiceAccount); + Modify_GetServiceAccountApiCall(ref _callGetServiceAccount); + _callGetSettings = clientHelper.BuildApiCall("GetSettings", grpcClient.GetSettingsAsync, grpcClient.GetSettings, effectiveSettings.GetSettingsSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetSettings); + Modify_GetSettingsApiCall(ref _callGetSettings); + _callUpdateSettings = clientHelper.BuildApiCall("UpdateSettings", grpcClient.UpdateSettingsAsync, grpcClient.UpdateSettings, effectiveSettings.UpdateSettingsSettings).WithGoogleRequestParam("settings.name", request => request.Settings?.Name); + Modify_ApiCall(ref _callUpdateSettings); + Modify_UpdateSettingsApiCall(ref _callUpdateSettings); + _callResetSettings = clientHelper.BuildApiCall("ResetSettings", grpcClient.ResetSettingsAsync, grpcClient.ResetSettings, effectiveSettings.ResetSettingsSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callResetSettings); + Modify_ResetSettingsApiCall(ref _callResetSettings); + _callBatchGetSettings = clientHelper.BuildApiCall("BatchGetSettings", grpcClient.BatchGetSettingsAsync, grpcClient.BatchGetSettings, effectiveSettings.BatchGetSettingsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callBatchGetSettings); + Modify_BatchGetSettingsApiCall(ref _callBatchGetSettings); + _callCalculateEffectiveSettings = clientHelper.BuildApiCall("CalculateEffectiveSettings", grpcClient.CalculateEffectiveSettingsAsync, grpcClient.CalculateEffectiveSettings, effectiveSettings.CalculateEffectiveSettingsSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callCalculateEffectiveSettings); + Modify_CalculateEffectiveSettingsApiCall(ref _callCalculateEffectiveSettings); + _callBatchCalculateEffectiveSettings = clientHelper.BuildApiCall("BatchCalculateEffectiveSettings", grpcClient.BatchCalculateEffectiveSettingsAsync, grpcClient.BatchCalculateEffectiveSettings, effectiveSettings.BatchCalculateEffectiveSettingsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callBatchCalculateEffectiveSettings); + Modify_BatchCalculateEffectiveSettingsApiCall(ref _callBatchCalculateEffectiveSettings); + _callGetComponentSettings = clientHelper.BuildApiCall("GetComponentSettings", grpcClient.GetComponentSettingsAsync, grpcClient.GetComponentSettings, effectiveSettings.GetComponentSettingsSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetComponentSettings); + Modify_GetComponentSettingsApiCall(ref _callGetComponentSettings); + _callUpdateComponentSettings = clientHelper.BuildApiCall("UpdateComponentSettings", grpcClient.UpdateComponentSettingsAsync, grpcClient.UpdateComponentSettings, effectiveSettings.UpdateComponentSettingsSettings).WithGoogleRequestParam("component_settings.name", request => request.ComponentSettings?.Name); + Modify_ApiCall(ref _callUpdateComponentSettings); + Modify_UpdateComponentSettingsApiCall(ref _callUpdateComponentSettings); + _callResetComponentSettings = clientHelper.BuildApiCall("ResetComponentSettings", grpcClient.ResetComponentSettingsAsync, grpcClient.ResetComponentSettings, effectiveSettings.ResetComponentSettingsSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callResetComponentSettings); + Modify_ResetComponentSettingsApiCall(ref _callResetComponentSettings); + _callCalculateEffectiveComponentSettings = clientHelper.BuildApiCall("CalculateEffectiveComponentSettings", grpcClient.CalculateEffectiveComponentSettingsAsync, grpcClient.CalculateEffectiveComponentSettings, effectiveSettings.CalculateEffectiveComponentSettingsSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callCalculateEffectiveComponentSettings); + Modify_CalculateEffectiveComponentSettingsApiCall(ref _callCalculateEffectiveComponentSettings); + _callListDetectors = clientHelper.BuildApiCall("ListDetectors", grpcClient.ListDetectorsAsync, grpcClient.ListDetectors, effectiveSettings.ListDetectorsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListDetectors); + Modify_ListDetectorsApiCall(ref _callListDetectors); + _callListComponents = clientHelper.BuildApiCall("ListComponents", grpcClient.ListComponentsAsync, grpcClient.ListComponents, effectiveSettings.ListComponentsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListComponents); + Modify_ListComponentsApiCall(ref _callListComponents); + 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_GetServiceAccountApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetSettingsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateSettingsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ResetSettingsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_BatchGetSettingsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CalculateEffectiveSettingsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_BatchCalculateEffectiveSettingsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetComponentSettingsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateComponentSettingsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ResetComponentSettingsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CalculateEffectiveComponentSettingsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListDetectorsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListComponentsApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(SecurityCenterSettingsService.SecurityCenterSettingsServiceClient grpcClient, SecurityCenterSettingsServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC SecurityCenterSettingsService client + public override SecurityCenterSettingsService.SecurityCenterSettingsServiceClient GrpcClient { get; } + + partial void Modify_GetServiceAccountRequest(ref GetServiceAccountRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetSettingsRequest(ref GetSettingsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateSettingsRequest(ref UpdateSettingsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ResetSettingsRequest(ref ResetSettingsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_BatchGetSettingsRequest(ref BatchGetSettingsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CalculateEffectiveSettingsRequest(ref CalculateEffectiveSettingsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_BatchCalculateEffectiveSettingsRequest(ref BatchCalculateEffectiveSettingsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetComponentSettingsRequest(ref GetComponentSettingsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateComponentSettingsRequest(ref UpdateComponentSettingsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ResetComponentSettingsRequest(ref ResetComponentSettingsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CalculateEffectiveComponentSettingsRequest(ref CalculateEffectiveComponentSettingsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListDetectorsRequest(ref ListDetectorsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListComponentsRequest(ref ListComponentsRequest request, ref gaxgrpc::CallSettings settings); + + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// 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 ServiceAccount GetServiceAccount(GetServiceAccountRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetServiceAccountRequest(ref request, ref callSettings); + return _callGetServiceAccount.Sync(request, callSettings); + } + + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// 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 GetServiceAccountAsync(GetServiceAccountRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetServiceAccountRequest(ref request, ref callSettings); + return _callGetServiceAccount.Async(request, callSettings); + } + + /// + /// Gets the Settings. + /// + /// 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 Settings GetSettings(GetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetSettingsRequest(ref request, ref callSettings); + return _callGetSettings.Sync(request, callSettings); + } + + /// + /// Gets the Settings. + /// + /// 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 GetSettingsAsync(GetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetSettingsRequest(ref request, ref callSettings); + return _callGetSettings.Async(request, callSettings); + } + + /// + /// Updates the Settings. + /// + /// 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 Settings UpdateSettings(UpdateSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateSettingsRequest(ref request, ref callSettings); + return _callUpdateSettings.Sync(request, callSettings); + } + + /// + /// Updates the Settings. + /// + /// 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 UpdateSettingsAsync(UpdateSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateSettingsRequest(ref request, ref callSettings); + return _callUpdateSettings.Async(request, callSettings); + } + + /// + /// Reset the organization, folder or project's settings and return + /// the settings of just that resource to the default. + /// + /// Settings are present at the organization, folder, project, and cluster + /// levels. Using Reset on a sub-organization level will remove that resource's + /// override and result in the parent's settings being used (eg: if Reset on a + /// cluster, project settings will be used). + /// + /// Using Reset on organization will remove the override that was set and + /// result in default settings being used. + /// + /// 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 ResetSettings(ResetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ResetSettingsRequest(ref request, ref callSettings); + _callResetSettings.Sync(request, callSettings); + } + + /// + /// Reset the organization, folder or project's settings and return + /// the settings of just that resource to the default. + /// + /// Settings are present at the organization, folder, project, and cluster + /// levels. Using Reset on a sub-organization level will remove that resource's + /// override and result in the parent's settings being used (eg: if Reset on a + /// cluster, project settings will be used). + /// + /// Using Reset on organization will remove the override that was set and + /// result in default settings being used. + /// + /// 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 ResetSettingsAsync(ResetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ResetSettingsRequest(ref request, ref callSettings); + return _callResetSettings.Async(request, callSettings); + } + + /// + /// Gets a list of settings. + /// + /// 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 BatchGetSettingsResponse BatchGetSettings(BatchGetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_BatchGetSettingsRequest(ref request, ref callSettings); + return _callBatchGetSettings.Sync(request, callSettings); + } + + /// + /// Gets a list of settings. + /// + /// 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 BatchGetSettingsAsync(BatchGetSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_BatchGetSettingsRequest(ref request, ref callSettings); + return _callBatchGetSettings.Async(request, callSettings); + } + + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// 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 Settings CalculateEffectiveSettings(CalculateEffectiveSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CalculateEffectiveSettingsRequest(ref request, ref callSettings); + return _callCalculateEffectiveSettings.Sync(request, callSettings); + } + + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// 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 CalculateEffectiveSettingsAsync(CalculateEffectiveSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CalculateEffectiveSettingsRequest(ref request, ref callSettings); + return _callCalculateEffectiveSettings.Async(request, callSettings); + } + + /// + /// Gets a list of effective settings. + /// + /// 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 BatchCalculateEffectiveSettingsResponse BatchCalculateEffectiveSettings(BatchCalculateEffectiveSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_BatchCalculateEffectiveSettingsRequest(ref request, ref callSettings); + return _callBatchCalculateEffectiveSettings.Sync(request, callSettings); + } + + /// + /// Gets a list of effective settings. + /// + /// 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 BatchCalculateEffectiveSettingsAsync(BatchCalculateEffectiveSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_BatchCalculateEffectiveSettingsRequest(ref request, ref callSettings); + return _callBatchCalculateEffectiveSettings.Async(request, callSettings); + } + + /// + /// Gets the Component Settings. + /// + /// 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 ComponentSettings GetComponentSettings(GetComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetComponentSettingsRequest(ref request, ref callSettings); + return _callGetComponentSettings.Sync(request, callSettings); + } + + /// + /// Gets the Component Settings. + /// + /// 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 GetComponentSettingsAsync(GetComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetComponentSettingsRequest(ref request, ref callSettings); + return _callGetComponentSettings.Async(request, callSettings); + } + + /// + /// Updates the Component Settings. + /// + /// 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 ComponentSettings UpdateComponentSettings(UpdateComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateComponentSettingsRequest(ref request, ref callSettings); + return _callUpdateComponentSettings.Sync(request, callSettings); + } + + /// + /// Updates the Component Settings. + /// + /// 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 UpdateComponentSettingsAsync(UpdateComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateComponentSettingsRequest(ref request, ref callSettings); + return _callUpdateComponentSettings.Async(request, callSettings); + } + + /// + /// Reset the organization, folder or project's component settings and return + /// the settings to the default. Settings are present at the + /// organization, folder and project levels. Using Reset for a folder or + /// project will remove the override that was set and result in the + /// organization-level settings being used. + /// + /// 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 ResetComponentSettings(ResetComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ResetComponentSettingsRequest(ref request, ref callSettings); + _callResetComponentSettings.Sync(request, callSettings); + } + + /// + /// Reset the organization, folder or project's component settings and return + /// the settings to the default. Settings are present at the + /// organization, folder and project levels. Using Reset for a folder or + /// project will remove the override that was set and result in the + /// organization-level settings being used. + /// + /// 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 ResetComponentSettingsAsync(ResetComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ResetComponentSettingsRequest(ref request, ref callSettings); + return _callResetComponentSettings.Async(request, callSettings); + } + + /// + /// Gets the Effective Component Settings. + /// + /// 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 ComponentSettings CalculateEffectiveComponentSettings(CalculateEffectiveComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CalculateEffectiveComponentSettingsRequest(ref request, ref callSettings); + return _callCalculateEffectiveComponentSettings.Sync(request, callSettings); + } + + /// + /// Gets the Effective Component Settings. + /// + /// 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 CalculateEffectiveComponentSettingsAsync(CalculateEffectiveComponentSettingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CalculateEffectiveComponentSettingsRequest(ref request, ref callSettings); + return _callCalculateEffectiveComponentSettings.Async(request, callSettings); + } + + /// + /// Retrieves an unordered list of available detectors. + /// + /// 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 ListDetectors(ListDetectorsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListDetectorsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListDetectors, request, callSettings); + } + + /// + /// Retrieves an unordered list of available detectors. + /// + /// 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 ListDetectorsAsync(ListDetectorsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListDetectorsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListDetectors, request, callSettings); + } + + /// + /// Retrieves an unordered list of available SCC components. + /// + /// 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 ListComponents(ListComponentsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListComponentsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListComponents, request, callSettings); + } + + /// + /// Retrieves an unordered list of available SCC components. + /// + /// 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 ListComponentsAsync(ListComponentsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListComponentsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListComponents, request, callSettings); + } + } + + public partial class ListDetectorsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListComponentsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListDetectorsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => Detectors.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListComponentsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => Components.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecuritycenterSettingsService.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecuritycenterSettingsService.g.cs new file mode 100755 index 000000000000..a1401cc67265 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecuritycenterSettingsService.g.cs @@ -0,0 +1,4446 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/settings/v1beta1/securitycenter_settings_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.SecurityCenter.Settings.V1Beta1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/settings/v1beta1/securitycenter_settings_service.proto + public static partial class SecuritycenterSettingsServiceReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/settings/v1beta1/securitycenter_settings_service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SecuritycenterSettingsServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ClJnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvc2V0dGluZ3MvdjFiZXRh", + "MS9zZWN1cml0eWNlbnRlcl9zZXR0aW5nc19zZXJ2aWNlLnByb3RvEixnb29n", + "bGUuY2xvdWQuc2VjdXJpdHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMRocZ29v", + "Z2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQu", + "cHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2ds", + "ZS9hcGkvcmVzb3VyY2UucHJvdG8aRWdvb2dsZS9jbG91ZC9zZWN1cml0eWNl", + "bnRlci9zZXR0aW5ncy92MWJldGExL2NvbXBvbmVudF9zZXR0aW5ncy5wcm90", + "bxo7Z29vZ2xlL2Nsb3VkL3NlY3VyaXR5Y2VudGVyL3NldHRpbmdzL3YxYmV0", + "YTEvZGV0ZWN0b3IucHJvdG8aO2dvb2dsZS9jbG91ZC9zZWN1cml0eWNlbnRl", + "ci9zZXR0aW5ncy92MWJldGExL3NldHRpbmdzLnByb3RvGhtnb29nbGUvcHJv", + "dG9idWYvZW1wdHkucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNr", + "LnByb3RvIl4KGEdldFNlcnZpY2VBY2NvdW50UmVxdWVzdBJCCgRuYW1lGAEg", + "ASgJQjTgQQL6QS4KLHNlY3VyaXR5Y2VudGVyLmdvb2dsZWFwaXMuY29tL1Nl", + "cnZpY2VBY2NvdW50IpcBCg5TZXJ2aWNlQWNjb3VudBIMCgRuYW1lGAEgASgJ", + "EhcKD3NlcnZpY2VfYWNjb3VudBgCIAEoCTpe6kFbCixzZWN1cml0eWNlbnRl", + "ci5nb29nbGVhcGlzLmNvbS9TZXJ2aWNlQWNjb3VudBIrb3JnYW5pemF0aW9u", + "cy97b3JnYW5pemF0aW9ufS9zZXJ2aWNlQWNjb3VudCJSChJHZXRTZXR0aW5n", + "c1JlcXVlc3QSPAoEbmFtZRgBIAEoCUIu4EEC+kEoCiZzZWN1cml0eWNlbnRl", + "ci5nb29nbGVhcGlzLmNvbS9TZXR0aW5ncyKXAQoVVXBkYXRlU2V0dGluZ3NS", + "ZXF1ZXN0Ek0KCHNldHRpbmdzGAEgASgLMjYuZ29vZ2xlLmNsb3VkLnNlY3Vy", + "aXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEuU2V0dGluZ3NCA+BBAhIvCgt1", + "cGRhdGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2si", + "YgoUUmVzZXRTZXR0aW5nc1JlcXVlc3QSPAoEbmFtZRgBIAEoCUIu4EEC+kEo", + "CiZzZWN1cml0eWNlbnRlci5nb29nbGVhcGlzLmNvbS9TZXR0aW5ncxIMCgRl", + "dGFnGAIgASgJInIKF0JhdGNoR2V0U2V0dGluZ3NSZXF1ZXN0EkgKBnBhcmVu", + "dBgBIAEoCUI44EEC+kEyCjBjbG91ZHJlc291cmNlbWFuYWdlci5nb29nbGVh", + "cGlzLmNvbS9Pcmdhbml6YXRpb24SDQoFbmFtZXMYAiADKAkiZAoYQmF0Y2hH", + "ZXRTZXR0aW5nc1Jlc3BvbnNlEkgKCHNldHRpbmdzGAEgAygLMjYuZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEuU2V0dGlu", + "Z3MiYQohQ2FsY3VsYXRlRWZmZWN0aXZlU2V0dGluZ3NSZXF1ZXN0EjwKBG5h", + "bWUYASABKAlCLuBBAvpBKAomc2VjdXJpdHljZW50ZXIuZ29vZ2xlYXBpcy5j", + "b20vU2V0dGluZ3Mi1QEKJkJhdGNoQ2FsY3VsYXRlRWZmZWN0aXZlU2V0dGlu", + "Z3NSZXF1ZXN0EkgKBnBhcmVudBgBIAEoCUI44EEC+kEyCjBjbG91ZHJlc291", + "cmNlbWFuYWdlci5nb29nbGVhcGlzLmNvbS9Pcmdhbml6YXRpb24SYQoIcmVx", + "dWVzdHMYAiADKAsyTy5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIuc2V0", + "dGluZ3MudjFiZXRhMS5DYWxjdWxhdGVFZmZlY3RpdmVTZXR0aW5nc1JlcXVl", + "c3QicwonQmF0Y2hDYWxjdWxhdGVFZmZlY3RpdmVTZXR0aW5nc1Jlc3BvbnNl", + "EkgKCHNldHRpbmdzGAEgAygLMjYuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2Vu", + "dGVyLnNldHRpbmdzLnYxYmV0YTEuU2V0dGluZ3MiZAobR2V0Q29tcG9uZW50", + "U2V0dGluZ3NSZXF1ZXN0EkUKBG5hbWUYASABKAlCN+BBAvpBMQovc2VjdXJp", + "dHljZW50ZXIuZ29vZ2xlYXBpcy5jb20vQ29tcG9uZW50U2V0dGluZ3MiswEK", + "HlVwZGF0ZUNvbXBvbmVudFNldHRpbmdzUmVxdWVzdBJgChJjb21wb25lbnRf", + "c2V0dGluZ3MYASABKAsyPy5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIu", + "c2V0dGluZ3MudjFiZXRhMS5Db21wb25lbnRTZXR0aW5nc0ID4EECEi8KC3Vw", + "ZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzayJ0", + "Ch1SZXNldENvbXBvbmVudFNldHRpbmdzUmVxdWVzdBJFCgRuYW1lGAEgASgJ", + "QjfgQQL6QTEKL3NlY3VyaXR5Y2VudGVyLmdvb2dsZWFwaXMuY29tL0NvbXBv", + "bmVudFNldHRpbmdzEgwKBGV0YWcYAiABKAkicwoqQ2FsY3VsYXRlRWZmZWN0", + "aXZlQ29tcG9uZW50U2V0dGluZ3NSZXF1ZXN0EkUKBG5hbWUYASABKAlCN+BB", + "AvpBMQovc2VjdXJpdHljZW50ZXIuZ29vZ2xlYXBpcy5jb20vQ29tcG9uZW50", + "U2V0dGluZ3MilwEKFExpc3REZXRlY3RvcnNSZXF1ZXN0EkgKBnBhcmVudBgB", + "IAEoCUI44EEC+kEyCjBjbG91ZHJlc291cmNlbWFuYWdlci5nb29nbGVhcGlz", + "LmNvbS9Pcmdhbml6YXRpb24SDgoGZmlsdGVyGAIgASgJEhEKCXBhZ2Vfc2l6", + "ZRgDIAEoBRISCgpwYWdlX3Rva2VuGAQgASgJInsKFUxpc3REZXRlY3RvcnNS", + "ZXNwb25zZRJJCglkZXRlY3RvcnMYASADKAsyNi5nb29nbGUuY2xvdWQuc2Vj", + "dXJpdHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMS5EZXRlY3RvchIXCg9uZXh0", + "X3BhZ2VfdG9rZW4YAiABKAkiiAEKFUxpc3RDb21wb25lbnRzUmVxdWVzdBJI", + "CgZwYXJlbnQYASABKAlCOOBBAvpBMgowY2xvdWRyZXNvdXJjZW1hbmFnZXIu", + "Z29vZ2xlYXBpcy5jb20vT3JnYW5pemF0aW9uEhEKCXBhZ2Vfc2l6ZRgCIAEo", + "BRISCgpwYWdlX3Rva2VuGAMgASgJIkUKFkxpc3RDb21wb25lbnRzUmVzcG9u", + "c2USEgoKY29tcG9uZW50cxgBIAMoCRIXCg9uZXh0X3BhZ2VfdG9rZW4YAiAB", + "KAkyhDMKHVNlY3VyaXR5Q2VudGVyU2V0dGluZ3NTZXJ2aWNlEuEBChFHZXRT", + "ZXJ2aWNlQWNjb3VudBJGLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci5z", + "ZXR0aW5ncy52MWJldGExLkdldFNlcnZpY2VBY2NvdW50UmVxdWVzdBo8Lmdv", + "b2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci5zZXR0aW5ncy52MWJldGExLlNl", + "cnZpY2VBY2NvdW50IkbaQQRuYW1lgtPkkwI5Ejcvc2V0dGluZ3MvdjFiZXRh", + "MS97bmFtZT1vcmdhbml6YXRpb25zLyovc2VydmljZUFjY291bnR9EvkDCgtH", + "ZXRTZXR0aW5ncxJALmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci5zZXR0", + "aW5ncy52MWJldGExLkdldFNldHRpbmdzUmVxdWVzdBo2Lmdvb2dsZS5jbG91", + "ZC5zZWN1cml0eWNlbnRlci5zZXR0aW5ncy52MWJldGExLlNldHRpbmdzIu8C", + "2kEEbmFtZYLT5JMC4QISMS9zZXR0aW5ncy92MWJldGExL3tuYW1lPW9yZ2Fu", + "aXphdGlvbnMvKi9zZXR0aW5nc31aLRIrL3NldHRpbmdzL3YxYmV0YTEve25h", + "bWU9Zm9sZGVycy8qL3NldHRpbmdzfVouEiwvc2V0dGluZ3MvdjFiZXRhMS97", + "bmFtZT1wcm9qZWN0cy8qL3NldHRpbmdzfVpFEkMvc2V0dGluZ3MvdjFiZXRh", + "MS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2NsdXN0ZXJzLyovc2V0", + "dGluZ3N9WkMSQS9zZXR0aW5ncy92MWJldGExL3tuYW1lPXByb2plY3RzLyov", + "cmVnaW9ucy8qL2NsdXN0ZXJzLyovc2V0dGluZ3N9WkESPy9zZXR0aW5ncy92", + "MWJldGExL3tuYW1lPXByb2plY3RzLyovem9uZXMvKi9jbHVzdGVycy8qL3Nl", + "dHRpbmdzfRKBBQoOVXBkYXRlU2V0dGluZ3MSQy5nb29nbGUuY2xvdWQuc2Vj", + "dXJpdHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMS5VcGRhdGVTZXR0aW5nc1Jl", + "cXVlc3QaNi5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIuc2V0dGluZ3Mu", + "djFiZXRhMS5TZXR0aW5ncyLxA9pBFHNldHRpbmdzLHVwZGF0ZV9tYXNrgtPk", + "kwLTAzI6L3NldHRpbmdzL3YxYmV0YTEve3NldHRpbmdzLm5hbWU9b3JnYW5p", + "emF0aW9ucy8qL3NldHRpbmdzfToIc2V0dGluZ3NaQDI0L3NldHRpbmdzL3Yx", + "YmV0YTEve3NldHRpbmdzLm5hbWU9Zm9sZGVycy8qL3NldHRpbmdzfToIc2V0", + "dGluZ3NaQTI1L3NldHRpbmdzL3YxYmV0YTEve3NldHRpbmdzLm5hbWU9cHJv", + "amVjdHMvKi9zZXR0aW5nc306CHNldHRpbmdzWlgyTC9zZXR0aW5ncy92MWJl", + "dGExL3tzZXR0aW5ncy5uYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovY2x1", + "c3RlcnMvKi9zZXR0aW5nc306CHNldHRpbmdzWlYySi9zZXR0aW5ncy92MWJl", + "dGExL3tzZXR0aW5ncy5uYW1lPXByb2plY3RzLyovcmVnaW9ucy8qL2NsdXN0", + "ZXJzLyovc2V0dGluZ3N9OghzZXR0aW5nc1pUMkgvc2V0dGluZ3MvdjFiZXRh", + "MS97c2V0dGluZ3MubmFtZT1wcm9qZWN0cy8qL3pvbmVzLyovY2x1c3RlcnMv", + "Ki9zZXR0aW5nc306CHNldHRpbmdzEowECg1SZXNldFNldHRpbmdzEkIuZ29v", + "Z2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEuUmVz", + "ZXRTZXR0aW5nc1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkingOC", + "0+STApcDIjcvc2V0dGluZ3MvdjFiZXRhMS97bmFtZT1vcmdhbml6YXRpb25z", + "Lyovc2V0dGluZ3N9OnJlc2V0OgEqWjYiMS9zZXR0aW5ncy92MWJldGExL3tu", + "YW1lPWZvbGRlcnMvKi9zZXR0aW5nc306cmVzZXQ6ASpaNyIyL3NldHRpbmdz", + "L3YxYmV0YTEve25hbWU9cHJvamVjdHMvKi9zZXR0aW5nc306cmVzZXQ6ASpa", + "TiJJL3NldHRpbmdzL3YxYmV0YTEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlv", + "bnMvKi9jbHVzdGVycy8qL3NldHRpbmdzfTpyZXNldDoBKlpMIkcvc2V0dGlu", + "Z3MvdjFiZXRhMS97bmFtZT1wcm9qZWN0cy8qL3JlZ2lvbnMvKi9jbHVzdGVy", + "cy8qL3NldHRpbmdzfTpyZXNldDoBKlpKIkUvc2V0dGluZ3MvdjFiZXRhMS97", + "bmFtZT1wcm9qZWN0cy8qL3pvbmVzLyovY2x1c3RlcnMvKi9zZXR0aW5nc306", + "cmVzZXQ6ASoS5wEKEEJhdGNoR2V0U2V0dGluZ3MSRS5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMS5CYXRjaEdldFNldHRp", + "bmdzUmVxdWVzdBpGLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci5zZXR0", + "aW5ncy52MWJldGExLkJhdGNoR2V0U2V0dGluZ3NSZXNwb25zZSJEgtPkkwI+", + "Ejwvc2V0dGluZ3MvdjFiZXRhMS97cGFyZW50PW9yZ2FuaXphdGlvbnMvKn0v", + "c2V0dGluZ3M6YmF0Y2hHZXQSiQUKGkNhbGN1bGF0ZUVmZmVjdGl2ZVNldHRp", + "bmdzEk8uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRpbmdzLnYx", + "YmV0YTEuQ2FsY3VsYXRlRWZmZWN0aXZlU2V0dGluZ3NSZXF1ZXN0GjYuZ29v", + "Z2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEuU2V0", + "dGluZ3Mi4QPaQQRuYW1lgtPkkwLTAxJEL3NldHRpbmdzL3YxYmV0YTEve25h", + "bWU9b3JnYW5pemF0aW9ucy8qL2VmZmVjdGl2ZVNldHRpbmdzfTpjYWxjdWxh", + "dGVaQBI+L3NldHRpbmdzL3YxYmV0YTEve25hbWU9Zm9sZGVycy8qL2VmZmVj", + "dGl2ZVNldHRpbmdzfTpjYWxjdWxhdGVaQRI/L3NldHRpbmdzL3YxYmV0YTEv", + "e25hbWU9cHJvamVjdHMvKi9lZmZlY3RpdmVTZXR0aW5nc306Y2FsY3VsYXRl", + "WlgSVi9zZXR0aW5ncy92MWJldGExL3tuYW1lPXByb2plY3RzLyovbG9jYXRp", + "b25zLyovY2x1c3RlcnMvKi9lZmZlY3RpdmVTZXR0aW5nc306Y2FsY3VsYXRl", + "WlYSVC9zZXR0aW5ncy92MWJldGExL3tuYW1lPXByb2plY3RzLyovcmVnaW9u", + "cy8qL2NsdXN0ZXJzLyovZWZmZWN0aXZlU2V0dGluZ3N9OmNhbGN1bGF0ZVpU", + "ElIvc2V0dGluZ3MvdjFiZXRhMS97bmFtZT1wcm9qZWN0cy8qL3pvbmVzLyov", + "Y2x1c3RlcnMvKi9lZmZlY3RpdmVTZXR0aW5nc306Y2FsY3VsYXRlEqYCCh9C", + "YXRjaENhbGN1bGF0ZUVmZmVjdGl2ZVNldHRpbmdzElQuZ29vZ2xlLmNsb3Vk", + "LnNlY3VyaXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEuQmF0Y2hDYWxjdWxh", + "dGVFZmZlY3RpdmVTZXR0aW5nc1JlcXVlc3QaVS5nb29nbGUuY2xvdWQuc2Vj", + "dXJpdHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMS5CYXRjaENhbGN1bGF0ZUVm", + "ZmVjdGl2ZVNldHRpbmdzUmVzcG9uc2UiVoLT5JMCUCJLL3NldHRpbmdzL3Yx", + "YmV0YTEve3BhcmVudD1vcmdhbml6YXRpb25zLyp9L2VmZmVjdGl2ZVNldHRp", + "bmdzOmJhdGNoQ2FsY3VsYXRlOgEqEuIEChRHZXRDb21wb25lbnRTZXR0aW5n", + "cxJJLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci5zZXR0aW5ncy52MWJl", + "dGExLkdldENvbXBvbmVudFNldHRpbmdzUmVxdWVzdBo/Lmdvb2dsZS5jbG91", + "ZC5zZWN1cml0eWNlbnRlci5zZXR0aW5ncy52MWJldGExLkNvbXBvbmVudFNl", + "dHRpbmdzIr0D2kEEbmFtZYLT5JMCrwMSPi9zZXR0aW5ncy92MWJldGExL3tu", + "YW1lPW9yZ2FuaXphdGlvbnMvKi9jb21wb25lbnRzLyovc2V0dGluZ3N9WjoS", + "OC9zZXR0aW5ncy92MWJldGExL3tuYW1lPWZvbGRlcnMvKi9jb21wb25lbnRz", + "Lyovc2V0dGluZ3N9WjsSOS9zZXR0aW5ncy92MWJldGExL3tuYW1lPXByb2pl", + "Y3RzLyovY29tcG9uZW50cy8qL3NldHRpbmdzfVpSElAvc2V0dGluZ3MvdjFi", + "ZXRhMS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2NsdXN0ZXJzLyov", + "Y29tcG9uZW50cy8qL3NldHRpbmdzfVpQEk4vc2V0dGluZ3MvdjFiZXRhMS97", + "bmFtZT1wcm9qZWN0cy8qL3JlZ2lvbnMvKi9jbHVzdGVycy8qL2NvbXBvbmVu", + "dHMvKi9zZXR0aW5nc31aThJML3NldHRpbmdzL3YxYmV0YTEve25hbWU9cHJv", + "amVjdHMvKi96b25lcy8qL2NsdXN0ZXJzLyovY29tcG9uZW50cy8qL3NldHRp", + "bmdzfRLsBgoXVXBkYXRlQ29tcG9uZW50U2V0dGluZ3MSTC5nb29nbGUuY2xv", + "dWQuc2VjdXJpdHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMS5VcGRhdGVDb21w", + "b25lbnRTZXR0aW5nc1JlcXVlc3QaPy5nb29nbGUuY2xvdWQuc2VjdXJpdHlj", + "ZW50ZXIuc2V0dGluZ3MudjFiZXRhMS5Db21wb25lbnRTZXR0aW5ncyLBBdpB", + "HmNvbXBvbmVudF9zZXR0aW5ncyx1cGRhdGVfbWFza4LT5JMCmQUyUS9zZXR0", + "aW5ncy92MWJldGExL3tjb21wb25lbnRfc2V0dGluZ3MubmFtZT1vcmdhbml6", + "YXRpb25zLyovY29tcG9uZW50cy8qL3NldHRpbmdzfToSY29tcG9uZW50X3Nl", + "dHRpbmdzWmEySy9zZXR0aW5ncy92MWJldGExL3tjb21wb25lbnRfc2V0dGlu", + "Z3MubmFtZT1mb2xkZXJzLyovY29tcG9uZW50cy8qL3NldHRpbmdzfToSY29t", + "cG9uZW50X3NldHRpbmdzWmIyTC9zZXR0aW5ncy92MWJldGExL3tjb21wb25l", + "bnRfc2V0dGluZ3MubmFtZT1wcm9qZWN0cy8qL2NvbXBvbmVudHMvKi9zZXR0", + "aW5nc306EmNvbXBvbmVudF9zZXR0aW5nc1p5MmMvc2V0dGluZ3MvdjFiZXRh", + "MS97Y29tcG9uZW50X3NldHRpbmdzLm5hbWU9cHJvamVjdHMvKi9sb2NhdGlv", + "bnMvKi9jbHVzdGVycy8qL2NvbXBvbmVudHMvKi9zZXR0aW5nc306EmNvbXBv", + "bmVudF9zZXR0aW5nc1p3MmEvc2V0dGluZ3MvdjFiZXRhMS97Y29tcG9uZW50", + "X3NldHRpbmdzLm5hbWU9cHJvamVjdHMvKi9yZWdpb25zLyovY2x1c3RlcnMv", + "Ki9jb21wb25lbnRzLyovc2V0dGluZ3N9OhJjb21wb25lbnRfc2V0dGluZ3Na", + "dTJfL3NldHRpbmdzL3YxYmV0YTEve2NvbXBvbmVudF9zZXR0aW5ncy5uYW1l", + "PXByb2plY3RzLyovem9uZXMvKi9jbHVzdGVycy8qL2NvbXBvbmVudHMvKi9z", + "ZXR0aW5nc306EmNvbXBvbmVudF9zZXR0aW5ncxLsBAoWUmVzZXRDb21wb25l", + "bnRTZXR0aW5ncxJLLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci5zZXR0", + "aW5ncy52MWJldGExLlJlc2V0Q29tcG9uZW50U2V0dGluZ3NSZXF1ZXN0GhYu", + "Z29vZ2xlLnByb3RvYnVmLkVtcHR5IuwDgtPkkwLlAyJEL3NldHRpbmdzL3Yx", + "YmV0YTEve25hbWU9b3JnYW5pemF0aW9ucy8qL2NvbXBvbmVudHMvKi9zZXR0", + "aW5nc306cmVzZXQ6ASpaQyI+L3NldHRpbmdzL3YxYmV0YTEve25hbWU9Zm9s", + "ZGVycy8qL2NvbXBvbmVudHMvKi9zZXR0aW5nc306cmVzZXQ6ASpaRCI/L3Nl", + "dHRpbmdzL3YxYmV0YTEve25hbWU9cHJvamVjdHMvKi9jb21wb25lbnRzLyov", + "c2V0dGluZ3N9OnJlc2V0OgEqWlsiVi9zZXR0aW5ncy92MWJldGExL3tuYW1l", + "PXByb2plY3RzLyovbG9jYXRpb25zLyovY2x1c3RlcnMvKi9jb21wb25lbnRz", + "Lyovc2V0dGluZ3N9OnJlc2V0OgEqWlkiVC9zZXR0aW5ncy92MWJldGExL3tu", + "YW1lPXByb2plY3RzLyovcmVnaW9ucy8qL2NsdXN0ZXJzLyovY29tcG9uZW50", + "cy8qL3NldHRpbmdzfTpyZXNldDoBKlpXIlIvc2V0dGluZ3MvdjFiZXRhMS97", + "bmFtZT1wcm9qZWN0cy8qL3pvbmVzLyovY2x1c3RlcnMvKi9jb21wb25lbnRz", + "Lyovc2V0dGluZ3N9OnJlc2V0OgEqEvIFCiNDYWxjdWxhdGVFZmZlY3RpdmVD", + "b21wb25lbnRTZXR0aW5ncxJYLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRl", + "ci5zZXR0aW5ncy52MWJldGExLkNhbGN1bGF0ZUVmZmVjdGl2ZUNvbXBvbmVu", + "dFNldHRpbmdzUmVxdWVzdBo/Lmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRl", + "ci5zZXR0aW5ncy52MWJldGExLkNvbXBvbmVudFNldHRpbmdzIq8E2kEEbmFt", + "ZYLT5JMCoQQSUS9zZXR0aW5ncy92MWJldGExL3tuYW1lPW9yZ2FuaXphdGlv", + "bnMvKi9jb21wb25lbnRzLyovZWZmZWN0aXZlU2V0dGluZ3N9OmNhbGN1bGF0", + "ZVpNEksvc2V0dGluZ3MvdjFiZXRhMS97bmFtZT1mb2xkZXJzLyovY29tcG9u", + "ZW50cy8qL2VmZmVjdGl2ZVNldHRpbmdzfTpjYWxjdWxhdGVaThJML3NldHRp", + "bmdzL3YxYmV0YTEve25hbWU9cHJvamVjdHMvKi9jb21wb25lbnRzLyovZWZm", + "ZWN0aXZlU2V0dGluZ3N9OmNhbGN1bGF0ZVplEmMvc2V0dGluZ3MvdjFiZXRh", + "MS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2NsdXN0ZXJzLyovY29t", + "cG9uZW50cy8qL2VmZmVjdGl2ZVNldHRpbmdzfTpjYWxjdWxhdGVaYxJhL3Nl", + "dHRpbmdzL3YxYmV0YTEve25hbWU9cHJvamVjdHMvKi9yZWdpb25zLyovY2x1", + "c3RlcnMvKi9jb21wb25lbnRzLyovZWZmZWN0aXZlU2V0dGluZ3N9OmNhbGN1", + "bGF0ZVphEl8vc2V0dGluZ3MvdjFiZXRhMS97bmFtZT1wcm9qZWN0cy8qL3pv", + "bmVzLyovY2x1c3RlcnMvKi9jb21wb25lbnRzLyovZWZmZWN0aXZlU2V0dGlu", + "Z3N9OmNhbGN1bGF0ZRLfAQoNTGlzdERldGVjdG9ycxJCLmdvb2dsZS5jbG91", + "ZC5zZWN1cml0eWNlbnRlci5zZXR0aW5ncy52MWJldGExLkxpc3REZXRlY3Rv", + "cnNSZXF1ZXN0GkMuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRp", + "bmdzLnYxYmV0YTEuTGlzdERldGVjdG9yc1Jlc3BvbnNlIkXaQQZwYXJlbnSC", + "0+STAjYSNC9zZXR0aW5ncy92MWJldGExL3twYXJlbnQ9b3JnYW5pemF0aW9u", + "cy8qfS9kZXRlY3RvcnMS4wEKDkxpc3RDb21wb25lbnRzEkMuZ29vZ2xlLmNs", + "b3VkLnNlY3VyaXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEuTGlzdENvbXBv", + "bmVudHNSZXF1ZXN0GkQuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNl", + "dHRpbmdzLnYxYmV0YTEuTGlzdENvbXBvbmVudHNSZXNwb25zZSJG2kEGcGFy", + "ZW50gtPkkwI3EjUvc2V0dGluZ3MvdjFiZXRhMS97cGFyZW50PW9yZ2FuaXph", + "dGlvbnMvKn0vY29tcG9uZW50cxpRykEdc2VjdXJpdHljZW50ZXIuZ29vZ2xl", + "YXBpcy5jb23SQS5odHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Ns", + "b3VkLXBsYXRmb3JtQqwCCjBjb20uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2Vu", + "dGVyLnNldHRpbmdzLnYxYmV0YTFCFFNldHRpbmdzU2VydmljZVByb3RvUAFa", + "TGNsb3VkLmdvb2dsZS5jb20vZ28vc2VjdXJpdHljZW50ZXIvc2V0dGluZ3Mv", + "YXBpdjFiZXRhMS9zZXR0aW5nc3BiO3NldHRpbmdzcGL4AQGqAixHb29nbGUu", + "Q2xvdWQuU2VjdXJpdHlDZW50ZXIuU2V0dGluZ3MuVjFCZXRhMcoCLEdvb2ds", + "ZVxDbG91ZFxTZWN1cml0eUNlbnRlclxTZXR0aW5nc1xWMWJldGEx6gIwR29v", + "Z2xlOjpDbG91ZDo6U2VjdXJpdHlDZW50ZXI6OlNldHRpbmdzOjpWMWJldGEx", + "YgZwcm90bzM=")); + 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.SecurityCenter.Settings.V1Beta1.ComponentSettingsReflection.Descriptor, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.DetectorReflection.Descriptor, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SettingsReflection.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.SecurityCenter.Settings.V1Beta1.GetServiceAccountRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetServiceAccountRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ServiceAccount), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ServiceAccount.Parser, new[]{ "Name", "ServiceAccount_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetSettingsRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetSettingsRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateSettingsRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateSettingsRequest.Parser, new[]{ "Settings", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetSettingsRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetSettingsRequest.Parser, new[]{ "Name", "Etag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsRequest.Parser, new[]{ "Parent", "Names" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsResponse), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsResponse.Parser, new[]{ "Settings" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveSettingsRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveSettingsRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsRequest.Parser, new[]{ "Parent", "Requests" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsResponse), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsResponse.Parser, new[]{ "Settings" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetComponentSettingsRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetComponentSettingsRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateComponentSettingsRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateComponentSettingsRequest.Parser, new[]{ "ComponentSettings", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetComponentSettingsRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetComponentSettingsRequest.Parser, new[]{ "Name", "Etag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveComponentSettingsRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveComponentSettingsRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsRequest.Parser, new[]{ "Parent", "Filter", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsResponse), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsResponse.Parser, new[]{ "Detectors", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsRequest), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsResponse), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsResponse.Parser, new[]{ "Components", "NextPageToken" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Request message for GetServiceAccount. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetServiceAccountRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetServiceAccountRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 GetServiceAccountRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceAccountRequest(GetServiceAccountRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceAccountRequest Clone() { + return new GetServiceAccountRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The relative resource name of the service account resource. + /// Format: + /// * `organizations/{organization}/serviceAccount` + /// + [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 GetServiceAccountRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetServiceAccountRequest 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(GetServiceAccountRequest 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 + + } + + /// + /// An organization-level service account to be used by threat detection + /// components. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ServiceAccount : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceAccount()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 ServiceAccount() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceAccount(ServiceAccount other) : this() { + name_ = other.name_; + serviceAccount_ = other.serviceAccount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceAccount Clone() { + return new ServiceAccount(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The relative resource name of the service account resource. + /// Format: + /// * `organizations/{organization}/serviceAccount` + /// + [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 "service_account" field. + public const int ServiceAccount_FieldNumber = 2; + private string serviceAccount_ = ""; + /// + /// Security Center managed service account for the organization + /// example service-org-1234@scc.iam.gserviceaccount.com + /// This service_account will be stored in the ComponentSettings field for the + /// SCC, SHA, and Infra Automation components. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccount_ { + get { return serviceAccount_; } + set { + serviceAccount_ = 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 ServiceAccount); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceAccount other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (ServiceAccount_ != other.ServiceAccount_) 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 (ServiceAccount_.Length != 0) hash ^= ServiceAccount_.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 (ServiceAccount_.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ServiceAccount_); + } + 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 (ServiceAccount_.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ServiceAccount_); + } + 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 (ServiceAccount_.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccount_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceAccount other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.ServiceAccount_.Length != 0) { + ServiceAccount_ = other.ServiceAccount_; + } + _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: { + ServiceAccount_ = 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: { + ServiceAccount_ = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for GetSettings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetSettingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSettingsRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 GetSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSettingsRequest(GetSettingsRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSettingsRequest Clone() { + return new GetSettingsRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The name of the settings to retrieve. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + [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 GetSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSettingsRequest 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(GetSettingsRequest 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 UpdateSettings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateSettingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateSettingsRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 UpdateSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateSettingsRequest(UpdateSettingsRequest other) : this() { + settings_ = other.settings_ != null ? other.settings_.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 UpdateSettingsRequest Clone() { + return new UpdateSettingsRequest(this); + } + + /// Field number for the "settings" field. + public const int SettingsFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings settings_; + /// + /// Required. The settings to update. + /// + /// The settings' `name` field is used to identify the settings to be updated. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings Settings { + get { return settings_; } + set { + settings_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// The list of fields to be updated on the settings. + /// + [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 UpdateSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateSettingsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Settings, other.Settings)) 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 (settings_ != null) hash ^= Settings.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 (settings_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Settings); + } + 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 (settings_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Settings); + } + 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 (settings_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Settings); + } + 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(UpdateSettingsRequest other) { + if (other == null) { + return; + } + if (other.settings_ != null) { + if (settings_ == null) { + Settings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings(); + } + Settings.MergeFrom(other.Settings); + } + 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 (settings_ == null) { + Settings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings(); + } + input.ReadMessage(Settings); + 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 (settings_ == null) { + Settings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings(); + } + input.ReadMessage(Settings); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for ResetSettings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ResetSettingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResetSettingsRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 ResetSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResetSettingsRequest(ResetSettingsRequest 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 ResetSettingsRequest Clone() { + return new ResetSettingsRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The name of the settings to reset. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + [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_ = ""; + /// + /// A fingerprint used for optimistic concurrency. If none is provided, + /// then the existing settings will be blindly overwritten. + /// + [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 ResetSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResetSettingsRequest 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(ResetSettingsRequest 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 BatchGetSettings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BatchGetSettingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchGetSettingsRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 BatchGetSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchGetSettingsRequest(BatchGetSettingsRequest other) : this() { + parent_ = other.parent_; + names_ = other.names_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchGetSettingsRequest Clone() { + return new BatchGetSettingsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The relative resource name of the organization shared by all of the + /// settings being retrieved. + /// Format: + /// * `organizations/{organization}` + /// + [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 "names" field. + public const int NamesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_names_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField names_ = new pbc::RepeatedField(); + /// + /// The names of the settings to retrieve. + /// A maximum of 1000 settings can be retrieved in a batch. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Names { + get { return names_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BatchGetSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BatchGetSettingsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if(!names_.Equals(other.names_)) 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(); + hash ^= names_.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); + } + names_.WriteTo(output, _repeated_names_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) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + names_.WriteTo(ref output, _repeated_names_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; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + size += names_.CalculateSize(_repeated_names_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BatchGetSettingsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + names_.Add(other.names_); + _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: { + names_.AddEntriesFrom(input, _repeated_names_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: { + Parent = input.ReadString(); + break; + } + case 18: { + names_.AddEntriesFrom(ref input, _repeated_names_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for BatchGetSettings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BatchGetSettingsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchGetSettingsResponse()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 BatchGetSettingsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchGetSettingsResponse(BatchGetSettingsResponse other) : this() { + settings_ = other.settings_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchGetSettingsResponse Clone() { + return new BatchGetSettingsResponse(this); + } + + /// Field number for the "settings" field. + public const int SettingsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_settings_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Parser); + private readonly pbc::RepeatedField settings_ = new pbc::RepeatedField(); + /// + /// Settings requested. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Settings { + get { return settings_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BatchGetSettingsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BatchGetSettingsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!settings_.Equals(other.settings_)) 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 ^= settings_.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 + settings_.WriteTo(output, _repeated_settings_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) { + settings_.WriteTo(ref output, _repeated_settings_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 += settings_.CalculateSize(_repeated_settings_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BatchGetSettingsResponse other) { + if (other == null) { + return; + } + settings_.Add(other.settings_); + _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: { + settings_.AddEntriesFrom(input, _repeated_settings_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: { + settings_.AddEntriesFrom(ref input, _repeated_settings_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for CalculateEffectiveSettings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CalculateEffectiveSettingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateEffectiveSettingsRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 CalculateEffectiveSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateEffectiveSettingsRequest(CalculateEffectiveSettingsRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateEffectiveSettingsRequest Clone() { + return new CalculateEffectiveSettingsRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The name of the effective settings to retrieve. + /// Formats: + /// * `organizations/{organization}/effectiveSettings` + /// * `folders/{folder}/effectiveSettings` + /// * `projects/{project}/effectiveSettings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/effectiveSettings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/effectiveSettings` + /// + [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 CalculateEffectiveSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CalculateEffectiveSettingsRequest 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(CalculateEffectiveSettingsRequest 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 BatchGetEffectiveSettings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BatchCalculateEffectiveSettingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchCalculateEffectiveSettingsRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 BatchCalculateEffectiveSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchCalculateEffectiveSettingsRequest(BatchCalculateEffectiveSettingsRequest other) : this() { + parent_ = other.parent_; + requests_ = other.requests_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchCalculateEffectiveSettingsRequest Clone() { + return new BatchCalculateEffectiveSettingsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The relative resource name of the organization shared by all of the + /// settings being retrieved. + /// Format: + /// * `organizations/{organization}` + /// + [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 "requests" field. + public const int RequestsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_requests_codec + = pb::FieldCodec.ForMessage(18, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveSettingsRequest.Parser); + private readonly pbc::RepeatedField requests_ = new pbc::RepeatedField(); + /// + /// The requests specifying the effective settings to retrieve. + /// A maximum of 1000 effective settings can be retrieved in a batch. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Requests { + get { return requests_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BatchCalculateEffectiveSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BatchCalculateEffectiveSettingsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if(!requests_.Equals(other.requests_)) 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(); + hash ^= requests_.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); + } + requests_.WriteTo(output, _repeated_requests_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) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + requests_.WriteTo(ref output, _repeated_requests_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; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + size += requests_.CalculateSize(_repeated_requests_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BatchCalculateEffectiveSettingsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + requests_.Add(other.requests_); + _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: { + requests_.AddEntriesFrom(input, _repeated_requests_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: { + Parent = input.ReadString(); + break; + } + case 18: { + requests_.AddEntriesFrom(ref input, _repeated_requests_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for BatchGetEffectiveSettings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BatchCalculateEffectiveSettingsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchCalculateEffectiveSettingsResponse()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 BatchCalculateEffectiveSettingsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchCalculateEffectiveSettingsResponse(BatchCalculateEffectiveSettingsResponse other) : this() { + settings_ = other.settings_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchCalculateEffectiveSettingsResponse Clone() { + return new BatchCalculateEffectiveSettingsResponse(this); + } + + /// Field number for the "settings" field. + public const int SettingsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_settings_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Parser); + private readonly pbc::RepeatedField settings_ = new pbc::RepeatedField(); + /// + /// Settings requested. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Settings { + get { return settings_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BatchCalculateEffectiveSettingsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BatchCalculateEffectiveSettingsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!settings_.Equals(other.settings_)) 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 ^= settings_.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 + settings_.WriteTo(output, _repeated_settings_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) { + settings_.WriteTo(ref output, _repeated_settings_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 += settings_.CalculateSize(_repeated_settings_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BatchCalculateEffectiveSettingsResponse other) { + if (other == null) { + return; + } + settings_.Add(other.settings_); + _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: { + settings_.AddEntriesFrom(input, _repeated_settings_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: { + settings_.AddEntriesFrom(ref input, _repeated_settings_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for GetComponentSettings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetComponentSettingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetComponentSettingsRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 GetComponentSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetComponentSettingsRequest(GetComponentSettingsRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetComponentSettingsRequest Clone() { + return new GetComponentSettingsRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + [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 GetComponentSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetComponentSettingsRequest 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(GetComponentSettingsRequest 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 UpdateComponentSettings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateComponentSettingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateComponentSettingsRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 UpdateComponentSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateComponentSettingsRequest(UpdateComponentSettingsRequest other) : this() { + componentSettings_ = other.componentSettings_ != null ? other.componentSettings_.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 UpdateComponentSettingsRequest Clone() { + return new UpdateComponentSettingsRequest(this); + } + + /// Field number for the "component_settings" field. + public const int ComponentSettingsFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings componentSettings_; + /// + /// Required. The component settings to update. + /// + /// The component settings' `name` field is used to identify the component + /// settings to be updated. Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings ComponentSettings { + get { return componentSettings_; } + set { + componentSettings_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// The list of fields to be updated on the component settings resource. + /// + [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 UpdateComponentSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateComponentSettingsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ComponentSettings, other.ComponentSettings)) 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 (componentSettings_ != null) hash ^= ComponentSettings.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 (componentSettings_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ComponentSettings); + } + 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 (componentSettings_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ComponentSettings); + } + 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 (componentSettings_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ComponentSettings); + } + 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(UpdateComponentSettingsRequest other) { + if (other == null) { + return; + } + if (other.componentSettings_ != null) { + if (componentSettings_ == null) { + ComponentSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings(); + } + ComponentSettings.MergeFrom(other.ComponentSettings); + } + 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 (componentSettings_ == null) { + ComponentSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings(); + } + input.ReadMessage(ComponentSettings); + 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 (componentSettings_ == null) { + ComponentSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings(); + } + input.ReadMessage(ComponentSettings); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for ResetComponentSettings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ResetComponentSettingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResetComponentSettingsRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 ResetComponentSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResetComponentSettingsRequest(ResetComponentSettingsRequest 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 ResetComponentSettingsRequest Clone() { + return new ResetComponentSettingsRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The component settings to reset. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + [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_ = ""; + /// + /// An fingerprint used for optimistic concurrency. If none is provided, + /// then the existing settings will be blindly overwritten. + /// + [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 ResetComponentSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResetComponentSettingsRequest 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(ResetComponentSettingsRequest 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 CalculateEffectiveComponentSettings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CalculateEffectiveComponentSettingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateEffectiveComponentSettingsRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 CalculateEffectiveComponentSettingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateEffectiveComponentSettingsRequest(CalculateEffectiveComponentSettingsRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateEffectiveComponentSettingsRequest Clone() { + return new CalculateEffectiveComponentSettingsRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The effective component settings to retrieve. + /// + /// Formats: + /// * `organizations/{organization}/components/{component}/settings` + /// * `folders/{folder}/components/{component}/settings` + /// * `projects/{project}/components/{component}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` + /// + [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 CalculateEffectiveComponentSettingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CalculateEffectiveComponentSettingsRequest 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(CalculateEffectiveComponentSettingsRequest 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 ListDetectors. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListDetectorsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDetectorsRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.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 ListDetectorsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDetectorsRequest(ListDetectorsRequest other) : this() { + parent_ = other.parent_; + filter_ = other.filter_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDetectorsRequest Clone() { + return new ListDetectorsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The parent, which owns this collection of detectors. + /// Format: + /// * `organizations/{organization}` + /// + [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 "filter" field. + public const int FilterFieldNumber = 2; + private string filter_ = ""; + /// + /// Filters to apply on the response. Filters can be applied on: + /// * components + /// * labels + /// * billing tiers + /// + /// Component filters will retrieve only detectors for the components + /// specified. Label filters will retrieve only detectors that match one of the + /// labels specified. Billing tier filters will retrieve only detectors for + /// that billing tier. + /// + /// The filters + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 3; + private int pageSize_; + /// + /// The maximum number of detectors to return. The service may return fewer + /// than this value. If unspecified, at most 100 detectors will be returned. + /// The maximum value is 1000; values above 1000 will be coerced to 1000. + /// + [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 = 4; + private string pageToken_ = ""; + /// + /// A page token, received from a previous `ListDetectors` call. + /// Provide this to retrieve the subsequent page. + /// + /// When paginating, all other parameters provided to `ListDetectors` must + /// match the call that provided the 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListDetectorsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDetectorsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (Filter != other.Filter) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) 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 (Filter.Length != 0) hash ^= Filter.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.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 (Filter.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Filter); + } + if (PageSize != 0) { + output.WriteRawTag(24); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(34); + output.WriteString(PageToken); + } + 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 (Filter.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Filter); + } + if (PageSize != 0) { + output.WriteRawTag(24); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(34); + output.WriteString(PageToken); + } + 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 (Filter.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDetectorsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.Filter.Length != 0) { + Filter = other.Filter; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + _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: { + Filter = input.ReadString(); + break; + } + case 24: { + PageSize = input.ReadInt32(); + break; + } + case 34: { + PageToken = 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 18: { + Filter = input.ReadString(); + break; + } + case 24: { + PageSize = input.ReadInt32(); + break; + } + case 34: { + PageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for ListDetectors. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListDetectorsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDetectorsResponse()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.Descriptor.MessageTypes[15]; } + } + + [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 ListDetectorsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDetectorsResponse(ListDetectorsResponse other) : this() { + detectors_ = other.detectors_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListDetectorsResponse Clone() { + return new ListDetectorsResponse(this); + } + + /// Field number for the "detectors" field. + public const int DetectorsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_detectors_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Detector.Parser); + private readonly pbc::RepeatedField detectors_ = new pbc::RepeatedField(); + /// + /// The detectors from the specified organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Detectors { + get { return detectors_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token that can be sent as `page_token` to retrieve the next page. + /// If this field is omitted, there are no subsequent pages. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = 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 ListDetectorsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListDetectorsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!detectors_.Equals(other.detectors_)) return false; + if (NextPageToken != other.NextPageToken) 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 ^= detectors_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.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 + detectors_.WriteTo(output, _repeated_detectors_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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) { + detectors_.WriteTo(ref output, _repeated_detectors_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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 += detectors_.CalculateSize(_repeated_detectors_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListDetectorsResponse other) { + if (other == null) { + return; + } + detectors_.Add(other.detectors_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _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: { + detectors_.AddEntriesFrom(input, _repeated_detectors_codec); + break; + } + case 18: { + NextPageToken = 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: { + detectors_.AddEntriesFrom(ref input, _repeated_detectors_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for ListComponents. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListComponentsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListComponentsRequest()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.Descriptor.MessageTypes[16]; } + } + + [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 ListComponentsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListComponentsRequest(ListComponentsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListComponentsRequest Clone() { + return new ListComponentsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The parent, which owns this collection of components. + /// Format: + /// * `organizations/{organization}` + /// + [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_; + /// + /// The maximum number of components to return. The service may return fewer + /// than this value. If unspecified, at most 100 components will be returned. + /// The maximum value is 1000; values above 1000 will be coerced to 1000. + /// + [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_ = ""; + /// + /// A page token, received from a previous `ListComponents` call. + /// Provide this to retrieve the subsequent page. + /// + /// When paginating, all other parameters provided to `ListComponents` must + /// match the call that provided the 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListComponentsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListComponentsRequest 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; + 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListComponentsRequest 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; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + /// + /// Response message for ListComponents. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListComponentsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListComponentsResponse()); + 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.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.Descriptor.MessageTypes[17]; } + } + + [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 ListComponentsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListComponentsResponse(ListComponentsResponse other) : this() { + components_ = other.components_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListComponentsResponse Clone() { + return new ListComponentsResponse(this); + } + + /// Field number for the "components" field. + public const int ComponentsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_components_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField components_ = new pbc::RepeatedField(); + /// + /// The components from the specified organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Components { + get { return components_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token that can be sent as `page_token` to retrieve the next page. + /// If this field is omitted, there are no subsequent pages. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = 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 ListComponentsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListComponentsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!components_.Equals(other.components_)) return false; + if (NextPageToken != other.NextPageToken) 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 ^= components_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.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 + components_.WriteTo(output, _repeated_components_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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) { + components_.WriteTo(ref output, _repeated_components_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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 += components_.CalculateSize(_repeated_components_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListComponentsResponse other) { + if (other == null) { + return; + } + components_.Add(other.components_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _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: { + components_.AddEntriesFrom(input, _repeated_components_codec); + break; + } + case 18: { + NextPageToken = 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: { + components_.AddEntriesFrom(ref input, _repeated_components_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecuritycenterSettingsServiceGrpc.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecuritycenterSettingsServiceGrpc.g.cs new file mode 100755 index 000000000000..f880d72d46be --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecuritycenterSettingsServiceGrpc.g.cs @@ -0,0 +1,1250 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/settings/v1beta1/securitycenter_settings_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.SecurityCenter.Settings.V1Beta1 { + /// + /// ## API Overview + /// + /// The SecurityCenterSettingsService is a sub-api of + /// `securitycenter.googleapis.com`. The service provides methods to manage + /// Security Center Settings, and Component Settings for GCP organizations, + /// folders, projects, and clusters. + /// + public static partial class SecurityCenterSettingsService + { + static readonly string __ServiceName = "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService"; + + [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_securitycenter_settings_v1beta1_GetServiceAccountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetServiceAccountRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_ServiceAccount = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ServiceAccount.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_GetSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetSettingsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_Settings = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_UpdateSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateSettingsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_ResetSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetSettingsRequest.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_securitycenter_settings_v1beta1_BatchGetSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_BatchGetSettingsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_CalculateEffectiveSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveSettingsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_BatchCalculateEffectiveSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_BatchCalculateEffectiveSettingsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_GetComponentSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetComponentSettingsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_ComponentSettings = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_UpdateComponentSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateComponentSettingsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_ResetComponentSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetComponentSettingsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_CalculateEffectiveComponentSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveComponentSettingsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_ListDetectorsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_ListDetectorsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_ListComponentsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_securitycenter_settings_v1beta1_ListComponentsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetServiceAccount = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetServiceAccount", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_GetServiceAccountRequest, + __Marshaller_google_cloud_securitycenter_settings_v1beta1_ServiceAccount); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetSettings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetSettings", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_GetSettingsRequest, + __Marshaller_google_cloud_securitycenter_settings_v1beta1_Settings); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateSettings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateSettings", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_UpdateSettingsRequest, + __Marshaller_google_cloud_securitycenter_settings_v1beta1_Settings); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ResetSettings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ResetSettings", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_ResetSettingsRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_BatchGetSettings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "BatchGetSettings", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_BatchGetSettingsRequest, + __Marshaller_google_cloud_securitycenter_settings_v1beta1_BatchGetSettingsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CalculateEffectiveSettings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CalculateEffectiveSettings", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_CalculateEffectiveSettingsRequest, + __Marshaller_google_cloud_securitycenter_settings_v1beta1_Settings); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_BatchCalculateEffectiveSettings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "BatchCalculateEffectiveSettings", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_BatchCalculateEffectiveSettingsRequest, + __Marshaller_google_cloud_securitycenter_settings_v1beta1_BatchCalculateEffectiveSettingsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetComponentSettings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetComponentSettings", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_GetComponentSettingsRequest, + __Marshaller_google_cloud_securitycenter_settings_v1beta1_ComponentSettings); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateComponentSettings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateComponentSettings", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_UpdateComponentSettingsRequest, + __Marshaller_google_cloud_securitycenter_settings_v1beta1_ComponentSettings); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ResetComponentSettings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ResetComponentSettings", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_ResetComponentSettingsRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CalculateEffectiveComponentSettings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CalculateEffectiveComponentSettings", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_CalculateEffectiveComponentSettingsRequest, + __Marshaller_google_cloud_securitycenter_settings_v1beta1_ComponentSettings); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListDetectors = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListDetectors", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_ListDetectorsRequest, + __Marshaller_google_cloud_securitycenter_settings_v1beta1_ListDetectorsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListComponents = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListComponents", + __Marshaller_google_cloud_securitycenter_settings_v1beta1_ListComponentsRequest, + __Marshaller_google_cloud_securitycenter_settings_v1beta1_ListComponentsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SecuritycenterSettingsServiceReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of SecurityCenterSettingsService + [grpc::BindServiceMethod(typeof(SecurityCenterSettingsService), "BindService")] + public abstract partial class SecurityCenterSettingsServiceBase + { + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// 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 GetServiceAccount(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetServiceAccountRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets the Settings. + /// + /// 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 GetSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetSettingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates the Settings. + /// + /// 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 UpdateSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateSettingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Reset the organization, folder or project's settings and return + /// the settings of just that resource to the default. + /// + /// Settings are present at the organization, folder, project, and cluster + /// levels. Using Reset on a sub-organization level will remove that resource's + /// override and result in the parent's settings being used (eg: if Reset on a + /// cluster, project settings will be used). + /// + /// Using Reset on organization will remove the override that was set and + /// result in default settings being used. + /// + /// 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 ResetSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetSettingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets a list of settings. + /// + /// 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 BatchGetSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// 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 CalculateEffectiveSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveSettingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets a list of effective settings. + /// + /// 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 BatchCalculateEffectiveSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets the Component Settings. + /// + /// 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 GetComponentSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetComponentSettingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates the Component Settings. + /// + /// 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 UpdateComponentSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateComponentSettingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Reset the organization, folder or project's component settings and return + /// the settings to the default. Settings are present at the + /// organization, folder and project levels. Using Reset for a folder or + /// project will remove the override that was set and result in the + /// organization-level settings being used. + /// + /// 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 ResetComponentSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetComponentSettingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets the Effective Component Settings. + /// + /// 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 CalculateEffectiveComponentSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveComponentSettingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Retrieves an unordered list of available detectors. + /// + /// 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 ListDetectors(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Retrieves an unordered list of available SCC components. + /// + /// 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 ListComponents(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for SecurityCenterSettingsService + public partial class SecurityCenterSettingsServiceClient : grpc::ClientBase + { + /// Creates a new client for SecurityCenterSettingsService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public SecurityCenterSettingsServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for SecurityCenterSettingsService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public SecurityCenterSettingsServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected SecurityCenterSettingsServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected SecurityCenterSettingsServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// 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.SecurityCenter.Settings.V1Beta1.ServiceAccount GetServiceAccount(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetServiceAccountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetServiceAccount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// 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.SecurityCenter.Settings.V1Beta1.ServiceAccount GetServiceAccount(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetServiceAccountRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetServiceAccount, null, options, request); + } + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// 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 GetServiceAccountAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetServiceAccountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetServiceAccountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Retrieves the organizations service account, if it exists, otherwise it + /// creates the organization service account. This API is idempotent and + /// will only create a service account once. On subsequent calls it will + /// return the previously created service account. SHA, SCC and CTD Infra + /// Automation will use this SA. This SA will not have any permissions when + /// created. The UI will provision this via IAM or the user will using + /// their own internal process. This API only creates SAs on the organization. + /// Folders are not supported and projects will use per-project SAs associated + /// with APIs enabled on a project. This API will be called by the UX + /// onboarding workflow. + /// + /// 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 GetServiceAccountAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetServiceAccountRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetServiceAccount, null, options, request); + } + /// + /// Gets the Settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.Settings GetSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the Settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.Settings GetSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetSettings, null, options, request); + } + /// + /// Gets the Settings. + /// + /// 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 GetSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the Settings. + /// + /// 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 GetSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetSettings, null, options, request); + } + /// + /// Updates the Settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.Settings UpdateSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates the Settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.Settings UpdateSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateSettings, null, options, request); + } + /// + /// Updates the Settings. + /// + /// 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 UpdateSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates the Settings. + /// + /// 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 UpdateSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateSettings, null, options, request); + } + /// + /// Reset the organization, folder or project's settings and return + /// the settings of just that resource to the default. + /// + /// Settings are present at the organization, folder, project, and cluster + /// levels. Using Reset on a sub-organization level will remove that resource's + /// override and result in the parent's settings being used (eg: if Reset on a + /// cluster, project settings will be used). + /// + /// Using Reset on organization will remove the override that was set and + /// result in default settings being used. + /// + /// 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 ResetSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ResetSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Reset the organization, folder or project's settings and return + /// the settings of just that resource to the default. + /// + /// Settings are present at the organization, folder, project, and cluster + /// levels. Using Reset on a sub-organization level will remove that resource's + /// override and result in the parent's settings being used (eg: if Reset on a + /// cluster, project settings will be used). + /// + /// Using Reset on organization will remove the override that was set and + /// result in default settings being used. + /// + /// 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 ResetSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ResetSettings, null, options, request); + } + /// + /// Reset the organization, folder or project's settings and return + /// the settings of just that resource to the default. + /// + /// Settings are present at the organization, folder, project, and cluster + /// levels. Using Reset on a sub-organization level will remove that resource's + /// override and result in the parent's settings being used (eg: if Reset on a + /// cluster, project settings will be used). + /// + /// Using Reset on organization will remove the override that was set and + /// result in default settings being used. + /// + /// 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 ResetSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ResetSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Reset the organization, folder or project's settings and return + /// the settings of just that resource to the default. + /// + /// Settings are present at the organization, folder, project, and cluster + /// levels. Using Reset on a sub-organization level will remove that resource's + /// override and result in the parent's settings being used (eg: if Reset on a + /// cluster, project settings will be used). + /// + /// Using Reset on organization will remove the override that was set and + /// result in default settings being used. + /// + /// 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 ResetSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ResetSettings, null, options, request); + } + /// + /// Gets a list of settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.BatchGetSettingsResponse BatchGetSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BatchGetSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets a list of settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.BatchGetSettingsResponse BatchGetSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_BatchGetSettings, null, options, request); + } + /// + /// Gets a list of settings. + /// + /// 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 BatchGetSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BatchGetSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets a list of settings. + /// + /// 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 BatchGetSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchGetSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_BatchGetSettings, null, options, request); + } + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// 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.SecurityCenter.Settings.V1Beta1.Settings CalculateEffectiveSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CalculateEffectiveSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// 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.SecurityCenter.Settings.V1Beta1.Settings CalculateEffectiveSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CalculateEffectiveSettings, null, options, request); + } + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// 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 CalculateEffectiveSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CalculateEffectiveSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// CalculateEffectiveSettings looks up all of the Security Center + /// Settings resources in the GCP resource hierarchy, and calculates the + /// effective settings on that resource by applying the following rules: + /// * Settings provided closer to the target resource take precedence over + /// those further away (e.g. folder will override organization level + /// settings). + /// * Product defaults can be overridden at org, folder, project, and cluster + /// levels. + /// * Detectors will be filtered out if they belong to a billing tier the + /// customer + /// has not configured. + /// + /// 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 CalculateEffectiveSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CalculateEffectiveSettings, null, options, request); + } + /// + /// Gets a list of effective settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsResponse BatchCalculateEffectiveSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BatchCalculateEffectiveSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets a list of effective settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsResponse BatchCalculateEffectiveSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_BatchCalculateEffectiveSettings, null, options, request); + } + /// + /// Gets a list of effective settings. + /// + /// 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 BatchCalculateEffectiveSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BatchCalculateEffectiveSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets a list of effective settings. + /// + /// 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 BatchCalculateEffectiveSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BatchCalculateEffectiveSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_BatchCalculateEffectiveSettings, null, options, request); + } + /// + /// Gets the Component Settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.ComponentSettings GetComponentSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetComponentSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetComponentSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the Component Settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.ComponentSettings GetComponentSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetComponentSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetComponentSettings, null, options, request); + } + /// + /// Gets the Component Settings. + /// + /// 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 GetComponentSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetComponentSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetComponentSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the Component Settings. + /// + /// 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 GetComponentSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.GetComponentSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetComponentSettings, null, options, request); + } + /// + /// Updates the Component Settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.ComponentSettings UpdateComponentSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateComponentSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateComponentSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates the Component Settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.ComponentSettings UpdateComponentSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateComponentSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateComponentSettings, null, options, request); + } + /// + /// Updates the Component Settings. + /// + /// 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 UpdateComponentSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateComponentSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateComponentSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates the Component Settings. + /// + /// 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 UpdateComponentSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.UpdateComponentSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateComponentSettings, null, options, request); + } + /// + /// Reset the organization, folder or project's component settings and return + /// the settings to the default. Settings are present at the + /// organization, folder and project levels. Using Reset for a folder or + /// project will remove the override that was set and result in the + /// organization-level settings being used. + /// + /// 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 ResetComponentSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetComponentSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ResetComponentSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Reset the organization, folder or project's component settings and return + /// the settings to the default. Settings are present at the + /// organization, folder and project levels. Using Reset for a folder or + /// project will remove the override that was set and result in the + /// organization-level settings being used. + /// + /// 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 ResetComponentSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetComponentSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ResetComponentSettings, null, options, request); + } + /// + /// Reset the organization, folder or project's component settings and return + /// the settings to the default. Settings are present at the + /// organization, folder and project levels. Using Reset for a folder or + /// project will remove the override that was set and result in the + /// organization-level settings being used. + /// + /// 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 ResetComponentSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetComponentSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ResetComponentSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Reset the organization, folder or project's component settings and return + /// the settings to the default. Settings are present at the + /// organization, folder and project levels. Using Reset for a folder or + /// project will remove the override that was set and result in the + /// organization-level settings being used. + /// + /// 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 ResetComponentSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ResetComponentSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ResetComponentSettings, null, options, request); + } + /// + /// Gets the Effective Component Settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.ComponentSettings CalculateEffectiveComponentSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveComponentSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CalculateEffectiveComponentSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the Effective Component Settings. + /// + /// 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.SecurityCenter.Settings.V1Beta1.ComponentSettings CalculateEffectiveComponentSettings(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveComponentSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CalculateEffectiveComponentSettings, null, options, request); + } + /// + /// Gets the Effective Component Settings. + /// + /// 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 CalculateEffectiveComponentSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveComponentSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CalculateEffectiveComponentSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the Effective Component Settings. + /// + /// 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 CalculateEffectiveComponentSettingsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.CalculateEffectiveComponentSettingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CalculateEffectiveComponentSettings, null, options, request); + } + /// + /// Retrieves an unordered list of available detectors. + /// + /// 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.SecurityCenter.Settings.V1Beta1.ListDetectorsResponse ListDetectors(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListDetectors(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Retrieves an unordered list of available detectors. + /// + /// 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.SecurityCenter.Settings.V1Beta1.ListDetectorsResponse ListDetectors(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListDetectors, null, options, request); + } + /// + /// Retrieves an unordered list of available detectors. + /// + /// 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 ListDetectorsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListDetectorsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Retrieves an unordered list of available detectors. + /// + /// 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 ListDetectorsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListDetectorsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListDetectors, null, options, request); + } + /// + /// Retrieves an unordered list of available SCC components. + /// + /// 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.SecurityCenter.Settings.V1Beta1.ListComponentsResponse ListComponents(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListComponents(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Retrieves an unordered list of available SCC components. + /// + /// 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.SecurityCenter.Settings.V1Beta1.ListComponentsResponse ListComponents(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListComponents, null, options, request); + } + /// + /// Retrieves an unordered list of available SCC components. + /// + /// 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 ListComponentsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListComponentsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Retrieves an unordered list of available SCC components. + /// + /// 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 ListComponentsAsync(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ListComponentsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListComponents, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override SecurityCenterSettingsServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new SecurityCenterSettingsServiceClient(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(SecurityCenterSettingsServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_GetServiceAccount, serviceImpl.GetServiceAccount) + .AddMethod(__Method_GetSettings, serviceImpl.GetSettings) + .AddMethod(__Method_UpdateSettings, serviceImpl.UpdateSettings) + .AddMethod(__Method_ResetSettings, serviceImpl.ResetSettings) + .AddMethod(__Method_BatchGetSettings, serviceImpl.BatchGetSettings) + .AddMethod(__Method_CalculateEffectiveSettings, serviceImpl.CalculateEffectiveSettings) + .AddMethod(__Method_BatchCalculateEffectiveSettings, serviceImpl.BatchCalculateEffectiveSettings) + .AddMethod(__Method_GetComponentSettings, serviceImpl.GetComponentSettings) + .AddMethod(__Method_UpdateComponentSettings, serviceImpl.UpdateComponentSettings) + .AddMethod(__Method_ResetComponentSettings, serviceImpl.ResetComponentSettings) + .AddMethod(__Method_CalculateEffectiveComponentSettings, serviceImpl.CalculateEffectiveComponentSettings) + .AddMethod(__Method_ListDetectors, serviceImpl.ListDetectors) + .AddMethod(__Method_ListComponents, serviceImpl.ListComponents).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, SecurityCenterSettingsServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_GetServiceAccount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetServiceAccount)); + serviceBinder.AddMethod(__Method_GetSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetSettings)); + serviceBinder.AddMethod(__Method_UpdateSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateSettings)); + serviceBinder.AddMethod(__Method_ResetSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ResetSettings)); + serviceBinder.AddMethod(__Method_BatchGetSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.BatchGetSettings)); + serviceBinder.AddMethod(__Method_CalculateEffectiveSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CalculateEffectiveSettings)); + serviceBinder.AddMethod(__Method_BatchCalculateEffectiveSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.BatchCalculateEffectiveSettings)); + serviceBinder.AddMethod(__Method_GetComponentSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetComponentSettings)); + serviceBinder.AddMethod(__Method_UpdateComponentSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateComponentSettings)); + serviceBinder.AddMethod(__Method_ResetComponentSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ResetComponentSettings)); + serviceBinder.AddMethod(__Method_CalculateEffectiveComponentSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CalculateEffectiveComponentSettings)); + serviceBinder.AddMethod(__Method_ListDetectors, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListDetectors)); + serviceBinder.AddMethod(__Method_ListComponents, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListComponents)); + } + + } +} +#endregion diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecuritycenterSettingsServiceResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecuritycenterSettingsServiceResourceNames.g.cs new file mode 100755 index 000000000000..0c596d8a8f39 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SecuritycenterSettingsServiceResourceNames.g.cs @@ -0,0 +1,391 @@ +// 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 gcssv = Google.Cloud.SecurityCenter.Settings.V1Beta1; +using sys = System; + +namespace Google.Cloud.SecurityCenter.Settings.V1Beta1 +{ + /// Resource name for the ServiceAccount resource. + public sealed partial class ServiceAccountName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern organizations/{organization}/serviceAccount. + Organization = 1, + } + + private static gax::PathTemplate s_organization = new gax::PathTemplate("organizations/{organization}/serviceAccount"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static ServiceAccountName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new ServiceAccountName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern organizations/{organization}/serviceAccount + /// . + /// + /// The Organization ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ServiceAccountName FromOrganization(string organizationId) => + new ServiceAccountName(ResourceNameType.Organization, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/serviceAccount. + /// + /// The Organization ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/serviceAccount. + /// + public static string Format(string organizationId) => FormatOrganization(organizationId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/serviceAccount. + /// + /// The Organization ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/serviceAccount. + /// + public static string FormatOrganization(string organizationId) => + s_organization.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId))); + + /// + /// Parses the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// organizations/{organization}/serviceAccount + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static ServiceAccountName Parse(string serviceAccountName) => Parse(serviceAccountName, 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: + /// + /// organizations/{organization}/serviceAccount + /// + /// 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 ServiceAccountName Parse(string serviceAccountName, bool allowUnparsed) => + TryParse(serviceAccountName, allowUnparsed, out ServiceAccountName 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: + /// + /// organizations/{organization}/serviceAccount + /// + /// + /// 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 serviceAccountName, out ServiceAccountName result) => + TryParse(serviceAccountName, 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: + /// + /// organizations/{organization}/serviceAccount + /// + /// 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 serviceAccountName, bool allowUnparsed, out ServiceAccountName result) + { + gax::GaxPreconditions.CheckNotNull(serviceAccountName, nameof(serviceAccountName)); + gax::TemplatedResourceName resourceName; + if (s_organization.TryParseName(serviceAccountName, out resourceName)) + { + result = FromOrganization(resourceName[0]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(serviceAccountName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private ServiceAccountName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string organizationId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + OrganizationId = organizationId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// organizations/{organization}/serviceAccount + /// + /// The Organization ID. Must not be null or empty. + public ServiceAccountName(string organizationId) : this(ResourceNameType.Organization, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId))) + { + } + + /// 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 Organization ID. Will not be null, unless this instance contains an unparsed resource + /// name. + /// + public string OrganizationId { 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.Organization: return s_organization.Expand(OrganizationId); + 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 ServiceAccountName); + + /// + public bool Equals(ServiceAccountName 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 ==(ServiceAccountName a, ServiceAccountName 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 !=(ServiceAccountName a, ServiceAccountName b) => !(a == b); + } + + public partial class GetServiceAccountRequest + { + /// + /// -typed view over the resource name property. + /// + public gcssv::ServiceAccountName ServiceAccountName + { + get => string.IsNullOrEmpty(Name) ? null : gcssv::ServiceAccountName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ServiceAccount + { + /// + /// -typed view over the resource name property. + /// + public gcssv::ServiceAccountName ServiceAccountName + { + get => string.IsNullOrEmpty(Name) ? null : gcssv::ServiceAccountName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class GetSettingsRequest + { + /// + /// -typed view over the resource name property. + /// + public gcssv::SettingsName SettingsName + { + get => string.IsNullOrEmpty(Name) ? null : gcssv::SettingsName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ResetSettingsRequest + { + /// + /// -typed view over the resource name property. + /// + public gcssv::SettingsName SettingsName + { + get => string.IsNullOrEmpty(Name) ? null : gcssv::SettingsName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class BatchGetSettingsRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::OrganizationName ParentAsOrganizationName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::OrganizationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class CalculateEffectiveSettingsRequest + { + /// + /// -typed view over the resource name property. + /// + public gcssv::SettingsName SettingsName + { + get => string.IsNullOrEmpty(Name) ? null : gcssv::SettingsName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class BatchCalculateEffectiveSettingsRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::OrganizationName ParentAsOrganizationName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::OrganizationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetComponentSettingsRequest + { + /// + /// -typed view over the resource name property. + /// + public gcssv::ComponentSettingsName ComponentSettingsName + { + get => string.IsNullOrEmpty(Name) ? null : gcssv::ComponentSettingsName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ResetComponentSettingsRequest + { + /// + /// -typed view over the resource name property. + /// + public gcssv::ComponentSettingsName ComponentSettingsName + { + get => string.IsNullOrEmpty(Name) ? null : gcssv::ComponentSettingsName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CalculateEffectiveComponentSettingsRequest + { + /// + /// -typed view over the resource name property. + /// + public gcssv::ComponentSettingsName ComponentSettingsName + { + get => string.IsNullOrEmpty(Name) ? null : gcssv::ComponentSettingsName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListDetectorsRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::OrganizationName ParentAsOrganizationName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::OrganizationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class ListComponentsRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::OrganizationName ParentAsOrganizationName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::OrganizationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/ServiceCollectionExtensions.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/ServiceCollectionExtensions.g.cs new file mode 100755 index 000000000000..26888832b33c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/ServiceCollectionExtensions.g.cs @@ -0,0 +1,65 @@ +// 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 gcssv = Google.Cloud.SecurityCenter.Settings.V1Beta1; +using gpr = Google.Protobuf.Reflection; +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 AddSecurityCenterSettingsServiceClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gcssv::SecurityCenterSettingsServiceClientBuilder builder = new gcssv::SecurityCenterSettingsServiceClientBuilder(); + 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 AddSecurityCenterSettingsServiceClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gcssv::SecurityCenterSettingsServiceClientBuilder builder = new gcssv::SecurityCenterSettingsServiceClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/Settings.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/Settings.g.cs new file mode 100755 index 000000000000..a7462c18fb59 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/Settings.g.cs @@ -0,0 +1,868 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/settings/v1beta1/settings.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.SecurityCenter.Settings.V1Beta1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/settings/v1beta1/settings.proto + public static partial class SettingsReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/settings/v1beta1/settings.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SettingsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cjtnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvc2V0dGluZ3MvdjFiZXRh", + "MS9zZXR0aW5ncy5wcm90bxIsZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVy", + "LnNldHRpbmdzLnYxYmV0YTEaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", + "cHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aQ2dvb2dsZS9jbG91", + "ZC9zZWN1cml0eWNlbnRlci9zZXR0aW5ncy92MWJldGExL2JpbGxpbmdfc2V0", + "dGluZ3MucHJvdG8aRWdvb2dsZS9jbG91ZC9zZWN1cml0eWNlbnRlci9zZXR0", + "aW5ncy92MWJldGExL2NvbXBvbmVudF9zZXR0aW5ncy5wcm90bxpAZ29vZ2xl", + "L2Nsb3VkL3NlY3VyaXR5Y2VudGVyL3NldHRpbmdzL3YxYmV0YTEvc2lua19z", + "ZXR0aW5ncy5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90", + "byLhCwoIU2V0dGluZ3MSDAoEbmFtZRgBIAEoCRJXChBiaWxsaW5nX3NldHRp", + "bmdzGAIgASgLMj0uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRp", + "bmdzLnYxYmV0YTEuQmlsbGluZ1NldHRpbmdzElUKBXN0YXRlGAMgASgOMkYu", + "Z29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEu", + "U2V0dGluZ3MuT25ib2FyZGluZ1N0YXRlEiAKE29yZ19zZXJ2aWNlX2FjY291", + "bnQYBSABKAlCA+BBAxJRCg1zaW5rX3NldHRpbmdzGAYgASgLMjouZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTEuU2lua1Nl", + "dHRpbmdzEmkKEmNvbXBvbmVudF9zZXR0aW5ncxgHIAMoCzJNLmdvb2dsZS5j", + "bG91ZC5zZWN1cml0eWNlbnRlci5zZXR0aW5ncy52MWJldGExLlNldHRpbmdz", + "LkNvbXBvbmVudFNldHRpbmdzRW50cnkScgoXZGV0ZWN0b3JfZ3JvdXBfc2V0", + "dGluZ3MYCCADKAsyUS5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIuc2V0", + "dGluZ3MudjFiZXRhMS5TZXR0aW5ncy5EZXRlY3Rvckdyb3VwU2V0dGluZ3NF", + "bnRyeRIMCgRldGFnGAkgASgJEjQKC3VwZGF0ZV90aW1lGAogASgLMhouZ29v", + "Z2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDGm4KFURldGVjdG9yR3JvdXBT", + "ZXR0aW5ncxJVCgVzdGF0ZRgBIAEoDjJGLmdvb2dsZS5jbG91ZC5zZWN1cml0", + "eWNlbnRlci5zZXR0aW5ncy52MWJldGExLkNvbXBvbmVudEVuYWJsZW1lbnRT", + "dGF0ZRp5ChZDb21wb25lbnRTZXR0aW5nc0VudHJ5EgsKA2tleRgBIAEoCRJO", + "CgV2YWx1ZRgCIAEoCzI/Lmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci5z", + "ZXR0aW5ncy52MWJldGExLkNvbXBvbmVudFNldHRpbmdzOgI4ARqKAQoaRGV0", + "ZWN0b3JHcm91cFNldHRpbmdzRW50cnkSCwoDa2V5GAEgASgJElsKBXZhbHVl", + "GAIgASgLMkwuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnNldHRpbmdz", + "LnYxYmV0YTEuU2V0dGluZ3MuRGV0ZWN0b3JHcm91cFNldHRpbmdzOgI4ASK1", + "AQoPT25ib2FyZGluZ1N0YXRlEiAKHE9OQk9BUkRJTkdfU1RBVEVfVU5TUEVD", + "SUZJRUQQABILCgdFTkFCTEVEEAESDAoIRElTQUJMRUQQAhIUChBCSUxMSU5H", + "X1NFTEVDVEVEEAMSFgoSUFJPVklERVJTX1NFTEVDVEVEEAQSFgoSUkVTT1VS", + "Q0VTX1NFTEVDVEVEEAUSHwobT1JHX1NFUlZJQ0VfQUNDT1VOVF9DUkVBVEVE", + "EAY6zgLqQcoCCiZzZWN1cml0eWNlbnRlci5nb29nbGVhcGlzLmNvbS9TZXR0", + "aW5ncxIlb3JnYW5pemF0aW9ucy97b3JnYW5pemF0aW9ufS9zZXR0aW5ncxIZ", + "Zm9sZGVycy97Zm9sZGVyfS9zZXR0aW5ncxIbcHJvamVjdHMve3Byb2plY3R9", + "L3NldHRpbmdzEkNwcm9qZWN0cy97cHJvamVjdH0vbG9jYXRpb25zL3tsb2Nh", + "dGlvbn0vY2x1c3RlcnMve2NsdXN0ZXJ9L3NldHRpbmdzEj9wcm9qZWN0cy97", + "cHJvamVjdH0vcmVnaW9ucy97cmVnaW9ufS9jbHVzdGVycy97Y2x1c3Rlcn0v", + "c2V0dGluZ3MSO3Byb2plY3RzL3twcm9qZWN0fS96b25lcy97em9uZX0vY2x1", + "c3RlcnMve2NsdXN0ZXJ9L3NldHRpbmdzQqUCCjBjb20uZ29vZ2xlLmNsb3Vk", + "LnNlY3VyaXR5Y2VudGVyLnNldHRpbmdzLnYxYmV0YTFCDVNldHRpbmdzUHJv", + "dG9QAVpMY2xvdWQuZ29vZ2xlLmNvbS9nby9zZWN1cml0eWNlbnRlci9zZXR0", + "aW5ncy9hcGl2MWJldGExL3NldHRpbmdzcGI7c2V0dGluZ3NwYvgBAaoCLEdv", + "b2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5TZXR0aW5ncy5WMUJldGExygIs", + "R29vZ2xlXENsb3VkXFNlY3VyaXR5Q2VudGVyXFNldHRpbmdzXFYxYmV0YTHq", + "AjBHb29nbGU6OkNsb3VkOjpTZWN1cml0eUNlbnRlcjo6U2V0dGluZ3M6OlYx", + "YmV0YTFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingSettingsReflection.Descriptor, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettingsReflection.Descriptor, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SinkSettingsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Parser, new[]{ "Name", "BillingSettings", "State", "OrgServiceAccount", "SinkSettings", "ComponentSettings", "DetectorGroupSettings", "Etag", "UpdateTime" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.OnboardingState) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.DetectorGroupSettings), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.DetectorGroupSettings.Parser, new[]{ "State" }, null, null, null, null), + null, null, }) + })); + } + #endregion + + } + #region Messages + /// + /// Common configuration settings for all of Security Center. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Settings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Settings()); + 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.SecurityCenter.Settings.V1Beta1.SettingsReflection.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 Settings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Settings(Settings other) : this() { + name_ = other.name_; + billingSettings_ = other.billingSettings_ != null ? other.billingSettings_.Clone() : null; + state_ = other.state_; + orgServiceAccount_ = other.orgServiceAccount_; + sinkSettings_ = other.sinkSettings_ != null ? other.sinkSettings_.Clone() : null; + componentSettings_ = other.componentSettings_.Clone(); + detectorGroupSettings_ = other.detectorGroupSettings_.Clone(); + etag_ = other.etag_; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Settings Clone() { + return new Settings(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The relative resource name of the settings resource. + /// Formats: + /// * `organizations/{organization}/settings` + /// * `folders/{folder}/settings` + /// * `projects/{project}/settings` + /// * `projects/{project}/locations/{location}/clusters/{cluster}/settings` + /// * `projects/{project}/regions/{region}/clusters/{cluster}/settings` + /// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` + /// + [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 "billing_settings" field. + public const int BillingSettingsFieldNumber = 2; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingSettings billingSettings_; + /// + /// Billing settings + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingSettings BillingSettings { + get { return billingSettings_; } + set { + billingSettings_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 3; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.OnboardingState state_ = global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.OnboardingState.Unspecified; + /// + /// An enum representing the current on boarding state of SCC. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.OnboardingState State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "org_service_account" field. + public const int OrgServiceAccountFieldNumber = 5; + private string orgServiceAccount_ = ""; + /// + /// Output only. The organization-level service account to be used for security center + /// components. The component must have permission to "act as" the service + /// account. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrgServiceAccount { + get { return orgServiceAccount_; } + set { + orgServiceAccount_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sink_settings" field. + public const int SinkSettingsFieldNumber = 6; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SinkSettings sinkSettings_; + /// + /// Sink settings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SinkSettings SinkSettings { + get { return sinkSettings_; } + set { + sinkSettings_ = value; + } + } + + /// Field number for the "component_settings" field. + public const int ComponentSettingsFieldNumber = 7; + private static readonly pbc::MapField.Codec _map_componentSettings_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentSettings.Parser), 58); + private readonly pbc::MapField componentSettings_ = new pbc::MapField(); + /// + /// The settings for detectors and/or scanners. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ComponentSettings { + get { return componentSettings_; } + } + + /// Field number for the "detector_group_settings" field. + public const int DetectorGroupSettingsFieldNumber = 8; + private static readonly pbc::MapField.Codec _map_detectorGroupSettings_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.DetectorGroupSettings.Parser), 66); + private readonly pbc::MapField detectorGroupSettings_ = new pbc::MapField(); + /// + /// Detector group settings for all Security Center components. + /// The key is the name of the detector group and the value is the settings for + /// that group. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField DetectorGroupSettings { + get { return detectorGroupSettings_; } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 9; + private string etag_ = ""; + /// + /// A fingerprint used for optimistic concurrency. If none is provided + /// on updates then the existing metadata will be blindly overwritten. + /// + [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 "update_time" field. + public const int UpdateTimeFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time these settings were last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Settings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Settings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(BillingSettings, other.BillingSettings)) return false; + if (State != other.State) return false; + if (OrgServiceAccount != other.OrgServiceAccount) return false; + if (!object.Equals(SinkSettings, other.SinkSettings)) return false; + if (!ComponentSettings.Equals(other.ComponentSettings)) return false; + if (!DetectorGroupSettings.Equals(other.DetectorGroupSettings)) return false; + if (Etag != other.Etag) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) 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 (billingSettings_ != null) hash ^= BillingSettings.GetHashCode(); + if (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.OnboardingState.Unspecified) hash ^= State.GetHashCode(); + if (OrgServiceAccount.Length != 0) hash ^= OrgServiceAccount.GetHashCode(); + if (sinkSettings_ != null) hash ^= SinkSettings.GetHashCode(); + hash ^= ComponentSettings.GetHashCode(); + hash ^= DetectorGroupSettings.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.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 (billingSettings_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BillingSettings); + } + if (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.OnboardingState.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (OrgServiceAccount.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrgServiceAccount); + } + if (sinkSettings_ != null) { + output.WriteRawTag(50); + output.WriteMessage(SinkSettings); + } + componentSettings_.WriteTo(output, _map_componentSettings_codec); + detectorGroupSettings_.WriteTo(output, _map_detectorGroupSettings_codec); + if (Etag.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Etag); + } + if (updateTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(UpdateTime); + } + 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 (billingSettings_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BillingSettings); + } + if (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.OnboardingState.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (OrgServiceAccount.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrgServiceAccount); + } + if (sinkSettings_ != null) { + output.WriteRawTag(50); + output.WriteMessage(SinkSettings); + } + componentSettings_.WriteTo(ref output, _map_componentSettings_codec); + detectorGroupSettings_.WriteTo(ref output, _map_detectorGroupSettings_codec); + if (Etag.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Etag); + } + if (updateTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(UpdateTime); + } + 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 (billingSettings_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BillingSettings); + } + if (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.OnboardingState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (OrgServiceAccount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrgServiceAccount); + } + if (sinkSettings_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SinkSettings); + } + size += componentSettings_.CalculateSize(_map_componentSettings_codec); + size += detectorGroupSettings_.CalculateSize(_map_detectorGroupSettings_codec); + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Settings other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.billingSettings_ != null) { + if (billingSettings_ == null) { + BillingSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingSettings(); + } + BillingSettings.MergeFrom(other.BillingSettings); + } + if (other.State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.OnboardingState.Unspecified) { + State = other.State; + } + if (other.OrgServiceAccount.Length != 0) { + OrgServiceAccount = other.OrgServiceAccount; + } + if (other.sinkSettings_ != null) { + if (sinkSettings_ == null) { + SinkSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SinkSettings(); + } + SinkSettings.MergeFrom(other.SinkSettings); + } + componentSettings_.MergeFrom(other.componentSettings_); + detectorGroupSettings_.MergeFrom(other.detectorGroupSettings_); + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + _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 (billingSettings_ == null) { + BillingSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingSettings(); + } + input.ReadMessage(BillingSettings); + break; + } + case 24: { + State = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.OnboardingState) input.ReadEnum(); + break; + } + case 42: { + OrgServiceAccount = input.ReadString(); + break; + } + case 50: { + if (sinkSettings_ == null) { + SinkSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SinkSettings(); + } + input.ReadMessage(SinkSettings); + break; + } + case 58: { + componentSettings_.AddEntriesFrom(input, _map_componentSettings_codec); + break; + } + case 66: { + detectorGroupSettings_.AddEntriesFrom(input, _map_detectorGroupSettings_codec); + break; + } + case 74: { + Etag = input.ReadString(); + break; + } + case 82: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + 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 (billingSettings_ == null) { + BillingSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingSettings(); + } + input.ReadMessage(BillingSettings); + break; + } + case 24: { + State = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.OnboardingState) input.ReadEnum(); + break; + } + case 42: { + OrgServiceAccount = input.ReadString(); + break; + } + case 50: { + if (sinkSettings_ == null) { + SinkSettings = new global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SinkSettings(); + } + input.ReadMessage(SinkSettings); + break; + } + case 58: { + componentSettings_.AddEntriesFrom(ref input, _map_componentSettings_codec); + break; + } + case 66: { + detectorGroupSettings_.AddEntriesFrom(ref input, _map_detectorGroupSettings_codec); + break; + } + case 74: { + Etag = input.ReadString(); + break; + } + case 82: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Settings message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Defines the onboarding states for SCC + /// + /// Potentially is just an indicator that a user has reviewed some subset of + /// our configuration surface, even if it's still currently set to its + /// API-default state. + /// + public enum OnboardingState { + /// + /// No onboarding state has been set. Should not be seen in practice, but + /// should be functionally equivalent to DISABLED. + /// + [pbr::OriginalName("ONBOARDING_STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// SCC is fully on boarded + /// + [pbr::OriginalName("ENABLED")] Enabled = 1, + /// + /// SCC has been disabled after being on boarded + /// + [pbr::OriginalName("DISABLED")] Disabled = 2, + /// + /// SCC's onboarding tier has been explicitly set + /// + [pbr::OriginalName("BILLING_SELECTED")] BillingSelected = 3, + /// + /// SCC's CTD FindingsProviders have been chosen + /// + [pbr::OriginalName("PROVIDERS_SELECTED")] ProvidersSelected = 4, + /// + /// SCC's Service-Resource mappings have been set + /// + [pbr::OriginalName("RESOURCES_SELECTED")] ResourcesSelected = 5, + /// + /// SCC's core Service Account was created + /// + [pbr::OriginalName("ORG_SERVICE_ACCOUNT_CREATED")] OrgServiceAccountCreated = 6, + } + + /// + /// The DetectorGroupSettings define the configuration for a detector group. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DetectorGroupSettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DetectorGroupSettings()); + 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.SecurityCenter.Settings.V1Beta1.Settings.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 DetectorGroupSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DetectorGroupSettings(DetectorGroupSettings other) : this() { + state_ = other.state_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DetectorGroupSettings Clone() { + return new DetectorGroupSettings(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState state_ = global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified; + /// + /// The state determines if the group is enabled or not. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DetectorGroupSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DetectorGroupSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (State != other.State) 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 (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) hash ^= State.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 (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + 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 (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + 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 (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DetectorGroupSettings other) { + if (other == null) { + return; + } + if (other.State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState.Unspecified) { + State = other.State; + } + _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 8: { + State = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState) input.ReadEnum(); + 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 8: { + State = (global::Google.Cloud.SecurityCenter.Settings.V1Beta1.ComponentEnablementState) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SettingsResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SettingsResourceNames.g.cs new file mode 100755 index 000000000000..ad98a0896382 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SettingsResourceNames.g.cs @@ -0,0 +1,497 @@ +// 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 gcssv = Google.Cloud.SecurityCenter.Settings.V1Beta1; +using sys = System; + +namespace Google.Cloud.SecurityCenter.Settings.V1Beta1 +{ + /// Resource name for the Settings resource. + public sealed partial class SettingsName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern organizations/{organization}/settings. + Organization = 1, + + /// A resource name with pattern folders/{folder}/settings. + Folder = 2, + + /// A resource name with pattern projects/{project}/settings. + Project = 3, + + /// + /// A resource name with pattern projects/{project}/locations/{location}/clusters/{cluster}/settings. + /// + ProjectLocationCluster = 4, + + /// + /// A resource name with pattern projects/{project}/regions/{region}/clusters/{cluster}/settings. + /// + ProjectRegionCluster = 5, + + /// + /// A resource name with pattern projects/{project}/zones/{zone}/clusters/{cluster}/settings. + /// + ProjectZoneCluster = 6, + } + + private static gax::PathTemplate s_organization = new gax::PathTemplate("organizations/{organization}/settings"); + + private static gax::PathTemplate s_folder = new gax::PathTemplate("folders/{folder}/settings"); + + private static gax::PathTemplate s_project = new gax::PathTemplate("projects/{project}/settings"); + + private static gax::PathTemplate s_projectLocationCluster = new gax::PathTemplate("projects/{project}/locations/{location}/clusters/{cluster}/settings"); + + private static gax::PathTemplate s_projectRegionCluster = new gax::PathTemplate("projects/{project}/regions/{region}/clusters/{cluster}/settings"); + + private static gax::PathTemplate s_projectZoneCluster = new gax::PathTemplate("projects/{project}/zones/{zone}/clusters/{cluster}/settings"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static SettingsName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new SettingsName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern organizations/{organization}/settings. + /// + /// The Organization ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static SettingsName FromOrganization(string organizationId) => + new SettingsName(ResourceNameType.Organization, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId))); + + /// Creates a with the pattern folders/{folder}/settings. + /// The Folder ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static SettingsName FromFolder(string folderId) => + new SettingsName(ResourceNameType.Folder, folderId: gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId))); + + /// Creates a with the pattern projects/{project}/settings. + /// The Project ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static SettingsName FromProject(string projectId) => + new SettingsName(ResourceNameType.Project, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/clusters/{cluster}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static SettingsName FromProjectLocationCluster(string projectId, string locationId, string clusterId) => + new SettingsName(ResourceNameType.ProjectLocationCluster, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))); + + /// + /// Creates a with the pattern + /// projects/{project}/regions/{region}/clusters/{cluster}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Region ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static SettingsName FromProjectRegionCluster(string projectId, string regionId, string clusterId) => + new SettingsName(ResourceNameType.ProjectRegionCluster, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), regionId: gax::GaxPreconditions.CheckNotNullOrEmpty(regionId, nameof(regionId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))); + + /// + /// Creates a with the pattern + /// projects/{project}/zones/{zone}/clusters/{cluster}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Zone ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static SettingsName FromProjectZoneCluster(string projectId, string zoneId, string clusterId) => + new SettingsName(ResourceNameType.ProjectZoneCluster, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), zoneId: gax::GaxPreconditions.CheckNotNullOrEmpty(zoneId, nameof(zoneId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/settings. + /// + /// The Organization ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/settings. + /// + public static string Format(string organizationId) => FormatOrganization(organizationId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/settings. + /// + /// The Organization ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/settings. + /// + public static string FormatOrganization(string organizationId) => + s_organization.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// folders/{folder}/settings. + /// + /// The Folder ID. Must not be null or empty. + /// + /// The string representation of this with pattern folders/{folder}/settings. + /// + public static string FormatFolder(string folderId) => + s_folder.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/settings. + /// + /// The Project ID. Must not be null or empty. + /// + /// The string representation of this with pattern projects/{project}/settings + /// . + /// + public static string FormatProject(string projectId) => + s_project.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/clusters/{cluster}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/clusters/{cluster}/settings. + /// + public static string FormatProjectLocationCluster(string projectId, string locationId, string clusterId) => + s_projectLocationCluster.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/regions/{region}/clusters/{cluster}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Region ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/regions/{region}/clusters/{cluster}/settings. + /// + public static string FormatProjectRegionCluster(string projectId, string regionId, string clusterId) => + s_projectRegionCluster.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(regionId, nameof(regionId)), gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/zones/{zone}/clusters/{cluster}/settings. + /// + /// The Project ID. Must not be null or empty. + /// The Zone ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/zones/{zone}/clusters/{cluster}/settings. + /// + public static string FormatProjectZoneCluster(string projectId, string zoneId, string clusterId) => + s_projectZoneCluster.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(zoneId, nameof(zoneId)), gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// organizations/{organization}/settings + /// folders/{folder}/settings + /// projects/{project}/settings + /// + /// projects/{project}/locations/{location}/clusters/{cluster}/settings + /// + /// + /// projects/{project}/regions/{region}/clusters/{cluster}/settings + /// + /// projects/{project}/zones/{zone}/clusters/{cluster}/settings + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static SettingsName Parse(string settingsName) => Parse(settingsName, 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: + /// + /// organizations/{organization}/settings + /// folders/{folder}/settings + /// projects/{project}/settings + /// + /// projects/{project}/locations/{location}/clusters/{cluster}/settings + /// + /// + /// projects/{project}/regions/{region}/clusters/{cluster}/settings + /// + /// projects/{project}/zones/{zone}/clusters/{cluster}/settings + /// + /// 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 SettingsName Parse(string settingsName, bool allowUnparsed) => + TryParse(settingsName, allowUnparsed, out SettingsName 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: + /// + /// organizations/{organization}/settings + /// folders/{folder}/settings + /// projects/{project}/settings + /// + /// projects/{project}/locations/{location}/clusters/{cluster}/settings + /// + /// + /// projects/{project}/regions/{region}/clusters/{cluster}/settings + /// + /// projects/{project}/zones/{zone}/clusters/{cluster}/settings + /// + /// + /// 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 settingsName, out SettingsName result) => TryParse(settingsName, 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: + /// + /// organizations/{organization}/settings + /// folders/{folder}/settings + /// projects/{project}/settings + /// + /// projects/{project}/locations/{location}/clusters/{cluster}/settings + /// + /// + /// projects/{project}/regions/{region}/clusters/{cluster}/settings + /// + /// projects/{project}/zones/{zone}/clusters/{cluster}/settings + /// + /// 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 settingsName, bool allowUnparsed, out SettingsName result) + { + gax::GaxPreconditions.CheckNotNull(settingsName, nameof(settingsName)); + gax::TemplatedResourceName resourceName; + if (s_organization.TryParseName(settingsName, out resourceName)) + { + result = FromOrganization(resourceName[0]); + return true; + } + if (s_folder.TryParseName(settingsName, out resourceName)) + { + result = FromFolder(resourceName[0]); + return true; + } + if (s_project.TryParseName(settingsName, out resourceName)) + { + result = FromProject(resourceName[0]); + return true; + } + if (s_projectLocationCluster.TryParseName(settingsName, out resourceName)) + { + result = FromProjectLocationCluster(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (s_projectRegionCluster.TryParseName(settingsName, out resourceName)) + { + result = FromProjectRegionCluster(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (s_projectZoneCluster.TryParseName(settingsName, out resourceName)) + { + result = FromProjectZoneCluster(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(settingsName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private SettingsName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string clusterId = null, string folderId = null, string locationId = null, string organizationId = null, string projectId = null, string regionId = null, string zoneId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ClusterId = clusterId; + FolderId = folderId; + LocationId = locationId; + OrganizationId = organizationId; + ProjectId = projectId; + RegionId = regionId; + ZoneId = zoneId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// organizations/{organization}/settings + /// + /// The Organization ID. Must not be null or empty. + public SettingsName(string organizationId) : this(ResourceNameType.Organization, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId))) + { + } + + /// 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 Cluster ID. May be null, depending on which resource name is contained by this instance. + /// + public string ClusterId { get; } + + /// + /// The Folder ID. May be null, depending on which resource name is contained by this instance. + /// + public string FolderId { get; } + + /// + /// The Location ID. May be null, depending on which resource name is contained by this instance. + /// + public string LocationId { get; } + + /// + /// The Organization ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string OrganizationId { get; } + + /// + /// The Project ID. May be null, depending on which resource name is contained by this instance. + /// + public string ProjectId { get; } + + /// + /// The Region ID. May be null, depending on which resource name is contained by this instance. + /// + public string RegionId { get; } + + /// + /// The Zone ID. May be null, depending on which resource name is contained by this instance. + /// + public string ZoneId { 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.Organization: return s_organization.Expand(OrganizationId); + case ResourceNameType.Folder: return s_folder.Expand(FolderId); + case ResourceNameType.Project: return s_project.Expand(ProjectId); + case ResourceNameType.ProjectLocationCluster: return s_projectLocationCluster.Expand(ProjectId, LocationId, ClusterId); + case ResourceNameType.ProjectRegionCluster: return s_projectRegionCluster.Expand(ProjectId, RegionId, ClusterId); + case ResourceNameType.ProjectZoneCluster: return s_projectZoneCluster.Expand(ProjectId, ZoneId, ClusterId); + 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 SettingsName); + + /// + public bool Equals(SettingsName 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 ==(SettingsName a, SettingsName 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 !=(SettingsName a, SettingsName b) => !(a == b); + } + + public partial class Settings + { + /// + /// -typed view over the resource name property. + /// + public gcssv::SettingsName SettingsName + { + get => string.IsNullOrEmpty(Name) ? null : gcssv::SettingsName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SinkSettings.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SinkSettings.g.cs new file mode 100755 index 000000000000..d32f6bb894bc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1/SinkSettings.g.cs @@ -0,0 +1,252 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/settings/v1beta1/sink_settings.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.SecurityCenter.Settings.V1Beta1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/settings/v1beta1/sink_settings.proto + public static partial class SinkSettingsReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/settings/v1beta1/sink_settings.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SinkSettingsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CkBnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvc2V0dGluZ3MvdjFiZXRh", + "MS9zaW5rX3NldHRpbmdzLnByb3RvEixnb29nbGUuY2xvdWQuc2VjdXJpdHlj", + "ZW50ZXIuc2V0dGluZ3MudjFiZXRhMSIsCgxTaW5rU2V0dGluZ3MSHAoUbG9n", + "Z2luZ19zaW5rX3Byb2plY3QYASABKAlCoQIKMGNvbS5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHljZW50ZXIuc2V0dGluZ3MudjFiZXRhMUIJU2lua1Byb3RvUAFa", + "TGNsb3VkLmdvb2dsZS5jb20vZ28vc2VjdXJpdHljZW50ZXIvc2V0dGluZ3Mv", + "YXBpdjFiZXRhMS9zZXR0aW5nc3BiO3NldHRpbmdzcGL4AQGqAixHb29nbGUu", + "Q2xvdWQuU2VjdXJpdHlDZW50ZXIuU2V0dGluZ3MuVjFCZXRhMcoCLEdvb2ds", + "ZVxDbG91ZFxTZWN1cml0eUNlbnRlclxTZXR0aW5nc1xWMWJldGEx6gIwR29v", + "Z2xlOjpDbG91ZDo6U2VjdXJpdHlDZW50ZXI6OlNldHRpbmdzOjpWMWJldGEx", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SinkSettings), global::Google.Cloud.SecurityCenter.Settings.V1Beta1.SinkSettings.Parser, new[]{ "LoggingSinkProject" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Sink Settings for Security Command Center + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SinkSettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SinkSettings()); + 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.SecurityCenter.Settings.V1Beta1.SinkSettingsReflection.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 SinkSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SinkSettings(SinkSettings other) : this() { + loggingSinkProject_ = other.loggingSinkProject_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SinkSettings Clone() { + return new SinkSettings(this); + } + + /// Field number for the "logging_sink_project" field. + public const int LoggingSinkProjectFieldNumber = 1; + private string loggingSinkProject_ = ""; + /// + /// The resource name of the project to send logs to. This project must be + /// part of the same organization where the Security Center API is + /// enabled. The format is `projects/{project}`. If it is empty, we do + /// not output logs. If a project ID is provided it will be normalized to a + /// project number. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LoggingSinkProject { + get { return loggingSinkProject_; } + set { + loggingSinkProject_ = 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 SinkSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SinkSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LoggingSinkProject != other.LoggingSinkProject) 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 (LoggingSinkProject.Length != 0) hash ^= LoggingSinkProject.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 (LoggingSinkProject.Length != 0) { + output.WriteRawTag(10); + output.WriteString(LoggingSinkProject); + } + 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 (LoggingSinkProject.Length != 0) { + output.WriteRawTag(10); + output.WriteString(LoggingSinkProject); + } + 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 (LoggingSinkProject.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LoggingSinkProject); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SinkSettings other) { + if (other == null) { + return; + } + if (other.LoggingSinkProject.Length != 0) { + LoggingSinkProject = other.LoggingSinkProject; + } + _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: { + LoggingSinkProject = 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: { + LoggingSinkProject = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/gapic_metadata.json b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/gapic_metadata.json new file mode 100755 index 000000000000..0d491fc482d2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.Settings.V1Beta1/gapic_metadata.json @@ -0,0 +1,96 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "csharp", + "protoPackage": "google.cloud.securitycenter.settings.v1beta1", + "libraryPackage": "Google.Cloud.SecurityCenter.Settings.V1Beta1", + "services": { + "SecurityCenterSettingsService": { + "clients": { + "grpc": { + "libraryClient": "SecurityCenterSettingsServiceClient", + "rpcs": { + "BatchCalculateEffectiveSettings": { + "methods": [ + "BatchCalculateEffectiveSettings", + "BatchCalculateEffectiveSettingsAsync" + ] + }, + "BatchGetSettings": { + "methods": [ + "BatchGetSettings", + "BatchGetSettingsAsync" + ] + }, + "CalculateEffectiveComponentSettings": { + "methods": [ + "CalculateEffectiveComponentSettings", + "CalculateEffectiveComponentSettingsAsync" + ] + }, + "CalculateEffectiveSettings": { + "methods": [ + "CalculateEffectiveSettings", + "CalculateEffectiveSettingsAsync" + ] + }, + "GetComponentSettings": { + "methods": [ + "GetComponentSettings", + "GetComponentSettingsAsync" + ] + }, + "GetServiceAccount": { + "methods": [ + "GetServiceAccount", + "GetServiceAccountAsync" + ] + }, + "GetSettings": { + "methods": [ + "GetSettings", + "GetSettingsAsync" + ] + }, + "ListComponents": { + "methods": [ + "ListComponents", + "ListComponentsAsync" + ] + }, + "ListDetectors": { + "methods": [ + "ListDetectors", + "ListDetectorsAsync" + ] + }, + "ResetComponentSettings": { + "methods": [ + "ResetComponentSettings", + "ResetComponentSettingsAsync" + ] + }, + "ResetSettings": { + "methods": [ + "ResetSettings", + "ResetSettingsAsync" + ] + }, + "UpdateComponentSettings": { + "methods": [ + "UpdateComponentSettings", + "UpdateComponentSettingsAsync" + ] + }, + "UpdateSettings": { + "methods": [ + "UpdateSettings", + "UpdateSettingsAsync" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/Google.Cloud.SecurityCenter.V1.GeneratedSnippets.csproj b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/Google.Cloud.SecurityCenter.V1.GeneratedSnippets.csproj new file mode 100755 index 000000000000..4573aa68e212 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/Google.Cloud.SecurityCenter.V1.GeneratedSnippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsAsyncSnippet.g.cs new file mode 100755 index 000000000000..9817d12de587 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Collections.Generic; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for BatchCreateResourceValueConfigsAsync + /// + /// 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 BatchCreateResourceValueConfigsAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + IEnumerable requests = new CreateResourceValueConfigRequest[] + { + new CreateResourceValueConfigRequest(), + }; + // Make the request + BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(parent, requests); + } + } + // [END securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..92e1e21270e3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for BatchCreateResourceValueConfigsAsync + /// + /// 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 BatchCreateResourceValueConfigsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + BatchCreateResourceValueConfigsRequest request = new BatchCreateResourceValueConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Requests = + { + new CreateResourceValueConfigRequest(), + }, + }; + // Make the request + BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..feb68c26472e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for BatchCreateResourceValueConfigs + /// + /// 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 BatchCreateResourceValueConfigsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + BatchCreateResourceValueConfigsRequest request = new BatchCreateResourceValueConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Requests = + { + new CreateResourceValueConfigRequest(), + }, + }; + // Make the request + BatchCreateResourceValueConfigsResponse response = securityCenterClient.BatchCreateResourceValueConfigs(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..4acf3275151f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Collections.Generic; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for BatchCreateResourceValueConfigsAsync + /// + /// 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 BatchCreateResourceValueConfigsResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + IEnumerable requests = new CreateResourceValueConfigRequest[] + { + new CreateResourceValueConfigRequest(), + }; + // Make the request + BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(parent, requests); + } + } + // [END securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..eff781ae8024 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Collections.Generic; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for BatchCreateResourceValueConfigs + /// + /// 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 BatchCreateResourceValueConfigsResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + IEnumerable requests = new CreateResourceValueConfigRequest[] + { + new CreateResourceValueConfigRequest(), + }; + // Make the request + BatchCreateResourceValueConfigsResponse response = securityCenterClient.BatchCreateResourceValueConfigs(parent, requests); + } + } + // [END securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsSnippet.g.cs new file mode 100755 index 000000000000..fea419d433bd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BatchCreateResourceValueConfigsSnippet.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 securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Collections.Generic; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for BatchCreateResourceValueConfigs + /// + /// 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 BatchCreateResourceValueConfigs() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + IEnumerable requests = new CreateResourceValueConfigRequest[] + { + new CreateResourceValueConfigRequest(), + }; + // Make the request + BatchCreateResourceValueConfigsResponse response = securityCenterClient.BatchCreateResourceValueConfigs(parent, requests); + } + } + // [END securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsAsyncSnippet.g.cs new file mode 100755 index 000000000000..a8d9a8991aaa --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for BulkMuteFindingsAsync + /// + /// 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 BulkMuteFindingsAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "a/wildcard/resource"; + // Make the request + Operation response = await securityCenterClient.BulkMuteFindingsAsync(parent); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BulkMuteFindingsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..284d91b084f5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,68 @@ +// 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 securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_async] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for BulkMuteFindingsAsync + /// + /// 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 BulkMuteFindingsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + BulkMuteFindingsRequest request = new BulkMuteFindingsRequest + { + ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Filter = "", + MuteState = BulkMuteFindingsRequest.Types.MuteState.Unspecified, + }; + // Make the request + Operation response = await securityCenterClient.BulkMuteFindingsAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BulkMuteFindingsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..e94029d878ac --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsRequestObjectSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_sync] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for BulkMuteFindings + /// + /// 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 BulkMuteFindingsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + BulkMuteFindingsRequest request = new BulkMuteFindingsRequest + { + ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Filter = "", + MuteState = BulkMuteFindingsRequest.Types.MuteState.Unspecified, + }; + // Make the request + Operation response = securityCenterClient.BulkMuteFindings(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BulkMuteFindingsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..8951ffa0cc60 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// 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 securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for BulkMuteFindingsAsync + /// + /// 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 BulkMuteFindingsResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + IResourceName parent = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Operation response = await securityCenterClient.BulkMuteFindingsAsync(parent); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BulkMuteFindingsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..ac5f9f01576d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsResourceNamesSnippet.g.cs @@ -0,0 +1,62 @@ +// 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 securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for BulkMuteFindings + /// + /// 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 BulkMuteFindingsResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + IResourceName parent = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Operation response = securityCenterClient.BulkMuteFindings(parent); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BulkMuteFindingsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsSnippet.g.cs new file mode 100755 index 000000000000..14081945a5cd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.BulkMuteFindingsSnippet.g.cs @@ -0,0 +1,61 @@ +// 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 securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for BulkMuteFindings + /// + /// 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 BulkMuteFindings() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "a/wildcard/resource"; + // Make the request + Operation response = securityCenterClient.BulkMuteFindings(parent); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BulkMuteFindingsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportAsyncSnippet.g.cs new file mode 100755 index 000000000000..c067b9b80700 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateBigQueryExportAsync + /// + /// 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 CreateBigQueryExportAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..b31f628015de --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateBigQueryExportAsync + /// + /// 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 CreateBigQueryExportRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateBigQueryExportRequest request = new CreateBigQueryExportRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + BigQueryExport = new BigQueryExport(), + BigQueryExportId = "", + }; + // Make the request + BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..3974fb02f98d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateBigQueryExport + /// + /// 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 CreateBigQueryExportRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateBigQueryExportRequest request = new CreateBigQueryExportRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + BigQueryExport = new BigQueryExport(), + BigQueryExportId = "", + }; + // Make the request + BigQueryExport response = securityCenterClient.CreateBigQueryExport(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..53ed728dd2c2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async_flattened_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateBigQueryExportAsync + /// + /// 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 CreateBigQueryExportResourceNames1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..589108f04cf9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames1Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync_flattened_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateBigQueryExport + /// + /// 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 CreateBigQueryExportResourceNames1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..28066d3ea0d4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async_flattened_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateBigQueryExportAsync + /// + /// 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 CreateBigQueryExportResourceNames2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..6c1d1c3e483c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames2Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync_flattened_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateBigQueryExport + /// + /// 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 CreateBigQueryExportResourceNames2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames3AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames3AsyncSnippet.g.cs new file mode 100755 index 000000000000..f734b346a2fe --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames3AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async_flattened_resourceNames3] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateBigQueryExportAsync + /// + /// 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 CreateBigQueryExportResourceNames3Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async_flattened_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames3Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames3Snippet.g.cs new file mode 100755 index 000000000000..d0561937f8f5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportResourceNames3Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync_flattened_resourceNames3] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateBigQueryExport + /// + /// 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 CreateBigQueryExportResourceNames3() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync_flattened_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportSnippet.g.cs new file mode 100755 index 000000000000..35292c44a995 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateBigQueryExportSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateBigQueryExport + /// + /// 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 CreateBigQueryExport() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..63360e65308e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateEventThreatDetectionCustomModuleAsync + /// + /// 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 CreateEventThreatDetectionCustomModuleAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(); + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.CreateEventThreatDetectionCustomModuleAsync(parent, eventThreatDetectionCustomModule); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..245f4a789ad2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateEventThreatDetectionCustomModuleAsync + /// + /// 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 CreateEventThreatDetectionCustomModuleRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateEventThreatDetectionCustomModuleRequest request = new CreateEventThreatDetectionCustomModuleRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(), + }; + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.CreateEventThreatDetectionCustomModuleAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..6c7ac19cb301 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateEventThreatDetectionCustomModule + /// + /// 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 CreateEventThreatDetectionCustomModuleRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateEventThreatDetectionCustomModuleRequest request = new CreateEventThreatDetectionCustomModuleRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(), + }; + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.CreateEventThreatDetectionCustomModule(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..522b2151f40f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateEventThreatDetectionCustomModuleAsync + /// + /// 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 CreateEventThreatDetectionCustomModuleResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(); + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.CreateEventThreatDetectionCustomModuleAsync(parent, eventThreatDetectionCustomModule); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..2b2aca34bd04 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateEventThreatDetectionCustomModule + /// + /// 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 CreateEventThreatDetectionCustomModuleResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(); + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.CreateEventThreatDetectionCustomModule(parent, eventThreatDetectionCustomModule); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleSnippet.g.cs new file mode 100755 index 000000000000..d186c3ce78d1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateEventThreatDetectionCustomModuleSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateEventThreatDetectionCustomModule + /// + /// 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 CreateEventThreatDetectionCustomModule() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(); + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.CreateEventThreatDetectionCustomModule(parent, eventThreatDetectionCustomModule); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingAsyncSnippet.g.cs new file mode 100755 index 000000000000..b900481a4241 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateFinding_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateFindingAsync + /// + /// 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 CreateFindingAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]"; + string findingId = ""; + Finding finding = new Finding(); + // Make the request + Finding response = await securityCenterClient.CreateFindingAsync(parent, findingId, finding); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateFinding_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..e0eff2fe3bde --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateFinding_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateFindingAsync + /// + /// 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 CreateFindingRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateFindingRequest request = new CreateFindingRequest + { + ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + FindingId = "", + Finding = new Finding(), + }; + // Make the request + Finding response = await securityCenterClient.CreateFindingAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateFinding_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..8b03b8ff5988 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateFinding_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateFinding + /// + /// 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 CreateFindingRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateFindingRequest request = new CreateFindingRequest + { + ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + FindingId = "", + Finding = new Finding(), + }; + // Make the request + Finding response = securityCenterClient.CreateFinding(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateFinding_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..93ce39ee6126 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateFinding_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateFindingAsync + /// + /// 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 CreateFindingResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"); + string findingId = ""; + Finding finding = new Finding(); + // Make the request + Finding response = await securityCenterClient.CreateFindingAsync(parent, findingId, finding); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateFinding_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..a8991784cd2f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateFinding_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateFinding + /// + /// 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 CreateFindingResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"); + string findingId = ""; + Finding finding = new Finding(); + // Make the request + Finding response = securityCenterClient.CreateFinding(parent, findingId, finding); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateFinding_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingSnippet.g.cs new file mode 100755 index 000000000000..6e9fdeb5c257 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateFindingSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateFinding_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateFinding + /// + /// 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 CreateFinding() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]"; + string findingId = ""; + Finding finding = new Finding(); + // Make the request + Finding response = securityCenterClient.CreateFinding(parent, findingId, finding); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateFinding_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1AsyncSnippet.g.cs new file mode 100755 index 000000000000..62a99f1521c5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..6223dbada583 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig1ResourceNames1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..ec5089ed2891 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames1Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig1ResourceNames1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..c20fe6681627 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig1ResourceNames2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..6090892ed096 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames2Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig1ResourceNames2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames3AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames3AsyncSnippet.g.cs new file mode 100755 index 000000000000..789806ba1ff3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames3AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames3] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig1ResourceNames3Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames3Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames3Snippet.g.cs new file mode 100755 index 000000000000..a1afcbd1c8b7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames3Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames3] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig1ResourceNames3() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames4AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames4AsyncSnippet.g.cs new file mode 100755 index 000000000000..2bbe22462db9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames4AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames4] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig1ResourceNames4Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames4] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames4Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames4Snippet.g.cs new file mode 100755 index 000000000000..15df05aaff09 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames4Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames4] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig1ResourceNames4() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames4] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames5AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames5AsyncSnippet.g.cs new file mode 100755 index 000000000000..6902ff2ad9b4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames5AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames5] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig1ResourceNames5Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames5] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames5Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames5Snippet.g.cs new file mode 100755 index 000000000000..10149138e986 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames5Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames5] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig1ResourceNames5() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames5] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames6AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames6AsyncSnippet.g.cs new file mode 100755 index 000000000000..47acaf8aa844 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames6AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames6] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig1ResourceNames6Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames6] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames6Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames6Snippet.g.cs new file mode 100755 index 000000000000..93af018616a7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1ResourceNames6Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames6] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig1ResourceNames6() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames6] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1Snippet.g.cs new file mode 100755 index 000000000000..78c97c6dd950 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig1Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2AsyncSnippet.g.cs new file mode 100755 index 000000000000..b7af3fcf85ed --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..e51701e0d2ae --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig2ResourceNames1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..1de1692c5057 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames1Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig2ResourceNames1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..389c1bd1aec6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig2ResourceNames2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..6e8b234c197d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames2Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig2ResourceNames2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames3AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames3AsyncSnippet.g.cs new file mode 100755 index 000000000000..08db338666c8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames3AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames3] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig2ResourceNames3Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames3Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames3Snippet.g.cs new file mode 100755 index 000000000000..02cf99c763c9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames3Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames3] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig2ResourceNames3() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames4AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames4AsyncSnippet.g.cs new file mode 100755 index 000000000000..ed5a379eac2d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames4AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames4] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig2ResourceNames4Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames4] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames4Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames4Snippet.g.cs new file mode 100755 index 000000000000..a18ec6045fbd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames4Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames4] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig2ResourceNames4() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames4] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames5AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames5AsyncSnippet.g.cs new file mode 100755 index 000000000000..72f7aef1191c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames5AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames5] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig2ResourceNames5Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames5] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames5Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames5Snippet.g.cs new file mode 100755 index 000000000000..86db8e8e9477 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames5Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames5] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig2ResourceNames5() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames5] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames6AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames6AsyncSnippet.g.cs new file mode 100755 index 000000000000..c640a5e31543 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames6AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames6] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfig2ResourceNames6Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames6] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames6Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames6Snippet.g.cs new file mode 100755 index 000000000000..538518a74398 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2ResourceNames6Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames6] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig2ResourceNames6() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames6] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2Snippet.g.cs new file mode 100755 index 000000000000..e0cf2c249576 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfig2Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfig2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..e7e5fffe3927 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfigAsync + /// + /// 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 CreateMuteConfigRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateMuteConfigRequest request = new CreateMuteConfigRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + MuteConfig = new MuteConfig(), + MuteConfigId = "", + }; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..ccf21b1944c9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateMuteConfigRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateMuteConfig + /// + /// 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 CreateMuteConfigRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateMuteConfigRequest request = new CreateMuteConfigRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + MuteConfig = new MuteConfig(), + MuteConfigId = "", + }; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1AsyncSnippet.g.cs new file mode 100755 index 000000000000..b87d7e43a704 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened1] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfigAsync + /// + /// 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 CreateNotificationConfig1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..f72f675909b3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened1_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfigAsync + /// + /// 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 CreateNotificationConfig1ResourceNames1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened1_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..7808985dcfe2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames1Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened1_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfig + /// + /// 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 CreateNotificationConfig1ResourceNames1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened1_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..7720dcd3eea9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened1_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfigAsync + /// + /// 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 CreateNotificationConfig1ResourceNames2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened1_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..9f3074b10c0a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames2Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened1_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfig + /// + /// 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 CreateNotificationConfig1ResourceNames2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened1_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames3AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames3AsyncSnippet.g.cs new file mode 100755 index 000000000000..2a9d86891c52 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames3AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened1_resourceNames3] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfigAsync + /// + /// 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 CreateNotificationConfig1ResourceNames3Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened1_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames3Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames3Snippet.g.cs new file mode 100755 index 000000000000..e01d9a76b615 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1ResourceNames3Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened1_resourceNames3] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfig + /// + /// 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 CreateNotificationConfig1ResourceNames3() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened1_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1Snippet.g.cs new file mode 100755 index 000000000000..d13bb9dd2946 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig1Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened1] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfig + /// + /// 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 CreateNotificationConfig1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2AsyncSnippet.g.cs new file mode 100755 index 000000000000..bb486238a111 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened2] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfigAsync + /// + /// 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 CreateNotificationConfig2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..1c09042fed47 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened2_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfigAsync + /// + /// 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 CreateNotificationConfig2ResourceNames1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened2_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..72fc789f96ab --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames1Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened2_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfig + /// + /// 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 CreateNotificationConfig2ResourceNames1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened2_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..a509dd30c4cb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened2_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfigAsync + /// + /// 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 CreateNotificationConfig2ResourceNames2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened2_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..e8f8e5092659 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames2Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened2_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfig + /// + /// 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 CreateNotificationConfig2ResourceNames2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened2_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames3AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames3AsyncSnippet.g.cs new file mode 100755 index 000000000000..5671b975b93e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames3AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened2_resourceNames3] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfigAsync + /// + /// 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 CreateNotificationConfig2ResourceNames3Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened2_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames3Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames3Snippet.g.cs new file mode 100755 index 000000000000..0a8a224924d2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2ResourceNames3Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened2_resourceNames3] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfig + /// + /// 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 CreateNotificationConfig2ResourceNames3() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened2_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2Snippet.g.cs new file mode 100755 index 000000000000..640260b1f39e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfig2Snippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened2] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfig + /// + /// 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 CreateNotificationConfig2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..dc3376755df8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfigAsync + /// + /// 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 CreateNotificationConfigRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateNotificationConfigRequest request = new CreateNotificationConfigRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + ConfigId = "", + NotificationConfig = new NotificationConfig(), + }; + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..8ec5388f7465 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateNotificationConfigRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateNotificationConfig + /// + /// 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 CreateNotificationConfigRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateNotificationConfigRequest request = new CreateNotificationConfigRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + ConfigId = "", + NotificationConfig = new NotificationConfig(), + }; + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..68ac6594ae16 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 CreateSecurityHealthAnalyticsCustomModuleAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(); + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(parent, securityHealthAnalyticsCustomModule); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..08973bfec30b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 CreateSecurityHealthAnalyticsCustomModuleRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateSecurityHealthAnalyticsCustomModuleRequest request = new CreateSecurityHealthAnalyticsCustomModuleRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(), + }; + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..529ba79674fe --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateSecurityHealthAnalyticsCustomModule + /// + /// 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 CreateSecurityHealthAnalyticsCustomModuleRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateSecurityHealthAnalyticsCustomModuleRequest request = new CreateSecurityHealthAnalyticsCustomModuleRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(), + }; + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.CreateSecurityHealthAnalyticsCustomModule(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..1b2a22b3cc18 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 CreateSecurityHealthAnalyticsCustomModuleResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(); + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(parent, securityHealthAnalyticsCustomModule); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..58198d263f91 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateSecurityHealthAnalyticsCustomModule + /// + /// 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 CreateSecurityHealthAnalyticsCustomModuleResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(); + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.CreateSecurityHealthAnalyticsCustomModule(parent, securityHealthAnalyticsCustomModule); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleSnippet.g.cs new file mode 100755 index 000000000000..80f2aeeeb03e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateSecurityHealthAnalyticsCustomModule + /// + /// 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 CreateSecurityHealthAnalyticsCustomModule() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(); + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.CreateSecurityHealthAnalyticsCustomModule(parent, securityHealthAnalyticsCustomModule); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceAsyncSnippet.g.cs new file mode 100755 index 000000000000..e7e4ce176672 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateSource_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateSourceAsync + /// + /// 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 CreateSourceAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + Source source = new Source(); + // Make the request + Source response = await securityCenterClient.CreateSourceAsync(parent, source); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateSource_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..d1e3ecb52b01 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateSource_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateSourceAsync + /// + /// 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 CreateSourceRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateSourceRequest request = new CreateSourceRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Source = new Source(), + }; + // Make the request + Source response = await securityCenterClient.CreateSourceAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateSource_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..ade6029d3524 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateSource_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateSource + /// + /// 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 CreateSourceRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateSourceRequest request = new CreateSourceRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Source = new Source(), + }; + // Make the request + Source response = securityCenterClient.CreateSource(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateSource_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..ca04bffa1e6b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateSource_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateSourceAsync + /// + /// 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 CreateSourceResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + Source source = new Source(); + // Make the request + Source response = await securityCenterClient.CreateSourceAsync(parent, source); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateSource_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..fb1fa07bd7ce --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateSource_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateSource + /// + /// 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 CreateSourceResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + Source source = new Source(); + // Make the request + Source response = securityCenterClient.CreateSource(parent, source); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateSource_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceSnippet.g.cs new file mode 100755 index 000000000000..ffa71496aca0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.CreateSourceSnippet.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 securitycenter_v1_generated_SecurityCenter_CreateSource_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for CreateSource + /// + /// 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 CreateSource() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + Source source = new Source(); + // Make the request + Source response = securityCenterClient.CreateSource(parent, source); + } + } + // [END securitycenter_v1_generated_SecurityCenter_CreateSource_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportAsyncSnippet.g.cs new file mode 100755 index 000000000000..1047117c082c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteBigQueryExportAsync + /// + /// 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 DeleteBigQueryExportAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]"; + // Make the request + await securityCenterClient.DeleteBigQueryExportAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..b1d18c75abbf --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteBigQueryExportAsync + /// + /// 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 DeleteBigQueryExportRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest + { + BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"), + }; + // Make the request + await securityCenterClient.DeleteBigQueryExportAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..be08e9776f4d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteBigQueryExport + /// + /// 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 DeleteBigQueryExportRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest + { + BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"), + }; + // Make the request + securityCenterClient.DeleteBigQueryExport(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..abaa8a84a1de --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteBigQueryExportAsync + /// + /// 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 DeleteBigQueryExportResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"); + // Make the request + await securityCenterClient.DeleteBigQueryExportAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..dd425d8e0a2d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteBigQueryExport + /// + /// 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 DeleteBigQueryExportResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"); + // Make the request + securityCenterClient.DeleteBigQueryExport(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportSnippet.g.cs new file mode 100755 index 000000000000..4ab31f6ded40 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteBigQueryExportSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteBigQueryExport + /// + /// 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 DeleteBigQueryExport() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]"; + // Make the request + securityCenterClient.DeleteBigQueryExport(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..4bae29b0c6f5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteEventThreatDetectionCustomModuleAsync + /// + /// 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 DeleteEventThreatDetectionCustomModuleAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]"; + // Make the request + await securityCenterClient.DeleteEventThreatDetectionCustomModuleAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..6f17acad8aad --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteEventThreatDetectionCustomModuleAsync + /// + /// 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 DeleteEventThreatDetectionCustomModuleRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + DeleteEventThreatDetectionCustomModuleRequest request = new DeleteEventThreatDetectionCustomModuleRequest + { + EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"), + }; + // Make the request + await securityCenterClient.DeleteEventThreatDetectionCustomModuleAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..68df7d61f8e4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteEventThreatDetectionCustomModule + /// + /// 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 DeleteEventThreatDetectionCustomModuleRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + DeleteEventThreatDetectionCustomModuleRequest request = new DeleteEventThreatDetectionCustomModuleRequest + { + EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"), + }; + // Make the request + securityCenterClient.DeleteEventThreatDetectionCustomModule(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..d3cf8d13cf8a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteEventThreatDetectionCustomModuleAsync + /// + /// 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 DeleteEventThreatDetectionCustomModuleResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"); + // Make the request + await securityCenterClient.DeleteEventThreatDetectionCustomModuleAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..475fb6c2616f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteEventThreatDetectionCustomModule + /// + /// 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 DeleteEventThreatDetectionCustomModuleResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"); + // Make the request + securityCenterClient.DeleteEventThreatDetectionCustomModule(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleSnippet.g.cs new file mode 100755 index 000000000000..d5b357efe6ef --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteEventThreatDetectionCustomModuleSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteEventThreatDetectionCustomModule + /// + /// 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 DeleteEventThreatDetectionCustomModule() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]"; + // Make the request + securityCenterClient.DeleteEventThreatDetectionCustomModule(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigAsyncSnippet.g.cs new file mode 100755 index 000000000000..5824d29a5ead --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteMuteConfigAsync + /// + /// 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 DeleteMuteConfigAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]"; + // Make the request + await securityCenterClient.DeleteMuteConfigAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..0db544e60e2f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteMuteConfigAsync + /// + /// 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 DeleteMuteConfigRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + DeleteMuteConfigRequest request = new DeleteMuteConfigRequest + { + MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"), + }; + // Make the request + await securityCenterClient.DeleteMuteConfigAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..972a018b7082 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteMuteConfig + /// + /// 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 DeleteMuteConfigRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + DeleteMuteConfigRequest request = new DeleteMuteConfigRequest + { + MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"), + }; + // Make the request + securityCenterClient.DeleteMuteConfig(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..9cdc30432595 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteMuteConfigAsync + /// + /// 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 DeleteMuteConfigResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"); + // Make the request + await securityCenterClient.DeleteMuteConfigAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..37c25d7a878b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteMuteConfig + /// + /// 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 DeleteMuteConfigResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"); + // Make the request + securityCenterClient.DeleteMuteConfig(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigSnippet.g.cs new file mode 100755 index 000000000000..f488c647d00d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteMuteConfigSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteMuteConfig + /// + /// 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 DeleteMuteConfig() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]"; + // Make the request + securityCenterClient.DeleteMuteConfig(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigAsyncSnippet.g.cs new file mode 100755 index 000000000000..c2e83d0d410d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteNotificationConfigAsync + /// + /// 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 DeleteNotificationConfigAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]"; + // Make the request + await securityCenterClient.DeleteNotificationConfigAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..655130b32206 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteNotificationConfigAsync + /// + /// 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 DeleteNotificationConfigRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest + { + NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"), + }; + // Make the request + await securityCenterClient.DeleteNotificationConfigAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..17d32939ee82 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteNotificationConfig + /// + /// 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 DeleteNotificationConfigRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest + { + NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"), + }; + // Make the request + securityCenterClient.DeleteNotificationConfig(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..8d9d87d840b2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteNotificationConfigAsync + /// + /// 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 DeleteNotificationConfigResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + // Make the request + await securityCenterClient.DeleteNotificationConfigAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..3c83bb98a777 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteNotificationConfig + /// + /// 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 DeleteNotificationConfigResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + // Make the request + securityCenterClient.DeleteNotificationConfig(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigSnippet.g.cs new file mode 100755 index 000000000000..6a19b44ed218 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteNotificationConfigSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteNotificationConfig + /// + /// 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 DeleteNotificationConfig() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]"; + // Make the request + securityCenterClient.DeleteNotificationConfig(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigAsyncSnippet.g.cs new file mode 100755 index 000000000000..0f1642a84920 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteResourceValueConfigAsync + /// + /// 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 DeleteResourceValueConfigAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]"; + // Make the request + await securityCenterClient.DeleteResourceValueConfigAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..040e373dd272 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteResourceValueConfigAsync + /// + /// 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 DeleteResourceValueConfigRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + DeleteResourceValueConfigRequest request = new DeleteResourceValueConfigRequest + { + ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"), + }; + // Make the request + await securityCenterClient.DeleteResourceValueConfigAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..e0d9e9525e93 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteResourceValueConfig + /// + /// 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 DeleteResourceValueConfigRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + DeleteResourceValueConfigRequest request = new DeleteResourceValueConfigRequest + { + ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"), + }; + // Make the request + securityCenterClient.DeleteResourceValueConfig(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..d9a400a56c25 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteResourceValueConfigAsync + /// + /// 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 DeleteResourceValueConfigResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"); + // Make the request + await securityCenterClient.DeleteResourceValueConfigAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..ab26762ee311 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteResourceValueConfig + /// + /// 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 DeleteResourceValueConfigResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"); + // Make the request + securityCenterClient.DeleteResourceValueConfig(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigSnippet.g.cs new file mode 100755 index 000000000000..af567aa9aa71 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteResourceValueConfigSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteResourceValueConfig + /// + /// 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 DeleteResourceValueConfig() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]"; + // Make the request + securityCenterClient.DeleteResourceValueConfig(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..a9968a7ff8b4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 DeleteSecurityHealthAnalyticsCustomModuleAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]"; + // Make the request + await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..16594e0b5b51 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 DeleteSecurityHealthAnalyticsCustomModuleRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + DeleteSecurityHealthAnalyticsCustomModuleRequest request = new DeleteSecurityHealthAnalyticsCustomModuleRequest + { + SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"), + }; + // Make the request + await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..9f56878f7ee8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteSecurityHealthAnalyticsCustomModule + /// + /// 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 DeleteSecurityHealthAnalyticsCustomModuleRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + DeleteSecurityHealthAnalyticsCustomModuleRequest request = new DeleteSecurityHealthAnalyticsCustomModuleRequest + { + SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"), + }; + // Make the request + securityCenterClient.DeleteSecurityHealthAnalyticsCustomModule(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..75359d26c544 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 DeleteSecurityHealthAnalyticsCustomModuleResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"); + // Make the request + await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..940a7b4f2082 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteSecurityHealthAnalyticsCustomModule + /// + /// 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 DeleteSecurityHealthAnalyticsCustomModuleResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"); + // Make the request + securityCenterClient.DeleteSecurityHealthAnalyticsCustomModule(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleSnippet.g.cs new file mode 100755 index 000000000000..103dcbc29b9b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleSnippet.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 securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for DeleteSecurityHealthAnalyticsCustomModule + /// + /// 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 DeleteSecurityHealthAnalyticsCustomModule() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]"; + // Make the request + securityCenterClient.DeleteSecurityHealthAnalyticsCustomModule(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportAsyncSnippet.g.cs new file mode 100755 index 000000000000..5bca327786c8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetBigQueryExportAsync + /// + /// 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 GetBigQueryExportAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]"; + // Make the request + BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..d1eb2c898bae --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetBigQueryExportAsync + /// + /// 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 GetBigQueryExportRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetBigQueryExportRequest request = new GetBigQueryExportRequest + { + BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"), + }; + // Make the request + BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..370c568d9a35 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetBigQueryExport + /// + /// 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 GetBigQueryExportRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetBigQueryExportRequest request = new GetBigQueryExportRequest + { + BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"), + }; + // Make the request + BigQueryExport response = securityCenterClient.GetBigQueryExport(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..70dbde3deb76 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetBigQueryExportAsync + /// + /// 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 GetBigQueryExportResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"); + // Make the request + BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..adfcfe04d944 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetBigQueryExport + /// + /// 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 GetBigQueryExportResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"); + // Make the request + BigQueryExport response = securityCenterClient.GetBigQueryExport(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportSnippet.g.cs new file mode 100755 index 000000000000..f2b6145760c0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetBigQueryExportSnippet.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 securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetBigQueryExport + /// + /// 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 GetBigQueryExport() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]"; + // Make the request + BigQueryExport response = securityCenterClient.GetBigQueryExport(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..261841eb7976 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEffectiveEventThreatDetectionCustomModuleAsync + /// + /// 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 GetEffectiveEventThreatDetectionCustomModuleAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/effectiveCustomModules/[MODULE]"; + // Make the request + EffectiveEventThreatDetectionCustomModule response = await securityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..0137b0a08d47 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEffectiveEventThreatDetectionCustomModuleAsync + /// + /// 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 GetEffectiveEventThreatDetectionCustomModuleRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetEffectiveEventThreatDetectionCustomModuleRequest request = new GetEffectiveEventThreatDetectionCustomModuleRequest + { + EffectiveEventThreatDetectionCustomModuleName = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"), + }; + // Make the request + EffectiveEventThreatDetectionCustomModule response = await securityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..267458313b17 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEffectiveEventThreatDetectionCustomModule + /// + /// 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 GetEffectiveEventThreatDetectionCustomModuleRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetEffectiveEventThreatDetectionCustomModuleRequest request = new GetEffectiveEventThreatDetectionCustomModuleRequest + { + EffectiveEventThreatDetectionCustomModuleName = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"), + }; + // Make the request + EffectiveEventThreatDetectionCustomModule response = securityCenterClient.GetEffectiveEventThreatDetectionCustomModule(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..35c7d0b4501a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEffectiveEventThreatDetectionCustomModuleAsync + /// + /// 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 GetEffectiveEventThreatDetectionCustomModuleResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EffectiveEventThreatDetectionCustomModuleName name = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"); + // Make the request + EffectiveEventThreatDetectionCustomModule response = await securityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..54eb4c9fae60 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEffectiveEventThreatDetectionCustomModule + /// + /// 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 GetEffectiveEventThreatDetectionCustomModuleResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EffectiveEventThreatDetectionCustomModuleName name = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"); + // Make the request + EffectiveEventThreatDetectionCustomModule response = securityCenterClient.GetEffectiveEventThreatDetectionCustomModule(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleSnippet.g.cs new file mode 100755 index 000000000000..16291cb4b146 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEffectiveEventThreatDetectionCustomModule + /// + /// 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 GetEffectiveEventThreatDetectionCustomModule() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/effectiveCustomModules/[MODULE]"; + // Make the request + EffectiveEventThreatDetectionCustomModule response = securityCenterClient.GetEffectiveEventThreatDetectionCustomModule(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..fe978d09e71b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEffectiveSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 GetEffectiveSecurityHealthAnalyticsCustomModuleAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/effectiveCustomModules/[EFFECTIVE_CUSTOM_MODULE]"; + // Make the request + EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..d31fe4904beb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEffectiveSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + { + EffectiveSecurityHealthAnalyticsCustomModuleName = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"), + }; + // Make the request + EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..b47779523451 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEffectiveSecurityHealthAnalyticsCustomModule + /// + /// 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 GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + { + EffectiveSecurityHealthAnalyticsCustomModuleName = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"), + }; + // Make the request + EffectiveSecurityHealthAnalyticsCustomModule response = securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..ba4f83ce15ec --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEffectiveSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EffectiveSecurityHealthAnalyticsCustomModuleName name = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"); + // Make the request + EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..46db4e118ba9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEffectiveSecurityHealthAnalyticsCustomModule + /// + /// 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 GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EffectiveSecurityHealthAnalyticsCustomModuleName name = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"); + // Make the request + EffectiveSecurityHealthAnalyticsCustomModule response = securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleSnippet.g.cs new file mode 100755 index 000000000000..20aa5d443b99 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEffectiveSecurityHealthAnalyticsCustomModule + /// + /// 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 GetEffectiveSecurityHealthAnalyticsCustomModule() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/effectiveCustomModules/[EFFECTIVE_CUSTOM_MODULE]"; + // Make the request + EffectiveSecurityHealthAnalyticsCustomModule response = securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..d2cb17b2dce6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEventThreatDetectionCustomModuleAsync + /// + /// 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 GetEventThreatDetectionCustomModuleAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]"; + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.GetEventThreatDetectionCustomModuleAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..1be8efdcb11f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEventThreatDetectionCustomModuleAsync + /// + /// 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 GetEventThreatDetectionCustomModuleRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetEventThreatDetectionCustomModuleRequest request = new GetEventThreatDetectionCustomModuleRequest + { + EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"), + }; + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.GetEventThreatDetectionCustomModuleAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..8982fda68475 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEventThreatDetectionCustomModule + /// + /// 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 GetEventThreatDetectionCustomModuleRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetEventThreatDetectionCustomModuleRequest request = new GetEventThreatDetectionCustomModuleRequest + { + EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"), + }; + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.GetEventThreatDetectionCustomModule(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..0536b6f833d4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEventThreatDetectionCustomModuleAsync + /// + /// 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 GetEventThreatDetectionCustomModuleResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"); + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.GetEventThreatDetectionCustomModuleAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..c375d91e3f9c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEventThreatDetectionCustomModule + /// + /// 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 GetEventThreatDetectionCustomModuleResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"); + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.GetEventThreatDetectionCustomModule(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleSnippet.g.cs new file mode 100755 index 000000000000..eaaf15204a1f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetEventThreatDetectionCustomModuleSnippet.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 securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetEventThreatDetectionCustomModule + /// + /// 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 GetEventThreatDetectionCustomModule() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]"; + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.GetEventThreatDetectionCustomModule(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyAsyncSnippet.g.cs new file mode 100755 index 000000000000..a44ccdeb5841 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetIamPolicy_async_flattened] + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 GetIamPolicyAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = await securityCenterClient.GetIamPolicyAsync(resource); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetIamPolicy_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..28150413d246 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.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 securitycenter_v1_generated_SecurityCenter_GetIamPolicy_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = await securityCenterClient.GetIamPolicyAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetIamPolicy_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..9ae316402b66 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.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 securitycenter_v1_generated_SecurityCenter_GetIamPolicy_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = securityCenterClient.GetIamPolicy(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetIamPolicy_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..80b986909e8b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetIamPolicy_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 GetIamPolicyResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = await securityCenterClient.GetIamPolicyAsync(resource); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetIamPolicy_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..962decb63064 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicyResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetIamPolicy_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 GetIamPolicyResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = securityCenterClient.GetIamPolicy(resource); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetIamPolicy_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicySnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicySnippet.g.cs new file mode 100755 index 000000000000..6eba00e8d7f9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetIamPolicySnippet.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 securitycenter_v1_generated_SecurityCenter_GetIamPolicy_sync_flattened] + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 GetIamPolicy() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = securityCenterClient.GetIamPolicy(resource); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetIamPolicy_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigAsyncSnippet.g.cs new file mode 100755 index 000000000000..d92f15ccb039 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetMuteConfig_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetMuteConfigAsync + /// + /// 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 GetMuteConfigAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]"; + // Make the request + MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetMuteConfig_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..0483aaddf8d4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetMuteConfig_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetMuteConfigAsync + /// + /// 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 GetMuteConfigRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetMuteConfigRequest request = new GetMuteConfigRequest + { + MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"), + }; + // Make the request + MuteConfig response = await securityCenterClient.GetMuteConfigAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetMuteConfig_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..02d4ec5221c4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_GetMuteConfig_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetMuteConfig + /// + /// 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 GetMuteConfigRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetMuteConfigRequest request = new GetMuteConfigRequest + { + MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"), + }; + // Make the request + MuteConfig response = securityCenterClient.GetMuteConfig(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetMuteConfig_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..5618ece25a83 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetMuteConfig_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetMuteConfigAsync + /// + /// 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 GetMuteConfigResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"); + // Make the request + MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetMuteConfig_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..ccbca109c266 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetMuteConfig_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetMuteConfig + /// + /// 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 GetMuteConfigResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"); + // Make the request + MuteConfig response = securityCenterClient.GetMuteConfig(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetMuteConfig_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigSnippet.g.cs new file mode 100755 index 000000000000..9bdb986256b5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetMuteConfigSnippet.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 securitycenter_v1_generated_SecurityCenter_GetMuteConfig_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetMuteConfig + /// + /// 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 GetMuteConfig() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]"; + // Make the request + MuteConfig response = securityCenterClient.GetMuteConfig(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetMuteConfig_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigAsyncSnippet.g.cs new file mode 100755 index 000000000000..3d66d2c73c4e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetNotificationConfigAsync + /// + /// 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 GetNotificationConfigAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]"; + // Make the request + NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..d7f77bf7cd66 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetNotificationConfigAsync + /// + /// 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 GetNotificationConfigRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetNotificationConfigRequest request = new GetNotificationConfigRequest + { + NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"), + }; + // Make the request + NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..5f39cbad9f6f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetNotificationConfig + /// + /// 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 GetNotificationConfigRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetNotificationConfigRequest request = new GetNotificationConfigRequest + { + NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"), + }; + // Make the request + NotificationConfig response = securityCenterClient.GetNotificationConfig(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..c5a38f7a123a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetNotificationConfigAsync + /// + /// 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 GetNotificationConfigResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + // Make the request + NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..263908f310fc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetNotificationConfig + /// + /// 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 GetNotificationConfigResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + // Make the request + NotificationConfig response = securityCenterClient.GetNotificationConfig(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigSnippet.g.cs new file mode 100755 index 000000000000..fc05c63d7d31 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetNotificationConfigSnippet.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 securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetNotificationConfig + /// + /// 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 GetNotificationConfig() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]"; + // Make the request + NotificationConfig response = securityCenterClient.GetNotificationConfig(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsAsyncSnippet.g.cs new file mode 100755 index 000000000000..00a4a7421d68 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetOrganizationSettingsAsync + /// + /// 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 GetOrganizationSettingsAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/organizationSettings"; + // Make the request + OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..b2c32284c151 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetOrganizationSettingsAsync + /// + /// 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 GetOrganizationSettingsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetOrganizationSettingsRequest request = new GetOrganizationSettingsRequest + { + OrganizationSettingsName = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..7d2d237f10ef --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetOrganizationSettings + /// + /// 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 GetOrganizationSettingsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetOrganizationSettingsRequest request = new GetOrganizationSettingsRequest + { + OrganizationSettingsName = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + OrganizationSettings response = securityCenterClient.GetOrganizationSettings(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..51749a59714a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetOrganizationSettingsAsync + /// + /// 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 GetOrganizationSettingsResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationSettingsName name = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..57f69e51f6b1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetOrganizationSettings + /// + /// 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 GetOrganizationSettingsResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationSettingsName name = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + OrganizationSettings response = securityCenterClient.GetOrganizationSettings(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsSnippet.g.cs new file mode 100755 index 000000000000..529cef811871 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetOrganizationSettingsSnippet.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 securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetOrganizationSettings + /// + /// 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 GetOrganizationSettings() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/organizationSettings"; + // Make the request + OrganizationSettings response = securityCenterClient.GetOrganizationSettings(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigAsyncSnippet.g.cs new file mode 100755 index 000000000000..c063a0141ace --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetResourceValueConfigAsync + /// + /// 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 GetResourceValueConfigAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]"; + // Make the request + ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..d2638af155f0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetResourceValueConfigAsync + /// + /// 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 GetResourceValueConfigRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetResourceValueConfigRequest request = new GetResourceValueConfigRequest + { + ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"), + }; + // Make the request + ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..aeaa7a04c1af --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetResourceValueConfig + /// + /// 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 GetResourceValueConfigRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetResourceValueConfigRequest request = new GetResourceValueConfigRequest + { + ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"), + }; + // Make the request + ResourceValueConfig response = securityCenterClient.GetResourceValueConfig(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..d556eddc34e9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetResourceValueConfigAsync + /// + /// 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 GetResourceValueConfigResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"); + // Make the request + ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..26f7bd8e8af4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetResourceValueConfig + /// + /// 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 GetResourceValueConfigResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"); + // Make the request + ResourceValueConfig response = securityCenterClient.GetResourceValueConfig(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigSnippet.g.cs new file mode 100755 index 000000000000..5ab845227314 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetResourceValueConfigSnippet.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 securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetResourceValueConfig + /// + /// 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 GetResourceValueConfig() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]"; + // Make the request + ResourceValueConfig response = securityCenterClient.GetResourceValueConfig(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..5a8a02e5be42 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 GetSecurityHealthAnalyticsCustomModuleAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]"; + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..0704165a2dfd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 GetSecurityHealthAnalyticsCustomModuleRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetSecurityHealthAnalyticsCustomModuleRequest request = new GetSecurityHealthAnalyticsCustomModuleRequest + { + SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"), + }; + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..e91b7d4c2b1e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSecurityHealthAnalyticsCustomModule + /// + /// 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 GetSecurityHealthAnalyticsCustomModuleRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetSecurityHealthAnalyticsCustomModuleRequest request = new GetSecurityHealthAnalyticsCustomModuleRequest + { + SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"), + }; + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.GetSecurityHealthAnalyticsCustomModule(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..7af5f2131c01 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 GetSecurityHealthAnalyticsCustomModuleResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"); + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..53f090ad315b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSecurityHealthAnalyticsCustomModule + /// + /// 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 GetSecurityHealthAnalyticsCustomModuleResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"); + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.GetSecurityHealthAnalyticsCustomModule(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleSnippet.g.cs new file mode 100755 index 000000000000..5b99ea5a32d0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSecurityHealthAnalyticsCustomModule + /// + /// 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 GetSecurityHealthAnalyticsCustomModule() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]"; + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.GetSecurityHealthAnalyticsCustomModule(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationAsyncSnippet.g.cs new file mode 100755 index 000000000000..17ef29ada1fc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSimulation_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSimulationAsync + /// + /// 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 GetSimulationAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]"; + // Make the request + Simulation response = await securityCenterClient.GetSimulationAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSimulation_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..ba8031fdd423 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSimulation_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSimulationAsync + /// + /// 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 GetSimulationRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetSimulationRequest request = new GetSimulationRequest + { + SimulationName = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"), + }; + // Make the request + Simulation response = await securityCenterClient.GetSimulationAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSimulation_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c0c84f114153 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSimulation_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSimulation + /// + /// 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 GetSimulationRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetSimulationRequest request = new GetSimulationRequest + { + SimulationName = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"), + }; + // Make the request + Simulation response = securityCenterClient.GetSimulation(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSimulation_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..82659fe2592e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSimulation_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSimulationAsync + /// + /// 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 GetSimulationResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SimulationName name = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"); + // Make the request + Simulation response = await securityCenterClient.GetSimulationAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSimulation_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..7421b8244871 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSimulation_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSimulation + /// + /// 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 GetSimulationResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SimulationName name = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"); + // Make the request + Simulation response = securityCenterClient.GetSimulation(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSimulation_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationSnippet.g.cs new file mode 100755 index 000000000000..ae06f161c9c6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSimulationSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSimulation_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSimulation + /// + /// 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 GetSimulation() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]"; + // Make the request + Simulation response = securityCenterClient.GetSimulation(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSimulation_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceAsyncSnippet.g.cs new file mode 100755 index 000000000000..1f9ee6fe57ef --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSource_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSourceAsync + /// + /// 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 GetSourceAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/sources/[SOURCE]"; + // Make the request + Source response = await securityCenterClient.GetSourceAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSource_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..e59d471c6cfd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSource_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSourceAsync + /// + /// 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 GetSourceRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetSourceRequest request = new GetSourceRequest + { + SourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + }; + // Make the request + Source response = await securityCenterClient.GetSourceAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSource_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..e39f44f8b3b8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSource_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSource + /// + /// 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 GetSourceRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetSourceRequest request = new GetSourceRequest + { + SourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + }; + // Make the request + Source response = securityCenterClient.GetSource(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSource_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..9526937688f3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSource_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSourceAsync + /// + /// 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 GetSourceResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SourceName name = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"); + // Make the request + Source response = await securityCenterClient.GetSourceAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSource_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..9900d06739a4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSource_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSource + /// + /// 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 GetSourceResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SourceName name = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"); + // Make the request + Source response = securityCenterClient.GetSource(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSource_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceSnippet.g.cs new file mode 100755 index 000000000000..4f19d616f08c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetSourceSnippet.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 securitycenter_v1_generated_SecurityCenter_GetSource_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetSource + /// + /// 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 GetSource() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/sources/[SOURCE]"; + // Make the request + Source response = securityCenterClient.GetSource(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetSource_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceAsyncSnippet.g.cs new file mode 100755 index 000000000000..91c05a786261 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetValuedResource_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetValuedResourceAsync + /// + /// 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 GetValuedResourceAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]"; + // Make the request + ValuedResource response = await securityCenterClient.GetValuedResourceAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetValuedResource_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..9d76440bf1a2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetValuedResource_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetValuedResourceAsync + /// + /// 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 GetValuedResourceRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetValuedResourceRequest request = new GetValuedResourceRequest + { + ValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"), + }; + // Make the request + ValuedResource response = await securityCenterClient.GetValuedResourceAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetValuedResource_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..70aad371d382 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_GetValuedResource_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetValuedResource + /// + /// 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 GetValuedResourceRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetValuedResourceRequest request = new GetValuedResourceRequest + { + ValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"), + }; + // Make the request + ValuedResource response = securityCenterClient.GetValuedResource(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetValuedResource_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..b288e1273f59 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GetValuedResource_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetValuedResourceAsync + /// + /// 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 GetValuedResourceResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ValuedResourceName name = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"); + // Make the request + ValuedResource response = await securityCenterClient.GetValuedResourceAsync(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetValuedResource_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..03754eb658ac --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GetValuedResource_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetValuedResource + /// + /// 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 GetValuedResourceResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ValuedResourceName name = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"); + // Make the request + ValuedResource response = securityCenterClient.GetValuedResource(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetValuedResource_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceSnippet.g.cs new file mode 100755 index 000000000000..b04a87010e94 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GetValuedResourceSnippet.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 securitycenter_v1_generated_SecurityCenter_GetValuedResource_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GetValuedResource + /// + /// 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 GetValuedResource() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]"; + // Make the request + ValuedResource response = securityCenterClient.GetValuedResource(name); + } + } + // [END securitycenter_v1_generated_SecurityCenter_GetValuedResource_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupAssetsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupAssetsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..fa1c9256b987 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupAssetsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,90 @@ +// 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 securitycenter_v1_generated_SecurityCenter_GroupAssets_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GroupAssetsAsync + /// + /// 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 GroupAssetsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GroupAssetsRequest request = new GroupAssetsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Filter = "", + GroupBy = "", + CompareDuration = new Duration(), + ReadTime = new Timestamp(), + }; + // Make the request +#pragma warning disable CS0612 + PagedAsyncEnumerable response = securityCenterClient.GroupAssetsAsync(request); +#pragma warning restore CS0612 + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((GroupResult 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((GroupAssetsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 securitycenter_v1_generated_SecurityCenter_GroupAssets_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupAssetsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupAssetsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..60847e1c7d43 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupAssetsRequestObjectSnippet.g.cs @@ -0,0 +1,88 @@ +// 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 securitycenter_v1_generated_SecurityCenter_GroupAssets_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GroupAssets + /// + /// 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 GroupAssetsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GroupAssetsRequest request = new GroupAssetsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Filter = "", + GroupBy = "", + CompareDuration = new Duration(), + ReadTime = new Timestamp(), + }; + // Make the request +#pragma warning disable CS0612 + PagedEnumerable response = securityCenterClient.GroupAssets(request); +#pragma warning restore CS0612 + + // Iterate over all response items, lazily performing RPCs as required + foreach (GroupResult 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 (GroupAssetsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 securitycenter_v1_generated_SecurityCenter_GroupAssets_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsAsyncSnippet.g.cs new file mode 100755 index 000000000000..aa3ee663dbb5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GroupFindings_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GroupFindingsAsync + /// + /// 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 GroupFindingsAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]"; + string groupBy = ""; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.GroupFindingsAsync(parent, groupBy); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((GroupResult 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((GroupFindingsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 securitycenter_v1_generated_SecurityCenter_GroupFindings_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..817668dfa888 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,87 @@ +// 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 securitycenter_v1_generated_SecurityCenter_GroupFindings_async] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GroupFindingsAsync + /// + /// 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 GroupFindingsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GroupFindingsRequest request = new GroupFindingsRequest + { + ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + Filter = "", + GroupBy = "", + ReadTime = new Timestamp(), + CompareDuration = new Duration(), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.GroupFindingsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((GroupResult 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((GroupFindingsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 securitycenter_v1_generated_SecurityCenter_GroupFindings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..14d6e4f1a380 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsRequestObjectSnippet.g.cs @@ -0,0 +1,85 @@ +// 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 securitycenter_v1_generated_SecurityCenter_GroupFindings_sync] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GroupFindings + /// + /// 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 GroupFindingsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GroupFindingsRequest request = new GroupFindingsRequest + { + ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + Filter = "", + GroupBy = "", + ReadTime = new Timestamp(), + CompareDuration = new Duration(), + }; + // Make the request + PagedEnumerable response = securityCenterClient.GroupFindings(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (GroupResult 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 (GroupFindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 securitycenter_v1_generated_SecurityCenter_GroupFindings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..0e8077831cbb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_GroupFindings_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GroupFindingsAsync + /// + /// 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 GroupFindingsResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"); + string groupBy = ""; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.GroupFindingsAsync(parent, groupBy); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((GroupResult 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((GroupFindingsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 securitycenter_v1_generated_SecurityCenter_GroupFindings_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..4a72a13be63d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_GroupFindings_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GroupFindings + /// + /// 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 GroupFindingsResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"); + string groupBy = ""; + // Make the request + PagedEnumerable response = securityCenterClient.GroupFindings(parent, groupBy); + + // Iterate over all response items, lazily performing RPCs as required + foreach (GroupResult 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 (GroupFindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 securitycenter_v1_generated_SecurityCenter_GroupFindings_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsSnippet.g.cs new file mode 100755 index 000000000000..206a2c6af0c7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.GroupFindingsSnippet.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 securitycenter_v1_generated_SecurityCenter_GroupFindings_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for GroupFindings + /// + /// 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 GroupFindings() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]"; + string groupBy = ""; + // Make the request + PagedEnumerable response = securityCenterClient.GroupFindings(parent, groupBy); + + // Iterate over all response items, lazily performing RPCs as required + foreach (GroupResult 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 (GroupFindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 securitycenter_v1_generated_SecurityCenter_GroupFindings_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAssetsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAssetsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..f31763901675 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAssetsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,91 @@ +// 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 securitycenter_v1_generated_SecurityCenter_ListAssets_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListAssetsAsync + /// + /// 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 ListAssetsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListAssetsRequest request = new ListAssetsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Filter = "", + OrderBy = "", + ReadTime = new Timestamp(), + CompareDuration = new Duration(), + FieldMask = new FieldMask(), + }; + // Make the request +#pragma warning disable CS0612 + PagedAsyncEnumerable response = securityCenterClient.ListAssetsAsync(request); +#pragma warning restore CS0612 + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ListAssetsResponse.Types.ListAssetsResult 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((ListAssetsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ListAssetsResponse.Types.ListAssetsResult 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 (ListAssetsResponse.Types.ListAssetsResult 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 securitycenter_v1_generated_SecurityCenter_ListAssets_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAssetsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAssetsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..358f8c35befc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAssetsRequestObjectSnippet.g.cs @@ -0,0 +1,89 @@ +// 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 securitycenter_v1_generated_SecurityCenter_ListAssets_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListAssets + /// + /// 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 ListAssetsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListAssetsRequest request = new ListAssetsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Filter = "", + OrderBy = "", + ReadTime = new Timestamp(), + CompareDuration = new Duration(), + FieldMask = new FieldMask(), + }; + // Make the request +#pragma warning disable CS0612 + PagedEnumerable response = securityCenterClient.ListAssets(request); +#pragma warning restore CS0612 + + // Iterate over all response items, lazily performing RPCs as required + foreach (ListAssetsResponse.Types.ListAssetsResult 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 (ListAssetsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ListAssetsResponse.Types.ListAssetsResult 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 (ListAssetsResponse.Types.ListAssetsResult 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 securitycenter_v1_generated_SecurityCenter_ListAssets_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsAsyncSnippet.g.cs new file mode 100755 index 000000000000..de419de7d0d9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListAttackPaths_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListAttackPathsAsync + /// + /// 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 ListAttackPathsAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListAttackPathsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AttackPath 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((ListAttackPathsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AttackPath 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 (AttackPath 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 securitycenter_v1_generated_SecurityCenter_ListAttackPaths_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..1770a5ed1f79 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListAttackPaths_async] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListAttackPathsAsync + /// + /// 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 ListAttackPathsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListAttackPathsRequest request = new ListAttackPathsRequest + { + ParentAsValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"), + Filter = "", + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListAttackPathsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AttackPath 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((ListAttackPathsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AttackPath 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 (AttackPath 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 securitycenter_v1_generated_SecurityCenter_ListAttackPaths_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c9081b75f7f1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListAttackPaths_sync] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListAttackPaths + /// + /// 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 ListAttackPathsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListAttackPathsRequest request = new ListAttackPathsRequest + { + ParentAsValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"), + Filter = "", + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListAttackPaths(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AttackPath 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 (ListAttackPathsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AttackPath 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 (AttackPath 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 securitycenter_v1_generated_SecurityCenter_ListAttackPaths_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..0086fe4dcf3f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListAttackPaths_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListAttackPathsAsync + /// + /// 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 ListAttackPathsResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ValuedResourceName parent = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListAttackPathsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AttackPath 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((ListAttackPathsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AttackPath 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 (AttackPath 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 securitycenter_v1_generated_SecurityCenter_ListAttackPaths_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..cf65fdd0ea8a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListAttackPaths_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListAttackPaths + /// + /// 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 ListAttackPathsResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ValuedResourceName parent = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListAttackPaths(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AttackPath 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 (ListAttackPathsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AttackPath 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 (AttackPath 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 securitycenter_v1_generated_SecurityCenter_ListAttackPaths_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsSnippet.g.cs new file mode 100755 index 000000000000..9d5f434ec88c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListAttackPathsSnippet.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 securitycenter_v1_generated_SecurityCenter_ListAttackPaths_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListAttackPaths + /// + /// 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 ListAttackPaths() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListAttackPaths(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AttackPath 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 (ListAttackPathsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AttackPath 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 (AttackPath 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 securitycenter_v1_generated_SecurityCenter_ListAttackPaths_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsAsyncSnippet.g.cs new file mode 100755 index 000000000000..c8821dffa8a6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListBigQueryExportsAsync + /// + /// 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 ListBigQueryExportsAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListBigQueryExportsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..266f393c803d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListBigQueryExportsAsync + /// + /// 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 ListBigQueryExportsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListBigQueryExportsRequest request = new ListBigQueryExportsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListBigQueryExportsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..1d5b4c8c84de --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListBigQueryExports + /// + /// 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 ListBigQueryExportsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListBigQueryExportsRequest request = new ListBigQueryExportsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListBigQueryExports(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..ab5b8181f738 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListBigQueryExportsAsync + /// + /// 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 ListBigQueryExportsResourceNames1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListBigQueryExportsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..685512794cb4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames1Snippet.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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListBigQueryExports + /// + /// 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 ListBigQueryExportsResourceNames1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListBigQueryExports(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..f639120609b1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListBigQueryExportsAsync + /// + /// 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 ListBigQueryExportsResourceNames2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListBigQueryExportsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..86dfb727b128 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames2Snippet.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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListBigQueryExports + /// + /// 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 ListBigQueryExportsResourceNames2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListBigQueryExports(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames3AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames3AsyncSnippet.g.cs new file mode 100755 index 000000000000..4d29fa707d23 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames3AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async_flattened_resourceNames3] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListBigQueryExportsAsync + /// + /// 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 ListBigQueryExportsResourceNames3Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListBigQueryExportsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async_flattened_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames3Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames3Snippet.g.cs new file mode 100755 index 000000000000..625306a5d5a7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsResourceNames3Snippet.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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync_flattened_resourceNames3] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListBigQueryExports + /// + /// 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 ListBigQueryExportsResourceNames3() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListBigQueryExports(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync_flattened_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsSnippet.g.cs new file mode 100755 index 000000000000..18151303ecf3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListBigQueryExportsSnippet.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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListBigQueryExports + /// + /// 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 ListBigQueryExports() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListBigQueryExports(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsyncSnippet.g.cs new file mode 100755 index 000000000000..cfac9209c318 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListDescendantEventThreatDetectionCustomModulesAsync + /// + /// 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 ListDescendantEventThreatDetectionCustomModulesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListDescendantEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..f6a26d8a05ef --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_async] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListDescendantEventThreatDetectionCustomModulesAsync + /// + /// 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 ListDescendantEventThreatDetectionCustomModulesRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListDescendantEventThreatDetectionCustomModulesRequest request = new ListDescendantEventThreatDetectionCustomModulesRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListDescendantEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..9d3547ff312e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_sync] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListDescendantEventThreatDetectionCustomModules + /// + /// 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 ListDescendantEventThreatDetectionCustomModulesRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListDescendantEventThreatDetectionCustomModulesRequest request = new ListDescendantEventThreatDetectionCustomModulesRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListDescendantEventThreatDetectionCustomModules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EventThreatDetectionCustomModule 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 (ListDescendantEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..ccb3802cdbe9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListDescendantEventThreatDetectionCustomModulesAsync + /// + /// 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 ListDescendantEventThreatDetectionCustomModulesResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListDescendantEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..9ea1e8d21d48 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListDescendantEventThreatDetectionCustomModules + /// + /// 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 ListDescendantEventThreatDetectionCustomModulesResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListDescendantEventThreatDetectionCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EventThreatDetectionCustomModule 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 (ListDescendantEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesSnippet.g.cs new file mode 100755 index 000000000000..bbc2aedccb12 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListDescendantEventThreatDetectionCustomModules + /// + /// 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 ListDescendantEventThreatDetectionCustomModules() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + // Make the request + PagedEnumerable response = securityCenterClient.ListDescendantEventThreatDetectionCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EventThreatDetectionCustomModule 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 (ListDescendantEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs new file mode 100755 index 000000000000..1d826aa75c47 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListDescendantSecurityHealthAnalyticsCustomModulesAsync + /// + /// 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 ListDescendantSecurityHealthAnalyticsCustomModulesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListDescendantSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..eef21f4c2fbc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListDescendantSecurityHealthAnalyticsCustomModulesAsync + /// + /// 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 ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = new ListDescendantSecurityHealthAnalyticsCustomModulesRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListDescendantSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..3264e05fd81f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_sync] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListDescendantSecurityHealthAnalyticsCustomModules + /// + /// 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 ListDescendantSecurityHealthAnalyticsCustomModulesRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = new ListDescendantSecurityHealthAnalyticsCustomModulesRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecurityHealthAnalyticsCustomModule 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 (ListDescendantSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..07969f0d0ac6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListDescendantSecurityHealthAnalyticsCustomModulesAsync + /// + /// 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 ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListDescendantSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..e8f3a7c41d2f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListDescendantSecurityHealthAnalyticsCustomModules + /// + /// 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 ListDescendantSecurityHealthAnalyticsCustomModulesResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecurityHealthAnalyticsCustomModule 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 (ListDescendantSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesSnippet.g.cs new file mode 100755 index 000000000000..698404509bdc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListDescendantSecurityHealthAnalyticsCustomModules + /// + /// 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 ListDescendantSecurityHealthAnalyticsCustomModules() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + // Make the request + PagedEnumerable response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecurityHealthAnalyticsCustomModule 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 (ListDescendantSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsyncSnippet.g.cs new file mode 100755 index 000000000000..f117eba21a2a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEffectiveEventThreatDetectionCustomModulesAsync + /// + /// 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 ListEffectiveEventThreatDetectionCustomModulesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EffectiveEventThreatDetectionCustomModule 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((ListEffectiveEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveEventThreatDetectionCustomModule 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 (EffectiveEventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2c106a559606 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_async] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEffectiveEventThreatDetectionCustomModulesAsync + /// + /// 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 ListEffectiveEventThreatDetectionCustomModulesRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListEffectiveEventThreatDetectionCustomModulesRequest request = new ListEffectiveEventThreatDetectionCustomModulesRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EffectiveEventThreatDetectionCustomModule 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((ListEffectiveEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveEventThreatDetectionCustomModule 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 (EffectiveEventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..b2c08d1b6771 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_sync] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEffectiveEventThreatDetectionCustomModules + /// + /// 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 ListEffectiveEventThreatDetectionCustomModulesRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListEffectiveEventThreatDetectionCustomModulesRequest request = new ListEffectiveEventThreatDetectionCustomModulesRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EffectiveEventThreatDetectionCustomModule 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 (ListEffectiveEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveEventThreatDetectionCustomModule 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 (EffectiveEventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..00e412b64fc6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEffectiveEventThreatDetectionCustomModulesAsync + /// + /// 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 ListEffectiveEventThreatDetectionCustomModulesResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EffectiveEventThreatDetectionCustomModule 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((ListEffectiveEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveEventThreatDetectionCustomModule 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 (EffectiveEventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..dd73c9771b27 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEffectiveEventThreatDetectionCustomModules + /// + /// 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 ListEffectiveEventThreatDetectionCustomModulesResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EffectiveEventThreatDetectionCustomModule 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 (ListEffectiveEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveEventThreatDetectionCustomModule 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 (EffectiveEventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesSnippet.g.cs new file mode 100755 index 000000000000..0e3ef1244f90 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEffectiveEventThreatDetectionCustomModules + /// + /// 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 ListEffectiveEventThreatDetectionCustomModules() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + // Make the request + PagedEnumerable response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EffectiveEventThreatDetectionCustomModule 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 (ListEffectiveEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveEventThreatDetectionCustomModule 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 (EffectiveEventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs new file mode 100755 index 000000000000..5f87e54d7cd9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEffectiveSecurityHealthAnalyticsCustomModulesAsync + /// + /// 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 ListEffectiveSecurityHealthAnalyticsCustomModulesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EffectiveSecurityHealthAnalyticsCustomModule 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((ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (EffectiveSecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..46c950edad38 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEffectiveSecurityHealthAnalyticsCustomModulesAsync + /// + /// 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 ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EffectiveSecurityHealthAnalyticsCustomModule 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((ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (EffectiveSecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..afa5cf83f13a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_sync] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEffectiveSecurityHealthAnalyticsCustomModules + /// + /// 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 ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (EffectiveSecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..b3c25afe109b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEffectiveSecurityHealthAnalyticsCustomModulesAsync + /// + /// 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 ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EffectiveSecurityHealthAnalyticsCustomModule 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((ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (EffectiveSecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..3cd140a44973 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEffectiveSecurityHealthAnalyticsCustomModules + /// + /// 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 ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (EffectiveSecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesSnippet.g.cs new file mode 100755 index 000000000000..55c23b3f8758 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEffectiveSecurityHealthAnalyticsCustomModules + /// + /// 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 ListEffectiveSecurityHealthAnalyticsCustomModules() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + // Make the request + PagedEnumerable response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (EffectiveSecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesAsyncSnippet.g.cs new file mode 100755 index 000000000000..0c24849bf7b9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEventThreatDetectionCustomModulesAsync + /// + /// 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 ListEventThreatDetectionCustomModulesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEventThreatDetectionCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..90b1421ffbf6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_async] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEventThreatDetectionCustomModulesAsync + /// + /// 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 ListEventThreatDetectionCustomModulesRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListEventThreatDetectionCustomModulesRequest request = new ListEventThreatDetectionCustomModulesRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEventThreatDetectionCustomModulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..fbdc423dff31 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_sync] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEventThreatDetectionCustomModules + /// + /// 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 ListEventThreatDetectionCustomModulesRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListEventThreatDetectionCustomModulesRequest request = new ListEventThreatDetectionCustomModulesRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListEventThreatDetectionCustomModules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EventThreatDetectionCustomModule 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 (ListEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..278bb909a399 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEventThreatDetectionCustomModulesAsync + /// + /// 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 ListEventThreatDetectionCustomModulesResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEventThreatDetectionCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..9f2e9afde840 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEventThreatDetectionCustomModules + /// + /// 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 ListEventThreatDetectionCustomModulesResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListEventThreatDetectionCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EventThreatDetectionCustomModule 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 (ListEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesSnippet.g.cs new file mode 100755 index 000000000000..e1ad5f5393fd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListEventThreatDetectionCustomModulesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListEventThreatDetectionCustomModules + /// + /// 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 ListEventThreatDetectionCustomModules() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + // Make the request + PagedEnumerable response = securityCenterClient.ListEventThreatDetectionCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EventThreatDetectionCustomModule 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 (ListEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListFindingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListFindingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..cabb98450cc4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListFindingsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,88 @@ +// 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 securitycenter_v1_generated_SecurityCenter_ListFindings_async] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListFindingsAsync + /// + /// 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 ListFindingsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListFindingsRequest request = new ListFindingsRequest + { + ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + Filter = "", + OrderBy = "", + ReadTime = new Timestamp(), + CompareDuration = new Duration(), + FieldMask = new FieldMask(), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListFindingsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ListFindingsResponse.Types.ListFindingsResult 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((ListFindingsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ListFindingsResponse.Types.ListFindingsResult 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 (ListFindingsResponse.Types.ListFindingsResult 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 securitycenter_v1_generated_SecurityCenter_ListFindings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListFindingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListFindingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..f327f879d7a4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListFindingsRequestObjectSnippet.g.cs @@ -0,0 +1,86 @@ +// 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 securitycenter_v1_generated_SecurityCenter_ListFindings_sync] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListFindings + /// + /// 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 ListFindingsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListFindingsRequest request = new ListFindingsRequest + { + ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + Filter = "", + OrderBy = "", + ReadTime = new Timestamp(), + CompareDuration = new Duration(), + FieldMask = new FieldMask(), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListFindings(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ListFindingsResponse.Types.ListFindingsResult 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 (ListFindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ListFindingsResponse.Types.ListFindingsResult 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 (ListFindingsResponse.Types.ListFindingsResult 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 securitycenter_v1_generated_SecurityCenter_ListFindings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsAsyncSnippet.g.cs new file mode 100755 index 000000000000..b5cf722947b1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigsAsync + /// + /// 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 ListMuteConfigsAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..5d10598a5aa8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigsAsync + /// + /// 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 ListMuteConfigsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListMuteConfigsRequest request = new ListMuteConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..f915859d4597 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigs + /// + /// 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 ListMuteConfigsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListMuteConfigsRequest request = new ListMuteConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..122e71fc9ccb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigsAsync + /// + /// 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 ListMuteConfigsResourceNames1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..bb6ac494ba05 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames1Snippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigs + /// + /// 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 ListMuteConfigsResourceNames1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..aff58384ffc0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigsAsync + /// + /// 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 ListMuteConfigsResourceNames2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..a24423b9d02e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames2Snippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigs + /// + /// 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 ListMuteConfigsResourceNames2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames3AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames3AsyncSnippet.g.cs new file mode 100755 index 000000000000..7ee49b22d510 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames3AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames3] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigsAsync + /// + /// 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 ListMuteConfigsResourceNames3Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames3Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames3Snippet.g.cs new file mode 100755 index 000000000000..ad20181a8bcc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames3Snippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames3] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigs + /// + /// 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 ListMuteConfigsResourceNames3() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames4AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames4AsyncSnippet.g.cs new file mode 100755 index 000000000000..7b75db435718 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames4AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames4] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigsAsync + /// + /// 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 ListMuteConfigsResourceNames4Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames4] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames4Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames4Snippet.g.cs new file mode 100755 index 000000000000..affde85b5c3f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames4Snippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames4] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigs + /// + /// 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 ListMuteConfigsResourceNames4() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames4] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames5AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames5AsyncSnippet.g.cs new file mode 100755 index 000000000000..ccfd682193cb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames5AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames5] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigsAsync + /// + /// 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 ListMuteConfigsResourceNames5Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames5] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames5Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames5Snippet.g.cs new file mode 100755 index 000000000000..a8b28ac0136a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames5Snippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames5] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigs + /// + /// 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 ListMuteConfigsResourceNames5() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames5] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames6AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames6AsyncSnippet.g.cs new file mode 100755 index 000000000000..469d3189d887 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames6AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames6] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigsAsync + /// + /// 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 ListMuteConfigsResourceNames6Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames6] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames6Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames6Snippet.g.cs new file mode 100755 index 000000000000..c78ce757b9ef --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsResourceNames6Snippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames6] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigs + /// + /// 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 ListMuteConfigsResourceNames6() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames6] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsSnippet.g.cs new file mode 100755 index 000000000000..13eb4092b2ea --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListMuteConfigsSnippet.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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListMuteConfigs + /// + /// 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 ListMuteConfigs() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsAsyncSnippet.g.cs new file mode 100755 index 000000000000..67c9b563dff0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListNotificationConfigsAsync + /// + /// 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 ListNotificationConfigsAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListNotificationConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((NotificationConfig 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((ListNotificationConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..fdb624070411 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListNotificationConfigsAsync + /// + /// 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 ListNotificationConfigsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListNotificationConfigsRequest request = new ListNotificationConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListNotificationConfigsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((NotificationConfig 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((ListNotificationConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..f1ecd9ede30d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListNotificationConfigs + /// + /// 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 ListNotificationConfigsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListNotificationConfigsRequest request = new ListNotificationConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListNotificationConfigs(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (NotificationConfig 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 (ListNotificationConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..35b9ae5fd04a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListNotificationConfigsAsync + /// + /// 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 ListNotificationConfigsResourceNames1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListNotificationConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((NotificationConfig 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((ListNotificationConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..7d31d8f5d09f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames1Snippet.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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListNotificationConfigs + /// + /// 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 ListNotificationConfigsResourceNames1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListNotificationConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (NotificationConfig 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 (ListNotificationConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..85a168355718 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListNotificationConfigsAsync + /// + /// 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 ListNotificationConfigsResourceNames2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListNotificationConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((NotificationConfig 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((ListNotificationConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..c257143fe38b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames2Snippet.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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListNotificationConfigs + /// + /// 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 ListNotificationConfigsResourceNames2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListNotificationConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (NotificationConfig 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 (ListNotificationConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames3AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames3AsyncSnippet.g.cs new file mode 100755 index 000000000000..54232db984cc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames3AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async_flattened_resourceNames3] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListNotificationConfigsAsync + /// + /// 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 ListNotificationConfigsResourceNames3Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListNotificationConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((NotificationConfig 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((ListNotificationConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async_flattened_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames3Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames3Snippet.g.cs new file mode 100755 index 000000000000..d5d2364afd8e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsResourceNames3Snippet.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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync_flattened_resourceNames3] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListNotificationConfigs + /// + /// 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 ListNotificationConfigsResourceNames3() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListNotificationConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (NotificationConfig 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 (ListNotificationConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync_flattened_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsSnippet.g.cs new file mode 100755 index 000000000000..df5f24c9cda6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListNotificationConfigsSnippet.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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListNotificationConfigs + /// + /// 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 ListNotificationConfigs() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListNotificationConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (NotificationConfig 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 (ListNotificationConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsAsyncSnippet.g.cs new file mode 100755 index 000000000000..046ca543154b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListResourceValueConfigsAsync + /// + /// 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 ListResourceValueConfigsAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListResourceValueConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ResourceValueConfig 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((ListResourceValueConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ResourceValueConfig 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 (ResourceValueConfig 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 securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..7a70a880c0ea --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListResourceValueConfigsAsync + /// + /// 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 ListResourceValueConfigsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListResourceValueConfigsRequest request = new ListResourceValueConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListResourceValueConfigsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ResourceValueConfig 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((ListResourceValueConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ResourceValueConfig 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 (ResourceValueConfig 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 securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..dc1a4e84a127 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListResourceValueConfigs + /// + /// 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 ListResourceValueConfigsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListResourceValueConfigsRequest request = new ListResourceValueConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListResourceValueConfigs(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ResourceValueConfig 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 (ListResourceValueConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ResourceValueConfig 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 (ResourceValueConfig 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 securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..d3f17fdfc7e9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListResourceValueConfigsAsync + /// + /// 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 ListResourceValueConfigsResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListResourceValueConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ResourceValueConfig 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((ListResourceValueConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ResourceValueConfig 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 (ResourceValueConfig 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 securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..403816982a8c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListResourceValueConfigs + /// + /// 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 ListResourceValueConfigsResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListResourceValueConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ResourceValueConfig 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 (ListResourceValueConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ResourceValueConfig 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 (ResourceValueConfig 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 securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsSnippet.g.cs new file mode 100755 index 000000000000..921bd7833ede --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListResourceValueConfigsSnippet.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 securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListResourceValueConfigs + /// + /// 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 ListResourceValueConfigs() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListResourceValueConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ResourceValueConfig 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 (ListResourceValueConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ResourceValueConfig 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 (ResourceValueConfig 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 securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs new file mode 100755 index 000000000000..ef46a345237c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSecurityHealthAnalyticsCustomModulesAsync + /// + /// 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 ListSecurityHealthAnalyticsCustomModulesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..92b5aa27b8f5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSecurityHealthAnalyticsCustomModulesAsync + /// + /// 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 ListSecurityHealthAnalyticsCustomModulesRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListSecurityHealthAnalyticsCustomModulesRequest request = new ListSecurityHealthAnalyticsCustomModulesRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..ee8fa8b9cf42 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_sync] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSecurityHealthAnalyticsCustomModules + /// + /// 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 ListSecurityHealthAnalyticsCustomModulesRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListSecurityHealthAnalyticsCustomModulesRequest request = new ListSecurityHealthAnalyticsCustomModulesRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListSecurityHealthAnalyticsCustomModules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecurityHealthAnalyticsCustomModule 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 (ListSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..ac3a10ffa41a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSecurityHealthAnalyticsCustomModulesAsync + /// + /// 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 ListSecurityHealthAnalyticsCustomModulesResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..32137d0958da --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSecurityHealthAnalyticsCustomModules + /// + /// 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 ListSecurityHealthAnalyticsCustomModulesResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListSecurityHealthAnalyticsCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecurityHealthAnalyticsCustomModule 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 (ListSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesSnippet.g.cs new file mode 100755 index 000000000000..40873dc92753 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSecurityHealthAnalyticsCustomModules + /// + /// 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 ListSecurityHealthAnalyticsCustomModules() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + // Make the request + PagedEnumerable response = securityCenterClient.ListSecurityHealthAnalyticsCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecurityHealthAnalyticsCustomModule 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 (ListSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesAsyncSnippet.g.cs new file mode 100755 index 000000000000..86444d47d42b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSources_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSourcesAsync + /// + /// 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 ListSourcesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Source 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((ListSourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 securitycenter_v1_generated_SecurityCenter_ListSources_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..cfecebcb2b06 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSources_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSourcesAsync + /// + /// 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 ListSourcesRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListSourcesRequest request = new ListSourcesRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSourcesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Source 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((ListSourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 securitycenter_v1_generated_SecurityCenter_ListSources_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..26d19ecbb188 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSources_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSources + /// + /// 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 ListSourcesRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListSourcesRequest request = new ListSourcesRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListSources(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 securitycenter_v1_generated_SecurityCenter_ListSources_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..6a63112cca61 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSources_async_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSourcesAsync + /// + /// 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 ListSourcesResourceNames1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Source 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((ListSourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 securitycenter_v1_generated_SecurityCenter_ListSources_async_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..f4f985100ce1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames1Snippet.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 securitycenter_v1_generated_SecurityCenter_ListSources_sync_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSources + /// + /// 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 ListSourcesResourceNames1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListSources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 securitycenter_v1_generated_SecurityCenter_ListSources_sync_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..13d4fd71ffb2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSources_async_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSourcesAsync + /// + /// 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 ListSourcesResourceNames2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Source 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((ListSourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 securitycenter_v1_generated_SecurityCenter_ListSources_async_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..2f11d4c7cf17 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames2Snippet.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 securitycenter_v1_generated_SecurityCenter_ListSources_sync_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSources + /// + /// 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 ListSourcesResourceNames2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListSources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 securitycenter_v1_generated_SecurityCenter_ListSources_sync_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames3AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames3AsyncSnippet.g.cs new file mode 100755 index 000000000000..a636320ce54e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames3AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSources_async_flattened_resourceNames3] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSourcesAsync + /// + /// 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 ListSourcesResourceNames3Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Source 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((ListSourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 securitycenter_v1_generated_SecurityCenter_ListSources_async_flattened_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames3Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames3Snippet.g.cs new file mode 100755 index 000000000000..bc87451a586a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesResourceNames3Snippet.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 securitycenter_v1_generated_SecurityCenter_ListSources_sync_flattened_resourceNames3] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSources + /// + /// 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 ListSourcesResourceNames3() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListSources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 securitycenter_v1_generated_SecurityCenter_ListSources_sync_flattened_resourceNames3] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesSnippet.g.cs new file mode 100755 index 000000000000..94ba18722c1f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListSourcesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListSources_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListSources + /// + /// 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 ListSources() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListSources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 securitycenter_v1_generated_SecurityCenter_ListSources_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesAsyncSnippet.g.cs new file mode 100755 index 000000000000..06277fd7f74e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListValuedResourcesAsync + /// + /// 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 ListValuedResourcesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/simulations/[SIMULATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListValuedResourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ValuedResource 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((ListValuedResourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..77840e334471 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_async] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListValuedResourcesAsync + /// + /// 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 ListValuedResourcesRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListValuedResourcesRequest request = new ListValuedResourcesRequest + { + ParentAsOrganizationSimulationName = OrganizationSimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListValuedResourcesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ValuedResource 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((ListValuedResourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..b2b3605b18a2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListValuedResources + /// + /// 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 ListValuedResourcesRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListValuedResourcesRequest request = new ListValuedResourcesRequest + { + ParentAsOrganizationSimulationName = OrganizationSimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListValuedResources(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ValuedResource 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 (ListValuedResourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..a29693625e51 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_async_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListValuedResourcesAsync + /// + /// 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 ListValuedResourcesResourceNames1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationSimulationName parent = OrganizationSimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListValuedResourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ValuedResource 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((ListValuedResourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_async_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..19bda2100caf --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames1Snippet.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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListValuedResources + /// + /// 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 ListValuedResourcesResourceNames1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationSimulationName parent = OrganizationSimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListValuedResources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ValuedResource 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 (ListValuedResourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..c54affad8c58 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_async_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListValuedResourcesAsync + /// + /// 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 ListValuedResourcesResourceNames2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SimulationName parent = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListValuedResourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ValuedResource 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((ListValuedResourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_async_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..dff7ea809aa9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesResourceNames2Snippet.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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListValuedResources + /// + /// 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 ListValuedResourcesResourceNames2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SimulationName parent = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListValuedResources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ValuedResource 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 (ListValuedResourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesSnippet.g.cs new file mode 100755 index 000000000000..2833063f4983 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ListValuedResourcesSnippet.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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecurityCenter.V1; + using System; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ListValuedResources + /// + /// 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 ListValuedResources() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/simulations/[SIMULATION]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListValuedResources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ValuedResource 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 (ListValuedResourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryAsyncSnippet.g.cs new file mode 100755 index 000000000000..5bcb69000ac8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for RunAssetDiscoveryAsync + /// + /// 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 RunAssetDiscoveryAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request +#pragma warning disable CS0612 + Operation response = await securityCenterClient.RunAssetDiscoveryAsync(parent); +#pragma warning restore CS0612 + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + RunAssetDiscoveryResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name +#pragma warning disable CS0612 + Operation retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName); +#pragma warning restore CS0612 + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..a60b84bf338a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,70 @@ +// 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 securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for RunAssetDiscoveryAsync + /// + /// 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 RunAssetDiscoveryRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + RunAssetDiscoveryRequest request = new RunAssetDiscoveryRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request +#pragma warning disable CS0612 + Operation response = await securityCenterClient.RunAssetDiscoveryAsync(request); +#pragma warning restore CS0612 + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + RunAssetDiscoveryResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name +#pragma warning disable CS0612 + Operation retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName); +#pragma warning restore CS0612 + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..b01c1a56c8d8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryRequestObjectSnippet.g.cs @@ -0,0 +1,69 @@ +// 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 securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for RunAssetDiscovery + /// + /// 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 RunAssetDiscoveryRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + RunAssetDiscoveryRequest request = new RunAssetDiscoveryRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request +#pragma warning disable CS0612 + Operation response = securityCenterClient.RunAssetDiscovery(request); +#pragma warning restore CS0612 + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + RunAssetDiscoveryResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name +#pragma warning disable CS0612 + Operation retrievedResponse = securityCenterClient.PollOnceRunAssetDiscovery(operationName); +#pragma warning restore CS0612 + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..13c6ca5e4a6e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryResourceNamesAsyncSnippet.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! + +namespace GoogleCSharpSnippets +{ + // [START securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for RunAssetDiscoveryAsync + /// + /// 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 RunAssetDiscoveryResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request +#pragma warning disable CS0612 + Operation response = await securityCenterClient.RunAssetDiscoveryAsync(parent); +#pragma warning restore CS0612 + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + RunAssetDiscoveryResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name +#pragma warning disable CS0612 + Operation retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName); +#pragma warning restore CS0612 + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..db51545c6032 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoveryResourceNamesSnippet.g.cs @@ -0,0 +1,66 @@ +// 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 securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for RunAssetDiscovery + /// + /// 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 RunAssetDiscoveryResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request +#pragma warning disable CS0612 + Operation response = securityCenterClient.RunAssetDiscovery(parent); +#pragma warning restore CS0612 + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + RunAssetDiscoveryResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name +#pragma warning disable CS0612 + Operation retrievedResponse = securityCenterClient.PollOnceRunAssetDiscovery(operationName); +#pragma warning restore CS0612 + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoverySnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoverySnippet.g.cs new file mode 100755 index 000000000000..a3680cba7dde --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.RunAssetDiscoverySnippet.g.cs @@ -0,0 +1,65 @@ +// 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 securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for RunAssetDiscovery + /// + /// 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 RunAssetDiscovery() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request +#pragma warning disable CS0612 + Operation response = securityCenterClient.RunAssetDiscovery(parent); +#pragma warning restore CS0612 + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + RunAssetDiscoveryResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name +#pragma warning disable CS0612 + Operation retrievedResponse = securityCenterClient.PollOnceRunAssetDiscovery(operationName); +#pragma warning restore CS0612 + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result; + } + } + } + // [END securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateAsyncSnippet.g.cs new file mode 100755 index 000000000000..d85f05d60ff0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_SetFindingState_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SetFindingStateAsync + /// + /// 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 SetFindingStateAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]"; + Finding.Types.State state = Finding.Types.State.Unspecified; + Timestamp startTime = new Timestamp(); + // Make the request + Finding response = await securityCenterClient.SetFindingStateAsync(name, state, startTime); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetFindingState_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..a8beb116fac7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_SetFindingState_async] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SetFindingStateAsync + /// + /// 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 SetFindingStateRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SetFindingStateRequest request = new SetFindingStateRequest + { + FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"), + State = Finding.Types.State.Unspecified, + StartTime = new Timestamp(), + }; + // Make the request + Finding response = await securityCenterClient.SetFindingStateAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetFindingState_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..11e23571697c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_SetFindingState_sync] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SetFindingState + /// + /// 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 SetFindingStateRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SetFindingStateRequest request = new SetFindingStateRequest + { + FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"), + State = Finding.Types.State.Unspecified, + StartTime = new Timestamp(), + }; + // Make the request + Finding response = securityCenterClient.SetFindingState(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetFindingState_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..d2d9c906b268 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_SetFindingState_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SetFindingStateAsync + /// + /// 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 SetFindingStateResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.Types.State state = Finding.Types.State.Unspecified; + Timestamp startTime = new Timestamp(); + // Make the request + Finding response = await securityCenterClient.SetFindingStateAsync(name, state, startTime); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetFindingState_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..955c2b6fc8b2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_SetFindingState_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SetFindingState + /// + /// 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 SetFindingStateResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.Types.State state = Finding.Types.State.Unspecified; + Timestamp startTime = new Timestamp(); + // Make the request + Finding response = securityCenterClient.SetFindingState(name, state, startTime); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetFindingState_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateSnippet.g.cs new file mode 100755 index 000000000000..c27e25360ddc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetFindingStateSnippet.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 securitycenter_v1_generated_SecurityCenter_SetFindingState_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SetFindingState + /// + /// 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 SetFindingState() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]"; + Finding.Types.State state = Finding.Types.State.Unspecified; + Timestamp startTime = new Timestamp(); + // Make the request + Finding response = securityCenterClient.SetFindingState(name, state, startTime); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetFindingState_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyAsyncSnippet.g.cs new file mode 100755 index 000000000000..66ff9d2b9307 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_SetIamPolicy_async_flattened] + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 SetIamPolicyAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + Policy policy = new Policy(); + // Make the request + Policy response = await securityCenterClient.SetIamPolicyAsync(resource, policy); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetIamPolicy_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..679c21aa5961 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.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 securitycenter_v1_generated_SecurityCenter_SetIamPolicy_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 + SecurityCenterClient securityCenterClient = await SecurityCenterClient.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 securityCenterClient.SetIamPolicyAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetIamPolicy_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..040be9ce620e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.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 securitycenter_v1_generated_SecurityCenter_SetIamPolicy_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 + SecurityCenterClient securityCenterClient = SecurityCenterClient.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 = securityCenterClient.SetIamPolicy(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetIamPolicy_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..489c9d4cc5dd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_SetIamPolicy_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 SetIamPolicyResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + Policy policy = new Policy(); + // Make the request + Policy response = await securityCenterClient.SetIamPolicyAsync(resource, policy); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetIamPolicy_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..831531813b0c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicyResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_SetIamPolicy_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 SetIamPolicyResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + Policy policy = new Policy(); + // Make the request + Policy response = securityCenterClient.SetIamPolicy(resource, policy); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetIamPolicy_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicySnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicySnippet.g.cs new file mode 100755 index 000000000000..0342e5a2812d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetIamPolicySnippet.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 securitycenter_v1_generated_SecurityCenter_SetIamPolicy_sync_flattened] + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 SetIamPolicy() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + Policy policy = new Policy(); + // Make the request + Policy response = securityCenterClient.SetIamPolicy(resource, policy); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetIamPolicy_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteAsyncSnippet.g.cs new file mode 100755 index 000000000000..7d409ce63394 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_SetMute_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SetMuteAsync + /// + /// 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 SetMuteAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]"; + Finding.Types.Mute mute = Finding.Types.Mute.Unspecified; + // Make the request + Finding response = await securityCenterClient.SetMuteAsync(name, mute); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetMute_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..46c2bdfa7f97 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_SetMute_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SetMuteAsync + /// + /// 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 SetMuteRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SetMuteRequest request = new SetMuteRequest + { + FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"), + Mute = Finding.Types.Mute.Unspecified, + }; + // Make the request + Finding response = await securityCenterClient.SetMuteAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetMute_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..814d467d4174 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_SetMute_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SetMute + /// + /// 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 SetMuteRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SetMuteRequest request = new SetMuteRequest + { + FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"), + Mute = Finding.Types.Mute.Unspecified, + }; + // Make the request + Finding response = securityCenterClient.SetMute(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetMute_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..214d9425b2e1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_SetMute_async_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SetMuteAsync + /// + /// 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 SetMuteResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.Types.Mute mute = Finding.Types.Mute.Unspecified; + // Make the request + Finding response = await securityCenterClient.SetMuteAsync(name, mute); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetMute_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..4dc27b4b3102 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_SetMute_sync_flattened_resourceNames] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SetMute + /// + /// 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 SetMuteResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.Types.Mute mute = Finding.Types.Mute.Unspecified; + // Make the request + Finding response = securityCenterClient.SetMute(name, mute); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetMute_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteSnippet.g.cs new file mode 100755 index 000000000000..78fc94ee052a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SetMuteSnippet.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 securitycenter_v1_generated_SecurityCenter_SetMute_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SetMute + /// + /// 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 SetMute() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]"; + Finding.Types.Mute mute = Finding.Types.Mute.Unspecified; + // Make the request + Finding response = securityCenterClient.SetMute(name, mute); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SetMute_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..7909d58b1702 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SimulateSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 SimulateSecurityHealthAnalyticsCustomModuleAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = ""; + CustomConfig customConfig = new CustomConfig(); + SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource(); + // Make the request + SimulateSecurityHealthAnalyticsCustomModuleResponse response = await securityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsync(parent, customConfig, resource); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..16f9f285d308 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SimulateSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 SimulateSecurityHealthAnalyticsCustomModuleRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SimulateSecurityHealthAnalyticsCustomModuleRequest request = new SimulateSecurityHealthAnalyticsCustomModuleRequest + { + Parent = "", + CustomConfig = new CustomConfig(), + Resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource(), + }; + // Make the request + SimulateSecurityHealthAnalyticsCustomModuleResponse response = await securityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..10706ea4b081 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SimulateSecurityHealthAnalyticsCustomModule + /// + /// 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 SimulateSecurityHealthAnalyticsCustomModuleRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SimulateSecurityHealthAnalyticsCustomModuleRequest request = new SimulateSecurityHealthAnalyticsCustomModuleRequest + { + Parent = "", + CustomConfig = new CustomConfig(), + Resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource(), + }; + // Make the request + SimulateSecurityHealthAnalyticsCustomModuleResponse response = securityCenterClient.SimulateSecurityHealthAnalyticsCustomModule(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleSnippet.g.cs new file mode 100755 index 000000000000..77411c34c5c0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleSnippet.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 securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for SimulateSecurityHealthAnalyticsCustomModule + /// + /// 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 SimulateSecurityHealthAnalyticsCustomModule() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = ""; + CustomConfig customConfig = new CustomConfig(); + SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource(); + // Make the request + SimulateSecurityHealthAnalyticsCustomModuleResponse response = securityCenterClient.SimulateSecurityHealthAnalyticsCustomModule(parent, customConfig, resource); + } + } + // [END securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsAsyncSnippet.g.cs new file mode 100755 index 000000000000..d795363d2f00 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_TestIamPermissions_async_flattened] + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + using System.Collections.Generic; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for TestIamPermissionsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task TestIamPermissionsAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(resource, permissions); + } + } + // [END securitycenter_v1_generated_SecurityCenter_TestIamPermissions_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..c8a99fe0e427 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.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 securitycenter_v1_generated_SecurityCenter_TestIamPermissions_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_TestIamPermissions_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..5d32badbd808 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.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 securitycenter_v1_generated_SecurityCenter_TestIamPermissions_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// 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 + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = securityCenterClient.TestIamPermissions(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_TestIamPermissions_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..bf3c691030b2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsResourceNamesAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_TestIamPermissions_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + using System.Collections.Generic; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for TestIamPermissionsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task TestIamPermissionsResourceNamesAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(resource, permissions); + } + } + // [END securitycenter_v1_generated_SecurityCenter_TestIamPermissions_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..5301848d467c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsResourceNamesSnippet.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 securitycenter_v1_generated_SecurityCenter_TestIamPermissions_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + using System.Collections.Generic; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for TestIamPermissions + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void TestIamPermissionsResourceNames() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = securityCenterClient.TestIamPermissions(resource, permissions); + } + } + // [END securitycenter_v1_generated_SecurityCenter_TestIamPermissions_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsSnippet.g.cs new file mode 100755 index 000000000000..e5c666012ca5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.TestIamPermissionsSnippet.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 securitycenter_v1_generated_SecurityCenter_TestIamPermissions_sync_flattened] + using Google.Cloud.Iam.V1; + using Google.Cloud.SecurityCenter.V1; + using System.Collections.Generic; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for TestIamPermissions + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void TestIamPermissions() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = securityCenterClient.TestIamPermissions(resource, permissions); + } + } + // [END securitycenter_v1_generated_SecurityCenter_TestIamPermissions_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportAsyncSnippet.g.cs new file mode 100755 index 000000000000..dae7c37caa12 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateBigQueryExportAsync + /// + /// 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 UpdateBigQueryExportAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + BigQueryExport bigQueryExport = new BigQueryExport(); + FieldMask updateMask = new FieldMask(); + // Make the request + BigQueryExport response = await securityCenterClient.UpdateBigQueryExportAsync(bigQueryExport, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..5239f52bab50 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_async] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateBigQueryExportAsync + /// + /// 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 UpdateBigQueryExportRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateBigQueryExportRequest request = new UpdateBigQueryExportRequest + { + BigQueryExport = new BigQueryExport(), + UpdateMask = new FieldMask(), + }; + // Make the request + BigQueryExport response = await securityCenterClient.UpdateBigQueryExportAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..fd095a99206d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_sync] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateBigQueryExport + /// + /// 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 UpdateBigQueryExportRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateBigQueryExportRequest request = new UpdateBigQueryExportRequest + { + BigQueryExport = new BigQueryExport(), + UpdateMask = new FieldMask(), + }; + // Make the request + BigQueryExport response = securityCenterClient.UpdateBigQueryExport(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportSnippet.g.cs new file mode 100755 index 000000000000..9def69208c3a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateBigQueryExportSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateBigQueryExport + /// + /// 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 UpdateBigQueryExport() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + BigQueryExport bigQueryExport = new BigQueryExport(); + FieldMask updateMask = new FieldMask(); + // Make the request + BigQueryExport response = securityCenterClient.UpdateBigQueryExport(bigQueryExport, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..334403db8a4e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateEventThreatDetectionCustomModuleAsync + /// + /// 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 UpdateEventThreatDetectionCustomModuleAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(); + FieldMask updateMask = new FieldMask(); + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.UpdateEventThreatDetectionCustomModuleAsync(eventThreatDetectionCustomModule, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..77b0058ab2a6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_async] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateEventThreatDetectionCustomModuleAsync + /// + /// 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 UpdateEventThreatDetectionCustomModuleRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateEventThreatDetectionCustomModuleRequest request = new UpdateEventThreatDetectionCustomModuleRequest + { + EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(), + UpdateMask = new FieldMask(), + }; + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.UpdateEventThreatDetectionCustomModuleAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..9a2b23f14139 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_sync] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateEventThreatDetectionCustomModule + /// + /// 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 UpdateEventThreatDetectionCustomModuleRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateEventThreatDetectionCustomModuleRequest request = new UpdateEventThreatDetectionCustomModuleRequest + { + EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(), + UpdateMask = new FieldMask(), + }; + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.UpdateEventThreatDetectionCustomModule(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleSnippet.g.cs new file mode 100755 index 000000000000..74b61c98742c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateEventThreatDetectionCustomModuleSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateEventThreatDetectionCustomModule + /// + /// 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 UpdateEventThreatDetectionCustomModule() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(); + FieldMask updateMask = new FieldMask(); + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.UpdateEventThreatDetectionCustomModule(eventThreatDetectionCustomModule, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemAsyncSnippet.g.cs new file mode 100755 index 000000000000..d94841ec8bf5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateExternalSystemAsync + /// + /// 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 UpdateExternalSystemAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ExternalSystem externalSystem = new ExternalSystem(); + FieldMask updateMask = new FieldMask(); + // Make the request + ExternalSystem response = await securityCenterClient.UpdateExternalSystemAsync(externalSystem, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..542f0985f22c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_async] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateExternalSystemAsync + /// + /// 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 UpdateExternalSystemRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateExternalSystemRequest request = new UpdateExternalSystemRequest + { + ExternalSystem = new ExternalSystem(), + UpdateMask = new FieldMask(), + }; + // Make the request + ExternalSystem response = await securityCenterClient.UpdateExternalSystemAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..69f2779a43c0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_sync] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateExternalSystem + /// + /// 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 UpdateExternalSystemRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateExternalSystemRequest request = new UpdateExternalSystemRequest + { + ExternalSystem = new ExternalSystem(), + UpdateMask = new FieldMask(), + }; + // Make the request + ExternalSystem response = securityCenterClient.UpdateExternalSystem(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemSnippet.g.cs new file mode 100755 index 000000000000..0abbb4b2b6af --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateExternalSystemSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateExternalSystem + /// + /// 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 UpdateExternalSystem() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ExternalSystem externalSystem = new ExternalSystem(); + FieldMask updateMask = new FieldMask(); + // Make the request + ExternalSystem response = securityCenterClient.UpdateExternalSystem(externalSystem, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingAsyncSnippet.g.cs new file mode 100755 index 000000000000..6ffc7a3c5697 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateFinding_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateFindingAsync + /// + /// 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 UpdateFindingAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + Finding finding = new Finding(); + // Make the request + Finding response = await securityCenterClient.UpdateFindingAsync(finding); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateFinding_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..ee532303b984 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateFinding_async] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateFindingAsync + /// + /// 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 UpdateFindingRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateFindingRequest request = new UpdateFindingRequest + { + Finding = new Finding(), + UpdateMask = new FieldMask(), + }; + // Make the request + Finding response = await securityCenterClient.UpdateFindingAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateFinding_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..b5567e1b854c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateFinding_sync] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateFinding + /// + /// 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 UpdateFindingRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateFindingRequest request = new UpdateFindingRequest + { + Finding = new Finding(), + UpdateMask = new FieldMask(), + }; + // Make the request + Finding response = securityCenterClient.UpdateFinding(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateFinding_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingSnippet.g.cs new file mode 100755 index 000000000000..bab3ce0ca8e3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateFindingSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateFinding_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateFinding + /// + /// 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 UpdateFinding() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + Finding finding = new Finding(); + // Make the request + Finding response = securityCenterClient.UpdateFinding(finding); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateFinding_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigAsyncSnippet.g.cs new file mode 100755 index 000000000000..18abb3ebd979 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateMuteConfigAsync + /// + /// 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 UpdateMuteConfigAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + MuteConfig muteConfig = new MuteConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + MuteConfig response = await securityCenterClient.UpdateMuteConfigAsync(muteConfig, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..c11625847bfa --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_async] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateMuteConfigAsync + /// + /// 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 UpdateMuteConfigRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateMuteConfigRequest request = new UpdateMuteConfigRequest + { + MuteConfig = new MuteConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + MuteConfig response = await securityCenterClient.UpdateMuteConfigAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..bb60406f7df7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_sync] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateMuteConfig + /// + /// 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 UpdateMuteConfigRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateMuteConfigRequest request = new UpdateMuteConfigRequest + { + MuteConfig = new MuteConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + MuteConfig response = securityCenterClient.UpdateMuteConfig(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigSnippet.g.cs new file mode 100755 index 000000000000..71d363ac17fb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateMuteConfigSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateMuteConfig + /// + /// 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 UpdateMuteConfig() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + MuteConfig muteConfig = new MuteConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + MuteConfig response = securityCenterClient.UpdateMuteConfig(muteConfig, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig1AsyncSnippet.g.cs new file mode 100755 index 000000000000..0fda574ba95f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig1AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_async_flattened1] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateNotificationConfigAsync + /// + /// 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 UpdateNotificationConfig1Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_async_flattened1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig1Snippet.g.cs new file mode 100755 index 000000000000..1f8a42f9a2b2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig1Snippet.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 securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_sync_flattened1] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateNotificationConfig + /// + /// 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 UpdateNotificationConfig1() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.UpdateNotificationConfig(notificationConfig); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_sync_flattened1] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig2AsyncSnippet.g.cs new file mode 100755 index 000000000000..5ae2abe95f20 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig2AsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_async_flattened2] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateNotificationConfigAsync + /// + /// 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 UpdateNotificationConfig2Async() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + NotificationConfig notificationConfig = new NotificationConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(notificationConfig, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_async_flattened2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig2Snippet.g.cs new file mode 100755 index 000000000000..ae8d92b04e18 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfig2Snippet.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 securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_sync_flattened2] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateNotificationConfig + /// + /// 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 UpdateNotificationConfig2() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + NotificationConfig notificationConfig = new NotificationConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + NotificationConfig response = securityCenterClient.UpdateNotificationConfig(notificationConfig, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_sync_flattened2] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..3b4b4b1adb4a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_async] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateNotificationConfigAsync + /// + /// 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 UpdateNotificationConfigRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateNotificationConfigRequest request = new UpdateNotificationConfigRequest + { + NotificationConfig = new NotificationConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..042d606224d4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateNotificationConfigRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_sync] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateNotificationConfig + /// + /// 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 UpdateNotificationConfigRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateNotificationConfigRequest request = new UpdateNotificationConfigRequest + { + NotificationConfig = new NotificationConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + NotificationConfig response = securityCenterClient.UpdateNotificationConfig(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsAsyncSnippet.g.cs new file mode 100755 index 000000000000..ab7bd4cf5c39 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateOrganizationSettingsAsync + /// + /// 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 UpdateOrganizationSettingsAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationSettings organizationSettings = new OrganizationSettings(); + // Make the request + OrganizationSettings response = await securityCenterClient.UpdateOrganizationSettingsAsync(organizationSettings); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2d654c7ea6a7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_async] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateOrganizationSettingsAsync + /// + /// 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 UpdateOrganizationSettingsRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateOrganizationSettingsRequest request = new UpdateOrganizationSettingsRequest + { + OrganizationSettings = new OrganizationSettings(), + UpdateMask = new FieldMask(), + }; + // Make the request + OrganizationSettings response = await securityCenterClient.UpdateOrganizationSettingsAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..7faf2b62ebd4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_sync] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateOrganizationSettings + /// + /// 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 UpdateOrganizationSettingsRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateOrganizationSettingsRequest request = new UpdateOrganizationSettingsRequest + { + OrganizationSettings = new OrganizationSettings(), + UpdateMask = new FieldMask(), + }; + // Make the request + OrganizationSettings response = securityCenterClient.UpdateOrganizationSettings(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsSnippet.g.cs new file mode 100755 index 000000000000..6ca80abd8086 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateOrganizationSettingsSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateOrganizationSettings + /// + /// 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 UpdateOrganizationSettings() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationSettings organizationSettings = new OrganizationSettings(); + // Make the request + OrganizationSettings response = securityCenterClient.UpdateOrganizationSettings(organizationSettings); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigAsyncSnippet.g.cs new file mode 100755 index 000000000000..1ec25cbd8568 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateResourceValueConfigAsync + /// + /// 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 UpdateResourceValueConfigAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ResourceValueConfig resourceValueConfig = new ResourceValueConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + ResourceValueConfig response = await securityCenterClient.UpdateResourceValueConfigAsync(resourceValueConfig, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..953039248aa1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_async] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateResourceValueConfigAsync + /// + /// 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 UpdateResourceValueConfigRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateResourceValueConfigRequest request = new UpdateResourceValueConfigRequest + { + ResourceValueConfig = new ResourceValueConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + ResourceValueConfig response = await securityCenterClient.UpdateResourceValueConfigAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..4b287317502c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_sync] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateResourceValueConfig + /// + /// 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 UpdateResourceValueConfigRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateResourceValueConfigRequest request = new UpdateResourceValueConfigRequest + { + ResourceValueConfig = new ResourceValueConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + ResourceValueConfig response = securityCenterClient.UpdateResourceValueConfig(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigSnippet.g.cs new file mode 100755 index 000000000000..80fbc26ec1ee --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateResourceValueConfigSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateResourceValueConfig + /// + /// 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 UpdateResourceValueConfig() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ResourceValueConfig resourceValueConfig = new ResourceValueConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + ResourceValueConfig response = securityCenterClient.UpdateResourceValueConfig(resourceValueConfig, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs new file mode 100755 index 000000000000..f0ae88a4fd45 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 UpdateSecurityHealthAnalyticsCustomModuleAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(); + FieldMask updateMask = new FieldMask(); + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsync(securityHealthAnalyticsCustomModule, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..f6a5d26d951b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_async] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateSecurityHealthAnalyticsCustomModuleAsync + /// + /// 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 UpdateSecurityHealthAnalyticsCustomModuleRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateSecurityHealthAnalyticsCustomModuleRequest request = new UpdateSecurityHealthAnalyticsCustomModuleRequest + { + SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(), + UpdateMask = new FieldMask(), + }; + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c84bd9b465e5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_sync] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateSecurityHealthAnalyticsCustomModule + /// + /// 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 UpdateSecurityHealthAnalyticsCustomModuleRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateSecurityHealthAnalyticsCustomModuleRequest request = new UpdateSecurityHealthAnalyticsCustomModuleRequest + { + SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(), + UpdateMask = new FieldMask(), + }; + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.UpdateSecurityHealthAnalyticsCustomModule(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleSnippet.g.cs new file mode 100755 index 000000000000..15234f91c608 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateSecurityHealthAnalyticsCustomModule + /// + /// 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 UpdateSecurityHealthAnalyticsCustomModule() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(); + FieldMask updateMask = new FieldMask(); + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.UpdateSecurityHealthAnalyticsCustomModule(securityHealthAnalyticsCustomModule, updateMask); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksAsyncSnippet.g.cs new file mode 100755 index 000000000000..2dd1b449fbf9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateSecurityMarksAsync + /// + /// 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 UpdateSecurityMarksAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityMarks securityMarks = new SecurityMarks(); + // Make the request + SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(securityMarks); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..45ab7c7e7c1b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_async] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateSecurityMarksAsync + /// + /// 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 UpdateSecurityMarksRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateSecurityMarksRequest request = new UpdateSecurityMarksRequest + { + SecurityMarks = new SecurityMarks(), + UpdateMask = new FieldMask(), + StartTime = new Timestamp(), + }; + // Make the request + SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..e66bc8ccece4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_sync] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateSecurityMarks + /// + /// 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 UpdateSecurityMarksRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateSecurityMarksRequest request = new UpdateSecurityMarksRequest + { + SecurityMarks = new SecurityMarks(), + UpdateMask = new FieldMask(), + StartTime = new Timestamp(), + }; + // Make the request + SecurityMarks response = securityCenterClient.UpdateSecurityMarks(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksSnippet.g.cs new file mode 100755 index 000000000000..31782c706055 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSecurityMarksSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateSecurityMarks + /// + /// 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 UpdateSecurityMarks() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityMarks securityMarks = new SecurityMarks(); + // Make the request + SecurityMarks response = securityCenterClient.UpdateSecurityMarks(securityMarks); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceAsyncSnippet.g.cs new file mode 100755 index 000000000000..085a256441dc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateSource_async_flattened] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateSourceAsync + /// + /// 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 UpdateSourceAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + Source source = new Source(); + // Make the request + Source response = await securityCenterClient.UpdateSourceAsync(source); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateSource_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..acee1ffde949 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateSource_async] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateSourceAsync + /// + /// 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 UpdateSourceRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateSourceRequest request = new UpdateSourceRequest + { + Source = new Source(), + UpdateMask = new FieldMask(), + }; + // Make the request + Source response = await securityCenterClient.UpdateSourceAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateSource_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..482e3387f554 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateSource_sync] + using Google.Cloud.SecurityCenter.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateSource + /// + /// 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 UpdateSourceRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateSourceRequest request = new UpdateSourceRequest + { + Source = new Source(), + UpdateMask = new FieldMask(), + }; + // Make the request + Source response = securityCenterClient.UpdateSource(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateSource_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceSnippet.g.cs new file mode 100755 index 000000000000..cb02586132a0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.UpdateSourceSnippet.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 securitycenter_v1_generated_SecurityCenter_UpdateSource_sync_flattened] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for UpdateSource + /// + /// 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 UpdateSource() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + Source source = new Source(); + // Make the request + Source response = securityCenterClient.UpdateSource(source); + } + } + // [END securitycenter_v1_generated_SecurityCenter_UpdateSource_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ValidateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ValidateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..eae685a97fdd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ValidateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.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 securitycenter_v1_generated_SecurityCenter_ValidateEventThreatDetectionCustomModule_async] + using Google.Cloud.SecurityCenter.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ValidateEventThreatDetectionCustomModuleAsync + /// + /// 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 ValidateEventThreatDetectionCustomModuleRequestObjectAsync() + { + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ValidateEventThreatDetectionCustomModuleRequest request = new ValidateEventThreatDetectionCustomModuleRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + RawText = "", + Type = "", + }; + // Make the request + ValidateEventThreatDetectionCustomModuleResponse response = await securityCenterClient.ValidateEventThreatDetectionCustomModuleAsync(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_ValidateEventThreatDetectionCustomModule_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ValidateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ValidateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..3d383a072dd1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/SecurityCenterClient.ValidateEventThreatDetectionCustomModuleRequestObjectSnippet.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 securitycenter_v1_generated_SecurityCenter_ValidateEventThreatDetectionCustomModule_sync] + using Google.Cloud.SecurityCenter.V1; + + public sealed partial class GeneratedSecurityCenterClientSnippets + { + /// Snippet for ValidateEventThreatDetectionCustomModule + /// + /// 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 ValidateEventThreatDetectionCustomModuleRequestObject() + { + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ValidateEventThreatDetectionCustomModuleRequest request = new ValidateEventThreatDetectionCustomModuleRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + RawText = "", + Type = "", + }; + // Make the request + ValidateEventThreatDetectionCustomModuleResponse response = securityCenterClient.ValidateEventThreatDetectionCustomModule(request); + } + } + // [END securitycenter_v1_generated_SecurityCenter_ValidateEventThreatDetectionCustomModule_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/snippet_metadata_google.cloud.securitycenter.v1.json b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/snippet_metadata_google.cloud.securitycenter.v1.json new file mode 100755 index 000000000000..41a0b10e8d70 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.GeneratedSnippets/snippet_metadata_google.cloud.securitycenter.v1.json @@ -0,0 +1,20544 @@ +{ + "clientLibrary": { + "name": "Google.Cloud.SecurityCenter.V1", + "language": "C_SHARP", + "apis": [ + { + "id": "google.cloud.securitycenter.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_sync", + "title": "BulkMuteFindingsRequestObject", + "description": "Snippet for BulkMuteFindings", + "file": "SecurityCenterClient.BulkMuteFindingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BulkMuteFindings", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.BulkMuteFindings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.BulkMuteFindingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "BulkMuteFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BulkMuteFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 37, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_async", + "title": "BulkMuteFindingsRequestObjectAsync", + "description": "Snippet for BulkMuteFindingsAsync", + "file": "SecurityCenterClient.BulkMuteFindingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BulkMuteFindingsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.BulkMuteFindingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.BulkMuteFindingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "BulkMuteFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BulkMuteFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 38, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_sync_flattened", + "title": "BulkMuteFindings", + "description": "Snippet for BulkMuteFindings", + "file": "SecurityCenterClient.BulkMuteFindingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BulkMuteFindings", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.BulkMuteFindings", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "BulkMuteFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BulkMuteFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_async_flattened", + "title": "BulkMuteFindingsAsync", + "description": "Snippet for BulkMuteFindingsAsync", + "file": "SecurityCenterClient.BulkMuteFindingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BulkMuteFindingsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.BulkMuteFindingsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "BulkMuteFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BulkMuteFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_sync_flattened_resourceNames", + "title": "BulkMuteFindingsResourceNames", + "description": "Snippet for BulkMuteFindings", + "file": "SecurityCenterClient.BulkMuteFindingsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BulkMuteFindings", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.BulkMuteFindings", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "BulkMuteFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BulkMuteFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_async_flattened_resourceNames", + "title": "BulkMuteFindingsResourceNamesAsync", + "description": "Snippet for BulkMuteFindingsAsync", + "file": "SecurityCenterClient.BulkMuteFindingsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BulkMuteFindingsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.BulkMuteFindingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "BulkMuteFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BulkMuteFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 38, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_sync", + "title": "CreateSecurityHealthAnalyticsCustomModuleRequestObject", + "description": "Snippet for CreateSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateSecurityHealthAnalyticsCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async", + "title": "CreateSecurityHealthAnalyticsCustomModuleRequestObjectAsync", + "description": "Snippet for CreateSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateSecurityHealthAnalyticsCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_sync_flattened", + "title": "CreateSecurityHealthAnalyticsCustomModule", + "description": "Snippet for CreateSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "name": "securityHealthAnalyticsCustomModule" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async_flattened", + "title": "CreateSecurityHealthAnalyticsCustomModuleAsync", + "description": "Snippet for CreateSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "name": "securityHealthAnalyticsCustomModule" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_sync_flattened_resourceNames", + "title": "CreateSecurityHealthAnalyticsCustomModuleResourceNames", + "description": "Snippet for CreateSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsSettingsName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "name": "securityHealthAnalyticsCustomModule" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async_flattened_resourceNames", + "title": "CreateSecurityHealthAnalyticsCustomModuleResourceNamesAsync", + "description": "Snippet for CreateSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsSettingsName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "name": "securityHealthAnalyticsCustomModule" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSource_sync", + "title": "CreateSourceRequestObject", + "description": "Snippet for CreateSource", + "file": "SecurityCenterClient.CreateSourceRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSource", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateSource", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateSourceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Source", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSource_async", + "title": "CreateSourceRequestObjectAsync", + "description": "Snippet for CreateSourceAsync", + "file": "SecurityCenterClient.CreateSourceRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSourceAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateSourceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateSourceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSource_sync_flattened", + "title": "CreateSource", + "description": "Snippet for CreateSource", + "file": "SecurityCenterClient.CreateSourceSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSource", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateSource", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Source", + "name": "source" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Source", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSource_async_flattened", + "title": "CreateSourceAsync", + "description": "Snippet for CreateSourceAsync", + "file": "SecurityCenterClient.CreateSourceAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSourceAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateSourceAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Source", + "name": "source" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSource_sync_flattened_resourceNames", + "title": "CreateSourceResourceNames", + "description": "Snippet for CreateSource", + "file": "SecurityCenterClient.CreateSourceResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSource", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateSource", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Source", + "name": "source" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Source", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSource_async_flattened_resourceNames", + "title": "CreateSourceResourceNamesAsync", + "description": "Snippet for CreateSourceAsync", + "file": "SecurityCenterClient.CreateSourceResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSourceAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateSourceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Source", + "name": "source" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateFinding_sync", + "title": "CreateFindingRequestObject", + "description": "Snippet for CreateFinding", + "file": "SecurityCenterClient.CreateFindingRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFinding", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateFinding", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateFindingRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Finding", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateFinding", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 34, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateFinding_async", + "title": "CreateFindingRequestObjectAsync", + "description": "Snippet for CreateFindingAsync", + "file": "SecurityCenterClient.CreateFindingRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFindingAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateFindingAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateFindingRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateFinding", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateFinding_sync_flattened", + "title": "CreateFinding", + "description": "Snippet for CreateFinding", + "file": "SecurityCenterClient.CreateFindingSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFinding", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateFinding", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "findingId" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Finding", + "name": "finding" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Finding", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateFinding", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateFinding_async_flattened", + "title": "CreateFindingAsync", + "description": "Snippet for CreateFindingAsync", + "file": "SecurityCenterClient.CreateFindingAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFindingAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateFindingAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "findingId" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Finding", + "name": "finding" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateFinding", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateFinding_sync_flattened_resourceNames", + "title": "CreateFindingResourceNames", + "description": "Snippet for CreateFinding", + "file": "SecurityCenterClient.CreateFindingResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFinding", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateFinding", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SourceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "findingId" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Finding", + "name": "finding" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Finding", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateFinding", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateFinding_async_flattened_resourceNames", + "title": "CreateFindingResourceNamesAsync", + "description": "Snippet for CreateFindingAsync", + "file": "SecurityCenterClient.CreateFindingResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFindingAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateFindingAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SourceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "findingId" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Finding", + "name": "finding" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateFinding", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync", + "title": "CreateMuteConfigRequestObject", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateMuteConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async", + "title": "CreateMuteConfigRequestObjectAsync", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateMuteConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 36, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1", + "title": "CreateMuteConfig1", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1", + "title": "CreateMuteConfig1Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames1", + "title": "CreateMuteConfig1ResourceNames1", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig1ResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames1", + "title": "CreateMuteConfig1ResourceNames1Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig1ResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames2", + "title": "CreateMuteConfig1ResourceNames2", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig1ResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames2", + "title": "CreateMuteConfig1ResourceNames2Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig1ResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames3", + "title": "CreateMuteConfig1ResourceNames3", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig1ResourceNames3Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames3", + "title": "CreateMuteConfig1ResourceNames3Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig1ResourceNames3AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames4", + "title": "CreateMuteConfig1ResourceNames4", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig1ResourceNames4Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.OrganizationLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames4", + "title": "CreateMuteConfig1ResourceNames4Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig1ResourceNames4AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.OrganizationLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames5", + "title": "CreateMuteConfig1ResourceNames5", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig1ResourceNames5Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.FolderLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames5", + "title": "CreateMuteConfig1ResourceNames5Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig1ResourceNames5AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.FolderLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened1_resourceNames6", + "title": "CreateMuteConfig1ResourceNames6", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig1ResourceNames6Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened1_resourceNames6", + "title": "CreateMuteConfig1ResourceNames6Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig1ResourceNames6AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2", + "title": "CreateMuteConfig2", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2", + "title": "CreateMuteConfig2Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames1", + "title": "CreateMuteConfig2ResourceNames1", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig2ResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames1", + "title": "CreateMuteConfig2ResourceNames1Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig2ResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames2", + "title": "CreateMuteConfig2ResourceNames2", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig2ResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames2", + "title": "CreateMuteConfig2ResourceNames2Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig2ResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames3", + "title": "CreateMuteConfig2ResourceNames3", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig2ResourceNames3Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames3", + "title": "CreateMuteConfig2ResourceNames3Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig2ResourceNames3AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames4", + "title": "CreateMuteConfig2ResourceNames4", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig2ResourceNames4Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.OrganizationLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames4", + "title": "CreateMuteConfig2ResourceNames4Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig2ResourceNames4AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.OrganizationLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames5", + "title": "CreateMuteConfig2ResourceNames5", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig2ResourceNames5Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.FolderLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames5", + "title": "CreateMuteConfig2ResourceNames5Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig2ResourceNames5AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.FolderLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync_flattened2_resourceNames6", + "title": "CreateMuteConfig2ResourceNames6", + "description": "Snippet for CreateMuteConfig", + "file": "SecurityCenterClient.CreateMuteConfig2ResourceNames6Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async_flattened2_resourceNames6", + "title": "CreateMuteConfig2ResourceNames6Async", + "description": "Snippet for CreateMuteConfigAsync", + "file": "SecurityCenterClient.CreateMuteConfig2ResourceNames6AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "System.String", + "name": "muteConfigId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync", + "title": "CreateNotificationConfigRequestObject", + "description": "Snippet for CreateNotificationConfig", + "file": "SecurityCenterClient.CreateNotificationConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateNotificationConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async", + "title": "CreateNotificationConfigRequestObjectAsync", + "description": "Snippet for CreateNotificationConfigAsync", + "file": "SecurityCenterClient.CreateNotificationConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateNotificationConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 36, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened1", + "title": "CreateNotificationConfig1", + "description": "Snippet for CreateNotificationConfig", + "file": "SecurityCenterClient.CreateNotificationConfig1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfig", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "configId" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened1", + "title": "CreateNotificationConfig1Async", + "description": "Snippet for CreateNotificationConfigAsync", + "file": "SecurityCenterClient.CreateNotificationConfig1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "configId" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened1_resourceNames1", + "title": "CreateNotificationConfig1ResourceNames1", + "description": "Snippet for CreateNotificationConfig", + "file": "SecurityCenterClient.CreateNotificationConfig1ResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "System.String", + "name": "configId" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened1_resourceNames1", + "title": "CreateNotificationConfig1ResourceNames1Async", + "description": "Snippet for CreateNotificationConfigAsync", + "file": "SecurityCenterClient.CreateNotificationConfig1ResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "System.String", + "name": "configId" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened1_resourceNames2", + "title": "CreateNotificationConfig1ResourceNames2", + "description": "Snippet for CreateNotificationConfig", + "file": "SecurityCenterClient.CreateNotificationConfig1ResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "name": "parent" + }, + { + "type": "System.String", + "name": "configId" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened1_resourceNames2", + "title": "CreateNotificationConfig1ResourceNames2Async", + "description": "Snippet for CreateNotificationConfigAsync", + "file": "SecurityCenterClient.CreateNotificationConfig1ResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "name": "parent" + }, + { + "type": "System.String", + "name": "configId" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened1_resourceNames3", + "title": "CreateNotificationConfig1ResourceNames3", + "description": "Snippet for CreateNotificationConfig", + "file": "SecurityCenterClient.CreateNotificationConfig1ResourceNames3Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "System.String", + "name": "configId" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened1_resourceNames3", + "title": "CreateNotificationConfig1ResourceNames3Async", + "description": "Snippet for CreateNotificationConfigAsync", + "file": "SecurityCenterClient.CreateNotificationConfig1ResourceNames3AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "System.String", + "name": "configId" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened2", + "title": "CreateNotificationConfig2", + "description": "Snippet for CreateNotificationConfig", + "file": "SecurityCenterClient.CreateNotificationConfig2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfig", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened2", + "title": "CreateNotificationConfig2Async", + "description": "Snippet for CreateNotificationConfigAsync", + "file": "SecurityCenterClient.CreateNotificationConfig2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened2_resourceNames1", + "title": "CreateNotificationConfig2ResourceNames1", + "description": "Snippet for CreateNotificationConfig", + "file": "SecurityCenterClient.CreateNotificationConfig2ResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened2_resourceNames1", + "title": "CreateNotificationConfig2ResourceNames1Async", + "description": "Snippet for CreateNotificationConfigAsync", + "file": "SecurityCenterClient.CreateNotificationConfig2ResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened2_resourceNames2", + "title": "CreateNotificationConfig2ResourceNames2", + "description": "Snippet for CreateNotificationConfig", + "file": "SecurityCenterClient.CreateNotificationConfig2ResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened2_resourceNames2", + "title": "CreateNotificationConfig2ResourceNames2Async", + "description": "Snippet for CreateNotificationConfigAsync", + "file": "SecurityCenterClient.CreateNotificationConfig2ResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync_flattened2_resourceNames3", + "title": "CreateNotificationConfig2ResourceNames3", + "description": "Snippet for CreateNotificationConfig", + "file": "SecurityCenterClient.CreateNotificationConfig2ResourceNames3Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async_flattened2_resourceNames3", + "title": "CreateNotificationConfig2ResourceNames3Async", + "description": "Snippet for CreateNotificationConfigAsync", + "file": "SecurityCenterClient.CreateNotificationConfig2ResourceNames3AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_sync", + "title": "DeleteMuteConfigRequestObject", + "description": "Snippet for DeleteMuteConfig", + "file": "SecurityCenterClient.DeleteMuteConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteMuteConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.DeleteMuteConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_async", + "title": "DeleteMuteConfigRequestObjectAsync", + "description": "Snippet for DeleteMuteConfigAsync", + "file": "SecurityCenterClient.DeleteMuteConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.DeleteMuteConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_sync_flattened", + "title": "DeleteMuteConfig", + "description": "Snippet for DeleteMuteConfig", + "file": "SecurityCenterClient.DeleteMuteConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteMuteConfig", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_async_flattened", + "title": "DeleteMuteConfigAsync", + "description": "Snippet for DeleteMuteConfigAsync", + "file": "SecurityCenterClient.DeleteMuteConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_sync_flattened_resourceNames", + "title": "DeleteMuteConfigResourceNames", + "description": "Snippet for DeleteMuteConfig", + "file": "SecurityCenterClient.DeleteMuteConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteMuteConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_async_flattened_resourceNames", + "title": "DeleteMuteConfigResourceNamesAsync", + "description": "Snippet for DeleteMuteConfigAsync", + "file": "SecurityCenterClient.DeleteMuteConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_sync", + "title": "DeleteNotificationConfigRequestObject", + "description": "Snippet for DeleteNotificationConfig", + "file": "SecurityCenterClient.DeleteNotificationConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteNotificationConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.DeleteNotificationConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_async", + "title": "DeleteNotificationConfigRequestObjectAsync", + "description": "Snippet for DeleteNotificationConfigAsync", + "file": "SecurityCenterClient.DeleteNotificationConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.DeleteNotificationConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_sync_flattened", + "title": "DeleteNotificationConfig", + "description": "Snippet for DeleteNotificationConfig", + "file": "SecurityCenterClient.DeleteNotificationConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteNotificationConfig", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_async_flattened", + "title": "DeleteNotificationConfigAsync", + "description": "Snippet for DeleteNotificationConfigAsync", + "file": "SecurityCenterClient.DeleteNotificationConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_sync_flattened_resourceNames", + "title": "DeleteNotificationConfigResourceNames", + "description": "Snippet for DeleteNotificationConfig", + "file": "SecurityCenterClient.DeleteNotificationConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteNotificationConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_async_flattened_resourceNames", + "title": "DeleteNotificationConfigResourceNamesAsync", + "description": "Snippet for DeleteNotificationConfigAsync", + "file": "SecurityCenterClient.DeleteNotificationConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_sync", + "title": "DeleteSecurityHealthAnalyticsCustomModuleRequestObject", + "description": "Snippet for DeleteSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.DeleteSecurityHealthAnalyticsCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async", + "title": "DeleteSecurityHealthAnalyticsCustomModuleRequestObjectAsync", + "description": "Snippet for DeleteSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.DeleteSecurityHealthAnalyticsCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_sync_flattened", + "title": "DeleteSecurityHealthAnalyticsCustomModule", + "description": "Snippet for DeleteSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async_flattened", + "title": "DeleteSecurityHealthAnalyticsCustomModuleAsync", + "description": "Snippet for DeleteSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_sync_flattened_resourceNames", + "title": "DeleteSecurityHealthAnalyticsCustomModuleResourceNames", + "description": "Snippet for DeleteSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async_flattened_resourceNames", + "title": "DeleteSecurityHealthAnalyticsCustomModuleResourceNamesAsync", + "description": "Snippet for DeleteSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSimulation_sync", + "title": "GetSimulationRequestObject", + "description": "Snippet for GetSimulation", + "file": "SecurityCenterClient.GetSimulationRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSimulation", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSimulation", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetSimulationRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Simulation", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSimulation", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSimulation", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSimulation_async", + "title": "GetSimulationRequestObjectAsync", + "description": "Snippet for GetSimulationAsync", + "file": "SecurityCenterClient.GetSimulationRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSimulationAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSimulationAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetSimulationRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSimulation", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSimulation", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSimulation_sync_flattened", + "title": "GetSimulation", + "description": "Snippet for GetSimulation", + "file": "SecurityCenterClient.GetSimulationSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSimulation", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSimulation", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Simulation", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSimulation", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSimulation", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSimulation_async_flattened", + "title": "GetSimulationAsync", + "description": "Snippet for GetSimulationAsync", + "file": "SecurityCenterClient.GetSimulationAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSimulationAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSimulationAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSimulation", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSimulation", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSimulation_sync_flattened_resourceNames", + "title": "GetSimulationResourceNames", + "description": "Snippet for GetSimulation", + "file": "SecurityCenterClient.GetSimulationResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSimulation", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSimulation", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SimulationName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Simulation", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSimulation", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSimulation", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSimulation_async_flattened_resourceNames", + "title": "GetSimulationResourceNamesAsync", + "description": "Snippet for GetSimulationAsync", + "file": "SecurityCenterClient.GetSimulationResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSimulationAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSimulationAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SimulationName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSimulation", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSimulation", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetValuedResource_sync", + "title": "GetValuedResourceRequestObject", + "description": "Snippet for GetValuedResource", + "file": "SecurityCenterClient.GetValuedResourceRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetValuedResource", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetValuedResource", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetValuedResourceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.ValuedResource", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetValuedResource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetValuedResource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetValuedResource_async", + "title": "GetValuedResourceRequestObjectAsync", + "description": "Snippet for GetValuedResourceAsync", + "file": "SecurityCenterClient.GetValuedResourceRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetValuedResourceAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetValuedResourceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetValuedResourceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetValuedResource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetValuedResource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetValuedResource_sync_flattened", + "title": "GetValuedResource", + "description": "Snippet for GetValuedResource", + "file": "SecurityCenterClient.GetValuedResourceSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetValuedResource", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetValuedResource", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.ValuedResource", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetValuedResource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetValuedResource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetValuedResource_async_flattened", + "title": "GetValuedResourceAsync", + "description": "Snippet for GetValuedResourceAsync", + "file": "SecurityCenterClient.GetValuedResourceAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetValuedResourceAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetValuedResourceAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetValuedResource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetValuedResource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetValuedResource_sync_flattened_resourceNames", + "title": "GetValuedResourceResourceNames", + "description": "Snippet for GetValuedResource", + "file": "SecurityCenterClient.GetValuedResourceResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetValuedResource", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetValuedResource", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ValuedResourceName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.ValuedResource", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetValuedResource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetValuedResource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetValuedResource_async_flattened_resourceNames", + "title": "GetValuedResourceResourceNamesAsync", + "description": "Snippet for GetValuedResourceAsync", + "file": "SecurityCenterClient.GetValuedResourceResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetValuedResourceAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetValuedResourceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ValuedResourceName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetValuedResource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetValuedResource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_sync", + "title": "GetBigQueryExportRequestObject", + "description": "Snippet for GetBigQueryExport", + "file": "SecurityCenterClient.GetBigQueryExportRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetBigQueryExport", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetBigQueryExportRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_async", + "title": "GetBigQueryExportRequestObjectAsync", + "description": "Snippet for GetBigQueryExportAsync", + "file": "SecurityCenterClient.GetBigQueryExportRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetBigQueryExportRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_sync_flattened", + "title": "GetBigQueryExport", + "description": "Snippet for GetBigQueryExport", + "file": "SecurityCenterClient.GetBigQueryExportSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetBigQueryExport", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_async_flattened", + "title": "GetBigQueryExportAsync", + "description": "Snippet for GetBigQueryExportAsync", + "file": "SecurityCenterClient.GetBigQueryExportAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_sync_flattened_resourceNames", + "title": "GetBigQueryExportResourceNames", + "description": "Snippet for GetBigQueryExport", + "file": "SecurityCenterClient.GetBigQueryExportResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetBigQueryExport", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExportName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_async_flattened_resourceNames", + "title": "GetBigQueryExportResourceNamesAsync", + "description": "Snippet for GetBigQueryExportAsync", + "file": "SecurityCenterClient.GetBigQueryExportResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExportName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetIamPolicy_sync", + "title": "GetIamPolicyRequestObject", + "description": "Snippet for GetIamPolicy", + "file": "SecurityCenterClient.GetIamPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetIamPolicy_async", + "title": "GetIamPolicyRequestObjectAsync", + "description": "Snippet for GetIamPolicyAsync", + "file": "SecurityCenterClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetIamPolicy_sync_flattened", + "title": "GetIamPolicy", + "description": "Snippet for GetIamPolicy", + "file": "SecurityCenterClient.GetIamPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetIamPolicy", + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetIamPolicy_async_flattened", + "title": "GetIamPolicyAsync", + "description": "Snippet for GetIamPolicyAsync", + "file": "SecurityCenterClient.GetIamPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetIamPolicy_sync_flattened_resourceNames", + "title": "GetIamPolicyResourceNames", + "description": "Snippet for GetIamPolicy", + "file": "SecurityCenterClient.GetIamPolicyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetIamPolicy", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetIamPolicy_async_flattened_resourceNames", + "title": "GetIamPolicyResourceNamesAsync", + "description": "Snippet for GetIamPolicyAsync", + "file": "SecurityCenterClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 37, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetMuteConfig_sync", + "title": "GetMuteConfigRequestObject", + "description": "Snippet for GetMuteConfig", + "file": "SecurityCenterClient.GetMuteConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetMuteConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetMuteConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetMuteConfig_async", + "title": "GetMuteConfigRequestObjectAsync", + "description": "Snippet for GetMuteConfigAsync", + "file": "SecurityCenterClient.GetMuteConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetMuteConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetMuteConfig_sync_flattened", + "title": "GetMuteConfig", + "description": "Snippet for GetMuteConfig", + "file": "SecurityCenterClient.GetMuteConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetMuteConfig", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetMuteConfig_async_flattened", + "title": "GetMuteConfigAsync", + "description": "Snippet for GetMuteConfigAsync", + "file": "SecurityCenterClient.GetMuteConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetMuteConfig_sync_flattened_resourceNames", + "title": "GetMuteConfigResourceNames", + "description": "Snippet for GetMuteConfig", + "file": "SecurityCenterClient.GetMuteConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetMuteConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetMuteConfig_async_flattened_resourceNames", + "title": "GetMuteConfigResourceNamesAsync", + "description": "Snippet for GetMuteConfigAsync", + "file": "SecurityCenterClient.GetMuteConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_sync", + "title": "GetNotificationConfigRequestObject", + "description": "Snippet for GetNotificationConfig", + "file": "SecurityCenterClient.GetNotificationConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetNotificationConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetNotificationConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_async", + "title": "GetNotificationConfigRequestObjectAsync", + "description": "Snippet for GetNotificationConfigAsync", + "file": "SecurityCenterClient.GetNotificationConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetNotificationConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_sync_flattened", + "title": "GetNotificationConfig", + "description": "Snippet for GetNotificationConfig", + "file": "SecurityCenterClient.GetNotificationConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetNotificationConfig", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_async_flattened", + "title": "GetNotificationConfigAsync", + "description": "Snippet for GetNotificationConfigAsync", + "file": "SecurityCenterClient.GetNotificationConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_sync_flattened_resourceNames", + "title": "GetNotificationConfigResourceNames", + "description": "Snippet for GetNotificationConfig", + "file": "SecurityCenterClient.GetNotificationConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetNotificationConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_async_flattened_resourceNames", + "title": "GetNotificationConfigResourceNamesAsync", + "description": "Snippet for GetNotificationConfigAsync", + "file": "SecurityCenterClient.GetNotificationConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_sync", + "title": "GetOrganizationSettingsRequestObject", + "description": "Snippet for GetOrganizationSettings", + "file": "SecurityCenterClient.GetOrganizationSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetOrganizationSettings", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetOrganizationSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetOrganizationSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.OrganizationSettings", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_async", + "title": "GetOrganizationSettingsRequestObjectAsync", + "description": "Snippet for GetOrganizationSettingsAsync", + "file": "SecurityCenterClient.GetOrganizationSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetOrganizationSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetOrganizationSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetOrganizationSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_sync_flattened", + "title": "GetOrganizationSettings", + "description": "Snippet for GetOrganizationSettings", + "file": "SecurityCenterClient.GetOrganizationSettingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetOrganizationSettings", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetOrganizationSettings", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.OrganizationSettings", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_async_flattened", + "title": "GetOrganizationSettingsAsync", + "description": "Snippet for GetOrganizationSettingsAsync", + "file": "SecurityCenterClient.GetOrganizationSettingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetOrganizationSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetOrganizationSettingsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_sync_flattened_resourceNames", + "title": "GetOrganizationSettingsResourceNames", + "description": "Snippet for GetOrganizationSettings", + "file": "SecurityCenterClient.GetOrganizationSettingsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetOrganizationSettings", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetOrganizationSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.OrganizationSettingsName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.OrganizationSettings", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_async_flattened_resourceNames", + "title": "GetOrganizationSettingsResourceNamesAsync", + "description": "Snippet for GetOrganizationSettingsAsync", + "file": "SecurityCenterClient.GetOrganizationSettingsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetOrganizationSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetOrganizationSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.OrganizationSettingsName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_sync", + "title": "GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObject", + "description": "Snippet for GetEffectiveSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async", + "title": "GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectAsync", + "description": "Snippet for GetEffectiveSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_sync_flattened", + "title": "GetEffectiveSecurityHealthAnalyticsCustomModule", + "description": "Snippet for GetEffectiveSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async_flattened", + "title": "GetEffectiveSecurityHealthAnalyticsCustomModuleAsync", + "description": "Snippet for GetEffectiveSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_sync_flattened_resourceNames", + "title": "GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNames", + "description": "Snippet for GetEffectiveSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async_flattened_resourceNames", + "title": "GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesAsync", + "description": "Snippet for GetEffectiveSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_sync", + "title": "GetSecurityHealthAnalyticsCustomModuleRequestObject", + "description": "Snippet for GetSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetSecurityHealthAnalyticsCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async", + "title": "GetSecurityHealthAnalyticsCustomModuleRequestObjectAsync", + "description": "Snippet for GetSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetSecurityHealthAnalyticsCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_sync_flattened", + "title": "GetSecurityHealthAnalyticsCustomModule", + "description": "Snippet for GetSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async_flattened", + "title": "GetSecurityHealthAnalyticsCustomModuleAsync", + "description": "Snippet for GetSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_sync_flattened_resourceNames", + "title": "GetSecurityHealthAnalyticsCustomModuleResourceNames", + "description": "Snippet for GetSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async_flattened_resourceNames", + "title": "GetSecurityHealthAnalyticsCustomModuleResourceNamesAsync", + "description": "Snippet for GetSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSource_sync", + "title": "GetSourceRequestObject", + "description": "Snippet for GetSource", + "file": "SecurityCenterClient.GetSourceRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSource", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSource", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetSourceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Source", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSource_async", + "title": "GetSourceRequestObjectAsync", + "description": "Snippet for GetSourceAsync", + "file": "SecurityCenterClient.GetSourceRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSourceAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSourceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetSourceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSource_sync_flattened", + "title": "GetSource", + "description": "Snippet for GetSource", + "file": "SecurityCenterClient.GetSourceSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSource", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSource", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Source", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSource_async_flattened", + "title": "GetSourceAsync", + "description": "Snippet for GetSourceAsync", + "file": "SecurityCenterClient.GetSourceAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSourceAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSourceAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSource_sync_flattened_resourceNames", + "title": "GetSourceResourceNames", + "description": "Snippet for GetSource", + "file": "SecurityCenterClient.GetSourceResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSource", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSource", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SourceName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Source", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSource_async_flattened_resourceNames", + "title": "GetSourceResourceNamesAsync", + "description": "Snippet for GetSourceAsync", + "file": "SecurityCenterClient.GetSourceResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSourceAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetSourceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SourceName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GroupAssets_sync", + "title": "GroupAssetsRequestObject", + "description": "Snippet for GroupAssets", + "file": "SecurityCenterClient.GroupAssetsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GroupAssets", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GroupAssets", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GroupAssetsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GroupAssets", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupAssets", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 86, + "type": "FULL" + }, + { + "start": 38, + "end": 84, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GroupAssets_async", + "title": "GroupAssetsRequestObjectAsync", + "description": "Snippet for GroupAssetsAsync", + "file": "SecurityCenterClient.GroupAssetsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GroupAssetsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GroupAssetsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GroupAssetsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GroupAssets", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupAssets", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 88, + "type": "FULL" + }, + { + "start": 40, + "end": 86, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GroupFindings_sync", + "title": "GroupFindingsRequestObject", + "description": "Snippet for GroupFindings", + "file": "SecurityCenterClient.GroupFindingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GroupFindings", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GroupFindings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GroupFindingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GroupFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 83, + "type": "FULL" + }, + { + "start": 37, + "end": 81, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GroupFindings_async", + "title": "GroupFindingsRequestObjectAsync", + "description": "Snippet for GroupFindingsAsync", + "file": "SecurityCenterClient.GroupFindingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GroupFindingsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GroupFindingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GroupFindingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GroupFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 85, + "type": "FULL" + }, + { + "start": 39, + "end": 83, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GroupFindings_sync_flattened", + "title": "GroupFindings", + "description": "Snippet for GroupFindings", + "file": "SecurityCenterClient.GroupFindingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GroupFindings", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GroupFindings", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "groupBy" + }, + { + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GroupFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 36, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GroupFindings_async_flattened", + "title": "GroupFindingsAsync", + "description": "Snippet for GroupFindingsAsync", + "file": "SecurityCenterClient.GroupFindingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GroupFindingsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GroupFindingsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "groupBy" + }, + { + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GroupFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 38, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GroupFindings_sync_flattened_resourceNames", + "title": "GroupFindingsResourceNames", + "description": "Snippet for GroupFindings", + "file": "SecurityCenterClient.GroupFindingsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GroupFindings", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GroupFindings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SourceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "groupBy" + }, + { + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GroupFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 36, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GroupFindings_async_flattened_resourceNames", + "title": "GroupFindingsResourceNamesAsync", + "description": "Snippet for GroupFindingsAsync", + "file": "SecurityCenterClient.GroupFindingsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GroupFindingsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GroupFindingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SourceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "groupBy" + }, + { + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GroupFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 38, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListAssets_sync", + "title": "ListAssetsRequestObject", + "description": "Snippet for ListAssets", + "file": "SecurityCenterClient.ListAssetsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAssets", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListAssets", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListAssetsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListAssets", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAssets", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 87, + "type": "FULL" + }, + { + "start": 38, + "end": 85, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListAssets_async", + "title": "ListAssetsRequestObjectAsync", + "description": "Snippet for ListAssetsAsync", + "file": "SecurityCenterClient.ListAssetsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAssetsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListAssetsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListAssetsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListAssets", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAssets", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 89, + "type": "FULL" + }, + { + "start": 40, + "end": 87, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_sync", + "title": "ListDescendantSecurityHealthAnalyticsCustomModulesRequestObject", + "description": "Snippet for ListDescendantSecurityHealthAnalyticsCustomModules", + "file": "SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModules", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async", + "title": "ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectAsync", + "description": "Snippet for ListDescendantSecurityHealthAnalyticsCustomModulesAsync", + "file": "SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 38, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_sync_flattened", + "title": "ListDescendantSecurityHealthAnalyticsCustomModules", + "description": "Snippet for ListDescendantSecurityHealthAnalyticsCustomModules", + "file": "SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModules", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async_flattened", + "title": "ListDescendantSecurityHealthAnalyticsCustomModulesAsync", + "description": "Snippet for ListDescendantSecurityHealthAnalyticsCustomModulesAsync", + "file": "SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_sync_flattened_resourceNames", + "title": "ListDescendantSecurityHealthAnalyticsCustomModulesResourceNames", + "description": "Snippet for ListDescendantSecurityHealthAnalyticsCustomModules", + "file": "SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModules", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsSettingsName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async_flattened_resourceNames", + "title": "ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesAsync", + "description": "Snippet for ListDescendantSecurityHealthAnalyticsCustomModulesAsync", + "file": "SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsSettingsName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListFindings_sync", + "title": "ListFindingsRequestObject", + "description": "Snippet for ListFindings", + "file": "SecurityCenterClient.ListFindingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFindings", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListFindings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListFindingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 84, + "type": "FULL" + }, + { + "start": 37, + "end": 82, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListFindings_async", + "title": "ListFindingsRequestObjectAsync", + "description": "Snippet for ListFindingsAsync", + "file": "SecurityCenterClient.ListFindingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFindingsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListFindingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListFindingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 86, + "type": "FULL" + }, + { + "start": 39, + "end": 84, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync", + "title": "ListMuteConfigsRequestObject", + "description": "Snippet for ListMuteConfigs", + "file": "SecurityCenterClient.ListMuteConfigsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigs", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListMuteConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 37, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async", + "title": "ListMuteConfigsRequestObjectAsync", + "description": "Snippet for ListMuteConfigsAsync", + "file": "SecurityCenterClient.ListMuteConfigsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListMuteConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 39, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened", + "title": "ListMuteConfigs", + "description": "Snippet for ListMuteConfigs", + "file": "SecurityCenterClient.ListMuteConfigsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigs", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened", + "title": "ListMuteConfigsAsync", + "description": "Snippet for ListMuteConfigsAsync", + "file": "SecurityCenterClient.ListMuteConfigsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigsAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames1", + "title": "ListMuteConfigsResourceNames1", + "description": "Snippet for ListMuteConfigs", + "file": "SecurityCenterClient.ListMuteConfigsResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigs", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames1", + "title": "ListMuteConfigsResourceNames1Async", + "description": "Snippet for ListMuteConfigsAsync", + "file": "SecurityCenterClient.ListMuteConfigsResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames2", + "title": "ListMuteConfigsResourceNames2", + "description": "Snippet for ListMuteConfigs", + "file": "SecurityCenterClient.ListMuteConfigsResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigs", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames2", + "title": "ListMuteConfigsResourceNames2Async", + "description": "Snippet for ListMuteConfigsAsync", + "file": "SecurityCenterClient.ListMuteConfigsResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames3", + "title": "ListMuteConfigsResourceNames3", + "description": "Snippet for ListMuteConfigs", + "file": "SecurityCenterClient.ListMuteConfigsResourceNames3Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigs", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames3", + "title": "ListMuteConfigsResourceNames3Async", + "description": "Snippet for ListMuteConfigsAsync", + "file": "SecurityCenterClient.ListMuteConfigsResourceNames3AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigsAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames4", + "title": "ListMuteConfigsResourceNames4", + "description": "Snippet for ListMuteConfigs", + "file": "SecurityCenterClient.ListMuteConfigsResourceNames4Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigs", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.OrganizationLocationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames4", + "title": "ListMuteConfigsResourceNames4Async", + "description": "Snippet for ListMuteConfigsAsync", + "file": "SecurityCenterClient.ListMuteConfigsResourceNames4AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.OrganizationLocationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames5", + "title": "ListMuteConfigsResourceNames5", + "description": "Snippet for ListMuteConfigs", + "file": "SecurityCenterClient.ListMuteConfigsResourceNames5Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigs", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.FolderLocationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames5", + "title": "ListMuteConfigsResourceNames5Async", + "description": "Snippet for ListMuteConfigsAsync", + "file": "SecurityCenterClient.ListMuteConfigsResourceNames5AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.FolderLocationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync_flattened_resourceNames6", + "title": "ListMuteConfigsResourceNames6", + "description": "Snippet for ListMuteConfigs", + "file": "SecurityCenterClient.ListMuteConfigsResourceNames6Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigs", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async_flattened_resourceNames6", + "title": "ListMuteConfigsResourceNames6Async", + "description": "Snippet for ListMuteConfigsAsync", + "file": "SecurityCenterClient.ListMuteConfigsResourceNames6AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMuteConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListMuteConfigsAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync", + "title": "ListNotificationConfigsRequestObject", + "description": "Snippet for ListNotificationConfigs", + "file": "SecurityCenterClient.ListNotificationConfigsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListNotificationConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListNotificationConfigs", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListNotificationConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 37, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async", + "title": "ListNotificationConfigsRequestObjectAsync", + "description": "Snippet for ListNotificationConfigsAsync", + "file": "SecurityCenterClient.ListNotificationConfigsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListNotificationConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListNotificationConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListNotificationConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 39, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync_flattened", + "title": "ListNotificationConfigs", + "description": "Snippet for ListNotificationConfigs", + "file": "SecurityCenterClient.ListNotificationConfigsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListNotificationConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListNotificationConfigs", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async_flattened", + "title": "ListNotificationConfigsAsync", + "description": "Snippet for ListNotificationConfigsAsync", + "file": "SecurityCenterClient.ListNotificationConfigsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListNotificationConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListNotificationConfigsAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync_flattened_resourceNames1", + "title": "ListNotificationConfigsResourceNames1", + "description": "Snippet for ListNotificationConfigs", + "file": "SecurityCenterClient.ListNotificationConfigsResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListNotificationConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListNotificationConfigs", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async_flattened_resourceNames1", + "title": "ListNotificationConfigsResourceNames1Async", + "description": "Snippet for ListNotificationConfigsAsync", + "file": "SecurityCenterClient.ListNotificationConfigsResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListNotificationConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListNotificationConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync_flattened_resourceNames2", + "title": "ListNotificationConfigsResourceNames2", + "description": "Snippet for ListNotificationConfigs", + "file": "SecurityCenterClient.ListNotificationConfigsResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListNotificationConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListNotificationConfigs", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async_flattened_resourceNames2", + "title": "ListNotificationConfigsResourceNames2Async", + "description": "Snippet for ListNotificationConfigsAsync", + "file": "SecurityCenterClient.ListNotificationConfigsResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListNotificationConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListNotificationConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync_flattened_resourceNames3", + "title": "ListNotificationConfigsResourceNames3", + "description": "Snippet for ListNotificationConfigs", + "file": "SecurityCenterClient.ListNotificationConfigsResourceNames3Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListNotificationConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListNotificationConfigs", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async_flattened_resourceNames3", + "title": "ListNotificationConfigsResourceNames3Async", + "description": "Snippet for ListNotificationConfigsAsync", + "file": "SecurityCenterClient.ListNotificationConfigsResourceNames3AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListNotificationConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListNotificationConfigsAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_sync", + "title": "ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObject", + "description": "Snippet for ListEffectiveSecurityHealthAnalyticsCustomModules", + "file": "SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModules", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async", + "title": "ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectAsync", + "description": "Snippet for ListEffectiveSecurityHealthAnalyticsCustomModulesAsync", + "file": "SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 38, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_sync_flattened", + "title": "ListEffectiveSecurityHealthAnalyticsCustomModules", + "description": "Snippet for ListEffectiveSecurityHealthAnalyticsCustomModules", + "file": "SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModules", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async_flattened", + "title": "ListEffectiveSecurityHealthAnalyticsCustomModulesAsync", + "description": "Snippet for ListEffectiveSecurityHealthAnalyticsCustomModulesAsync", + "file": "SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_sync_flattened_resourceNames", + "title": "ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNames", + "description": "Snippet for ListEffectiveSecurityHealthAnalyticsCustomModules", + "file": "SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModules", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsSettingsName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async_flattened_resourceNames", + "title": "ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesAsync", + "description": "Snippet for ListEffectiveSecurityHealthAnalyticsCustomModulesAsync", + "file": "SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsSettingsName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_sync", + "title": "ListSecurityHealthAnalyticsCustomModulesRequestObject", + "description": "Snippet for ListSecurityHealthAnalyticsCustomModules", + "file": "SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecurityHealthAnalyticsCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModules", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListSecurityHealthAnalyticsCustomModulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async", + "title": "ListSecurityHealthAnalyticsCustomModulesRequestObjectAsync", + "description": "Snippet for ListSecurityHealthAnalyticsCustomModulesAsync", + "file": "SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecurityHealthAnalyticsCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListSecurityHealthAnalyticsCustomModulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 38, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_sync_flattened", + "title": "ListSecurityHealthAnalyticsCustomModules", + "description": "Snippet for ListSecurityHealthAnalyticsCustomModules", + "file": "SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecurityHealthAnalyticsCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModules", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async_flattened", + "title": "ListSecurityHealthAnalyticsCustomModulesAsync", + "description": "Snippet for ListSecurityHealthAnalyticsCustomModulesAsync", + "file": "SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecurityHealthAnalyticsCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_sync_flattened_resourceNames", + "title": "ListSecurityHealthAnalyticsCustomModulesResourceNames", + "description": "Snippet for ListSecurityHealthAnalyticsCustomModules", + "file": "SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecurityHealthAnalyticsCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModules", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsSettingsName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async_flattened_resourceNames", + "title": "ListSecurityHealthAnalyticsCustomModulesResourceNamesAsync", + "description": "Snippet for ListSecurityHealthAnalyticsCustomModulesAsync", + "file": "SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecurityHealthAnalyticsCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsSettingsName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_sync", + "title": "ListSourcesRequestObject", + "description": "Snippet for ListSources", + "file": "SecurityCenterClient.ListSourcesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSources", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSources", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListSourcesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 37, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_async", + "title": "ListSourcesRequestObjectAsync", + "description": "Snippet for ListSourcesAsync", + "file": "SecurityCenterClient.ListSourcesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSourcesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSourcesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListSourcesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 39, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_sync_flattened", + "title": "ListSources", + "description": "Snippet for ListSources", + "file": "SecurityCenterClient.ListSourcesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSources", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSources", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_async_flattened", + "title": "ListSourcesAsync", + "description": "Snippet for ListSourcesAsync", + "file": "SecurityCenterClient.ListSourcesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSourcesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSourcesAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_sync_flattened_resourceNames1", + "title": "ListSourcesResourceNames1", + "description": "Snippet for ListSources", + "file": "SecurityCenterClient.ListSourcesResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSources", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSources", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_async_flattened_resourceNames1", + "title": "ListSourcesResourceNames1Async", + "description": "Snippet for ListSourcesAsync", + "file": "SecurityCenterClient.ListSourcesResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSourcesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSourcesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_sync_flattened_resourceNames2", + "title": "ListSourcesResourceNames2", + "description": "Snippet for ListSources", + "file": "SecurityCenterClient.ListSourcesResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSources", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSources", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_async_flattened_resourceNames2", + "title": "ListSourcesResourceNames2Async", + "description": "Snippet for ListSourcesAsync", + "file": "SecurityCenterClient.ListSourcesResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSourcesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSourcesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_sync_flattened_resourceNames3", + "title": "ListSourcesResourceNames3", + "description": "Snippet for ListSources", + "file": "SecurityCenterClient.ListSourcesResourceNames3Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSources", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSources", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_async_flattened_resourceNames3", + "title": "ListSourcesResourceNames3Async", + "description": "Snippet for ListSourcesAsync", + "file": "SecurityCenterClient.ListSourcesResourceNames3AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSourcesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListSourcesAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_sync", + "title": "RunAssetDiscoveryRequestObject", + "description": "Snippet for RunAssetDiscovery", + "file": "SecurityCenterClient.RunAssetDiscoveryRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RunAssetDiscovery", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.RunAssetDiscovery", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.RunAssetDiscoveryRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "RunAssetDiscovery", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscovery", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 67, + "type": "FULL" + }, + { + "start": 37, + "end": 65, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_async", + "title": "RunAssetDiscoveryRequestObjectAsync", + "description": "Snippet for RunAssetDiscoveryAsync", + "file": "SecurityCenterClient.RunAssetDiscoveryRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RunAssetDiscoveryAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.RunAssetDiscoveryAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.RunAssetDiscoveryRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "RunAssetDiscovery", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscovery", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 68, + "type": "FULL" + }, + { + "start": 38, + "end": 66, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_sync_flattened", + "title": "RunAssetDiscovery", + "description": "Snippet for RunAssetDiscovery", + "file": "SecurityCenterClient.RunAssetDiscoverySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RunAssetDiscovery", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.RunAssetDiscovery", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "RunAssetDiscovery", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscovery", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_async_flattened", + "title": "RunAssetDiscoveryAsync", + "description": "Snippet for RunAssetDiscoveryAsync", + "file": "SecurityCenterClient.RunAssetDiscoveryAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RunAssetDiscoveryAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.RunAssetDiscoveryAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "RunAssetDiscovery", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscovery", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 37, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_sync_flattened_resourceNames", + "title": "RunAssetDiscoveryResourceNames", + "description": "Snippet for RunAssetDiscovery", + "file": "SecurityCenterClient.RunAssetDiscoveryResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RunAssetDiscovery", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.RunAssetDiscovery", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "RunAssetDiscovery", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscovery", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 37, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_async_flattened_resourceNames", + "title": "RunAssetDiscoveryResourceNamesAsync", + "description": "Snippet for RunAssetDiscoveryAsync", + "file": "SecurityCenterClient.RunAssetDiscoveryResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RunAssetDiscoveryAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.RunAssetDiscoveryAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "RunAssetDiscovery", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscovery", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 38, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetFindingState_sync", + "title": "SetFindingStateRequestObject", + "description": "Snippet for SetFindingState", + "file": "SecurityCenterClient.SetFindingStateRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetFindingState", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetFindingState", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SetFindingStateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Finding", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetFindingState", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetFindingState", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetFindingState_async", + "title": "SetFindingStateRequestObjectAsync", + "description": "Snippet for SetFindingStateAsync", + "file": "SecurityCenterClient.SetFindingStateRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetFindingStateAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetFindingStateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SetFindingStateRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetFindingState", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetFindingState", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 36, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetFindingState_sync_flattened", + "title": "SetFindingState", + "description": "Snippet for SetFindingState", + "file": "SecurityCenterClient.SetFindingStateSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetFindingState", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetFindingState", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Finding+Types+State", + "name": "state" + }, + { + "type": "Google.Protobuf.WellKnownTypes.Timestamp", + "name": "startTime" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Finding", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetFindingState", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetFindingState", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetFindingState_async_flattened", + "title": "SetFindingStateAsync", + "description": "Snippet for SetFindingStateAsync", + "file": "SecurityCenterClient.SetFindingStateAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetFindingStateAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetFindingStateAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Finding+Types+State", + "name": "state" + }, + { + "type": "Google.Protobuf.WellKnownTypes.Timestamp", + "name": "startTime" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetFindingState", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetFindingState", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetFindingState_sync_flattened_resourceNames", + "title": "SetFindingStateResourceNames", + "description": "Snippet for SetFindingState", + "file": "SecurityCenterClient.SetFindingStateResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetFindingState", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetFindingState", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.FindingName", + "name": "name" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Finding+Types+State", + "name": "state" + }, + { + "type": "Google.Protobuf.WellKnownTypes.Timestamp", + "name": "startTime" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Finding", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetFindingState", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetFindingState", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetFindingState_async_flattened_resourceNames", + "title": "SetFindingStateResourceNamesAsync", + "description": "Snippet for SetFindingStateAsync", + "file": "SecurityCenterClient.SetFindingStateResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetFindingStateAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetFindingStateAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.FindingName", + "name": "name" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Finding+Types+State", + "name": "state" + }, + { + "type": "Google.Protobuf.WellKnownTypes.Timestamp", + "name": "startTime" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetFindingState", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetFindingState", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetMute_sync", + "title": "SetMuteRequestObject", + "description": "Snippet for SetMute", + "file": "SecurityCenterClient.SetMuteRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetMute", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetMute", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SetMuteRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Finding", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetMute", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetMute", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetMute_async", + "title": "SetMuteRequestObjectAsync", + "description": "Snippet for SetMuteAsync", + "file": "SecurityCenterClient.SetMuteRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetMuteAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetMuteAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SetMuteRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetMute", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetMute", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetMute_sync_flattened", + "title": "SetMute", + "description": "Snippet for SetMute", + "file": "SecurityCenterClient.SetMuteSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetMute", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetMute", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Finding+Types+Mute", + "name": "mute" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Finding", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetMute", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetMute", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetMute_async_flattened", + "title": "SetMuteAsync", + "description": "Snippet for SetMuteAsync", + "file": "SecurityCenterClient.SetMuteAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetMuteAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetMuteAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Finding+Types+Mute", + "name": "mute" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetMute", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetMute", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetMute_sync_flattened_resourceNames", + "title": "SetMuteResourceNames", + "description": "Snippet for SetMute", + "file": "SecurityCenterClient.SetMuteResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetMute", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetMute", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.FindingName", + "name": "name" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Finding+Types+Mute", + "name": "mute" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Finding", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetMute", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetMute", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetMute_async_flattened_resourceNames", + "title": "SetMuteResourceNamesAsync", + "description": "Snippet for SetMuteAsync", + "file": "SecurityCenterClient.SetMuteResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetMuteAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetMuteAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.FindingName", + "name": "name" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.Finding+Types+Mute", + "name": "mute" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetMute", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetMute", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetIamPolicy_sync", + "title": "SetIamPolicyRequestObject", + "description": "Snippet for SetIamPolicy", + "file": "SecurityCenterClient.SetIamPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 37, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetIamPolicy_async", + "title": "SetIamPolicyRequestObjectAsync", + "description": "Snippet for SetIamPolicyAsync", + "file": "SecurityCenterClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 38, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetIamPolicy_sync_flattened", + "title": "SetIamPolicy", + "description": "Snippet for SetIamPolicy", + "file": "SecurityCenterClient.SetIamPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetIamPolicy", + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Cloud.Iam.V1.Policy", + "name": "policy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetIamPolicy_async_flattened", + "title": "SetIamPolicyAsync", + "description": "Snippet for SetIamPolicyAsync", + "file": "SecurityCenterClient.SetIamPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Cloud.Iam.V1.Policy", + "name": "policy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetIamPolicy_sync_flattened_resourceNames", + "title": "SetIamPolicyResourceNames", + "description": "Snippet for SetIamPolicy", + "file": "SecurityCenterClient.SetIamPolicyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetIamPolicy", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Cloud.Iam.V1.Policy", + "name": "policy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetIamPolicy_async_flattened_resourceNames", + "title": "SetIamPolicyResourceNamesAsync", + "description": "Snippet for SetIamPolicyAsync", + "file": "SecurityCenterClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Cloud.Iam.V1.Policy", + "name": "policy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 37, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_TestIamPermissions_sync", + "title": "TestIamPermissionsRequestObject", + "description": "Snippet for TestIamPermissions", + "file": "SecurityCenterClient.TestIamPermissionsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissions", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_TestIamPermissions_async", + "title": "TestIamPermissionsRequestObjectAsync", + "description": "Snippet for TestIamPermissionsAsync", + "file": "SecurityCenterClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissions", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_TestIamPermissions_sync_flattened", + "title": "TestIamPermissions", + "description": "Snippet for TestIamPermissions", + "file": "SecurityCenterClient.TestIamPermissionsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.TestIamPermissions", + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "permissions" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissions", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_TestIamPermissions_async_flattened", + "title": "TestIamPermissionsAsync", + "description": "Snippet for TestIamPermissionsAsync", + "file": "SecurityCenterClient.TestIamPermissionsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.TestIamPermissionsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "permissions" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissions", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 37, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_TestIamPermissions_sync_flattened_resourceNames", + "title": "TestIamPermissionsResourceNames", + "description": "Snippet for TestIamPermissions", + "file": "SecurityCenterClient.TestIamPermissionsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.TestIamPermissions", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "permissions" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissions", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 37, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_TestIamPermissions_async_flattened_resourceNames", + "title": "TestIamPermissionsResourceNamesAsync", + "description": "Snippet for TestIamPermissionsAsync", + "file": "SecurityCenterClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.TestIamPermissionsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "permissions" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissions", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 38, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_sync", + "title": "SimulateSecurityHealthAnalyticsCustomModuleRequestObject", + "description": "Snippet for SimulateSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SimulateSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SimulateSecurityHealthAnalyticsCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.SimulateSecurityHealthAnalyticsCustomModuleResponse", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SimulateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SimulateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 34, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_async", + "title": "SimulateSecurityHealthAnalyticsCustomModuleRequestObjectAsync", + "description": "Snippet for SimulateSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SimulateSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SimulateSecurityHealthAnalyticsCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SimulateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SimulateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_sync_flattened", + "title": "SimulateSecurityHealthAnalyticsCustomModule", + "description": "Snippet for SimulateSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SimulateSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.CustomConfig", + "name": "customConfig" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.SimulateSecurityHealthAnalyticsCustomModuleRequest+Types+SimulatedResource", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.SimulateSecurityHealthAnalyticsCustomModuleResponse", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SimulateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SimulateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_async_flattened", + "title": "SimulateSecurityHealthAnalyticsCustomModuleAsync", + "description": "Snippet for SimulateSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SimulateSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.CustomConfig", + "name": "customConfig" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.SimulateSecurityHealthAnalyticsCustomModuleRequest+Types+SimulatedResource", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "SimulateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SimulateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_sync", + "title": "UpdateExternalSystemRequestObject", + "description": "Snippet for UpdateExternalSystem", + "file": "SecurityCenterClient.UpdateExternalSystemRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateExternalSystem", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateExternalSystem", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateExternalSystemRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.ExternalSystem", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateExternalSystem", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateExternalSystem", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_async", + "title": "UpdateExternalSystemRequestObjectAsync", + "description": "Snippet for UpdateExternalSystemAsync", + "file": "SecurityCenterClient.UpdateExternalSystemRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateExternalSystemAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateExternalSystemAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateExternalSystemRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateExternalSystem", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateExternalSystem", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_sync_flattened", + "title": "UpdateExternalSystem", + "description": "Snippet for UpdateExternalSystem", + "file": "SecurityCenterClient.UpdateExternalSystemSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateExternalSystem", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateExternalSystem", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ExternalSystem", + "name": "externalSystem" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.ExternalSystem", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateExternalSystem", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateExternalSystem", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_async_flattened", + "title": "UpdateExternalSystemAsync", + "description": "Snippet for UpdateExternalSystemAsync", + "file": "SecurityCenterClient.UpdateExternalSystemAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateExternalSystemAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateExternalSystemAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ExternalSystem", + "name": "externalSystem" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateExternalSystem", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateExternalSystem", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateFinding_sync", + "title": "UpdateFindingRequestObject", + "description": "Snippet for UpdateFinding", + "file": "SecurityCenterClient.UpdateFindingRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateFinding", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateFinding", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateFindingRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Finding", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateFinding", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateFinding_async", + "title": "UpdateFindingRequestObjectAsync", + "description": "Snippet for UpdateFindingAsync", + "file": "SecurityCenterClient.UpdateFindingRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateFindingAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateFindingAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateFindingRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateFinding", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateFinding_sync_flattened", + "title": "UpdateFinding", + "description": "Snippet for UpdateFinding", + "file": "SecurityCenterClient.UpdateFindingSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateFinding", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateFinding", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.Finding", + "name": "finding" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Finding", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateFinding", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateFinding_async_flattened", + "title": "UpdateFindingAsync", + "description": "Snippet for UpdateFindingAsync", + "file": "SecurityCenterClient.UpdateFindingAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateFindingAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateFindingAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.Finding", + "name": "finding" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateFinding", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_sync", + "title": "UpdateMuteConfigRequestObject", + "description": "Snippet for UpdateMuteConfig", + "file": "SecurityCenterClient.UpdateMuteConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateMuteConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateMuteConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_async", + "title": "UpdateMuteConfigRequestObjectAsync", + "description": "Snippet for UpdateMuteConfigAsync", + "file": "SecurityCenterClient.UpdateMuteConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateMuteConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_sync_flattened", + "title": "UpdateMuteConfig", + "description": "Snippet for UpdateMuteConfig", + "file": "SecurityCenterClient.UpdateMuteConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateMuteConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateMuteConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_async_flattened", + "title": "UpdateMuteConfigAsync", + "description": "Snippet for UpdateMuteConfigAsync", + "file": "SecurityCenterClient.UpdateMuteConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateMuteConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateMuteConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.MuteConfig", + "name": "muteConfig" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_sync", + "title": "UpdateNotificationConfigRequestObject", + "description": "Snippet for UpdateNotificationConfig", + "file": "SecurityCenterClient.UpdateNotificationConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateNotificationConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateNotificationConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_async", + "title": "UpdateNotificationConfigRequestObjectAsync", + "description": "Snippet for UpdateNotificationConfigAsync", + "file": "SecurityCenterClient.UpdateNotificationConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateNotificationConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_sync_flattened1", + "title": "UpdateNotificationConfig1", + "description": "Snippet for UpdateNotificationConfig", + "file": "SecurityCenterClient.UpdateNotificationConfig1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateNotificationConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_async_flattened1", + "title": "UpdateNotificationConfig1Async", + "description": "Snippet for UpdateNotificationConfigAsync", + "file": "SecurityCenterClient.UpdateNotificationConfig1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_sync_flattened2", + "title": "UpdateNotificationConfig2", + "description": "Snippet for UpdateNotificationConfig", + "file": "SecurityCenterClient.UpdateNotificationConfig2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateNotificationConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateNotificationConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_async_flattened2", + "title": "UpdateNotificationConfig2Async", + "description": "Snippet for UpdateNotificationConfigAsync", + "file": "SecurityCenterClient.UpdateNotificationConfig2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateNotificationConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateNotificationConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.NotificationConfig", + "name": "notificationConfig" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_sync", + "title": "UpdateOrganizationSettingsRequestObject", + "description": "Snippet for UpdateOrganizationSettings", + "file": "SecurityCenterClient.UpdateOrganizationSettingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateOrganizationSettings", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateOrganizationSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateOrganizationSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.OrganizationSettings", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_async", + "title": "UpdateOrganizationSettingsRequestObjectAsync", + "description": "Snippet for UpdateOrganizationSettingsAsync", + "file": "SecurityCenterClient.UpdateOrganizationSettingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateOrganizationSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateOrganizationSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateOrganizationSettingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_sync_flattened", + "title": "UpdateOrganizationSettings", + "description": "Snippet for UpdateOrganizationSettings", + "file": "SecurityCenterClient.UpdateOrganizationSettingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateOrganizationSettings", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateOrganizationSettings", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.OrganizationSettings", + "name": "organizationSettings" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.OrganizationSettings", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_async_flattened", + "title": "UpdateOrganizationSettingsAsync", + "description": "Snippet for UpdateOrganizationSettingsAsync", + "file": "SecurityCenterClient.UpdateOrganizationSettingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateOrganizationSettingsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateOrganizationSettingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.OrganizationSettings", + "name": "organizationSettings" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_sync", + "title": "UpdateSecurityHealthAnalyticsCustomModuleRequestObject", + "description": "Snippet for UpdateSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateSecurityHealthAnalyticsCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_async", + "title": "UpdateSecurityHealthAnalyticsCustomModuleRequestObjectAsync", + "description": "Snippet for UpdateSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateSecurityHealthAnalyticsCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_sync_flattened", + "title": "UpdateSecurityHealthAnalyticsCustomModule", + "description": "Snippet for UpdateSecurityHealthAnalyticsCustomModule", + "file": "SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSecurityHealthAnalyticsCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "name": "securityHealthAnalyticsCustomModule" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_async_flattened", + "title": "UpdateSecurityHealthAnalyticsCustomModuleAsync", + "description": "Snippet for UpdateSecurityHealthAnalyticsCustomModuleAsync", + "file": "SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSecurityHealthAnalyticsCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomModule", + "name": "securityHealthAnalyticsCustomModule" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSource_sync", + "title": "UpdateSourceRequestObject", + "description": "Snippet for UpdateSource", + "file": "SecurityCenterClient.UpdateSourceRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSource", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateSource", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateSourceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Source", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSource_async", + "title": "UpdateSourceRequestObjectAsync", + "description": "Snippet for UpdateSourceAsync", + "file": "SecurityCenterClient.UpdateSourceRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSourceAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateSourceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateSourceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSource_sync_flattened", + "title": "UpdateSource", + "description": "Snippet for UpdateSource", + "file": "SecurityCenterClient.UpdateSourceSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSource", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateSource", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.Source", + "name": "source" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.Source", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSource_async_flattened", + "title": "UpdateSourceAsync", + "description": "Snippet for UpdateSourceAsync", + "file": "SecurityCenterClient.UpdateSourceAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSourceAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateSourceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.Source", + "name": "source" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_sync", + "title": "UpdateSecurityMarksRequestObject", + "description": "Snippet for UpdateSecurityMarks", + "file": "SecurityCenterClient.UpdateSecurityMarksRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSecurityMarks", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateSecurityMarks", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateSecurityMarksRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.SecurityMarks", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSecurityMarks", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityMarks", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_async", + "title": "UpdateSecurityMarksRequestObjectAsync", + "description": "Snippet for UpdateSecurityMarksAsync", + "file": "SecurityCenterClient.UpdateSecurityMarksRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSecurityMarksAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateSecurityMarksAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateSecurityMarksRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSecurityMarks", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityMarks", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 36, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_sync_flattened", + "title": "UpdateSecurityMarks", + "description": "Snippet for UpdateSecurityMarks", + "file": "SecurityCenterClient.UpdateSecurityMarksSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSecurityMarks", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateSecurityMarks", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityMarks", + "name": "securityMarks" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.SecurityMarks", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSecurityMarks", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityMarks", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_async_flattened", + "title": "UpdateSecurityMarksAsync", + "description": "Snippet for UpdateSecurityMarksAsync", + "file": "SecurityCenterClient.UpdateSecurityMarksAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSecurityMarksAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateSecurityMarksAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SecurityMarks", + "name": "securityMarks" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSecurityMarks", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityMarks", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync", + "title": "CreateBigQueryExportRequestObject", + "description": "Snippet for CreateBigQueryExport", + "file": "SecurityCenterClient.CreateBigQueryExportRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateBigQueryExport", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateBigQueryExportRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async", + "title": "CreateBigQueryExportRequestObjectAsync", + "description": "Snippet for CreateBigQueryExportAsync", + "file": "SecurityCenterClient.CreateBigQueryExportRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateBigQueryExportRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 36, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync_flattened", + "title": "CreateBigQueryExport", + "description": "Snippet for CreateBigQueryExport", + "file": "SecurityCenterClient.CreateBigQueryExportSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateBigQueryExport", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "name": "bigQueryExport" + }, + { + "type": "System.String", + "name": "bigQueryExportId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async_flattened", + "title": "CreateBigQueryExportAsync", + "description": "Snippet for CreateBigQueryExportAsync", + "file": "SecurityCenterClient.CreateBigQueryExportAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "name": "bigQueryExport" + }, + { + "type": "System.String", + "name": "bigQueryExportId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync_flattened_resourceNames1", + "title": "CreateBigQueryExportResourceNames1", + "description": "Snippet for CreateBigQueryExport", + "file": "SecurityCenterClient.CreateBigQueryExportResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateBigQueryExport", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "name": "bigQueryExport" + }, + { + "type": "System.String", + "name": "bigQueryExportId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async_flattened_resourceNames1", + "title": "CreateBigQueryExportResourceNames1Async", + "description": "Snippet for CreateBigQueryExportAsync", + "file": "SecurityCenterClient.CreateBigQueryExportResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "name": "bigQueryExport" + }, + { + "type": "System.String", + "name": "bigQueryExportId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync_flattened_resourceNames2", + "title": "CreateBigQueryExportResourceNames2", + "description": "Snippet for CreateBigQueryExport", + "file": "SecurityCenterClient.CreateBigQueryExportResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateBigQueryExport", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "name": "bigQueryExport" + }, + { + "type": "System.String", + "name": "bigQueryExportId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async_flattened_resourceNames2", + "title": "CreateBigQueryExportResourceNames2Async", + "description": "Snippet for CreateBigQueryExportAsync", + "file": "SecurityCenterClient.CreateBigQueryExportResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "name": "bigQueryExport" + }, + { + "type": "System.String", + "name": "bigQueryExportId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync_flattened_resourceNames3", + "title": "CreateBigQueryExportResourceNames3", + "description": "Snippet for CreateBigQueryExport", + "file": "SecurityCenterClient.CreateBigQueryExportResourceNames3Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateBigQueryExport", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "name": "bigQueryExport" + }, + { + "type": "System.String", + "name": "bigQueryExportId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async_flattened_resourceNames3", + "title": "CreateBigQueryExportResourceNames3Async", + "description": "Snippet for CreateBigQueryExportAsync", + "file": "SecurityCenterClient.CreateBigQueryExportResourceNames3AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "name": "bigQueryExport" + }, + { + "type": "System.String", + "name": "bigQueryExportId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_sync", + "title": "DeleteBigQueryExportRequestObject", + "description": "Snippet for DeleteBigQueryExport", + "file": "SecurityCenterClient.DeleteBigQueryExportRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteBigQueryExport", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.DeleteBigQueryExportRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_async", + "title": "DeleteBigQueryExportRequestObjectAsync", + "description": "Snippet for DeleteBigQueryExportAsync", + "file": "SecurityCenterClient.DeleteBigQueryExportRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.DeleteBigQueryExportRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_sync_flattened", + "title": "DeleteBigQueryExport", + "description": "Snippet for DeleteBigQueryExport", + "file": "SecurityCenterClient.DeleteBigQueryExportSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteBigQueryExport", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_async_flattened", + "title": "DeleteBigQueryExportAsync", + "description": "Snippet for DeleteBigQueryExportAsync", + "file": "SecurityCenterClient.DeleteBigQueryExportAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_sync_flattened_resourceNames", + "title": "DeleteBigQueryExportResourceNames", + "description": "Snippet for DeleteBigQueryExport", + "file": "SecurityCenterClient.DeleteBigQueryExportResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteBigQueryExport", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExportName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_async_flattened_resourceNames", + "title": "DeleteBigQueryExportResourceNamesAsync", + "description": "Snippet for DeleteBigQueryExportAsync", + "file": "SecurityCenterClient.DeleteBigQueryExportResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExportName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_sync", + "title": "UpdateBigQueryExportRequestObject", + "description": "Snippet for UpdateBigQueryExport", + "file": "SecurityCenterClient.UpdateBigQueryExportRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateBigQueryExport", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateBigQueryExportRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_async", + "title": "UpdateBigQueryExportRequestObjectAsync", + "description": "Snippet for UpdateBigQueryExportAsync", + "file": "SecurityCenterClient.UpdateBigQueryExportRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateBigQueryExportRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_sync_flattened", + "title": "UpdateBigQueryExport", + "description": "Snippet for UpdateBigQueryExport", + "file": "SecurityCenterClient.UpdateBigQueryExportSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateBigQueryExport", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateBigQueryExport", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "name": "bigQueryExport" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_async_flattened", + "title": "UpdateBigQueryExportAsync", + "description": "Snippet for UpdateBigQueryExportAsync", + "file": "SecurityCenterClient.UpdateBigQueryExportAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateBigQueryExportAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateBigQueryExportAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.BigQueryExport", + "name": "bigQueryExport" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync", + "title": "ListBigQueryExportsRequestObject", + "description": "Snippet for ListBigQueryExports", + "file": "SecurityCenterClient.ListBigQueryExportsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBigQueryExports", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListBigQueryExports", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListBigQueryExportsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListBigQueryExports", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 37, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async", + "title": "ListBigQueryExportsRequestObjectAsync", + "description": "Snippet for ListBigQueryExportsAsync", + "file": "SecurityCenterClient.ListBigQueryExportsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBigQueryExportsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListBigQueryExportsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListBigQueryExportsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListBigQueryExports", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 39, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync_flattened", + "title": "ListBigQueryExports", + "description": "Snippet for ListBigQueryExports", + "file": "SecurityCenterClient.ListBigQueryExportsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBigQueryExports", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListBigQueryExports", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListBigQueryExports", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async_flattened", + "title": "ListBigQueryExportsAsync", + "description": "Snippet for ListBigQueryExportsAsync", + "file": "SecurityCenterClient.ListBigQueryExportsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBigQueryExportsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListBigQueryExportsAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListBigQueryExports", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync_flattened_resourceNames1", + "title": "ListBigQueryExportsResourceNames1", + "description": "Snippet for ListBigQueryExports", + "file": "SecurityCenterClient.ListBigQueryExportsResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBigQueryExports", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListBigQueryExports", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListBigQueryExports", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async_flattened_resourceNames1", + "title": "ListBigQueryExportsResourceNames1Async", + "description": "Snippet for ListBigQueryExportsAsync", + "file": "SecurityCenterClient.ListBigQueryExportsResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBigQueryExportsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListBigQueryExportsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListBigQueryExports", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync_flattened_resourceNames2", + "title": "ListBigQueryExportsResourceNames2", + "description": "Snippet for ListBigQueryExports", + "file": "SecurityCenterClient.ListBigQueryExportsResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBigQueryExports", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListBigQueryExports", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListBigQueryExports", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async_flattened_resourceNames2", + "title": "ListBigQueryExportsResourceNames2Async", + "description": "Snippet for ListBigQueryExportsAsync", + "file": "SecurityCenterClient.ListBigQueryExportsResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBigQueryExportsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListBigQueryExportsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.FolderName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListBigQueryExports", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync_flattened_resourceNames3", + "title": "ListBigQueryExportsResourceNames3", + "description": "Snippet for ListBigQueryExports", + "file": "SecurityCenterClient.ListBigQueryExportsResourceNames3Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBigQueryExports", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListBigQueryExports", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListBigQueryExports", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async_flattened_resourceNames3", + "title": "ListBigQueryExportsResourceNames3Async", + "description": "Snippet for ListBigQueryExportsAsync", + "file": "SecurityCenterClient.ListBigQueryExportsResourceNames3AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBigQueryExportsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListBigQueryExportsAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListBigQueryExports", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_sync", + "title": "CreateEventThreatDetectionCustomModuleRequestObject", + "description": "Snippet for CreateEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.CreateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateEventThreatDetectionCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_async", + "title": "CreateEventThreatDetectionCustomModuleRequestObjectAsync", + "description": "Snippet for CreateEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.CreateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.CreateEventThreatDetectionCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_sync_flattened", + "title": "CreateEventThreatDetectionCustomModule", + "description": "Snippet for CreateEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.CreateEventThreatDetectionCustomModuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "name": "eventThreatDetectionCustomModule" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_async_flattened", + "title": "CreateEventThreatDetectionCustomModuleAsync", + "description": "Snippet for CreateEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.CreateEventThreatDetectionCustomModuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "name": "eventThreatDetectionCustomModule" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_sync_flattened_resourceNames", + "title": "CreateEventThreatDetectionCustomModuleResourceNames", + "description": "Snippet for CreateEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.CreateEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionSettingsName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "name": "eventThreatDetectionCustomModule" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_async_flattened_resourceNames", + "title": "CreateEventThreatDetectionCustomModuleResourceNamesAsync", + "description": "Snippet for CreateEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.CreateEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.CreateEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionSettingsName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "name": "eventThreatDetectionCustomModule" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_sync", + "title": "DeleteEventThreatDetectionCustomModuleRequestObject", + "description": "Snippet for DeleteEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.DeleteEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.DeleteEventThreatDetectionCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_async", + "title": "DeleteEventThreatDetectionCustomModuleRequestObjectAsync", + "description": "Snippet for DeleteEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.DeleteEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.DeleteEventThreatDetectionCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_sync_flattened", + "title": "DeleteEventThreatDetectionCustomModule", + "description": "Snippet for DeleteEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.DeleteEventThreatDetectionCustomModuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_async_flattened", + "title": "DeleteEventThreatDetectionCustomModuleAsync", + "description": "Snippet for DeleteEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.DeleteEventThreatDetectionCustomModuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_sync_flattened_resourceNames", + "title": "DeleteEventThreatDetectionCustomModuleResourceNames", + "description": "Snippet for DeleteEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.DeleteEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_async_flattened_resourceNames", + "title": "DeleteEventThreatDetectionCustomModuleResourceNamesAsync", + "description": "Snippet for DeleteEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.DeleteEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_sync", + "title": "GetEventThreatDetectionCustomModuleRequestObject", + "description": "Snippet for GetEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.GetEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetEventThreatDetectionCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_async", + "title": "GetEventThreatDetectionCustomModuleRequestObjectAsync", + "description": "Snippet for GetEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.GetEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetEventThreatDetectionCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_sync_flattened", + "title": "GetEventThreatDetectionCustomModule", + "description": "Snippet for GetEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.GetEventThreatDetectionCustomModuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_async_flattened", + "title": "GetEventThreatDetectionCustomModuleAsync", + "description": "Snippet for GetEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.GetEventThreatDetectionCustomModuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_sync_flattened_resourceNames", + "title": "GetEventThreatDetectionCustomModuleResourceNames", + "description": "Snippet for GetEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.GetEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_async_flattened_resourceNames", + "title": "GetEventThreatDetectionCustomModuleResourceNamesAsync", + "description": "Snippet for GetEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.GetEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_sync", + "title": "ListDescendantEventThreatDetectionCustomModulesRequestObject", + "description": "Snippet for ListDescendantEventThreatDetectionCustomModules", + "file": "SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDescendantEventThreatDetectionCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListDescendantEventThreatDetectionCustomModules", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListDescendantEventThreatDetectionCustomModulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_async", + "title": "ListDescendantEventThreatDetectionCustomModulesRequestObjectAsync", + "description": "Snippet for ListDescendantEventThreatDetectionCustomModulesAsync", + "file": "SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDescendantEventThreatDetectionCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListDescendantEventThreatDetectionCustomModulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 38, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_sync_flattened", + "title": "ListDescendantEventThreatDetectionCustomModules", + "description": "Snippet for ListDescendantEventThreatDetectionCustomModules", + "file": "SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDescendantEventThreatDetectionCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListDescendantEventThreatDetectionCustomModules", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_async_flattened", + "title": "ListDescendantEventThreatDetectionCustomModulesAsync", + "description": "Snippet for ListDescendantEventThreatDetectionCustomModulesAsync", + "file": "SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDescendantEventThreatDetectionCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_sync_flattened_resourceNames", + "title": "ListDescendantEventThreatDetectionCustomModulesResourceNames", + "description": "Snippet for ListDescendantEventThreatDetectionCustomModules", + "file": "SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDescendantEventThreatDetectionCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListDescendantEventThreatDetectionCustomModules", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionSettingsName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_async_flattened_resourceNames", + "title": "ListDescendantEventThreatDetectionCustomModulesResourceNamesAsync", + "description": "Snippet for ListDescendantEventThreatDetectionCustomModulesAsync", + "file": "SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListDescendantEventThreatDetectionCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionSettingsName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_sync", + "title": "ListEventThreatDetectionCustomModulesRequestObject", + "description": "Snippet for ListEventThreatDetectionCustomModules", + "file": "SecurityCenterClient.ListEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEventThreatDetectionCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEventThreatDetectionCustomModules", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListEventThreatDetectionCustomModulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_async", + "title": "ListEventThreatDetectionCustomModulesRequestObjectAsync", + "description": "Snippet for ListEventThreatDetectionCustomModulesAsync", + "file": "SecurityCenterClient.ListEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEventThreatDetectionCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEventThreatDetectionCustomModulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListEventThreatDetectionCustomModulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 38, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_sync_flattened", + "title": "ListEventThreatDetectionCustomModules", + "description": "Snippet for ListEventThreatDetectionCustomModules", + "file": "SecurityCenterClient.ListEventThreatDetectionCustomModulesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEventThreatDetectionCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEventThreatDetectionCustomModules", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_async_flattened", + "title": "ListEventThreatDetectionCustomModulesAsync", + "description": "Snippet for ListEventThreatDetectionCustomModulesAsync", + "file": "SecurityCenterClient.ListEventThreatDetectionCustomModulesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEventThreatDetectionCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEventThreatDetectionCustomModulesAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_sync_flattened_resourceNames", + "title": "ListEventThreatDetectionCustomModulesResourceNames", + "description": "Snippet for ListEventThreatDetectionCustomModules", + "file": "SecurityCenterClient.ListEventThreatDetectionCustomModulesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEventThreatDetectionCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEventThreatDetectionCustomModules", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionSettingsName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_async_flattened_resourceNames", + "title": "ListEventThreatDetectionCustomModulesResourceNamesAsync", + "description": "Snippet for ListEventThreatDetectionCustomModulesAsync", + "file": "SecurityCenterClient.ListEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEventThreatDetectionCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEventThreatDetectionCustomModulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionSettingsName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_sync", + "title": "UpdateEventThreatDetectionCustomModuleRequestObject", + "description": "Snippet for UpdateEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.UpdateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateEventThreatDetectionCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_async", + "title": "UpdateEventThreatDetectionCustomModuleRequestObjectAsync", + "description": "Snippet for UpdateEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.UpdateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateEventThreatDetectionCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_sync_flattened", + "title": "UpdateEventThreatDetectionCustomModule", + "description": "Snippet for UpdateEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.UpdateEventThreatDetectionCustomModuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "name": "eventThreatDetectionCustomModule" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_async_flattened", + "title": "UpdateEventThreatDetectionCustomModuleAsync", + "description": "Snippet for UpdateEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.UpdateEventThreatDetectionCustomModuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule", + "name": "eventThreatDetectionCustomModule" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ValidateEventThreatDetectionCustomModule_sync", + "title": "ValidateEventThreatDetectionCustomModuleRequestObject", + "description": "Snippet for ValidateEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.ValidateEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ValidateEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ValidateEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ValidateEventThreatDetectionCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.ValidateEventThreatDetectionCustomModuleResponse", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ValidateEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ValidateEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 34, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ValidateEventThreatDetectionCustomModule_async", + "title": "ValidateEventThreatDetectionCustomModuleRequestObjectAsync", + "description": "Snippet for ValidateEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.ValidateEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ValidateEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ValidateEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ValidateEventThreatDetectionCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ValidateEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ValidateEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_sync", + "title": "GetEffectiveEventThreatDetectionCustomModuleRequestObject", + "description": "Snippet for GetEffectiveEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEffectiveEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetEffectiveEventThreatDetectionCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_async", + "title": "GetEffectiveEventThreatDetectionCustomModuleRequestObjectAsync", + "description": "Snippet for GetEffectiveEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEffectiveEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetEffectiveEventThreatDetectionCustomModuleRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_sync_flattened", + "title": "GetEffectiveEventThreatDetectionCustomModule", + "description": "Snippet for GetEffectiveEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEffectiveEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_async_flattened", + "title": "GetEffectiveEventThreatDetectionCustomModuleAsync", + "description": "Snippet for GetEffectiveEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEffectiveEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_sync_flattened_resourceNames", + "title": "GetEffectiveEventThreatDetectionCustomModuleResourceNames", + "description": "Snippet for GetEffectiveEventThreatDetectionCustomModule", + "file": "SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEffectiveEventThreatDetectionCustomModule", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModule", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_async_flattened_resourceNames", + "title": "GetEffectiveEventThreatDetectionCustomModuleResourceNamesAsync", + "description": "Snippet for GetEffectiveEventThreatDetectionCustomModuleAsync", + "file": "SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetEffectiveEventThreatDetectionCustomModuleAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModuleName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveEventThreatDetectionCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveEventThreatDetectionCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_sync", + "title": "ListEffectiveEventThreatDetectionCustomModulesRequestObject", + "description": "Snippet for ListEffectiveEventThreatDetectionCustomModules", + "file": "SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEffectiveEventThreatDetectionCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModules", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListEffectiveEventThreatDetectionCustomModulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_async", + "title": "ListEffectiveEventThreatDetectionCustomModulesRequestObjectAsync", + "description": "Snippet for ListEffectiveEventThreatDetectionCustomModulesAsync", + "file": "SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEffectiveEventThreatDetectionCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListEffectiveEventThreatDetectionCustomModulesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 38, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_sync_flattened", + "title": "ListEffectiveEventThreatDetectionCustomModules", + "description": "Snippet for ListEffectiveEventThreatDetectionCustomModules", + "file": "SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEffectiveEventThreatDetectionCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModules", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_async_flattened", + "title": "ListEffectiveEventThreatDetectionCustomModulesAsync", + "description": "Snippet for ListEffectiveEventThreatDetectionCustomModulesAsync", + "file": "SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEffectiveEventThreatDetectionCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_sync_flattened_resourceNames", + "title": "ListEffectiveEventThreatDetectionCustomModulesResourceNames", + "description": "Snippet for ListEffectiveEventThreatDetectionCustomModules", + "file": "SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEffectiveEventThreatDetectionCustomModules", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModules", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionSettingsName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_async_flattened_resourceNames", + "title": "ListEffectiveEventThreatDetectionCustomModulesResourceNamesAsync", + "description": "Snippet for ListEffectiveEventThreatDetectionCustomModulesAsync", + "file": "SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListEffectiveEventThreatDetectionCustomModulesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.EventThreatDetectionSettingsName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveEventThreatDetectionCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveEventThreatDetectionCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_sync", + "title": "BatchCreateResourceValueConfigsRequestObject", + "description": "Snippet for BatchCreateResourceValueConfigs", + "file": "SecurityCenterClient.BatchCreateResourceValueConfigsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchCreateResourceValueConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.BatchCreateResourceValueConfigs", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.BatchCreateResourceValueConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BatchCreateResourceValueConfigsResponse", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "BatchCreateResourceValueConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BatchCreateResourceValueConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 35, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_async", + "title": "BatchCreateResourceValueConfigsRequestObjectAsync", + "description": "Snippet for BatchCreateResourceValueConfigsAsync", + "file": "SecurityCenterClient.BatchCreateResourceValueConfigsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchCreateResourceValueConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.BatchCreateResourceValueConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.BatchCreateResourceValueConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "BatchCreateResourceValueConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BatchCreateResourceValueConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 36, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_sync_flattened", + "title": "BatchCreateResourceValueConfigs", + "description": "Snippet for BatchCreateResourceValueConfigs", + "file": "SecurityCenterClient.BatchCreateResourceValueConfigsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchCreateResourceValueConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.BatchCreateResourceValueConfigs", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "requests" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BatchCreateResourceValueConfigsResponse", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "BatchCreateResourceValueConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BatchCreateResourceValueConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_async_flattened", + "title": "BatchCreateResourceValueConfigsAsync", + "description": "Snippet for BatchCreateResourceValueConfigsAsync", + "file": "SecurityCenterClient.BatchCreateResourceValueConfigsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchCreateResourceValueConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.BatchCreateResourceValueConfigsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "requests" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "BatchCreateResourceValueConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BatchCreateResourceValueConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_sync_flattened_resourceNames", + "title": "BatchCreateResourceValueConfigsResourceNames", + "description": "Snippet for BatchCreateResourceValueConfigs", + "file": "SecurityCenterClient.BatchCreateResourceValueConfigsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchCreateResourceValueConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.BatchCreateResourceValueConfigs", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "requests" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.BatchCreateResourceValueConfigsResponse", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "BatchCreateResourceValueConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BatchCreateResourceValueConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_async_flattened_resourceNames", + "title": "BatchCreateResourceValueConfigsResourceNamesAsync", + "description": "Snippet for BatchCreateResourceValueConfigsAsync", + "file": "SecurityCenterClient.BatchCreateResourceValueConfigsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchCreateResourceValueConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.BatchCreateResourceValueConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "name": "parent" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "requests" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "BatchCreateResourceValueConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BatchCreateResourceValueConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_sync", + "title": "DeleteResourceValueConfigRequestObject", + "description": "Snippet for DeleteResourceValueConfig", + "file": "SecurityCenterClient.DeleteResourceValueConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteResourceValueConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteResourceValueConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.DeleteResourceValueConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_async", + "title": "DeleteResourceValueConfigRequestObjectAsync", + "description": "Snippet for DeleteResourceValueConfigAsync", + "file": "SecurityCenterClient.DeleteResourceValueConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteResourceValueConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteResourceValueConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.DeleteResourceValueConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_sync_flattened", + "title": "DeleteResourceValueConfig", + "description": "Snippet for DeleteResourceValueConfig", + "file": "SecurityCenterClient.DeleteResourceValueConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteResourceValueConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteResourceValueConfig", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_async_flattened", + "title": "DeleteResourceValueConfigAsync", + "description": "Snippet for DeleteResourceValueConfigAsync", + "file": "SecurityCenterClient.DeleteResourceValueConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteResourceValueConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteResourceValueConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_sync_flattened_resourceNames", + "title": "DeleteResourceValueConfigResourceNames", + "description": "Snippet for DeleteResourceValueConfig", + "file": "SecurityCenterClient.DeleteResourceValueConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteResourceValueConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteResourceValueConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ResourceValueConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_async_flattened_resourceNames", + "title": "DeleteResourceValueConfigResourceNamesAsync", + "description": "Snippet for DeleteResourceValueConfigAsync", + "file": "SecurityCenterClient.DeleteResourceValueConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteResourceValueConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.DeleteResourceValueConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ResourceValueConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_sync", + "title": "GetResourceValueConfigRequestObject", + "description": "Snippet for GetResourceValueConfig", + "file": "SecurityCenterClient.GetResourceValueConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetResourceValueConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetResourceValueConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetResourceValueConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.ResourceValueConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_async", + "title": "GetResourceValueConfigRequestObjectAsync", + "description": "Snippet for GetResourceValueConfigAsync", + "file": "SecurityCenterClient.GetResourceValueConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetResourceValueConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetResourceValueConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.GetResourceValueConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_sync_flattened", + "title": "GetResourceValueConfig", + "description": "Snippet for GetResourceValueConfig", + "file": "SecurityCenterClient.GetResourceValueConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetResourceValueConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetResourceValueConfig", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.ResourceValueConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_async_flattened", + "title": "GetResourceValueConfigAsync", + "description": "Snippet for GetResourceValueConfigAsync", + "file": "SecurityCenterClient.GetResourceValueConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetResourceValueConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetResourceValueConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_sync_flattened_resourceNames", + "title": "GetResourceValueConfigResourceNames", + "description": "Snippet for GetResourceValueConfig", + "file": "SecurityCenterClient.GetResourceValueConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetResourceValueConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetResourceValueConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ResourceValueConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.ResourceValueConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_async_flattened_resourceNames", + "title": "GetResourceValueConfigResourceNamesAsync", + "description": "Snippet for GetResourceValueConfigAsync", + "file": "SecurityCenterClient.GetResourceValueConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetResourceValueConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.GetResourceValueConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ResourceValueConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "GetResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_sync", + "title": "ListResourceValueConfigsRequestObject", + "description": "Snippet for ListResourceValueConfigs", + "file": "SecurityCenterClient.ListResourceValueConfigsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListResourceValueConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListResourceValueConfigs", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListResourceValueConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListResourceValueConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListResourceValueConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 37, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_async", + "title": "ListResourceValueConfigsRequestObjectAsync", + "description": "Snippet for ListResourceValueConfigsAsync", + "file": "SecurityCenterClient.ListResourceValueConfigsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListResourceValueConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListResourceValueConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListResourceValueConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListResourceValueConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListResourceValueConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 39, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_sync_flattened", + "title": "ListResourceValueConfigs", + "description": "Snippet for ListResourceValueConfigs", + "file": "SecurityCenterClient.ListResourceValueConfigsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListResourceValueConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListResourceValueConfigs", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListResourceValueConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListResourceValueConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_async_flattened", + "title": "ListResourceValueConfigsAsync", + "description": "Snippet for ListResourceValueConfigsAsync", + "file": "SecurityCenterClient.ListResourceValueConfigsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListResourceValueConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListResourceValueConfigsAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListResourceValueConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListResourceValueConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_sync_flattened_resourceNames", + "title": "ListResourceValueConfigsResourceNames", + "description": "Snippet for ListResourceValueConfigs", + "file": "SecurityCenterClient.ListResourceValueConfigsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListResourceValueConfigs", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListResourceValueConfigs", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListResourceValueConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListResourceValueConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_async_flattened_resourceNames", + "title": "ListResourceValueConfigsResourceNamesAsync", + "description": "Snippet for ListResourceValueConfigsAsync", + "file": "SecurityCenterClient.ListResourceValueConfigsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListResourceValueConfigsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListResourceValueConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.OrganizationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListResourceValueConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListResourceValueConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_sync", + "title": "UpdateResourceValueConfigRequestObject", + "description": "Snippet for UpdateResourceValueConfig", + "file": "SecurityCenterClient.UpdateResourceValueConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateResourceValueConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateResourceValueConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateResourceValueConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.ResourceValueConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_async", + "title": "UpdateResourceValueConfigRequestObjectAsync", + "description": "Snippet for UpdateResourceValueConfigAsync", + "file": "SecurityCenterClient.UpdateResourceValueConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateResourceValueConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateResourceValueConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.UpdateResourceValueConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_sync_flattened", + "title": "UpdateResourceValueConfig", + "description": "Snippet for UpdateResourceValueConfig", + "file": "SecurityCenterClient.UpdateResourceValueConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateResourceValueConfig", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateResourceValueConfig", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ResourceValueConfig", + "name": "resourceValueConfig" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecurityCenter.V1.ResourceValueConfig", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_async_flattened", + "title": "UpdateResourceValueConfigAsync", + "description": "Snippet for UpdateResourceValueConfigAsync", + "file": "SecurityCenterClient.UpdateResourceValueConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateResourceValueConfigAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.UpdateResourceValueConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ResourceValueConfig", + "name": "resourceValueConfig" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateResourceValueConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateResourceValueConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync", + "title": "ListValuedResourcesRequestObject", + "description": "Snippet for ListValuedResources", + "file": "SecurityCenterClient.ListValuedResourcesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListValuedResources", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListValuedResources", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListValuedResourcesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListValuedResources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListValuedResources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 36, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListValuedResources_async", + "title": "ListValuedResourcesRequestObjectAsync", + "description": "Snippet for ListValuedResourcesAsync", + "file": "SecurityCenterClient.ListValuedResourcesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListValuedResourcesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListValuedResourcesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListValuedResourcesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListValuedResources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListValuedResources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 82, + "type": "FULL" + }, + { + "start": 38, + "end": 80, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync_flattened", + "title": "ListValuedResources", + "description": "Snippet for ListValuedResources", + "file": "SecurityCenterClient.ListValuedResourcesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListValuedResources", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListValuedResources", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListValuedResources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListValuedResources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListValuedResources_async_flattened", + "title": "ListValuedResourcesAsync", + "description": "Snippet for ListValuedResourcesAsync", + "file": "SecurityCenterClient.ListValuedResourcesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListValuedResourcesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListValuedResourcesAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListValuedResources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListValuedResources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync_flattened_resourceNames1", + "title": "ListValuedResourcesResourceNames1", + "description": "Snippet for ListValuedResources", + "file": "SecurityCenterClient.ListValuedResourcesResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListValuedResources", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListValuedResources", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.OrganizationSimulationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListValuedResources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListValuedResources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListValuedResources_async_flattened_resourceNames1", + "title": "ListValuedResourcesResourceNames1Async", + "description": "Snippet for ListValuedResourcesAsync", + "file": "SecurityCenterClient.ListValuedResourcesResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListValuedResourcesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListValuedResourcesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.OrganizationSimulationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListValuedResources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListValuedResources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync_flattened_resourceNames2", + "title": "ListValuedResourcesResourceNames2", + "description": "Snippet for ListValuedResources", + "file": "SecurityCenterClient.ListValuedResourcesResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListValuedResources", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListValuedResources", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SimulationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListValuedResources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListValuedResources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListValuedResources_async_flattened_resourceNames2", + "title": "ListValuedResourcesResourceNames2Async", + "description": "Snippet for ListValuedResourcesAsync", + "file": "SecurityCenterClient.ListValuedResourcesResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListValuedResourcesAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListValuedResourcesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.SimulationName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListValuedResources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListValuedResources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListAttackPaths_sync", + "title": "ListAttackPathsRequestObject", + "description": "Snippet for ListAttackPaths", + "file": "SecurityCenterClient.ListAttackPathsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAttackPaths", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListAttackPaths", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListAttackPathsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListAttackPaths", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAttackPaths", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 36, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListAttackPaths_async", + "title": "ListAttackPathsRequestObjectAsync", + "description": "Snippet for ListAttackPathsAsync", + "file": "SecurityCenterClient.ListAttackPathsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAttackPathsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListAttackPathsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ListAttackPathsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListAttackPaths", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAttackPaths", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 38, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListAttackPaths_sync_flattened", + "title": "ListAttackPaths", + "description": "Snippet for ListAttackPaths", + "file": "SecurityCenterClient.ListAttackPathsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAttackPaths", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListAttackPaths", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListAttackPaths", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAttackPaths", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListAttackPaths_async_flattened", + "title": "ListAttackPathsAsync", + "description": "Snippet for ListAttackPathsAsync", + "file": "SecurityCenterClient.ListAttackPathsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAttackPathsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListAttackPathsAsync", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListAttackPaths", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAttackPaths", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListAttackPaths_sync_flattened_resourceNames", + "title": "ListAttackPathsResourceNames", + "description": "Snippet for ListAttackPaths", + "file": "SecurityCenterClient.ListAttackPathsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAttackPaths", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListAttackPaths", + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ValuedResourceName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListAttackPaths", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAttackPaths", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListAttackPaths_async_flattened_resourceNames", + "title": "ListAttackPathsResourceNamesAsync", + "description": "Snippet for ListAttackPathsAsync", + "file": "SecurityCenterClient.ListAttackPathsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAttackPathsAsync", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient.ListAttackPathsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecurityCenter.V1.ValuedResourceName", + "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": "SecurityCenterClient", + "fullName": "Google.Cloud.SecurityCenter.V1.SecurityCenterClient" + }, + "method": { + "shortName": "ListAttackPaths", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAttackPaths", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + } + ] +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.Snippets/Google.Cloud.SecurityCenter.V1.Snippets.csproj b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.Snippets/Google.Cloud.SecurityCenter.V1.Snippets.csproj new file mode 100755 index 000000000000..4573aa68e212 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.Snippets/Google.Cloud.SecurityCenter.V1.Snippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.Snippets/SecurityCenterClientSnippets.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.Snippets/SecurityCenterClientSnippets.g.cs new file mode 100755 index 000000000000..be5836f008d3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.Snippets/SecurityCenterClientSnippets.g.cs @@ -0,0 +1,9962 @@ +// 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.SecurityCenter.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Collections.Generic; + using System.Linq; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedSecurityCenterClientSnippets + { + /// Snippet for BulkMuteFindings + public void BulkMuteFindingsRequestObject() + { + // Snippet: BulkMuteFindings(BulkMuteFindingsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + BulkMuteFindingsRequest request = new BulkMuteFindingsRequest + { + ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Filter = "", + MuteState = BulkMuteFindingsRequest.Types.MuteState.Unspecified, + }; + // Make the request + Operation response = securityCenterClient.BulkMuteFindings(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BulkMuteFindingsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for BulkMuteFindingsAsync + public async Task BulkMuteFindingsRequestObjectAsync() + { + // Snippet: BulkMuteFindingsAsync(BulkMuteFindingsRequest, CallSettings) + // Additional: BulkMuteFindingsAsync(BulkMuteFindingsRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + BulkMuteFindingsRequest request = new BulkMuteFindingsRequest + { + ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Filter = "", + MuteState = BulkMuteFindingsRequest.Types.MuteState.Unspecified, + }; + // Make the request + Operation response = await securityCenterClient.BulkMuteFindingsAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BulkMuteFindingsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for BulkMuteFindings + public void BulkMuteFindings() + { + // Snippet: BulkMuteFindings(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "a/wildcard/resource"; + // Make the request + Operation response = securityCenterClient.BulkMuteFindings(parent); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BulkMuteFindingsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for BulkMuteFindingsAsync + public async Task BulkMuteFindingsAsync() + { + // Snippet: BulkMuteFindingsAsync(string, CallSettings) + // Additional: BulkMuteFindingsAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "a/wildcard/resource"; + // Make the request + Operation response = await securityCenterClient.BulkMuteFindingsAsync(parent); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BulkMuteFindingsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for BulkMuteFindings + public void BulkMuteFindingsResourceNames() + { + // Snippet: BulkMuteFindings(IResourceName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + IResourceName parent = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Operation response = securityCenterClient.BulkMuteFindings(parent); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + BulkMuteFindingsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = securityCenterClient.PollOnceBulkMuteFindings(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for BulkMuteFindingsAsync + public async Task BulkMuteFindingsResourceNamesAsync() + { + // Snippet: BulkMuteFindingsAsync(IResourceName, CallSettings) + // Additional: BulkMuteFindingsAsync(IResourceName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + IResourceName parent = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Operation response = await securityCenterClient.BulkMuteFindingsAsync(parent); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + BulkMuteFindingsResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await securityCenterClient.PollOnceBulkMuteFindingsAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + BulkMuteFindingsResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateSecurityHealthAnalyticsCustomModule + public void CreateSecurityHealthAnalyticsCustomModuleRequestObject() + { + // Snippet: CreateSecurityHealthAnalyticsCustomModule(CreateSecurityHealthAnalyticsCustomModuleRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateSecurityHealthAnalyticsCustomModuleRequest request = new CreateSecurityHealthAnalyticsCustomModuleRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(), + }; + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.CreateSecurityHealthAnalyticsCustomModule(request); + // End snippet + } + + /// Snippet for CreateSecurityHealthAnalyticsCustomModuleAsync + public async Task CreateSecurityHealthAnalyticsCustomModuleRequestObjectAsync() + { + // Snippet: CreateSecurityHealthAnalyticsCustomModuleAsync(CreateSecurityHealthAnalyticsCustomModuleRequest, CallSettings) + // Additional: CreateSecurityHealthAnalyticsCustomModuleAsync(CreateSecurityHealthAnalyticsCustomModuleRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateSecurityHealthAnalyticsCustomModuleRequest request = new CreateSecurityHealthAnalyticsCustomModuleRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(), + }; + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(request); + // End snippet + } + + /// Snippet for CreateSecurityHealthAnalyticsCustomModule + public void CreateSecurityHealthAnalyticsCustomModule() + { + // Snippet: CreateSecurityHealthAnalyticsCustomModule(string, SecurityHealthAnalyticsCustomModule, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(); + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.CreateSecurityHealthAnalyticsCustomModule(parent, securityHealthAnalyticsCustomModule); + // End snippet + } + + /// Snippet for CreateSecurityHealthAnalyticsCustomModuleAsync + public async Task CreateSecurityHealthAnalyticsCustomModuleAsync() + { + // Snippet: CreateSecurityHealthAnalyticsCustomModuleAsync(string, SecurityHealthAnalyticsCustomModule, CallSettings) + // Additional: CreateSecurityHealthAnalyticsCustomModuleAsync(string, SecurityHealthAnalyticsCustomModule, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(); + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(parent, securityHealthAnalyticsCustomModule); + // End snippet + } + + /// Snippet for CreateSecurityHealthAnalyticsCustomModule + public void CreateSecurityHealthAnalyticsCustomModuleResourceNames() + { + // Snippet: CreateSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsSettingsName, SecurityHealthAnalyticsCustomModule, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(); + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.CreateSecurityHealthAnalyticsCustomModule(parent, securityHealthAnalyticsCustomModule); + // End snippet + } + + /// Snippet for CreateSecurityHealthAnalyticsCustomModuleAsync + public async Task CreateSecurityHealthAnalyticsCustomModuleResourceNamesAsync() + { + // Snippet: CreateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsSettingsName, SecurityHealthAnalyticsCustomModule, CallSettings) + // Additional: CreateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsSettingsName, SecurityHealthAnalyticsCustomModule, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(); + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.CreateSecurityHealthAnalyticsCustomModuleAsync(parent, securityHealthAnalyticsCustomModule); + // End snippet + } + + /// Snippet for CreateSource + public void CreateSourceRequestObject() + { + // Snippet: CreateSource(CreateSourceRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateSourceRequest request = new CreateSourceRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Source = new Source(), + }; + // Make the request + Source response = securityCenterClient.CreateSource(request); + // End snippet + } + + /// Snippet for CreateSourceAsync + public async Task CreateSourceRequestObjectAsync() + { + // Snippet: CreateSourceAsync(CreateSourceRequest, CallSettings) + // Additional: CreateSourceAsync(CreateSourceRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateSourceRequest request = new CreateSourceRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Source = new Source(), + }; + // Make the request + Source response = await securityCenterClient.CreateSourceAsync(request); + // End snippet + } + + /// Snippet for CreateSource + public void CreateSource() + { + // Snippet: CreateSource(string, Source, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + Source source = new Source(); + // Make the request + Source response = securityCenterClient.CreateSource(parent, source); + // End snippet + } + + /// Snippet for CreateSourceAsync + public async Task CreateSourceAsync() + { + // Snippet: CreateSourceAsync(string, Source, CallSettings) + // Additional: CreateSourceAsync(string, Source, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + Source source = new Source(); + // Make the request + Source response = await securityCenterClient.CreateSourceAsync(parent, source); + // End snippet + } + + /// Snippet for CreateSource + public void CreateSourceResourceNames() + { + // Snippet: CreateSource(OrganizationName, Source, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + Source source = new Source(); + // Make the request + Source response = securityCenterClient.CreateSource(parent, source); + // End snippet + } + + /// Snippet for CreateSourceAsync + public async Task CreateSourceResourceNamesAsync() + { + // Snippet: CreateSourceAsync(OrganizationName, Source, CallSettings) + // Additional: CreateSourceAsync(OrganizationName, Source, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + Source source = new Source(); + // Make the request + Source response = await securityCenterClient.CreateSourceAsync(parent, source); + // End snippet + } + + /// Snippet for CreateFinding + public void CreateFindingRequestObject() + { + // Snippet: CreateFinding(CreateFindingRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateFindingRequest request = new CreateFindingRequest + { + ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + FindingId = "", + Finding = new Finding(), + }; + // Make the request + Finding response = securityCenterClient.CreateFinding(request); + // End snippet + } + + /// Snippet for CreateFindingAsync + public async Task CreateFindingRequestObjectAsync() + { + // Snippet: CreateFindingAsync(CreateFindingRequest, CallSettings) + // Additional: CreateFindingAsync(CreateFindingRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateFindingRequest request = new CreateFindingRequest + { + ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + FindingId = "", + Finding = new Finding(), + }; + // Make the request + Finding response = await securityCenterClient.CreateFindingAsync(request); + // End snippet + } + + /// Snippet for CreateFinding + public void CreateFinding() + { + // Snippet: CreateFinding(string, string, Finding, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]"; + string findingId = ""; + Finding finding = new Finding(); + // Make the request + Finding response = securityCenterClient.CreateFinding(parent, findingId, finding); + // End snippet + } + + /// Snippet for CreateFindingAsync + public async Task CreateFindingAsync() + { + // Snippet: CreateFindingAsync(string, string, Finding, CallSettings) + // Additional: CreateFindingAsync(string, string, Finding, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]"; + string findingId = ""; + Finding finding = new Finding(); + // Make the request + Finding response = await securityCenterClient.CreateFindingAsync(parent, findingId, finding); + // End snippet + } + + /// Snippet for CreateFinding + public void CreateFindingResourceNames() + { + // Snippet: CreateFinding(SourceName, string, Finding, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"); + string findingId = ""; + Finding finding = new Finding(); + // Make the request + Finding response = securityCenterClient.CreateFinding(parent, findingId, finding); + // End snippet + } + + /// Snippet for CreateFindingAsync + public async Task CreateFindingResourceNamesAsync() + { + // Snippet: CreateFindingAsync(SourceName, string, Finding, CallSettings) + // Additional: CreateFindingAsync(SourceName, string, Finding, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"); + string findingId = ""; + Finding finding = new Finding(); + // Make the request + Finding response = await securityCenterClient.CreateFindingAsync(parent, findingId, finding); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfigRequestObject() + { + // Snippet: CreateMuteConfig(CreateMuteConfigRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateMuteConfigRequest request = new CreateMuteConfigRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + MuteConfig = new MuteConfig(), + MuteConfigId = "", + }; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(request); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfigRequestObjectAsync() + { + // Snippet: CreateMuteConfigAsync(CreateMuteConfigRequest, CallSettings) + // Additional: CreateMuteConfigAsync(CreateMuteConfigRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateMuteConfigRequest request = new CreateMuteConfigRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + MuteConfig = new MuteConfig(), + MuteConfigId = "", + }; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(request); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig1() + { + // Snippet: CreateMuteConfig(string, MuteConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig1Async() + { + // Snippet: CreateMuteConfigAsync(string, MuteConfig, CallSettings) + // Additional: CreateMuteConfigAsync(string, MuteConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig1ResourceNames1() + { + // Snippet: CreateMuteConfig(OrganizationName, MuteConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig1ResourceNames1Async() + { + // Snippet: CreateMuteConfigAsync(OrganizationName, MuteConfig, CallSettings) + // Additional: CreateMuteConfigAsync(OrganizationName, MuteConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig1ResourceNames2() + { + // Snippet: CreateMuteConfig(FolderName, MuteConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig1ResourceNames2Async() + { + // Snippet: CreateMuteConfigAsync(FolderName, MuteConfig, CallSettings) + // Additional: CreateMuteConfigAsync(FolderName, MuteConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig1ResourceNames3() + { + // Snippet: CreateMuteConfig(ProjectName, MuteConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig1ResourceNames3Async() + { + // Snippet: CreateMuteConfigAsync(ProjectName, MuteConfig, CallSettings) + // Additional: CreateMuteConfigAsync(ProjectName, MuteConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig1ResourceNames4() + { + // Snippet: CreateMuteConfig(OrganizationLocationName, MuteConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig1ResourceNames4Async() + { + // Snippet: CreateMuteConfigAsync(OrganizationLocationName, MuteConfig, CallSettings) + // Additional: CreateMuteConfigAsync(OrganizationLocationName, MuteConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig1ResourceNames5() + { + // Snippet: CreateMuteConfig(FolderLocationName, MuteConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig1ResourceNames5Async() + { + // Snippet: CreateMuteConfigAsync(FolderLocationName, MuteConfig, CallSettings) + // Additional: CreateMuteConfigAsync(FolderLocationName, MuteConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig1ResourceNames6() + { + // Snippet: CreateMuteConfig(LocationName, MuteConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig1ResourceNames6Async() + { + // Snippet: CreateMuteConfigAsync(LocationName, MuteConfig, CallSettings) + // Additional: CreateMuteConfigAsync(LocationName, MuteConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig2() + { + // Snippet: CreateMuteConfig(string, MuteConfig, string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig2Async() + { + // Snippet: CreateMuteConfigAsync(string, MuteConfig, string, CallSettings) + // Additional: CreateMuteConfigAsync(string, MuteConfig, string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig2ResourceNames1() + { + // Snippet: CreateMuteConfig(OrganizationName, MuteConfig, string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig2ResourceNames1Async() + { + // Snippet: CreateMuteConfigAsync(OrganizationName, MuteConfig, string, CallSettings) + // Additional: CreateMuteConfigAsync(OrganizationName, MuteConfig, string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig2ResourceNames2() + { + // Snippet: CreateMuteConfig(FolderName, MuteConfig, string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig2ResourceNames2Async() + { + // Snippet: CreateMuteConfigAsync(FolderName, MuteConfig, string, CallSettings) + // Additional: CreateMuteConfigAsync(FolderName, MuteConfig, string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig2ResourceNames3() + { + // Snippet: CreateMuteConfig(ProjectName, MuteConfig, string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig2ResourceNames3Async() + { + // Snippet: CreateMuteConfigAsync(ProjectName, MuteConfig, string, CallSettings) + // Additional: CreateMuteConfigAsync(ProjectName, MuteConfig, string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig2ResourceNames4() + { + // Snippet: CreateMuteConfig(OrganizationLocationName, MuteConfig, string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig2ResourceNames4Async() + { + // Snippet: CreateMuteConfigAsync(OrganizationLocationName, MuteConfig, string, CallSettings) + // Additional: CreateMuteConfigAsync(OrganizationLocationName, MuteConfig, string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig2ResourceNames5() + { + // Snippet: CreateMuteConfig(FolderLocationName, MuteConfig, string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig2ResourceNames5Async() + { + // Snippet: CreateMuteConfigAsync(FolderLocationName, MuteConfig, string, CallSettings) + // Additional: CreateMuteConfigAsync(FolderLocationName, MuteConfig, string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfig + public void CreateMuteConfig2ResourceNames6() + { + // Snippet: CreateMuteConfig(LocationName, MuteConfig, string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = securityCenterClient.CreateMuteConfig(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateMuteConfigAsync + public async Task CreateMuteConfig2ResourceNames6Async() + { + // Snippet: CreateMuteConfigAsync(LocationName, MuteConfig, string, CallSettings) + // Additional: CreateMuteConfigAsync(LocationName, MuteConfig, string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + MuteConfig muteConfig = new MuteConfig(); + string muteConfigId = ""; + // Make the request + MuteConfig response = await securityCenterClient.CreateMuteConfigAsync(parent, muteConfig, muteConfigId); + // End snippet + } + + /// Snippet for CreateNotificationConfig + public void CreateNotificationConfigRequestObject() + { + // Snippet: CreateNotificationConfig(CreateNotificationConfigRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateNotificationConfigRequest request = new CreateNotificationConfigRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + ConfigId = "", + NotificationConfig = new NotificationConfig(), + }; + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(request); + // End snippet + } + + /// Snippet for CreateNotificationConfigAsync + public async Task CreateNotificationConfigRequestObjectAsync() + { + // Snippet: CreateNotificationConfigAsync(CreateNotificationConfigRequest, CallSettings) + // Additional: CreateNotificationConfigAsync(CreateNotificationConfigRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateNotificationConfigRequest request = new CreateNotificationConfigRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + ConfigId = "", + NotificationConfig = new NotificationConfig(), + }; + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(request); + // End snippet + } + + /// Snippet for CreateNotificationConfig + public void CreateNotificationConfig1() + { + // Snippet: CreateNotificationConfig(string, string, NotificationConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfigAsync + public async Task CreateNotificationConfig1Async() + { + // Snippet: CreateNotificationConfigAsync(string, string, NotificationConfig, CallSettings) + // Additional: CreateNotificationConfigAsync(string, string, NotificationConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfig + public void CreateNotificationConfig1ResourceNames1() + { + // Snippet: CreateNotificationConfig(OrganizationName, string, NotificationConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfigAsync + public async Task CreateNotificationConfig1ResourceNames1Async() + { + // Snippet: CreateNotificationConfigAsync(OrganizationName, string, NotificationConfig, CallSettings) + // Additional: CreateNotificationConfigAsync(OrganizationName, string, NotificationConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfig + public void CreateNotificationConfig1ResourceNames2() + { + // Snippet: CreateNotificationConfig(FolderName, string, NotificationConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfigAsync + public async Task CreateNotificationConfig1ResourceNames2Async() + { + // Snippet: CreateNotificationConfigAsync(FolderName, string, NotificationConfig, CallSettings) + // Additional: CreateNotificationConfigAsync(FolderName, string, NotificationConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfig + public void CreateNotificationConfig1ResourceNames3() + { + // Snippet: CreateNotificationConfig(ProjectName, string, NotificationConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, configId, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfigAsync + public async Task CreateNotificationConfig1ResourceNames3Async() + { + // Snippet: CreateNotificationConfigAsync(ProjectName, string, NotificationConfig, CallSettings) + // Additional: CreateNotificationConfigAsync(ProjectName, string, NotificationConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + string configId = ""; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, configId, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfig + public void CreateNotificationConfig2() + { + // Snippet: CreateNotificationConfig(string, NotificationConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfigAsync + public async Task CreateNotificationConfig2Async() + { + // Snippet: CreateNotificationConfigAsync(string, NotificationConfig, CallSettings) + // Additional: CreateNotificationConfigAsync(string, NotificationConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfig + public void CreateNotificationConfig2ResourceNames1() + { + // Snippet: CreateNotificationConfig(OrganizationName, NotificationConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfigAsync + public async Task CreateNotificationConfig2ResourceNames1Async() + { + // Snippet: CreateNotificationConfigAsync(OrganizationName, NotificationConfig, CallSettings) + // Additional: CreateNotificationConfigAsync(OrganizationName, NotificationConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfig + public void CreateNotificationConfig2ResourceNames2() + { + // Snippet: CreateNotificationConfig(FolderName, NotificationConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfigAsync + public async Task CreateNotificationConfig2ResourceNames2Async() + { + // Snippet: CreateNotificationConfigAsync(FolderName, NotificationConfig, CallSettings) + // Additional: CreateNotificationConfigAsync(FolderName, NotificationConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfig + public void CreateNotificationConfig2ResourceNames3() + { + // Snippet: CreateNotificationConfig(ProjectName, NotificationConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.CreateNotificationConfig(parent, notificationConfig); + // End snippet + } + + /// Snippet for CreateNotificationConfigAsync + public async Task CreateNotificationConfig2ResourceNames3Async() + { + // Snippet: CreateNotificationConfigAsync(ProjectName, NotificationConfig, CallSettings) + // Additional: CreateNotificationConfigAsync(ProjectName, NotificationConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.CreateNotificationConfigAsync(parent, notificationConfig); + // End snippet + } + + /// Snippet for DeleteMuteConfig + public void DeleteMuteConfigRequestObject() + { + // Snippet: DeleteMuteConfig(DeleteMuteConfigRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + DeleteMuteConfigRequest request = new DeleteMuteConfigRequest + { + MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"), + }; + // Make the request + securityCenterClient.DeleteMuteConfig(request); + // End snippet + } + + /// Snippet for DeleteMuteConfigAsync + public async Task DeleteMuteConfigRequestObjectAsync() + { + // Snippet: DeleteMuteConfigAsync(DeleteMuteConfigRequest, CallSettings) + // Additional: DeleteMuteConfigAsync(DeleteMuteConfigRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + DeleteMuteConfigRequest request = new DeleteMuteConfigRequest + { + MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"), + }; + // Make the request + await securityCenterClient.DeleteMuteConfigAsync(request); + // End snippet + } + + /// Snippet for DeleteMuteConfig + public void DeleteMuteConfig() + { + // Snippet: DeleteMuteConfig(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]"; + // Make the request + securityCenterClient.DeleteMuteConfig(name); + // End snippet + } + + /// Snippet for DeleteMuteConfigAsync + public async Task DeleteMuteConfigAsync() + { + // Snippet: DeleteMuteConfigAsync(string, CallSettings) + // Additional: DeleteMuteConfigAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]"; + // Make the request + await securityCenterClient.DeleteMuteConfigAsync(name); + // End snippet + } + + /// Snippet for DeleteMuteConfig + public void DeleteMuteConfigResourceNames() + { + // Snippet: DeleteMuteConfig(MuteConfigName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"); + // Make the request + securityCenterClient.DeleteMuteConfig(name); + // End snippet + } + + /// Snippet for DeleteMuteConfigAsync + public async Task DeleteMuteConfigResourceNamesAsync() + { + // Snippet: DeleteMuteConfigAsync(MuteConfigName, CallSettings) + // Additional: DeleteMuteConfigAsync(MuteConfigName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"); + // Make the request + await securityCenterClient.DeleteMuteConfigAsync(name); + // End snippet + } + + /// Snippet for DeleteNotificationConfig + public void DeleteNotificationConfigRequestObject() + { + // Snippet: DeleteNotificationConfig(DeleteNotificationConfigRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest + { + NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"), + }; + // Make the request + securityCenterClient.DeleteNotificationConfig(request); + // End snippet + } + + /// Snippet for DeleteNotificationConfigAsync + public async Task DeleteNotificationConfigRequestObjectAsync() + { + // Snippet: DeleteNotificationConfigAsync(DeleteNotificationConfigRequest, CallSettings) + // Additional: DeleteNotificationConfigAsync(DeleteNotificationConfigRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + DeleteNotificationConfigRequest request = new DeleteNotificationConfigRequest + { + NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"), + }; + // Make the request + await securityCenterClient.DeleteNotificationConfigAsync(request); + // End snippet + } + + /// Snippet for DeleteNotificationConfig + public void DeleteNotificationConfig() + { + // Snippet: DeleteNotificationConfig(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]"; + // Make the request + securityCenterClient.DeleteNotificationConfig(name); + // End snippet + } + + /// Snippet for DeleteNotificationConfigAsync + public async Task DeleteNotificationConfigAsync() + { + // Snippet: DeleteNotificationConfigAsync(string, CallSettings) + // Additional: DeleteNotificationConfigAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]"; + // Make the request + await securityCenterClient.DeleteNotificationConfigAsync(name); + // End snippet + } + + /// Snippet for DeleteNotificationConfig + public void DeleteNotificationConfigResourceNames() + { + // Snippet: DeleteNotificationConfig(NotificationConfigName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + // Make the request + securityCenterClient.DeleteNotificationConfig(name); + // End snippet + } + + /// Snippet for DeleteNotificationConfigAsync + public async Task DeleteNotificationConfigResourceNamesAsync() + { + // Snippet: DeleteNotificationConfigAsync(NotificationConfigName, CallSettings) + // Additional: DeleteNotificationConfigAsync(NotificationConfigName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + // Make the request + await securityCenterClient.DeleteNotificationConfigAsync(name); + // End snippet + } + + /// Snippet for DeleteSecurityHealthAnalyticsCustomModule + public void DeleteSecurityHealthAnalyticsCustomModuleRequestObject() + { + // Snippet: DeleteSecurityHealthAnalyticsCustomModule(DeleteSecurityHealthAnalyticsCustomModuleRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + DeleteSecurityHealthAnalyticsCustomModuleRequest request = new DeleteSecurityHealthAnalyticsCustomModuleRequest + { + SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"), + }; + // Make the request + securityCenterClient.DeleteSecurityHealthAnalyticsCustomModule(request); + // End snippet + } + + /// Snippet for DeleteSecurityHealthAnalyticsCustomModuleAsync + public async Task DeleteSecurityHealthAnalyticsCustomModuleRequestObjectAsync() + { + // Snippet: DeleteSecurityHealthAnalyticsCustomModuleAsync(DeleteSecurityHealthAnalyticsCustomModuleRequest, CallSettings) + // Additional: DeleteSecurityHealthAnalyticsCustomModuleAsync(DeleteSecurityHealthAnalyticsCustomModuleRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + DeleteSecurityHealthAnalyticsCustomModuleRequest request = new DeleteSecurityHealthAnalyticsCustomModuleRequest + { + SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"), + }; + // Make the request + await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(request); + // End snippet + } + + /// Snippet for DeleteSecurityHealthAnalyticsCustomModule + public void DeleteSecurityHealthAnalyticsCustomModule() + { + // Snippet: DeleteSecurityHealthAnalyticsCustomModule(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]"; + // Make the request + securityCenterClient.DeleteSecurityHealthAnalyticsCustomModule(name); + // End snippet + } + + /// Snippet for DeleteSecurityHealthAnalyticsCustomModuleAsync + public async Task DeleteSecurityHealthAnalyticsCustomModuleAsync() + { + // Snippet: DeleteSecurityHealthAnalyticsCustomModuleAsync(string, CallSettings) + // Additional: DeleteSecurityHealthAnalyticsCustomModuleAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]"; + // Make the request + await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(name); + // End snippet + } + + /// Snippet for DeleteSecurityHealthAnalyticsCustomModule + public void DeleteSecurityHealthAnalyticsCustomModuleResourceNames() + { + // Snippet: DeleteSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"); + // Make the request + securityCenterClient.DeleteSecurityHealthAnalyticsCustomModule(name); + // End snippet + } + + /// Snippet for DeleteSecurityHealthAnalyticsCustomModuleAsync + public async Task DeleteSecurityHealthAnalyticsCustomModuleResourceNamesAsync() + { + // Snippet: DeleteSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName, CallSettings) + // Additional: DeleteSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"); + // Make the request + await securityCenterClient.DeleteSecurityHealthAnalyticsCustomModuleAsync(name); + // End snippet + } + + /// Snippet for GetSimulation + public void GetSimulationRequestObject() + { + // Snippet: GetSimulation(GetSimulationRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetSimulationRequest request = new GetSimulationRequest + { + SimulationName = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"), + }; + // Make the request + Simulation response = securityCenterClient.GetSimulation(request); + // End snippet + } + + /// Snippet for GetSimulationAsync + public async Task GetSimulationRequestObjectAsync() + { + // Snippet: GetSimulationAsync(GetSimulationRequest, CallSettings) + // Additional: GetSimulationAsync(GetSimulationRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetSimulationRequest request = new GetSimulationRequest + { + SimulationName = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"), + }; + // Make the request + Simulation response = await securityCenterClient.GetSimulationAsync(request); + // End snippet + } + + /// Snippet for GetSimulation + public void GetSimulation() + { + // Snippet: GetSimulation(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]"; + // Make the request + Simulation response = securityCenterClient.GetSimulation(name); + // End snippet + } + + /// Snippet for GetSimulationAsync + public async Task GetSimulationAsync() + { + // Snippet: GetSimulationAsync(string, CallSettings) + // Additional: GetSimulationAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]"; + // Make the request + Simulation response = await securityCenterClient.GetSimulationAsync(name); + // End snippet + } + + /// Snippet for GetSimulation + public void GetSimulationResourceNames() + { + // Snippet: GetSimulation(SimulationName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SimulationName name = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"); + // Make the request + Simulation response = securityCenterClient.GetSimulation(name); + // End snippet + } + + /// Snippet for GetSimulationAsync + public async Task GetSimulationResourceNamesAsync() + { + // Snippet: GetSimulationAsync(SimulationName, CallSettings) + // Additional: GetSimulationAsync(SimulationName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SimulationName name = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"); + // Make the request + Simulation response = await securityCenterClient.GetSimulationAsync(name); + // End snippet + } + + /// Snippet for GetValuedResource + public void GetValuedResourceRequestObject() + { + // Snippet: GetValuedResource(GetValuedResourceRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetValuedResourceRequest request = new GetValuedResourceRequest + { + ValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"), + }; + // Make the request + ValuedResource response = securityCenterClient.GetValuedResource(request); + // End snippet + } + + /// Snippet for GetValuedResourceAsync + public async Task GetValuedResourceRequestObjectAsync() + { + // Snippet: GetValuedResourceAsync(GetValuedResourceRequest, CallSettings) + // Additional: GetValuedResourceAsync(GetValuedResourceRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetValuedResourceRequest request = new GetValuedResourceRequest + { + ValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"), + }; + // Make the request + ValuedResource response = await securityCenterClient.GetValuedResourceAsync(request); + // End snippet + } + + /// Snippet for GetValuedResource + public void GetValuedResource() + { + // Snippet: GetValuedResource(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]"; + // Make the request + ValuedResource response = securityCenterClient.GetValuedResource(name); + // End snippet + } + + /// Snippet for GetValuedResourceAsync + public async Task GetValuedResourceAsync() + { + // Snippet: GetValuedResourceAsync(string, CallSettings) + // Additional: GetValuedResourceAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]"; + // Make the request + ValuedResource response = await securityCenterClient.GetValuedResourceAsync(name); + // End snippet + } + + /// Snippet for GetValuedResource + public void GetValuedResourceResourceNames() + { + // Snippet: GetValuedResource(ValuedResourceName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ValuedResourceName name = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"); + // Make the request + ValuedResource response = securityCenterClient.GetValuedResource(name); + // End snippet + } + + /// Snippet for GetValuedResourceAsync + public async Task GetValuedResourceResourceNamesAsync() + { + // Snippet: GetValuedResourceAsync(ValuedResourceName, CallSettings) + // Additional: GetValuedResourceAsync(ValuedResourceName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ValuedResourceName name = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"); + // Make the request + ValuedResource response = await securityCenterClient.GetValuedResourceAsync(name); + // End snippet + } + + /// Snippet for GetBigQueryExport + public void GetBigQueryExportRequestObject() + { + // Snippet: GetBigQueryExport(GetBigQueryExportRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetBigQueryExportRequest request = new GetBigQueryExportRequest + { + BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"), + }; + // Make the request + BigQueryExport response = securityCenterClient.GetBigQueryExport(request); + // End snippet + } + + /// Snippet for GetBigQueryExportAsync + public async Task GetBigQueryExportRequestObjectAsync() + { + // Snippet: GetBigQueryExportAsync(GetBigQueryExportRequest, CallSettings) + // Additional: GetBigQueryExportAsync(GetBigQueryExportRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetBigQueryExportRequest request = new GetBigQueryExportRequest + { + BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"), + }; + // Make the request + BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(request); + // End snippet + } + + /// Snippet for GetBigQueryExport + public void GetBigQueryExport() + { + // Snippet: GetBigQueryExport(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]"; + // Make the request + BigQueryExport response = securityCenterClient.GetBigQueryExport(name); + // End snippet + } + + /// Snippet for GetBigQueryExportAsync + public async Task GetBigQueryExportAsync() + { + // Snippet: GetBigQueryExportAsync(string, CallSettings) + // Additional: GetBigQueryExportAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]"; + // Make the request + BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name); + // End snippet + } + + /// Snippet for GetBigQueryExport + public void GetBigQueryExportResourceNames() + { + // Snippet: GetBigQueryExport(BigQueryExportName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"); + // Make the request + BigQueryExport response = securityCenterClient.GetBigQueryExport(name); + // End snippet + } + + /// Snippet for GetBigQueryExportAsync + public async Task GetBigQueryExportResourceNamesAsync() + { + // Snippet: GetBigQueryExportAsync(BigQueryExportName, CallSettings) + // Additional: GetBigQueryExportAsync(BigQueryExportName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"); + // Make the request + BigQueryExport response = await securityCenterClient.GetBigQueryExportAsync(name); + // End snippet + } + + /// Snippet for GetIamPolicy + public void GetIamPolicyRequestObject() + { + // Snippet: GetIamPolicy(GetIamPolicyRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = securityCenterClient.GetIamPolicy(request); + // End snippet + } + + /// Snippet for GetIamPolicyAsync + public async Task GetIamPolicyRequestObjectAsync() + { + // Snippet: GetIamPolicyAsync(GetIamPolicyRequest, CallSettings) + // Additional: GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = await securityCenterClient.GetIamPolicyAsync(request); + // End snippet + } + + /// Snippet for GetIamPolicy + public void GetIamPolicy() + { + // Snippet: GetIamPolicy(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = securityCenterClient.GetIamPolicy(resource); + // End snippet + } + + /// Snippet for GetIamPolicyAsync + public async Task GetIamPolicyAsync() + { + // Snippet: GetIamPolicyAsync(string, CallSettings) + // Additional: GetIamPolicyAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = await securityCenterClient.GetIamPolicyAsync(resource); + // End snippet + } + + /// Snippet for GetIamPolicy + public void GetIamPolicyResourceNames() + { + // Snippet: GetIamPolicy(IResourceName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = securityCenterClient.GetIamPolicy(resource); + // End snippet + } + + /// Snippet for GetIamPolicyAsync + public async Task GetIamPolicyResourceNamesAsync() + { + // Snippet: GetIamPolicyAsync(IResourceName, CallSettings) + // Additional: GetIamPolicyAsync(IResourceName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = await securityCenterClient.GetIamPolicyAsync(resource); + // End snippet + } + + /// Snippet for GetMuteConfig + public void GetMuteConfigRequestObject() + { + // Snippet: GetMuteConfig(GetMuteConfigRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetMuteConfigRequest request = new GetMuteConfigRequest + { + MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"), + }; + // Make the request + MuteConfig response = securityCenterClient.GetMuteConfig(request); + // End snippet + } + + /// Snippet for GetMuteConfigAsync + public async Task GetMuteConfigRequestObjectAsync() + { + // Snippet: GetMuteConfigAsync(GetMuteConfigRequest, CallSettings) + // Additional: GetMuteConfigAsync(GetMuteConfigRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetMuteConfigRequest request = new GetMuteConfigRequest + { + MuteConfigName = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"), + }; + // Make the request + MuteConfig response = await securityCenterClient.GetMuteConfigAsync(request); + // End snippet + } + + /// Snippet for GetMuteConfig + public void GetMuteConfig() + { + // Snippet: GetMuteConfig(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]"; + // Make the request + MuteConfig response = securityCenterClient.GetMuteConfig(name); + // End snippet + } + + /// Snippet for GetMuteConfigAsync + public async Task GetMuteConfigAsync() + { + // Snippet: GetMuteConfigAsync(string, CallSettings) + // Additional: GetMuteConfigAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/muteConfigs/[MUTE_CONFIG]"; + // Make the request + MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name); + // End snippet + } + + /// Snippet for GetMuteConfig + public void GetMuteConfigResourceNames() + { + // Snippet: GetMuteConfig(MuteConfigName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"); + // Make the request + MuteConfig response = securityCenterClient.GetMuteConfig(name); + // End snippet + } + + /// Snippet for GetMuteConfigAsync + public async Task GetMuteConfigResourceNamesAsync() + { + // Snippet: GetMuteConfigAsync(MuteConfigName, CallSettings) + // Additional: GetMuteConfigAsync(MuteConfigName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + MuteConfigName name = MuteConfigName.FromOrganizationMuteConfig("[ORGANIZATION]", "[MUTE_CONFIG]"); + // Make the request + MuteConfig response = await securityCenterClient.GetMuteConfigAsync(name); + // End snippet + } + + /// Snippet for GetNotificationConfig + public void GetNotificationConfigRequestObject() + { + // Snippet: GetNotificationConfig(GetNotificationConfigRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetNotificationConfigRequest request = new GetNotificationConfigRequest + { + NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"), + }; + // Make the request + NotificationConfig response = securityCenterClient.GetNotificationConfig(request); + // End snippet + } + + /// Snippet for GetNotificationConfigAsync + public async Task GetNotificationConfigRequestObjectAsync() + { + // Snippet: GetNotificationConfigAsync(GetNotificationConfigRequest, CallSettings) + // Additional: GetNotificationConfigAsync(GetNotificationConfigRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetNotificationConfigRequest request = new GetNotificationConfigRequest + { + NotificationConfigName = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"), + }; + // Make the request + NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(request); + // End snippet + } + + /// Snippet for GetNotificationConfig + public void GetNotificationConfig() + { + // Snippet: GetNotificationConfig(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]"; + // Make the request + NotificationConfig response = securityCenterClient.GetNotificationConfig(name); + // End snippet + } + + /// Snippet for GetNotificationConfigAsync + public async Task GetNotificationConfigAsync() + { + // Snippet: GetNotificationConfigAsync(string, CallSettings) + // Additional: GetNotificationConfigAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/notificationConfigs/[NOTIFICATION_CONFIG]"; + // Make the request + NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name); + // End snippet + } + + /// Snippet for GetNotificationConfig + public void GetNotificationConfigResourceNames() + { + // Snippet: GetNotificationConfig(NotificationConfigName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + // Make the request + NotificationConfig response = securityCenterClient.GetNotificationConfig(name); + // End snippet + } + + /// Snippet for GetNotificationConfigAsync + public async Task GetNotificationConfigResourceNamesAsync() + { + // Snippet: GetNotificationConfigAsync(NotificationConfigName, CallSettings) + // Additional: GetNotificationConfigAsync(NotificationConfigName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + NotificationConfigName name = NotificationConfigName.FromOrganizationNotificationConfig("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + // Make the request + NotificationConfig response = await securityCenterClient.GetNotificationConfigAsync(name); + // End snippet + } + + /// Snippet for GetOrganizationSettings + public void GetOrganizationSettingsRequestObject() + { + // Snippet: GetOrganizationSettings(GetOrganizationSettingsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetOrganizationSettingsRequest request = new GetOrganizationSettingsRequest + { + OrganizationSettingsName = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + OrganizationSettings response = securityCenterClient.GetOrganizationSettings(request); + // End snippet + } + + /// Snippet for GetOrganizationSettingsAsync + public async Task GetOrganizationSettingsRequestObjectAsync() + { + // Snippet: GetOrganizationSettingsAsync(GetOrganizationSettingsRequest, CallSettings) + // Additional: GetOrganizationSettingsAsync(GetOrganizationSettingsRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetOrganizationSettingsRequest request = new GetOrganizationSettingsRequest + { + OrganizationSettingsName = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(request); + // End snippet + } + + /// Snippet for GetOrganizationSettings + public void GetOrganizationSettings() + { + // Snippet: GetOrganizationSettings(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/organizationSettings"; + // Make the request + OrganizationSettings response = securityCenterClient.GetOrganizationSettings(name); + // End snippet + } + + /// Snippet for GetOrganizationSettingsAsync + public async Task GetOrganizationSettingsAsync() + { + // Snippet: GetOrganizationSettingsAsync(string, CallSettings) + // Additional: GetOrganizationSettingsAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/organizationSettings"; + // Make the request + OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(name); + // End snippet + } + + /// Snippet for GetOrganizationSettings + public void GetOrganizationSettingsResourceNames() + { + // Snippet: GetOrganizationSettings(OrganizationSettingsName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationSettingsName name = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + OrganizationSettings response = securityCenterClient.GetOrganizationSettings(name); + // End snippet + } + + /// Snippet for GetOrganizationSettingsAsync + public async Task GetOrganizationSettingsResourceNamesAsync() + { + // Snippet: GetOrganizationSettingsAsync(OrganizationSettingsName, CallSettings) + // Additional: GetOrganizationSettingsAsync(OrganizationSettingsName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationSettingsName name = OrganizationSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + OrganizationSettings response = await securityCenterClient.GetOrganizationSettingsAsync(name); + // End snippet + } + + /// Snippet for GetEffectiveSecurityHealthAnalyticsCustomModule + public void GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObject() + { + // Snippet: GetEffectiveSecurityHealthAnalyticsCustomModule(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + { + EffectiveSecurityHealthAnalyticsCustomModuleName = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"), + }; + // Make the request + EffectiveSecurityHealthAnalyticsCustomModule response = securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule(request); + // End snippet + } + + /// Snippet for GetEffectiveSecurityHealthAnalyticsCustomModuleAsync + public async Task GetEffectiveSecurityHealthAnalyticsCustomModuleRequestObjectAsync() + { + // Snippet: GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, CallSettings) + // Additional: GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + { + EffectiveSecurityHealthAnalyticsCustomModuleName = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"), + }; + // Make the request + EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(request); + // End snippet + } + + /// Snippet for GetEffectiveSecurityHealthAnalyticsCustomModule + public void GetEffectiveSecurityHealthAnalyticsCustomModule() + { + // Snippet: GetEffectiveSecurityHealthAnalyticsCustomModule(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/effectiveCustomModules/[EFFECTIVE_CUSTOM_MODULE]"; + // Make the request + EffectiveSecurityHealthAnalyticsCustomModule response = securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule(name); + // End snippet + } + + /// Snippet for GetEffectiveSecurityHealthAnalyticsCustomModuleAsync + public async Task GetEffectiveSecurityHealthAnalyticsCustomModuleAsync() + { + // Snippet: GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(string, CallSettings) + // Additional: GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/effectiveCustomModules/[EFFECTIVE_CUSTOM_MODULE]"; + // Make the request + EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(name); + // End snippet + } + + /// Snippet for GetEffectiveSecurityHealthAnalyticsCustomModule + public void GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNames() + { + // Snippet: GetEffectiveSecurityHealthAnalyticsCustomModule(EffectiveSecurityHealthAnalyticsCustomModuleName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EffectiveSecurityHealthAnalyticsCustomModuleName name = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"); + // Make the request + EffectiveSecurityHealthAnalyticsCustomModule response = securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModule(name); + // End snippet + } + + /// Snippet for GetEffectiveSecurityHealthAnalyticsCustomModuleAsync + public async Task GetEffectiveSecurityHealthAnalyticsCustomModuleResourceNamesAsync() + { + // Snippet: GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(EffectiveSecurityHealthAnalyticsCustomModuleName, CallSettings) + // Additional: GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(EffectiveSecurityHealthAnalyticsCustomModuleName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EffectiveSecurityHealthAnalyticsCustomModuleName name = EffectiveSecurityHealthAnalyticsCustomModuleName.FromOrganizationEffectiveCustomModule("[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"); + // Make the request + EffectiveSecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetEffectiveSecurityHealthAnalyticsCustomModuleAsync(name); + // End snippet + } + + /// Snippet for GetSecurityHealthAnalyticsCustomModule + public void GetSecurityHealthAnalyticsCustomModuleRequestObject() + { + // Snippet: GetSecurityHealthAnalyticsCustomModule(GetSecurityHealthAnalyticsCustomModuleRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetSecurityHealthAnalyticsCustomModuleRequest request = new GetSecurityHealthAnalyticsCustomModuleRequest + { + SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"), + }; + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.GetSecurityHealthAnalyticsCustomModule(request); + // End snippet + } + + /// Snippet for GetSecurityHealthAnalyticsCustomModuleAsync + public async Task GetSecurityHealthAnalyticsCustomModuleRequestObjectAsync() + { + // Snippet: GetSecurityHealthAnalyticsCustomModuleAsync(GetSecurityHealthAnalyticsCustomModuleRequest, CallSettings) + // Additional: GetSecurityHealthAnalyticsCustomModuleAsync(GetSecurityHealthAnalyticsCustomModuleRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetSecurityHealthAnalyticsCustomModuleRequest request = new GetSecurityHealthAnalyticsCustomModuleRequest + { + SecurityHealthAnalyticsCustomModuleName = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"), + }; + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync(request); + // End snippet + } + + /// Snippet for GetSecurityHealthAnalyticsCustomModule + public void GetSecurityHealthAnalyticsCustomModule() + { + // Snippet: GetSecurityHealthAnalyticsCustomModule(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]"; + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.GetSecurityHealthAnalyticsCustomModule(name); + // End snippet + } + + /// Snippet for GetSecurityHealthAnalyticsCustomModuleAsync + public async Task GetSecurityHealthAnalyticsCustomModuleAsync() + { + // Snippet: GetSecurityHealthAnalyticsCustomModuleAsync(string, CallSettings) + // Additional: GetSecurityHealthAnalyticsCustomModuleAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings/customModules/[CUSTOM_MODULE]"; + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync(name); + // End snippet + } + + /// Snippet for GetSecurityHealthAnalyticsCustomModule + public void GetSecurityHealthAnalyticsCustomModuleResourceNames() + { + // Snippet: GetSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModuleName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"); + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.GetSecurityHealthAnalyticsCustomModule(name); + // End snippet + } + + /// Snippet for GetSecurityHealthAnalyticsCustomModuleAsync + public async Task GetSecurityHealthAnalyticsCustomModuleResourceNamesAsync() + { + // Snippet: GetSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName, CallSettings) + // Additional: GetSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModuleName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsCustomModuleName name = SecurityHealthAnalyticsCustomModuleName.FromOrganizationCustomModule("[ORGANIZATION]", "[CUSTOM_MODULE]"); + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.GetSecurityHealthAnalyticsCustomModuleAsync(name); + // End snippet + } + + /// Snippet for GetSource + public void GetSourceRequestObject() + { + // Snippet: GetSource(GetSourceRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetSourceRequest request = new GetSourceRequest + { + SourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + }; + // Make the request + Source response = securityCenterClient.GetSource(request); + // End snippet + } + + /// Snippet for GetSourceAsync + public async Task GetSourceRequestObjectAsync() + { + // Snippet: GetSourceAsync(GetSourceRequest, CallSettings) + // Additional: GetSourceAsync(GetSourceRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetSourceRequest request = new GetSourceRequest + { + SourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + }; + // Make the request + Source response = await securityCenterClient.GetSourceAsync(request); + // End snippet + } + + /// Snippet for GetSource + public void GetSource() + { + // Snippet: GetSource(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/sources/[SOURCE]"; + // Make the request + Source response = securityCenterClient.GetSource(name); + // End snippet + } + + /// Snippet for GetSourceAsync + public async Task GetSourceAsync() + { + // Snippet: GetSourceAsync(string, CallSettings) + // Additional: GetSourceAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/sources/[SOURCE]"; + // Make the request + Source response = await securityCenterClient.GetSourceAsync(name); + // End snippet + } + + /// Snippet for GetSource + public void GetSourceResourceNames() + { + // Snippet: GetSource(SourceName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SourceName name = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"); + // Make the request + Source response = securityCenterClient.GetSource(name); + // End snippet + } + + /// Snippet for GetSourceAsync + public async Task GetSourceResourceNamesAsync() + { + // Snippet: GetSourceAsync(SourceName, CallSettings) + // Additional: GetSourceAsync(SourceName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SourceName name = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"); + // Make the request + Source response = await securityCenterClient.GetSourceAsync(name); + // End snippet + } + + /// Snippet for GroupAssets + public void GroupAssetsRequestObject() + { + // Snippet: GroupAssets(GroupAssetsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GroupAssetsRequest request = new GroupAssetsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Filter = "", + GroupBy = "", + CompareDuration = new Duration(), + ReadTime = new Timestamp(), + }; + // Make the request +#pragma warning disable CS0612 + PagedEnumerable response = securityCenterClient.GroupAssets(request); +#pragma warning restore CS0612 + + // Iterate over all response items, lazily performing RPCs as required + foreach (GroupResult 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 (GroupAssetsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 GroupAssetsAsync + public async Task GroupAssetsRequestObjectAsync() + { + // Snippet: GroupAssetsAsync(GroupAssetsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GroupAssetsRequest request = new GroupAssetsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Filter = "", + GroupBy = "", + CompareDuration = new Duration(), + ReadTime = new Timestamp(), + }; + // Make the request +#pragma warning disable CS0612 + PagedAsyncEnumerable response = securityCenterClient.GroupAssetsAsync(request); +#pragma warning restore CS0612 + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((GroupResult 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((GroupAssetsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 GroupFindings + public void GroupFindingsRequestObject() + { + // Snippet: GroupFindings(GroupFindingsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GroupFindingsRequest request = new GroupFindingsRequest + { + ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + Filter = "", + GroupBy = "", + ReadTime = new Timestamp(), + CompareDuration = new Duration(), + }; + // Make the request + PagedEnumerable response = securityCenterClient.GroupFindings(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (GroupResult 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 (GroupFindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 GroupFindingsAsync + public async Task GroupFindingsRequestObjectAsync() + { + // Snippet: GroupFindingsAsync(GroupFindingsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GroupFindingsRequest request = new GroupFindingsRequest + { + ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + Filter = "", + GroupBy = "", + ReadTime = new Timestamp(), + CompareDuration = new Duration(), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.GroupFindingsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((GroupResult 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((GroupFindingsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 GroupFindings + public void GroupFindings() + { + // Snippet: GroupFindings(string, string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]"; + string groupBy = ""; + // Make the request + PagedEnumerable response = securityCenterClient.GroupFindings(parent, groupBy); + + // Iterate over all response items, lazily performing RPCs as required + foreach (GroupResult 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 (GroupFindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 GroupFindingsAsync + public async Task GroupFindingsAsync() + { + // Snippet: GroupFindingsAsync(string, string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/sources/[SOURCE]"; + string groupBy = ""; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.GroupFindingsAsync(parent, groupBy); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((GroupResult 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((GroupFindingsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 GroupFindings + public void GroupFindingsResourceNames() + { + // Snippet: GroupFindings(SourceName, string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"); + string groupBy = ""; + // Make the request + PagedEnumerable response = securityCenterClient.GroupFindings(parent, groupBy); + + // Iterate over all response items, lazily performing RPCs as required + foreach (GroupResult 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 (GroupFindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 GroupFindingsAsync + public async Task GroupFindingsResourceNamesAsync() + { + // Snippet: GroupFindingsAsync(SourceName, string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SourceName parent = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"); + string groupBy = ""; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.GroupFindingsAsync(parent, groupBy); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((GroupResult 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((GroupFindingsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (GroupResult 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 (GroupResult 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 ListAssets + public void ListAssetsRequestObject() + { + // Snippet: ListAssets(ListAssetsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListAssetsRequest request = new ListAssetsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Filter = "", + OrderBy = "", + ReadTime = new Timestamp(), + CompareDuration = new Duration(), + FieldMask = new FieldMask(), + }; + // Make the request +#pragma warning disable CS0612 + PagedEnumerable response = securityCenterClient.ListAssets(request); +#pragma warning restore CS0612 + + // Iterate over all response items, lazily performing RPCs as required + foreach (ListAssetsResponse.Types.ListAssetsResult 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 (ListAssetsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ListAssetsResponse.Types.ListAssetsResult 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 (ListAssetsResponse.Types.ListAssetsResult 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 ListAssetsAsync + public async Task ListAssetsRequestObjectAsync() + { + // Snippet: ListAssetsAsync(ListAssetsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListAssetsRequest request = new ListAssetsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Filter = "", + OrderBy = "", + ReadTime = new Timestamp(), + CompareDuration = new Duration(), + FieldMask = new FieldMask(), + }; + // Make the request +#pragma warning disable CS0612 + PagedAsyncEnumerable response = securityCenterClient.ListAssetsAsync(request); +#pragma warning restore CS0612 + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ListAssetsResponse.Types.ListAssetsResult 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((ListAssetsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ListAssetsResponse.Types.ListAssetsResult 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 (ListAssetsResponse.Types.ListAssetsResult 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 ListDescendantSecurityHealthAnalyticsCustomModules + public void ListDescendantSecurityHealthAnalyticsCustomModulesRequestObject() + { + // Snippet: ListDescendantSecurityHealthAnalyticsCustomModules(ListDescendantSecurityHealthAnalyticsCustomModulesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = new ListDescendantSecurityHealthAnalyticsCustomModulesRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecurityHealthAnalyticsCustomModule 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 (ListDescendantSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 ListDescendantSecurityHealthAnalyticsCustomModulesAsync + public async Task ListDescendantSecurityHealthAnalyticsCustomModulesRequestObjectAsync() + { + // Snippet: ListDescendantSecurityHealthAnalyticsCustomModulesAsync(ListDescendantSecurityHealthAnalyticsCustomModulesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = new ListDescendantSecurityHealthAnalyticsCustomModulesRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListDescendantSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 ListDescendantSecurityHealthAnalyticsCustomModules + public void ListDescendantSecurityHealthAnalyticsCustomModules() + { + // Snippet: ListDescendantSecurityHealthAnalyticsCustomModules(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + // Make the request + PagedEnumerable response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecurityHealthAnalyticsCustomModule 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 (ListDescendantSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 ListDescendantSecurityHealthAnalyticsCustomModulesAsync + public async Task ListDescendantSecurityHealthAnalyticsCustomModulesAsync() + { + // Snippet: ListDescendantSecurityHealthAnalyticsCustomModulesAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListDescendantSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 ListDescendantSecurityHealthAnalyticsCustomModules + public void ListDescendantSecurityHealthAnalyticsCustomModulesResourceNames() + { + // Snippet: ListDescendantSecurityHealthAnalyticsCustomModules(SecurityHealthAnalyticsSettingsName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecurityHealthAnalyticsCustomModule 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 (ListDescendantSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 ListDescendantSecurityHealthAnalyticsCustomModulesAsync + public async Task ListDescendantSecurityHealthAnalyticsCustomModulesResourceNamesAsync() + { + // Snippet: ListDescendantSecurityHealthAnalyticsCustomModulesAsync(SecurityHealthAnalyticsSettingsName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListDescendantSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 ListFindings + public void ListFindingsRequestObject() + { + // Snippet: ListFindings(ListFindingsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListFindingsRequest request = new ListFindingsRequest + { + ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + Filter = "", + OrderBy = "", + ReadTime = new Timestamp(), + CompareDuration = new Duration(), + FieldMask = new FieldMask(), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListFindings(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ListFindingsResponse.Types.ListFindingsResult 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 (ListFindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ListFindingsResponse.Types.ListFindingsResult 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 (ListFindingsResponse.Types.ListFindingsResult 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 ListFindingsAsync + public async Task ListFindingsRequestObjectAsync() + { + // Snippet: ListFindingsAsync(ListFindingsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListFindingsRequest request = new ListFindingsRequest + { + ParentAsSourceName = SourceName.FromOrganizationSource("[ORGANIZATION]", "[SOURCE]"), + Filter = "", + OrderBy = "", + ReadTime = new Timestamp(), + CompareDuration = new Duration(), + FieldMask = new FieldMask(), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListFindingsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ListFindingsResponse.Types.ListFindingsResult 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((ListFindingsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ListFindingsResponse.Types.ListFindingsResult 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 (ListFindingsResponse.Types.ListFindingsResult 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 ListMuteConfigs + public void ListMuteConfigsRequestObject() + { + // Snippet: ListMuteConfigs(ListMuteConfigsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListMuteConfigsRequest request = new ListMuteConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigsAsync + public async Task ListMuteConfigsRequestObjectAsync() + { + // Snippet: ListMuteConfigsAsync(ListMuteConfigsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListMuteConfigsRequest request = new ListMuteConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigs + public void ListMuteConfigs() + { + // Snippet: ListMuteConfigs(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigsAsync + public async Task ListMuteConfigsAsync() + { + // Snippet: ListMuteConfigsAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigs + public void ListMuteConfigsResourceNames1() + { + // Snippet: ListMuteConfigs(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigsAsync + public async Task ListMuteConfigsResourceNames1Async() + { + // Snippet: ListMuteConfigsAsync(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigs + public void ListMuteConfigsResourceNames2() + { + // Snippet: ListMuteConfigs(FolderName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigsAsync + public async Task ListMuteConfigsResourceNames2Async() + { + // Snippet: ListMuteConfigsAsync(FolderName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigs + public void ListMuteConfigsResourceNames3() + { + // Snippet: ListMuteConfigs(ProjectName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigsAsync + public async Task ListMuteConfigsResourceNames3Async() + { + // Snippet: ListMuteConfigsAsync(ProjectName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigs + public void ListMuteConfigsResourceNames4() + { + // Snippet: ListMuteConfigs(OrganizationLocationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigsAsync + public async Task ListMuteConfigsResourceNames4Async() + { + // Snippet: ListMuteConfigsAsync(OrganizationLocationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigs + public void ListMuteConfigsResourceNames5() + { + // Snippet: ListMuteConfigs(FolderLocationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigsAsync + public async Task ListMuteConfigsResourceNames5Async() + { + // Snippet: ListMuteConfigsAsync(FolderLocationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigs + public void ListMuteConfigsResourceNames6() + { + // Snippet: ListMuteConfigs(LocationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListMuteConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MuteConfig 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 (ListMuteConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListMuteConfigsAsync + public async Task ListMuteConfigsResourceNames6Async() + { + // Snippet: ListMuteConfigsAsync(LocationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListMuteConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((MuteConfig 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((ListMuteConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MuteConfig 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 (MuteConfig 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 ListNotificationConfigs + public void ListNotificationConfigsRequestObject() + { + // Snippet: ListNotificationConfigs(ListNotificationConfigsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListNotificationConfigsRequest request = new ListNotificationConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListNotificationConfigs(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (NotificationConfig 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 (ListNotificationConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 ListNotificationConfigsAsync + public async Task ListNotificationConfigsRequestObjectAsync() + { + // Snippet: ListNotificationConfigsAsync(ListNotificationConfigsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListNotificationConfigsRequest request = new ListNotificationConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListNotificationConfigsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((NotificationConfig 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((ListNotificationConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 ListNotificationConfigs + public void ListNotificationConfigs() + { + // Snippet: ListNotificationConfigs(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListNotificationConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (NotificationConfig 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 (ListNotificationConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 ListNotificationConfigsAsync + public async Task ListNotificationConfigsAsync() + { + // Snippet: ListNotificationConfigsAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListNotificationConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((NotificationConfig 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((ListNotificationConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 ListNotificationConfigs + public void ListNotificationConfigsResourceNames1() + { + // Snippet: ListNotificationConfigs(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListNotificationConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (NotificationConfig 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 (ListNotificationConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 ListNotificationConfigsAsync + public async Task ListNotificationConfigsResourceNames1Async() + { + // Snippet: ListNotificationConfigsAsync(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListNotificationConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((NotificationConfig 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((ListNotificationConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 ListNotificationConfigs + public void ListNotificationConfigsResourceNames2() + { + // Snippet: ListNotificationConfigs(FolderName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListNotificationConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (NotificationConfig 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 (ListNotificationConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 ListNotificationConfigsAsync + public async Task ListNotificationConfigsResourceNames2Async() + { + // Snippet: ListNotificationConfigsAsync(FolderName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListNotificationConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((NotificationConfig 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((ListNotificationConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 ListNotificationConfigs + public void ListNotificationConfigsResourceNames3() + { + // Snippet: ListNotificationConfigs(ProjectName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListNotificationConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (NotificationConfig 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 (ListNotificationConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 ListNotificationConfigsAsync + public async Task ListNotificationConfigsResourceNames3Async() + { + // Snippet: ListNotificationConfigsAsync(ProjectName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListNotificationConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((NotificationConfig 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((ListNotificationConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (NotificationConfig 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 (NotificationConfig 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 ListEffectiveSecurityHealthAnalyticsCustomModules + public void ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObject() + { + // Snippet: ListEffectiveSecurityHealthAnalyticsCustomModules(ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (EffectiveSecurityHealthAnalyticsCustomModule 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 ListEffectiveSecurityHealthAnalyticsCustomModulesAsync + public async Task ListEffectiveSecurityHealthAnalyticsCustomModulesRequestObjectAsync() + { + // Snippet: ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EffectiveSecurityHealthAnalyticsCustomModule 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((ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (EffectiveSecurityHealthAnalyticsCustomModule 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 ListEffectiveSecurityHealthAnalyticsCustomModules + public void ListEffectiveSecurityHealthAnalyticsCustomModules() + { + // Snippet: ListEffectiveSecurityHealthAnalyticsCustomModules(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + // Make the request + PagedEnumerable response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (EffectiveSecurityHealthAnalyticsCustomModule 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 ListEffectiveSecurityHealthAnalyticsCustomModulesAsync + public async Task ListEffectiveSecurityHealthAnalyticsCustomModulesAsync() + { + // Snippet: ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EffectiveSecurityHealthAnalyticsCustomModule 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((ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (EffectiveSecurityHealthAnalyticsCustomModule 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 ListEffectiveSecurityHealthAnalyticsCustomModules + public void ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNames() + { + // Snippet: ListEffectiveSecurityHealthAnalyticsCustomModules(SecurityHealthAnalyticsSettingsName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (EffectiveSecurityHealthAnalyticsCustomModule 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 ListEffectiveSecurityHealthAnalyticsCustomModulesAsync + public async Task ListEffectiveSecurityHealthAnalyticsCustomModulesResourceNamesAsync() + { + // Snippet: ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(SecurityHealthAnalyticsSettingsName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EffectiveSecurityHealthAnalyticsCustomModule 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((ListEffectiveSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveSecurityHealthAnalyticsCustomModule 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 (EffectiveSecurityHealthAnalyticsCustomModule 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 ListSecurityHealthAnalyticsCustomModules + public void ListSecurityHealthAnalyticsCustomModulesRequestObject() + { + // Snippet: ListSecurityHealthAnalyticsCustomModules(ListSecurityHealthAnalyticsCustomModulesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListSecurityHealthAnalyticsCustomModulesRequest request = new ListSecurityHealthAnalyticsCustomModulesRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListSecurityHealthAnalyticsCustomModules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecurityHealthAnalyticsCustomModule 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 (ListSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 ListSecurityHealthAnalyticsCustomModulesAsync + public async Task ListSecurityHealthAnalyticsCustomModulesRequestObjectAsync() + { + // Snippet: ListSecurityHealthAnalyticsCustomModulesAsync(ListSecurityHealthAnalyticsCustomModulesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListSecurityHealthAnalyticsCustomModulesRequest request = new ListSecurityHealthAnalyticsCustomModulesRequest + { + ParentAsSecurityHealthAnalyticsSettingsName = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 ListSecurityHealthAnalyticsCustomModules + public void ListSecurityHealthAnalyticsCustomModules() + { + // Snippet: ListSecurityHealthAnalyticsCustomModules(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + // Make the request + PagedEnumerable response = securityCenterClient.ListSecurityHealthAnalyticsCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecurityHealthAnalyticsCustomModule 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 (ListSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 ListSecurityHealthAnalyticsCustomModulesAsync + public async Task ListSecurityHealthAnalyticsCustomModulesAsync() + { + // Snippet: ListSecurityHealthAnalyticsCustomModulesAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/securityHealthAnalyticsSettings"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 ListSecurityHealthAnalyticsCustomModules + public void ListSecurityHealthAnalyticsCustomModulesResourceNames() + { + // Snippet: ListSecurityHealthAnalyticsCustomModules(SecurityHealthAnalyticsSettingsName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListSecurityHealthAnalyticsCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecurityHealthAnalyticsCustomModule 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 (ListSecurityHealthAnalyticsCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 ListSecurityHealthAnalyticsCustomModulesAsync + public async Task ListSecurityHealthAnalyticsCustomModulesResourceNamesAsync() + { + // Snippet: ListSecurityHealthAnalyticsCustomModulesAsync(SecurityHealthAnalyticsSettingsName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsSettingsName parent = SecurityHealthAnalyticsSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSecurityHealthAnalyticsCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecurityHealthAnalyticsCustomModule 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((ListSecurityHealthAnalyticsCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecurityHealthAnalyticsCustomModule 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 (SecurityHealthAnalyticsCustomModule 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 ListSources + public void ListSourcesRequestObject() + { + // Snippet: ListSources(ListSourcesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListSourcesRequest request = new ListSourcesRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListSources(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 ListSourcesAsync + public async Task ListSourcesRequestObjectAsync() + { + // Snippet: ListSourcesAsync(ListSourcesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListSourcesRequest request = new ListSourcesRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSourcesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Source 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((ListSourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 ListSources + public void ListSources() + { + // Snippet: ListSources(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListSources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 ListSourcesAsync + public async Task ListSourcesAsync() + { + // Snippet: ListSourcesAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Source 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((ListSourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 ListSources + public void ListSourcesResourceNames1() + { + // Snippet: ListSources(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListSources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 ListSourcesAsync + public async Task ListSourcesResourceNames1Async() + { + // Snippet: ListSourcesAsync(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Source 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((ListSourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 ListSources + public void ListSourcesResourceNames2() + { + // Snippet: ListSources(FolderName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListSources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 ListSourcesAsync + public async Task ListSourcesResourceNames2Async() + { + // Snippet: ListSourcesAsync(FolderName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Source 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((ListSourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 ListSources + public void ListSourcesResourceNames3() + { + // Snippet: ListSources(ProjectName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListSources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 ListSourcesAsync + public async Task ListSourcesResourceNames3Async() + { + // Snippet: ListSourcesAsync(ProjectName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListSourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Source 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((ListSourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Source 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 (Source 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 RunAssetDiscovery + public void RunAssetDiscoveryRequestObject() + { + // Snippet: RunAssetDiscovery(RunAssetDiscoveryRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + RunAssetDiscoveryRequest request = new RunAssetDiscoveryRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request +#pragma warning disable CS0612 + Operation response = securityCenterClient.RunAssetDiscovery(request); +#pragma warning restore CS0612 + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + RunAssetDiscoveryResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name +#pragma warning disable CS0612 + Operation retrievedResponse = securityCenterClient.PollOnceRunAssetDiscovery(operationName); +#pragma warning restore CS0612 + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for RunAssetDiscoveryAsync + public async Task RunAssetDiscoveryRequestObjectAsync() + { + // Snippet: RunAssetDiscoveryAsync(RunAssetDiscoveryRequest, CallSettings) + // Additional: RunAssetDiscoveryAsync(RunAssetDiscoveryRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + RunAssetDiscoveryRequest request = new RunAssetDiscoveryRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request +#pragma warning disable CS0612 + Operation response = await securityCenterClient.RunAssetDiscoveryAsync(request); +#pragma warning restore CS0612 + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + RunAssetDiscoveryResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name +#pragma warning disable CS0612 + Operation retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName); +#pragma warning restore CS0612 + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for RunAssetDiscovery + public void RunAssetDiscovery() + { + // Snippet: RunAssetDiscovery(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request +#pragma warning disable CS0612 + Operation response = securityCenterClient.RunAssetDiscovery(parent); +#pragma warning restore CS0612 + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + RunAssetDiscoveryResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name +#pragma warning disable CS0612 + Operation retrievedResponse = securityCenterClient.PollOnceRunAssetDiscovery(operationName); +#pragma warning restore CS0612 + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for RunAssetDiscoveryAsync + public async Task RunAssetDiscoveryAsync() + { + // Snippet: RunAssetDiscoveryAsync(string, CallSettings) + // Additional: RunAssetDiscoveryAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request +#pragma warning disable CS0612 + Operation response = await securityCenterClient.RunAssetDiscoveryAsync(parent); +#pragma warning restore CS0612 + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + RunAssetDiscoveryResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name +#pragma warning disable CS0612 + Operation retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName); +#pragma warning restore CS0612 + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for RunAssetDiscovery + public void RunAssetDiscoveryResourceNames() + { + // Snippet: RunAssetDiscovery(OrganizationName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request +#pragma warning disable CS0612 + Operation response = securityCenterClient.RunAssetDiscovery(parent); +#pragma warning restore CS0612 + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + RunAssetDiscoveryResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name +#pragma warning disable CS0612 + Operation retrievedResponse = securityCenterClient.PollOnceRunAssetDiscovery(operationName); +#pragma warning restore CS0612 + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for RunAssetDiscoveryAsync + public async Task RunAssetDiscoveryResourceNamesAsync() + { + // Snippet: RunAssetDiscoveryAsync(OrganizationName, CallSettings) + // Additional: RunAssetDiscoveryAsync(OrganizationName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request +#pragma warning disable CS0612 + Operation response = await securityCenterClient.RunAssetDiscoveryAsync(parent); +#pragma warning restore CS0612 + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + RunAssetDiscoveryResponse result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name +#pragma warning disable CS0612 + Operation retrievedResponse = await securityCenterClient.PollOnceRunAssetDiscoveryAsync(operationName); +#pragma warning restore CS0612 + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + RunAssetDiscoveryResponse retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for SetFindingState + public void SetFindingStateRequestObject() + { + // Snippet: SetFindingState(SetFindingStateRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SetFindingStateRequest request = new SetFindingStateRequest + { + FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"), + State = Finding.Types.State.Unspecified, + StartTime = new Timestamp(), + }; + // Make the request + Finding response = securityCenterClient.SetFindingState(request); + // End snippet + } + + /// Snippet for SetFindingStateAsync + public async Task SetFindingStateRequestObjectAsync() + { + // Snippet: SetFindingStateAsync(SetFindingStateRequest, CallSettings) + // Additional: SetFindingStateAsync(SetFindingStateRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SetFindingStateRequest request = new SetFindingStateRequest + { + FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"), + State = Finding.Types.State.Unspecified, + StartTime = new Timestamp(), + }; + // Make the request + Finding response = await securityCenterClient.SetFindingStateAsync(request); + // End snippet + } + + /// Snippet for SetFindingState + public void SetFindingState() + { + // Snippet: SetFindingState(string, Finding.Types.State, Timestamp, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]"; + Finding.Types.State state = Finding.Types.State.Unspecified; + Timestamp startTime = new Timestamp(); + // Make the request + Finding response = securityCenterClient.SetFindingState(name, state, startTime); + // End snippet + } + + /// Snippet for SetFindingStateAsync + public async Task SetFindingStateAsync() + { + // Snippet: SetFindingStateAsync(string, Finding.Types.State, Timestamp, CallSettings) + // Additional: SetFindingStateAsync(string, Finding.Types.State, Timestamp, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]"; + Finding.Types.State state = Finding.Types.State.Unspecified; + Timestamp startTime = new Timestamp(); + // Make the request + Finding response = await securityCenterClient.SetFindingStateAsync(name, state, startTime); + // End snippet + } + + /// Snippet for SetFindingState + public void SetFindingStateResourceNames() + { + // Snippet: SetFindingState(FindingName, Finding.Types.State, Timestamp, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.Types.State state = Finding.Types.State.Unspecified; + Timestamp startTime = new Timestamp(); + // Make the request + Finding response = securityCenterClient.SetFindingState(name, state, startTime); + // End snippet + } + + /// Snippet for SetFindingStateAsync + public async Task SetFindingStateResourceNamesAsync() + { + // Snippet: SetFindingStateAsync(FindingName, Finding.Types.State, Timestamp, CallSettings) + // Additional: SetFindingStateAsync(FindingName, Finding.Types.State, Timestamp, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.Types.State state = Finding.Types.State.Unspecified; + Timestamp startTime = new Timestamp(); + // Make the request + Finding response = await securityCenterClient.SetFindingStateAsync(name, state, startTime); + // End snippet + } + + /// Snippet for SetMute + public void SetMuteRequestObject() + { + // Snippet: SetMute(SetMuteRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SetMuteRequest request = new SetMuteRequest + { + FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"), + Mute = Finding.Types.Mute.Unspecified, + }; + // Make the request + Finding response = securityCenterClient.SetMute(request); + // End snippet + } + + /// Snippet for SetMuteAsync + public async Task SetMuteRequestObjectAsync() + { + // Snippet: SetMuteAsync(SetMuteRequest, CallSettings) + // Additional: SetMuteAsync(SetMuteRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SetMuteRequest request = new SetMuteRequest + { + FindingName = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"), + Mute = Finding.Types.Mute.Unspecified, + }; + // Make the request + Finding response = await securityCenterClient.SetMuteAsync(request); + // End snippet + } + + /// Snippet for SetMute + public void SetMute() + { + // Snippet: SetMute(string, Finding.Types.Mute, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]"; + Finding.Types.Mute mute = Finding.Types.Mute.Unspecified; + // Make the request + Finding response = securityCenterClient.SetMute(name, mute); + // End snippet + } + + /// Snippet for SetMuteAsync + public async Task SetMuteAsync() + { + // Snippet: SetMuteAsync(string, Finding.Types.Mute, CallSettings) + // Additional: SetMuteAsync(string, Finding.Types.Mute, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/sources/[SOURCE]/findings/[FINDING]"; + Finding.Types.Mute mute = Finding.Types.Mute.Unspecified; + // Make the request + Finding response = await securityCenterClient.SetMuteAsync(name, mute); + // End snippet + } + + /// Snippet for SetMute + public void SetMuteResourceNames() + { + // Snippet: SetMute(FindingName, Finding.Types.Mute, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.Types.Mute mute = Finding.Types.Mute.Unspecified; + // Make the request + Finding response = securityCenterClient.SetMute(name, mute); + // End snippet + } + + /// Snippet for SetMuteAsync + public async Task SetMuteResourceNamesAsync() + { + // Snippet: SetMuteAsync(FindingName, Finding.Types.Mute, CallSettings) + // Additional: SetMuteAsync(FindingName, Finding.Types.Mute, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FindingName name = FindingName.FromOrganizationSourceFinding("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.Types.Mute mute = Finding.Types.Mute.Unspecified; + // Make the request + Finding response = await securityCenterClient.SetMuteAsync(name, mute); + // End snippet + } + + /// Snippet for SetIamPolicy + public void SetIamPolicyRequestObject() + { + // Snippet: SetIamPolicy(SetIamPolicyRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.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 = securityCenterClient.SetIamPolicy(request); + // End snippet + } + + /// Snippet for SetIamPolicyAsync + public async Task SetIamPolicyRequestObjectAsync() + { + // Snippet: SetIamPolicyAsync(SetIamPolicyRequest, CallSettings) + // Additional: SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.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 securityCenterClient.SetIamPolicyAsync(request); + // End snippet + } + + /// Snippet for SetIamPolicy + public void SetIamPolicy() + { + // Snippet: SetIamPolicy(string, Policy, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + Policy policy = new Policy(); + // Make the request + Policy response = securityCenterClient.SetIamPolicy(resource, policy); + // End snippet + } + + /// Snippet for SetIamPolicyAsync + public async Task SetIamPolicyAsync() + { + // Snippet: SetIamPolicyAsync(string, Policy, CallSettings) + // Additional: SetIamPolicyAsync(string, Policy, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + Policy policy = new Policy(); + // Make the request + Policy response = await securityCenterClient.SetIamPolicyAsync(resource, policy); + // End snippet + } + + /// Snippet for SetIamPolicy + public void SetIamPolicyResourceNames() + { + // Snippet: SetIamPolicy(IResourceName, Policy, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + Policy policy = new Policy(); + // Make the request + Policy response = securityCenterClient.SetIamPolicy(resource, policy); + // End snippet + } + + /// Snippet for SetIamPolicyAsync + public async Task SetIamPolicyResourceNamesAsync() + { + // Snippet: SetIamPolicyAsync(IResourceName, Policy, CallSettings) + // Additional: SetIamPolicyAsync(IResourceName, Policy, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + Policy policy = new Policy(); + // Make the request + Policy response = await securityCenterClient.SetIamPolicyAsync(resource, policy); + // End snippet + } + + /// Snippet for TestIamPermissions + public void TestIamPermissionsRequestObject() + { + // Snippet: TestIamPermissions(TestIamPermissionsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = securityCenterClient.TestIamPermissions(request); + // End snippet + } + + /// Snippet for TestIamPermissionsAsync + public async Task TestIamPermissionsRequestObjectAsync() + { + // Snippet: TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings) + // Additional: TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(request); + // End snippet + } + + /// Snippet for TestIamPermissions + public void TestIamPermissions() + { + // Snippet: TestIamPermissions(string, IEnumerable, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = securityCenterClient.TestIamPermissions(resource, permissions); + // End snippet + } + + /// Snippet for TestIamPermissionsAsync + public async Task TestIamPermissionsAsync() + { + // Snippet: TestIamPermissionsAsync(string, IEnumerable, CallSettings) + // Additional: TestIamPermissionsAsync(string, IEnumerable, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(resource, permissions); + // End snippet + } + + /// Snippet for TestIamPermissions + public void TestIamPermissionsResourceNames() + { + // Snippet: TestIamPermissions(IResourceName, IEnumerable, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = securityCenterClient.TestIamPermissions(resource, permissions); + // End snippet + } + + /// Snippet for TestIamPermissionsAsync + public async Task TestIamPermissionsResourceNamesAsync() + { + // Snippet: TestIamPermissionsAsync(IResourceName, IEnumerable, CallSettings) + // Additional: TestIamPermissionsAsync(IResourceName, IEnumerable, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = await securityCenterClient.TestIamPermissionsAsync(resource, permissions); + // End snippet + } + + /// Snippet for SimulateSecurityHealthAnalyticsCustomModule + public void SimulateSecurityHealthAnalyticsCustomModuleRequestObject() + { + // Snippet: SimulateSecurityHealthAnalyticsCustomModule(SimulateSecurityHealthAnalyticsCustomModuleRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SimulateSecurityHealthAnalyticsCustomModuleRequest request = new SimulateSecurityHealthAnalyticsCustomModuleRequest + { + Parent = "", + CustomConfig = new CustomConfig(), + Resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource(), + }; + // Make the request + SimulateSecurityHealthAnalyticsCustomModuleResponse response = securityCenterClient.SimulateSecurityHealthAnalyticsCustomModule(request); + // End snippet + } + + /// Snippet for SimulateSecurityHealthAnalyticsCustomModuleAsync + public async Task SimulateSecurityHealthAnalyticsCustomModuleRequestObjectAsync() + { + // Snippet: SimulateSecurityHealthAnalyticsCustomModuleAsync(SimulateSecurityHealthAnalyticsCustomModuleRequest, CallSettings) + // Additional: SimulateSecurityHealthAnalyticsCustomModuleAsync(SimulateSecurityHealthAnalyticsCustomModuleRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SimulateSecurityHealthAnalyticsCustomModuleRequest request = new SimulateSecurityHealthAnalyticsCustomModuleRequest + { + Parent = "", + CustomConfig = new CustomConfig(), + Resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource(), + }; + // Make the request + SimulateSecurityHealthAnalyticsCustomModuleResponse response = await securityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsync(request); + // End snippet + } + + /// Snippet for SimulateSecurityHealthAnalyticsCustomModule + public void SimulateSecurityHealthAnalyticsCustomModule() + { + // Snippet: SimulateSecurityHealthAnalyticsCustomModule(string, CustomConfig, SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = ""; + CustomConfig customConfig = new CustomConfig(); + SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource(); + // Make the request + SimulateSecurityHealthAnalyticsCustomModuleResponse response = securityCenterClient.SimulateSecurityHealthAnalyticsCustomModule(parent, customConfig, resource); + // End snippet + } + + /// Snippet for SimulateSecurityHealthAnalyticsCustomModuleAsync + public async Task SimulateSecurityHealthAnalyticsCustomModuleAsync() + { + // Snippet: SimulateSecurityHealthAnalyticsCustomModuleAsync(string, CustomConfig, SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource, CallSettings) + // Additional: SimulateSecurityHealthAnalyticsCustomModuleAsync(string, CustomConfig, SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = ""; + CustomConfig customConfig = new CustomConfig(); + SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource resource = new SimulateSecurityHealthAnalyticsCustomModuleRequest.Types.SimulatedResource(); + // Make the request + SimulateSecurityHealthAnalyticsCustomModuleResponse response = await securityCenterClient.SimulateSecurityHealthAnalyticsCustomModuleAsync(parent, customConfig, resource); + // End snippet + } + + /// Snippet for UpdateExternalSystem + public void UpdateExternalSystemRequestObject() + { + // Snippet: UpdateExternalSystem(UpdateExternalSystemRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateExternalSystemRequest request = new UpdateExternalSystemRequest + { + ExternalSystem = new ExternalSystem(), + UpdateMask = new FieldMask(), + }; + // Make the request + ExternalSystem response = securityCenterClient.UpdateExternalSystem(request); + // End snippet + } + + /// Snippet for UpdateExternalSystemAsync + public async Task UpdateExternalSystemRequestObjectAsync() + { + // Snippet: UpdateExternalSystemAsync(UpdateExternalSystemRequest, CallSettings) + // Additional: UpdateExternalSystemAsync(UpdateExternalSystemRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateExternalSystemRequest request = new UpdateExternalSystemRequest + { + ExternalSystem = new ExternalSystem(), + UpdateMask = new FieldMask(), + }; + // Make the request + ExternalSystem response = await securityCenterClient.UpdateExternalSystemAsync(request); + // End snippet + } + + /// Snippet for UpdateExternalSystem + public void UpdateExternalSystem() + { + // Snippet: UpdateExternalSystem(ExternalSystem, FieldMask, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ExternalSystem externalSystem = new ExternalSystem(); + FieldMask updateMask = new FieldMask(); + // Make the request + ExternalSystem response = securityCenterClient.UpdateExternalSystem(externalSystem, updateMask); + // End snippet + } + + /// Snippet for UpdateExternalSystemAsync + public async Task UpdateExternalSystemAsync() + { + // Snippet: UpdateExternalSystemAsync(ExternalSystem, FieldMask, CallSettings) + // Additional: UpdateExternalSystemAsync(ExternalSystem, FieldMask, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ExternalSystem externalSystem = new ExternalSystem(); + FieldMask updateMask = new FieldMask(); + // Make the request + ExternalSystem response = await securityCenterClient.UpdateExternalSystemAsync(externalSystem, updateMask); + // End snippet + } + + /// Snippet for UpdateFinding + public void UpdateFindingRequestObject() + { + // Snippet: UpdateFinding(UpdateFindingRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateFindingRequest request = new UpdateFindingRequest + { + Finding = new Finding(), + UpdateMask = new FieldMask(), + }; + // Make the request + Finding response = securityCenterClient.UpdateFinding(request); + // End snippet + } + + /// Snippet for UpdateFindingAsync + public async Task UpdateFindingRequestObjectAsync() + { + // Snippet: UpdateFindingAsync(UpdateFindingRequest, CallSettings) + // Additional: UpdateFindingAsync(UpdateFindingRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateFindingRequest request = new UpdateFindingRequest + { + Finding = new Finding(), + UpdateMask = new FieldMask(), + }; + // Make the request + Finding response = await securityCenterClient.UpdateFindingAsync(request); + // End snippet + } + + /// Snippet for UpdateFinding + public void UpdateFinding() + { + // Snippet: UpdateFinding(Finding, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + Finding finding = new Finding(); + // Make the request + Finding response = securityCenterClient.UpdateFinding(finding); + // End snippet + } + + /// Snippet for UpdateFindingAsync + public async Task UpdateFindingAsync() + { + // Snippet: UpdateFindingAsync(Finding, CallSettings) + // Additional: UpdateFindingAsync(Finding, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + Finding finding = new Finding(); + // Make the request + Finding response = await securityCenterClient.UpdateFindingAsync(finding); + // End snippet + } + + /// Snippet for UpdateMuteConfig + public void UpdateMuteConfigRequestObject() + { + // Snippet: UpdateMuteConfig(UpdateMuteConfigRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateMuteConfigRequest request = new UpdateMuteConfigRequest + { + MuteConfig = new MuteConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + MuteConfig response = securityCenterClient.UpdateMuteConfig(request); + // End snippet + } + + /// Snippet for UpdateMuteConfigAsync + public async Task UpdateMuteConfigRequestObjectAsync() + { + // Snippet: UpdateMuteConfigAsync(UpdateMuteConfigRequest, CallSettings) + // Additional: UpdateMuteConfigAsync(UpdateMuteConfigRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateMuteConfigRequest request = new UpdateMuteConfigRequest + { + MuteConfig = new MuteConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + MuteConfig response = await securityCenterClient.UpdateMuteConfigAsync(request); + // End snippet + } + + /// Snippet for UpdateMuteConfig + public void UpdateMuteConfig() + { + // Snippet: UpdateMuteConfig(MuteConfig, FieldMask, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + MuteConfig muteConfig = new MuteConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + MuteConfig response = securityCenterClient.UpdateMuteConfig(muteConfig, updateMask); + // End snippet + } + + /// Snippet for UpdateMuteConfigAsync + public async Task UpdateMuteConfigAsync() + { + // Snippet: UpdateMuteConfigAsync(MuteConfig, FieldMask, CallSettings) + // Additional: UpdateMuteConfigAsync(MuteConfig, FieldMask, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + MuteConfig muteConfig = new MuteConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + MuteConfig response = await securityCenterClient.UpdateMuteConfigAsync(muteConfig, updateMask); + // End snippet + } + + /// Snippet for UpdateNotificationConfig + public void UpdateNotificationConfigRequestObject() + { + // Snippet: UpdateNotificationConfig(UpdateNotificationConfigRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateNotificationConfigRequest request = new UpdateNotificationConfigRequest + { + NotificationConfig = new NotificationConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + NotificationConfig response = securityCenterClient.UpdateNotificationConfig(request); + // End snippet + } + + /// Snippet for UpdateNotificationConfigAsync + public async Task UpdateNotificationConfigRequestObjectAsync() + { + // Snippet: UpdateNotificationConfigAsync(UpdateNotificationConfigRequest, CallSettings) + // Additional: UpdateNotificationConfigAsync(UpdateNotificationConfigRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateNotificationConfigRequest request = new UpdateNotificationConfigRequest + { + NotificationConfig = new NotificationConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(request); + // End snippet + } + + /// Snippet for UpdateNotificationConfig + public void UpdateNotificationConfig1() + { + // Snippet: UpdateNotificationConfig(NotificationConfig, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = securityCenterClient.UpdateNotificationConfig(notificationConfig); + // End snippet + } + + /// Snippet for UpdateNotificationConfigAsync + public async Task UpdateNotificationConfig1Async() + { + // Snippet: UpdateNotificationConfigAsync(NotificationConfig, CallSettings) + // Additional: UpdateNotificationConfigAsync(NotificationConfig, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + NotificationConfig notificationConfig = new NotificationConfig(); + // Make the request + NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(notificationConfig); + // End snippet + } + + /// Snippet for UpdateNotificationConfig + public void UpdateNotificationConfig2() + { + // Snippet: UpdateNotificationConfig(NotificationConfig, FieldMask, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + NotificationConfig notificationConfig = new NotificationConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + NotificationConfig response = securityCenterClient.UpdateNotificationConfig(notificationConfig, updateMask); + // End snippet + } + + /// Snippet for UpdateNotificationConfigAsync + public async Task UpdateNotificationConfig2Async() + { + // Snippet: UpdateNotificationConfigAsync(NotificationConfig, FieldMask, CallSettings) + // Additional: UpdateNotificationConfigAsync(NotificationConfig, FieldMask, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + NotificationConfig notificationConfig = new NotificationConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + NotificationConfig response = await securityCenterClient.UpdateNotificationConfigAsync(notificationConfig, updateMask); + // End snippet + } + + /// Snippet for UpdateOrganizationSettings + public void UpdateOrganizationSettingsRequestObject() + { + // Snippet: UpdateOrganizationSettings(UpdateOrganizationSettingsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateOrganizationSettingsRequest request = new UpdateOrganizationSettingsRequest + { + OrganizationSettings = new OrganizationSettings(), + UpdateMask = new FieldMask(), + }; + // Make the request + OrganizationSettings response = securityCenterClient.UpdateOrganizationSettings(request); + // End snippet + } + + /// Snippet for UpdateOrganizationSettingsAsync + public async Task UpdateOrganizationSettingsRequestObjectAsync() + { + // Snippet: UpdateOrganizationSettingsAsync(UpdateOrganizationSettingsRequest, CallSettings) + // Additional: UpdateOrganizationSettingsAsync(UpdateOrganizationSettingsRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateOrganizationSettingsRequest request = new UpdateOrganizationSettingsRequest + { + OrganizationSettings = new OrganizationSettings(), + UpdateMask = new FieldMask(), + }; + // Make the request + OrganizationSettings response = await securityCenterClient.UpdateOrganizationSettingsAsync(request); + // End snippet + } + + /// Snippet for UpdateOrganizationSettings + public void UpdateOrganizationSettings() + { + // Snippet: UpdateOrganizationSettings(OrganizationSettings, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationSettings organizationSettings = new OrganizationSettings(); + // Make the request + OrganizationSettings response = securityCenterClient.UpdateOrganizationSettings(organizationSettings); + // End snippet + } + + /// Snippet for UpdateOrganizationSettingsAsync + public async Task UpdateOrganizationSettingsAsync() + { + // Snippet: UpdateOrganizationSettingsAsync(OrganizationSettings, CallSettings) + // Additional: UpdateOrganizationSettingsAsync(OrganizationSettings, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationSettings organizationSettings = new OrganizationSettings(); + // Make the request + OrganizationSettings response = await securityCenterClient.UpdateOrganizationSettingsAsync(organizationSettings); + // End snippet + } + + /// Snippet for UpdateSecurityHealthAnalyticsCustomModule + public void UpdateSecurityHealthAnalyticsCustomModuleRequestObject() + { + // Snippet: UpdateSecurityHealthAnalyticsCustomModule(UpdateSecurityHealthAnalyticsCustomModuleRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateSecurityHealthAnalyticsCustomModuleRequest request = new UpdateSecurityHealthAnalyticsCustomModuleRequest + { + SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(), + UpdateMask = new FieldMask(), + }; + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.UpdateSecurityHealthAnalyticsCustomModule(request); + // End snippet + } + + /// Snippet for UpdateSecurityHealthAnalyticsCustomModuleAsync + public async Task UpdateSecurityHealthAnalyticsCustomModuleRequestObjectAsync() + { + // Snippet: UpdateSecurityHealthAnalyticsCustomModuleAsync(UpdateSecurityHealthAnalyticsCustomModuleRequest, CallSettings) + // Additional: UpdateSecurityHealthAnalyticsCustomModuleAsync(UpdateSecurityHealthAnalyticsCustomModuleRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateSecurityHealthAnalyticsCustomModuleRequest request = new UpdateSecurityHealthAnalyticsCustomModuleRequest + { + SecurityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(), + UpdateMask = new FieldMask(), + }; + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsync(request); + // End snippet + } + + /// Snippet for UpdateSecurityHealthAnalyticsCustomModule + public void UpdateSecurityHealthAnalyticsCustomModule() + { + // Snippet: UpdateSecurityHealthAnalyticsCustomModule(SecurityHealthAnalyticsCustomModule, FieldMask, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(); + FieldMask updateMask = new FieldMask(); + // Make the request + SecurityHealthAnalyticsCustomModule response = securityCenterClient.UpdateSecurityHealthAnalyticsCustomModule(securityHealthAnalyticsCustomModule, updateMask); + // End snippet + } + + /// Snippet for UpdateSecurityHealthAnalyticsCustomModuleAsync + public async Task UpdateSecurityHealthAnalyticsCustomModuleAsync() + { + // Snippet: UpdateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModule, FieldMask, CallSettings) + // Additional: UpdateSecurityHealthAnalyticsCustomModuleAsync(SecurityHealthAnalyticsCustomModule, FieldMask, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = new SecurityHealthAnalyticsCustomModule(); + FieldMask updateMask = new FieldMask(); + // Make the request + SecurityHealthAnalyticsCustomModule response = await securityCenterClient.UpdateSecurityHealthAnalyticsCustomModuleAsync(securityHealthAnalyticsCustomModule, updateMask); + // End snippet + } + + /// Snippet for UpdateSource + public void UpdateSourceRequestObject() + { + // Snippet: UpdateSource(UpdateSourceRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateSourceRequest request = new UpdateSourceRequest + { + Source = new Source(), + UpdateMask = new FieldMask(), + }; + // Make the request + Source response = securityCenterClient.UpdateSource(request); + // End snippet + } + + /// Snippet for UpdateSourceAsync + public async Task UpdateSourceRequestObjectAsync() + { + // Snippet: UpdateSourceAsync(UpdateSourceRequest, CallSettings) + // Additional: UpdateSourceAsync(UpdateSourceRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateSourceRequest request = new UpdateSourceRequest + { + Source = new Source(), + UpdateMask = new FieldMask(), + }; + // Make the request + Source response = await securityCenterClient.UpdateSourceAsync(request); + // End snippet + } + + /// Snippet for UpdateSource + public void UpdateSource() + { + // Snippet: UpdateSource(Source, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + Source source = new Source(); + // Make the request + Source response = securityCenterClient.UpdateSource(source); + // End snippet + } + + /// Snippet for UpdateSourceAsync + public async Task UpdateSourceAsync() + { + // Snippet: UpdateSourceAsync(Source, CallSettings) + // Additional: UpdateSourceAsync(Source, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + Source source = new Source(); + // Make the request + Source response = await securityCenterClient.UpdateSourceAsync(source); + // End snippet + } + + /// Snippet for UpdateSecurityMarks + public void UpdateSecurityMarksRequestObject() + { + // Snippet: UpdateSecurityMarks(UpdateSecurityMarksRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateSecurityMarksRequest request = new UpdateSecurityMarksRequest + { + SecurityMarks = new SecurityMarks(), + UpdateMask = new FieldMask(), + StartTime = new Timestamp(), + }; + // Make the request + SecurityMarks response = securityCenterClient.UpdateSecurityMarks(request); + // End snippet + } + + /// Snippet for UpdateSecurityMarksAsync + public async Task UpdateSecurityMarksRequestObjectAsync() + { + // Snippet: UpdateSecurityMarksAsync(UpdateSecurityMarksRequest, CallSettings) + // Additional: UpdateSecurityMarksAsync(UpdateSecurityMarksRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateSecurityMarksRequest request = new UpdateSecurityMarksRequest + { + SecurityMarks = new SecurityMarks(), + UpdateMask = new FieldMask(), + StartTime = new Timestamp(), + }; + // Make the request + SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(request); + // End snippet + } + + /// Snippet for UpdateSecurityMarks + public void UpdateSecurityMarks() + { + // Snippet: UpdateSecurityMarks(SecurityMarks, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SecurityMarks securityMarks = new SecurityMarks(); + // Make the request + SecurityMarks response = securityCenterClient.UpdateSecurityMarks(securityMarks); + // End snippet + } + + /// Snippet for UpdateSecurityMarksAsync + public async Task UpdateSecurityMarksAsync() + { + // Snippet: UpdateSecurityMarksAsync(SecurityMarks, CallSettings) + // Additional: UpdateSecurityMarksAsync(SecurityMarks, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SecurityMarks securityMarks = new SecurityMarks(); + // Make the request + SecurityMarks response = await securityCenterClient.UpdateSecurityMarksAsync(securityMarks); + // End snippet + } + + /// Snippet for CreateBigQueryExport + public void CreateBigQueryExportRequestObject() + { + // Snippet: CreateBigQueryExport(CreateBigQueryExportRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateBigQueryExportRequest request = new CreateBigQueryExportRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + BigQueryExport = new BigQueryExport(), + BigQueryExportId = "", + }; + // Make the request + BigQueryExport response = securityCenterClient.CreateBigQueryExport(request); + // End snippet + } + + /// Snippet for CreateBigQueryExportAsync + public async Task CreateBigQueryExportRequestObjectAsync() + { + // Snippet: CreateBigQueryExportAsync(CreateBigQueryExportRequest, CallSettings) + // Additional: CreateBigQueryExportAsync(CreateBigQueryExportRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateBigQueryExportRequest request = new CreateBigQueryExportRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + BigQueryExport = new BigQueryExport(), + BigQueryExportId = "", + }; + // Make the request + BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(request); + // End snippet + } + + /// Snippet for CreateBigQueryExport + public void CreateBigQueryExport() + { + // Snippet: CreateBigQueryExport(string, BigQueryExport, string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId); + // End snippet + } + + /// Snippet for CreateBigQueryExportAsync + public async Task CreateBigQueryExportAsync() + { + // Snippet: CreateBigQueryExportAsync(string, BigQueryExport, string, CallSettings) + // Additional: CreateBigQueryExportAsync(string, BigQueryExport, string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId); + // End snippet + } + + /// Snippet for CreateBigQueryExport + public void CreateBigQueryExportResourceNames1() + { + // Snippet: CreateBigQueryExport(OrganizationName, BigQueryExport, string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId); + // End snippet + } + + /// Snippet for CreateBigQueryExportAsync + public async Task CreateBigQueryExportResourceNames1Async() + { + // Snippet: CreateBigQueryExportAsync(OrganizationName, BigQueryExport, string, CallSettings) + // Additional: CreateBigQueryExportAsync(OrganizationName, BigQueryExport, string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId); + // End snippet + } + + /// Snippet for CreateBigQueryExport + public void CreateBigQueryExportResourceNames2() + { + // Snippet: CreateBigQueryExport(FolderName, BigQueryExport, string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId); + // End snippet + } + + /// Snippet for CreateBigQueryExportAsync + public async Task CreateBigQueryExportResourceNames2Async() + { + // Snippet: CreateBigQueryExportAsync(FolderName, BigQueryExport, string, CallSettings) + // Additional: CreateBigQueryExportAsync(FolderName, BigQueryExport, string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId); + // End snippet + } + + /// Snippet for CreateBigQueryExport + public void CreateBigQueryExportResourceNames3() + { + // Snippet: CreateBigQueryExport(ProjectName, BigQueryExport, string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = securityCenterClient.CreateBigQueryExport(parent, bigQueryExport, bigQueryExportId); + // End snippet + } + + /// Snippet for CreateBigQueryExportAsync + public async Task CreateBigQueryExportResourceNames3Async() + { + // Snippet: CreateBigQueryExportAsync(ProjectName, BigQueryExport, string, CallSettings) + // Additional: CreateBigQueryExportAsync(ProjectName, BigQueryExport, string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + BigQueryExport bigQueryExport = new BigQueryExport(); + string bigQueryExportId = ""; + // Make the request + BigQueryExport response = await securityCenterClient.CreateBigQueryExportAsync(parent, bigQueryExport, bigQueryExportId); + // End snippet + } + + /// Snippet for DeleteBigQueryExport + public void DeleteBigQueryExportRequestObject() + { + // Snippet: DeleteBigQueryExport(DeleteBigQueryExportRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest + { + BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"), + }; + // Make the request + securityCenterClient.DeleteBigQueryExport(request); + // End snippet + } + + /// Snippet for DeleteBigQueryExportAsync + public async Task DeleteBigQueryExportRequestObjectAsync() + { + // Snippet: DeleteBigQueryExportAsync(DeleteBigQueryExportRequest, CallSettings) + // Additional: DeleteBigQueryExportAsync(DeleteBigQueryExportRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + DeleteBigQueryExportRequest request = new DeleteBigQueryExportRequest + { + BigQueryExportName = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"), + }; + // Make the request + await securityCenterClient.DeleteBigQueryExportAsync(request); + // End snippet + } + + /// Snippet for DeleteBigQueryExport + public void DeleteBigQueryExport() + { + // Snippet: DeleteBigQueryExport(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]"; + // Make the request + securityCenterClient.DeleteBigQueryExport(name); + // End snippet + } + + /// Snippet for DeleteBigQueryExportAsync + public async Task DeleteBigQueryExportAsync() + { + // Snippet: DeleteBigQueryExportAsync(string, CallSettings) + // Additional: DeleteBigQueryExportAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/bigQueryExports/[EXPORT]"; + // Make the request + await securityCenterClient.DeleteBigQueryExportAsync(name); + // End snippet + } + + /// Snippet for DeleteBigQueryExport + public void DeleteBigQueryExportResourceNames() + { + // Snippet: DeleteBigQueryExport(BigQueryExportName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"); + // Make the request + securityCenterClient.DeleteBigQueryExport(name); + // End snippet + } + + /// Snippet for DeleteBigQueryExportAsync + public async Task DeleteBigQueryExportResourceNamesAsync() + { + // Snippet: DeleteBigQueryExportAsync(BigQueryExportName, CallSettings) + // Additional: DeleteBigQueryExportAsync(BigQueryExportName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + BigQueryExportName name = BigQueryExportName.FromOrganizationExport("[ORGANIZATION]", "[EXPORT]"); + // Make the request + await securityCenterClient.DeleteBigQueryExportAsync(name); + // End snippet + } + + /// Snippet for UpdateBigQueryExport + public void UpdateBigQueryExportRequestObject() + { + // Snippet: UpdateBigQueryExport(UpdateBigQueryExportRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateBigQueryExportRequest request = new UpdateBigQueryExportRequest + { + BigQueryExport = new BigQueryExport(), + UpdateMask = new FieldMask(), + }; + // Make the request + BigQueryExport response = securityCenterClient.UpdateBigQueryExport(request); + // End snippet + } + + /// Snippet for UpdateBigQueryExportAsync + public async Task UpdateBigQueryExportRequestObjectAsync() + { + // Snippet: UpdateBigQueryExportAsync(UpdateBigQueryExportRequest, CallSettings) + // Additional: UpdateBigQueryExportAsync(UpdateBigQueryExportRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateBigQueryExportRequest request = new UpdateBigQueryExportRequest + { + BigQueryExport = new BigQueryExport(), + UpdateMask = new FieldMask(), + }; + // Make the request + BigQueryExport response = await securityCenterClient.UpdateBigQueryExportAsync(request); + // End snippet + } + + /// Snippet for UpdateBigQueryExport + public void UpdateBigQueryExport() + { + // Snippet: UpdateBigQueryExport(BigQueryExport, FieldMask, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + BigQueryExport bigQueryExport = new BigQueryExport(); + FieldMask updateMask = new FieldMask(); + // Make the request + BigQueryExport response = securityCenterClient.UpdateBigQueryExport(bigQueryExport, updateMask); + // End snippet + } + + /// Snippet for UpdateBigQueryExportAsync + public async Task UpdateBigQueryExportAsync() + { + // Snippet: UpdateBigQueryExportAsync(BigQueryExport, FieldMask, CallSettings) + // Additional: UpdateBigQueryExportAsync(BigQueryExport, FieldMask, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + BigQueryExport bigQueryExport = new BigQueryExport(); + FieldMask updateMask = new FieldMask(); + // Make the request + BigQueryExport response = await securityCenterClient.UpdateBigQueryExportAsync(bigQueryExport, updateMask); + // End snippet + } + + /// Snippet for ListBigQueryExports + public void ListBigQueryExportsRequestObject() + { + // Snippet: ListBigQueryExports(ListBigQueryExportsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListBigQueryExportsRequest request = new ListBigQueryExportsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListBigQueryExports(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 ListBigQueryExportsAsync + public async Task ListBigQueryExportsRequestObjectAsync() + { + // Snippet: ListBigQueryExportsAsync(ListBigQueryExportsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListBigQueryExportsRequest request = new ListBigQueryExportsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListBigQueryExportsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 ListBigQueryExports + public void ListBigQueryExports() + { + // Snippet: ListBigQueryExports(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListBigQueryExports(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 ListBigQueryExportsAsync + public async Task ListBigQueryExportsAsync() + { + // Snippet: ListBigQueryExportsAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListBigQueryExportsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 ListBigQueryExports + public void ListBigQueryExportsResourceNames1() + { + // Snippet: ListBigQueryExports(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListBigQueryExports(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 ListBigQueryExportsAsync + public async Task ListBigQueryExportsResourceNames1Async() + { + // Snippet: ListBigQueryExportsAsync(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListBigQueryExportsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 ListBigQueryExports + public void ListBigQueryExportsResourceNames2() + { + // Snippet: ListBigQueryExports(FolderName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListBigQueryExports(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 ListBigQueryExportsAsync + public async Task ListBigQueryExportsResourceNames2Async() + { + // Snippet: ListBigQueryExportsAsync(FolderName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + FolderName parent = FolderName.FromFolder("[FOLDER]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListBigQueryExportsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 ListBigQueryExports + public void ListBigQueryExportsResourceNames3() + { + // Snippet: ListBigQueryExports(ProjectName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListBigQueryExports(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (BigQueryExport 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 (ListBigQueryExportsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 ListBigQueryExportsAsync + public async Task ListBigQueryExportsResourceNames3Async() + { + // Snippet: ListBigQueryExportsAsync(ProjectName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListBigQueryExportsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((BigQueryExport 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((ListBigQueryExportsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (BigQueryExport 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 (BigQueryExport 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 CreateEventThreatDetectionCustomModule + public void CreateEventThreatDetectionCustomModuleRequestObject() + { + // Snippet: CreateEventThreatDetectionCustomModule(CreateEventThreatDetectionCustomModuleRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + CreateEventThreatDetectionCustomModuleRequest request = new CreateEventThreatDetectionCustomModuleRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(), + }; + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.CreateEventThreatDetectionCustomModule(request); + // End snippet + } + + /// Snippet for CreateEventThreatDetectionCustomModuleAsync + public async Task CreateEventThreatDetectionCustomModuleRequestObjectAsync() + { + // Snippet: CreateEventThreatDetectionCustomModuleAsync(CreateEventThreatDetectionCustomModuleRequest, CallSettings) + // Additional: CreateEventThreatDetectionCustomModuleAsync(CreateEventThreatDetectionCustomModuleRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + CreateEventThreatDetectionCustomModuleRequest request = new CreateEventThreatDetectionCustomModuleRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(), + }; + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.CreateEventThreatDetectionCustomModuleAsync(request); + // End snippet + } + + /// Snippet for CreateEventThreatDetectionCustomModule + public void CreateEventThreatDetectionCustomModule() + { + // Snippet: CreateEventThreatDetectionCustomModule(string, EventThreatDetectionCustomModule, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(); + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.CreateEventThreatDetectionCustomModule(parent, eventThreatDetectionCustomModule); + // End snippet + } + + /// Snippet for CreateEventThreatDetectionCustomModuleAsync + public async Task CreateEventThreatDetectionCustomModuleAsync() + { + // Snippet: CreateEventThreatDetectionCustomModuleAsync(string, EventThreatDetectionCustomModule, CallSettings) + // Additional: CreateEventThreatDetectionCustomModuleAsync(string, EventThreatDetectionCustomModule, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(); + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.CreateEventThreatDetectionCustomModuleAsync(parent, eventThreatDetectionCustomModule); + // End snippet + } + + /// Snippet for CreateEventThreatDetectionCustomModule + public void CreateEventThreatDetectionCustomModuleResourceNames() + { + // Snippet: CreateEventThreatDetectionCustomModule(EventThreatDetectionSettingsName, EventThreatDetectionCustomModule, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(); + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.CreateEventThreatDetectionCustomModule(parent, eventThreatDetectionCustomModule); + // End snippet + } + + /// Snippet for CreateEventThreatDetectionCustomModuleAsync + public async Task CreateEventThreatDetectionCustomModuleResourceNamesAsync() + { + // Snippet: CreateEventThreatDetectionCustomModuleAsync(EventThreatDetectionSettingsName, EventThreatDetectionCustomModule, CallSettings) + // Additional: CreateEventThreatDetectionCustomModuleAsync(EventThreatDetectionSettingsName, EventThreatDetectionCustomModule, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(); + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.CreateEventThreatDetectionCustomModuleAsync(parent, eventThreatDetectionCustomModule); + // End snippet + } + + /// Snippet for DeleteEventThreatDetectionCustomModule + public void DeleteEventThreatDetectionCustomModuleRequestObject() + { + // Snippet: DeleteEventThreatDetectionCustomModule(DeleteEventThreatDetectionCustomModuleRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + DeleteEventThreatDetectionCustomModuleRequest request = new DeleteEventThreatDetectionCustomModuleRequest + { + EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"), + }; + // Make the request + securityCenterClient.DeleteEventThreatDetectionCustomModule(request); + // End snippet + } + + /// Snippet for DeleteEventThreatDetectionCustomModuleAsync + public async Task DeleteEventThreatDetectionCustomModuleRequestObjectAsync() + { + // Snippet: DeleteEventThreatDetectionCustomModuleAsync(DeleteEventThreatDetectionCustomModuleRequest, CallSettings) + // Additional: DeleteEventThreatDetectionCustomModuleAsync(DeleteEventThreatDetectionCustomModuleRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + DeleteEventThreatDetectionCustomModuleRequest request = new DeleteEventThreatDetectionCustomModuleRequest + { + EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"), + }; + // Make the request + await securityCenterClient.DeleteEventThreatDetectionCustomModuleAsync(request); + // End snippet + } + + /// Snippet for DeleteEventThreatDetectionCustomModule + public void DeleteEventThreatDetectionCustomModule() + { + // Snippet: DeleteEventThreatDetectionCustomModule(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]"; + // Make the request + securityCenterClient.DeleteEventThreatDetectionCustomModule(name); + // End snippet + } + + /// Snippet for DeleteEventThreatDetectionCustomModuleAsync + public async Task DeleteEventThreatDetectionCustomModuleAsync() + { + // Snippet: DeleteEventThreatDetectionCustomModuleAsync(string, CallSettings) + // Additional: DeleteEventThreatDetectionCustomModuleAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]"; + // Make the request + await securityCenterClient.DeleteEventThreatDetectionCustomModuleAsync(name); + // End snippet + } + + /// Snippet for DeleteEventThreatDetectionCustomModule + public void DeleteEventThreatDetectionCustomModuleResourceNames() + { + // Snippet: DeleteEventThreatDetectionCustomModule(EventThreatDetectionCustomModuleName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"); + // Make the request + securityCenterClient.DeleteEventThreatDetectionCustomModule(name); + // End snippet + } + + /// Snippet for DeleteEventThreatDetectionCustomModuleAsync + public async Task DeleteEventThreatDetectionCustomModuleResourceNamesAsync() + { + // Snippet: DeleteEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModuleName, CallSettings) + // Additional: DeleteEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModuleName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"); + // Make the request + await securityCenterClient.DeleteEventThreatDetectionCustomModuleAsync(name); + // End snippet + } + + /// Snippet for GetEventThreatDetectionCustomModule + public void GetEventThreatDetectionCustomModuleRequestObject() + { + // Snippet: GetEventThreatDetectionCustomModule(GetEventThreatDetectionCustomModuleRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetEventThreatDetectionCustomModuleRequest request = new GetEventThreatDetectionCustomModuleRequest + { + EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"), + }; + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.GetEventThreatDetectionCustomModule(request); + // End snippet + } + + /// Snippet for GetEventThreatDetectionCustomModuleAsync + public async Task GetEventThreatDetectionCustomModuleRequestObjectAsync() + { + // Snippet: GetEventThreatDetectionCustomModuleAsync(GetEventThreatDetectionCustomModuleRequest, CallSettings) + // Additional: GetEventThreatDetectionCustomModuleAsync(GetEventThreatDetectionCustomModuleRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetEventThreatDetectionCustomModuleRequest request = new GetEventThreatDetectionCustomModuleRequest + { + EventThreatDetectionCustomModuleName = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"), + }; + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.GetEventThreatDetectionCustomModuleAsync(request); + // End snippet + } + + /// Snippet for GetEventThreatDetectionCustomModule + public void GetEventThreatDetectionCustomModule() + { + // Snippet: GetEventThreatDetectionCustomModule(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]"; + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.GetEventThreatDetectionCustomModule(name); + // End snippet + } + + /// Snippet for GetEventThreatDetectionCustomModuleAsync + public async Task GetEventThreatDetectionCustomModuleAsync() + { + // Snippet: GetEventThreatDetectionCustomModuleAsync(string, CallSettings) + // Additional: GetEventThreatDetectionCustomModuleAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/customModules/[MODULE]"; + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.GetEventThreatDetectionCustomModuleAsync(name); + // End snippet + } + + /// Snippet for GetEventThreatDetectionCustomModule + public void GetEventThreatDetectionCustomModuleResourceNames() + { + // Snippet: GetEventThreatDetectionCustomModule(EventThreatDetectionCustomModuleName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"); + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.GetEventThreatDetectionCustomModule(name); + // End snippet + } + + /// Snippet for GetEventThreatDetectionCustomModuleAsync + public async Task GetEventThreatDetectionCustomModuleResourceNamesAsync() + { + // Snippet: GetEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModuleName, CallSettings) + // Additional: GetEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModuleName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionCustomModuleName name = EventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"); + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.GetEventThreatDetectionCustomModuleAsync(name); + // End snippet + } + + /// Snippet for ListDescendantEventThreatDetectionCustomModules + public void ListDescendantEventThreatDetectionCustomModulesRequestObject() + { + // Snippet: ListDescendantEventThreatDetectionCustomModules(ListDescendantEventThreatDetectionCustomModulesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListDescendantEventThreatDetectionCustomModulesRequest request = new ListDescendantEventThreatDetectionCustomModulesRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListDescendantEventThreatDetectionCustomModules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EventThreatDetectionCustomModule 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 (ListDescendantEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 ListDescendantEventThreatDetectionCustomModulesAsync + public async Task ListDescendantEventThreatDetectionCustomModulesRequestObjectAsync() + { + // Snippet: ListDescendantEventThreatDetectionCustomModulesAsync(ListDescendantEventThreatDetectionCustomModulesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListDescendantEventThreatDetectionCustomModulesRequest request = new ListDescendantEventThreatDetectionCustomModulesRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListDescendantEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 ListDescendantEventThreatDetectionCustomModules + public void ListDescendantEventThreatDetectionCustomModules() + { + // Snippet: ListDescendantEventThreatDetectionCustomModules(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + // Make the request + PagedEnumerable response = securityCenterClient.ListDescendantEventThreatDetectionCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EventThreatDetectionCustomModule 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 (ListDescendantEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 ListDescendantEventThreatDetectionCustomModulesAsync + public async Task ListDescendantEventThreatDetectionCustomModulesAsync() + { + // Snippet: ListDescendantEventThreatDetectionCustomModulesAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListDescendantEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 ListDescendantEventThreatDetectionCustomModules + public void ListDescendantEventThreatDetectionCustomModulesResourceNames() + { + // Snippet: ListDescendantEventThreatDetectionCustomModules(EventThreatDetectionSettingsName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListDescendantEventThreatDetectionCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EventThreatDetectionCustomModule 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 (ListDescendantEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 ListDescendantEventThreatDetectionCustomModulesAsync + public async Task ListDescendantEventThreatDetectionCustomModulesResourceNamesAsync() + { + // Snippet: ListDescendantEventThreatDetectionCustomModulesAsync(EventThreatDetectionSettingsName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListDescendantEventThreatDetectionCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListDescendantEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 ListEventThreatDetectionCustomModules + public void ListEventThreatDetectionCustomModulesRequestObject() + { + // Snippet: ListEventThreatDetectionCustomModules(ListEventThreatDetectionCustomModulesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListEventThreatDetectionCustomModulesRequest request = new ListEventThreatDetectionCustomModulesRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListEventThreatDetectionCustomModules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EventThreatDetectionCustomModule 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 (ListEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 ListEventThreatDetectionCustomModulesAsync + public async Task ListEventThreatDetectionCustomModulesRequestObjectAsync() + { + // Snippet: ListEventThreatDetectionCustomModulesAsync(ListEventThreatDetectionCustomModulesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListEventThreatDetectionCustomModulesRequest request = new ListEventThreatDetectionCustomModulesRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEventThreatDetectionCustomModulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 ListEventThreatDetectionCustomModules + public void ListEventThreatDetectionCustomModules() + { + // Snippet: ListEventThreatDetectionCustomModules(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + // Make the request + PagedEnumerable response = securityCenterClient.ListEventThreatDetectionCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EventThreatDetectionCustomModule 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 (ListEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 ListEventThreatDetectionCustomModulesAsync + public async Task ListEventThreatDetectionCustomModulesAsync() + { + // Snippet: ListEventThreatDetectionCustomModulesAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEventThreatDetectionCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 ListEventThreatDetectionCustomModules + public void ListEventThreatDetectionCustomModulesResourceNames() + { + // Snippet: ListEventThreatDetectionCustomModules(EventThreatDetectionSettingsName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListEventThreatDetectionCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EventThreatDetectionCustomModule 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 (ListEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 ListEventThreatDetectionCustomModulesAsync + public async Task ListEventThreatDetectionCustomModulesResourceNamesAsync() + { + // Snippet: ListEventThreatDetectionCustomModulesAsync(EventThreatDetectionSettingsName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEventThreatDetectionCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EventThreatDetectionCustomModule 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((ListEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EventThreatDetectionCustomModule 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 (EventThreatDetectionCustomModule 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 UpdateEventThreatDetectionCustomModule + public void UpdateEventThreatDetectionCustomModuleRequestObject() + { + // Snippet: UpdateEventThreatDetectionCustomModule(UpdateEventThreatDetectionCustomModuleRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateEventThreatDetectionCustomModuleRequest request = new UpdateEventThreatDetectionCustomModuleRequest + { + EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(), + UpdateMask = new FieldMask(), + }; + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.UpdateEventThreatDetectionCustomModule(request); + // End snippet + } + + /// Snippet for UpdateEventThreatDetectionCustomModuleAsync + public async Task UpdateEventThreatDetectionCustomModuleRequestObjectAsync() + { + // Snippet: UpdateEventThreatDetectionCustomModuleAsync(UpdateEventThreatDetectionCustomModuleRequest, CallSettings) + // Additional: UpdateEventThreatDetectionCustomModuleAsync(UpdateEventThreatDetectionCustomModuleRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateEventThreatDetectionCustomModuleRequest request = new UpdateEventThreatDetectionCustomModuleRequest + { + EventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(), + UpdateMask = new FieldMask(), + }; + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.UpdateEventThreatDetectionCustomModuleAsync(request); + // End snippet + } + + /// Snippet for UpdateEventThreatDetectionCustomModule + public void UpdateEventThreatDetectionCustomModule() + { + // Snippet: UpdateEventThreatDetectionCustomModule(EventThreatDetectionCustomModule, FieldMask, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(); + FieldMask updateMask = new FieldMask(); + // Make the request + EventThreatDetectionCustomModule response = securityCenterClient.UpdateEventThreatDetectionCustomModule(eventThreatDetectionCustomModule, updateMask); + // End snippet + } + + /// Snippet for UpdateEventThreatDetectionCustomModuleAsync + public async Task UpdateEventThreatDetectionCustomModuleAsync() + { + // Snippet: UpdateEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModule, FieldMask, CallSettings) + // Additional: UpdateEventThreatDetectionCustomModuleAsync(EventThreatDetectionCustomModule, FieldMask, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionCustomModule eventThreatDetectionCustomModule = new EventThreatDetectionCustomModule(); + FieldMask updateMask = new FieldMask(); + // Make the request + EventThreatDetectionCustomModule response = await securityCenterClient.UpdateEventThreatDetectionCustomModuleAsync(eventThreatDetectionCustomModule, updateMask); + // End snippet + } + + /// Snippet for ValidateEventThreatDetectionCustomModule + public void ValidateEventThreatDetectionCustomModuleRequestObject() + { + // Snippet: ValidateEventThreatDetectionCustomModule(ValidateEventThreatDetectionCustomModuleRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ValidateEventThreatDetectionCustomModuleRequest request = new ValidateEventThreatDetectionCustomModuleRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + RawText = "", + Type = "", + }; + // Make the request + ValidateEventThreatDetectionCustomModuleResponse response = securityCenterClient.ValidateEventThreatDetectionCustomModule(request); + // End snippet + } + + /// Snippet for ValidateEventThreatDetectionCustomModuleAsync + public async Task ValidateEventThreatDetectionCustomModuleRequestObjectAsync() + { + // Snippet: ValidateEventThreatDetectionCustomModuleAsync(ValidateEventThreatDetectionCustomModuleRequest, CallSettings) + // Additional: ValidateEventThreatDetectionCustomModuleAsync(ValidateEventThreatDetectionCustomModuleRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ValidateEventThreatDetectionCustomModuleRequest request = new ValidateEventThreatDetectionCustomModuleRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + RawText = "", + Type = "", + }; + // Make the request + ValidateEventThreatDetectionCustomModuleResponse response = await securityCenterClient.ValidateEventThreatDetectionCustomModuleAsync(request); + // End snippet + } + + /// Snippet for GetEffectiveEventThreatDetectionCustomModule + public void GetEffectiveEventThreatDetectionCustomModuleRequestObject() + { + // Snippet: GetEffectiveEventThreatDetectionCustomModule(GetEffectiveEventThreatDetectionCustomModuleRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetEffectiveEventThreatDetectionCustomModuleRequest request = new GetEffectiveEventThreatDetectionCustomModuleRequest + { + EffectiveEventThreatDetectionCustomModuleName = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"), + }; + // Make the request + EffectiveEventThreatDetectionCustomModule response = securityCenterClient.GetEffectiveEventThreatDetectionCustomModule(request); + // End snippet + } + + /// Snippet for GetEffectiveEventThreatDetectionCustomModuleAsync + public async Task GetEffectiveEventThreatDetectionCustomModuleRequestObjectAsync() + { + // Snippet: GetEffectiveEventThreatDetectionCustomModuleAsync(GetEffectiveEventThreatDetectionCustomModuleRequest, CallSettings) + // Additional: GetEffectiveEventThreatDetectionCustomModuleAsync(GetEffectiveEventThreatDetectionCustomModuleRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetEffectiveEventThreatDetectionCustomModuleRequest request = new GetEffectiveEventThreatDetectionCustomModuleRequest + { + EffectiveEventThreatDetectionCustomModuleName = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"), + }; + // Make the request + EffectiveEventThreatDetectionCustomModule response = await securityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync(request); + // End snippet + } + + /// Snippet for GetEffectiveEventThreatDetectionCustomModule + public void GetEffectiveEventThreatDetectionCustomModule() + { + // Snippet: GetEffectiveEventThreatDetectionCustomModule(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/effectiveCustomModules/[MODULE]"; + // Make the request + EffectiveEventThreatDetectionCustomModule response = securityCenterClient.GetEffectiveEventThreatDetectionCustomModule(name); + // End snippet + } + + /// Snippet for GetEffectiveEventThreatDetectionCustomModuleAsync + public async Task GetEffectiveEventThreatDetectionCustomModuleAsync() + { + // Snippet: GetEffectiveEventThreatDetectionCustomModuleAsync(string, CallSettings) + // Additional: GetEffectiveEventThreatDetectionCustomModuleAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/eventThreatDetectionSettings/effectiveCustomModules/[MODULE]"; + // Make the request + EffectiveEventThreatDetectionCustomModule response = await securityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync(name); + // End snippet + } + + /// Snippet for GetEffectiveEventThreatDetectionCustomModule + public void GetEffectiveEventThreatDetectionCustomModuleResourceNames() + { + // Snippet: GetEffectiveEventThreatDetectionCustomModule(EffectiveEventThreatDetectionCustomModuleName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EffectiveEventThreatDetectionCustomModuleName name = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"); + // Make the request + EffectiveEventThreatDetectionCustomModule response = securityCenterClient.GetEffectiveEventThreatDetectionCustomModule(name); + // End snippet + } + + /// Snippet for GetEffectiveEventThreatDetectionCustomModuleAsync + public async Task GetEffectiveEventThreatDetectionCustomModuleResourceNamesAsync() + { + // Snippet: GetEffectiveEventThreatDetectionCustomModuleAsync(EffectiveEventThreatDetectionCustomModuleName, CallSettings) + // Additional: GetEffectiveEventThreatDetectionCustomModuleAsync(EffectiveEventThreatDetectionCustomModuleName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EffectiveEventThreatDetectionCustomModuleName name = EffectiveEventThreatDetectionCustomModuleName.FromOrganizationModule("[ORGANIZATION]", "[MODULE]"); + // Make the request + EffectiveEventThreatDetectionCustomModule response = await securityCenterClient.GetEffectiveEventThreatDetectionCustomModuleAsync(name); + // End snippet + } + + /// Snippet for ListEffectiveEventThreatDetectionCustomModules + public void ListEffectiveEventThreatDetectionCustomModulesRequestObject() + { + // Snippet: ListEffectiveEventThreatDetectionCustomModules(ListEffectiveEventThreatDetectionCustomModulesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListEffectiveEventThreatDetectionCustomModulesRequest request = new ListEffectiveEventThreatDetectionCustomModulesRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModules(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EffectiveEventThreatDetectionCustomModule 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 (ListEffectiveEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveEventThreatDetectionCustomModule 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 (EffectiveEventThreatDetectionCustomModule 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 ListEffectiveEventThreatDetectionCustomModulesAsync + public async Task ListEffectiveEventThreatDetectionCustomModulesRequestObjectAsync() + { + // Snippet: ListEffectiveEventThreatDetectionCustomModulesAsync(ListEffectiveEventThreatDetectionCustomModulesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListEffectiveEventThreatDetectionCustomModulesRequest request = new ListEffectiveEventThreatDetectionCustomModulesRequest + { + ParentAsEventThreatDetectionSettingsName = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EffectiveEventThreatDetectionCustomModule 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((ListEffectiveEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveEventThreatDetectionCustomModule 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 (EffectiveEventThreatDetectionCustomModule 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 ListEffectiveEventThreatDetectionCustomModules + public void ListEffectiveEventThreatDetectionCustomModules() + { + // Snippet: ListEffectiveEventThreatDetectionCustomModules(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + // Make the request + PagedEnumerable response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EffectiveEventThreatDetectionCustomModule 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 (ListEffectiveEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveEventThreatDetectionCustomModule 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 (EffectiveEventThreatDetectionCustomModule 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 ListEffectiveEventThreatDetectionCustomModulesAsync + public async Task ListEffectiveEventThreatDetectionCustomModulesAsync() + { + // Snippet: ListEffectiveEventThreatDetectionCustomModulesAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/eventThreatDetectionSettings"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EffectiveEventThreatDetectionCustomModule 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((ListEffectiveEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveEventThreatDetectionCustomModule 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 (EffectiveEventThreatDetectionCustomModule 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 ListEffectiveEventThreatDetectionCustomModules + public void ListEffectiveEventThreatDetectionCustomModulesResourceNames() + { + // Snippet: ListEffectiveEventThreatDetectionCustomModules(EventThreatDetectionSettingsName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModules(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (EffectiveEventThreatDetectionCustomModule 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 (ListEffectiveEventThreatDetectionCustomModulesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveEventThreatDetectionCustomModule 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 (EffectiveEventThreatDetectionCustomModule 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 ListEffectiveEventThreatDetectionCustomModulesAsync + public async Task ListEffectiveEventThreatDetectionCustomModulesResourceNamesAsync() + { + // Snippet: ListEffectiveEventThreatDetectionCustomModulesAsync(EventThreatDetectionSettingsName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + EventThreatDetectionSettingsName parent = EventThreatDetectionSettingsName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListEffectiveEventThreatDetectionCustomModulesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((EffectiveEventThreatDetectionCustomModule 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((ListEffectiveEventThreatDetectionCustomModulesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (EffectiveEventThreatDetectionCustomModule 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 (EffectiveEventThreatDetectionCustomModule 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 BatchCreateResourceValueConfigs + public void BatchCreateResourceValueConfigsRequestObject() + { + // Snippet: BatchCreateResourceValueConfigs(BatchCreateResourceValueConfigsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + BatchCreateResourceValueConfigsRequest request = new BatchCreateResourceValueConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Requests = + { + new CreateResourceValueConfigRequest(), + }, + }; + // Make the request + BatchCreateResourceValueConfigsResponse response = securityCenterClient.BatchCreateResourceValueConfigs(request); + // End snippet + } + + /// Snippet for BatchCreateResourceValueConfigsAsync + public async Task BatchCreateResourceValueConfigsRequestObjectAsync() + { + // Snippet: BatchCreateResourceValueConfigsAsync(BatchCreateResourceValueConfigsRequest, CallSettings) + // Additional: BatchCreateResourceValueConfigsAsync(BatchCreateResourceValueConfigsRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + BatchCreateResourceValueConfigsRequest request = new BatchCreateResourceValueConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + Requests = + { + new CreateResourceValueConfigRequest(), + }, + }; + // Make the request + BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(request); + // End snippet + } + + /// Snippet for BatchCreateResourceValueConfigs + public void BatchCreateResourceValueConfigs() + { + // Snippet: BatchCreateResourceValueConfigs(string, IEnumerable, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + IEnumerable requests = new CreateResourceValueConfigRequest[] + { + new CreateResourceValueConfigRequest(), + }; + // Make the request + BatchCreateResourceValueConfigsResponse response = securityCenterClient.BatchCreateResourceValueConfigs(parent, requests); + // End snippet + } + + /// Snippet for BatchCreateResourceValueConfigsAsync + public async Task BatchCreateResourceValueConfigsAsync() + { + // Snippet: BatchCreateResourceValueConfigsAsync(string, IEnumerable, CallSettings) + // Additional: BatchCreateResourceValueConfigsAsync(string, IEnumerable, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + IEnumerable requests = new CreateResourceValueConfigRequest[] + { + new CreateResourceValueConfigRequest(), + }; + // Make the request + BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(parent, requests); + // End snippet + } + + /// Snippet for BatchCreateResourceValueConfigs + public void BatchCreateResourceValueConfigsResourceNames() + { + // Snippet: BatchCreateResourceValueConfigs(OrganizationName, IEnumerable, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + IEnumerable requests = new CreateResourceValueConfigRequest[] + { + new CreateResourceValueConfigRequest(), + }; + // Make the request + BatchCreateResourceValueConfigsResponse response = securityCenterClient.BatchCreateResourceValueConfigs(parent, requests); + // End snippet + } + + /// Snippet for BatchCreateResourceValueConfigsAsync + public async Task BatchCreateResourceValueConfigsResourceNamesAsync() + { + // Snippet: BatchCreateResourceValueConfigsAsync(OrganizationName, IEnumerable, CallSettings) + // Additional: BatchCreateResourceValueConfigsAsync(OrganizationName, IEnumerable, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + IEnumerable requests = new CreateResourceValueConfigRequest[] + { + new CreateResourceValueConfigRequest(), + }; + // Make the request + BatchCreateResourceValueConfigsResponse response = await securityCenterClient.BatchCreateResourceValueConfigsAsync(parent, requests); + // End snippet + } + + /// Snippet for DeleteResourceValueConfig + public void DeleteResourceValueConfigRequestObject() + { + // Snippet: DeleteResourceValueConfig(DeleteResourceValueConfigRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + DeleteResourceValueConfigRequest request = new DeleteResourceValueConfigRequest + { + ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"), + }; + // Make the request + securityCenterClient.DeleteResourceValueConfig(request); + // End snippet + } + + /// Snippet for DeleteResourceValueConfigAsync + public async Task DeleteResourceValueConfigRequestObjectAsync() + { + // Snippet: DeleteResourceValueConfigAsync(DeleteResourceValueConfigRequest, CallSettings) + // Additional: DeleteResourceValueConfigAsync(DeleteResourceValueConfigRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + DeleteResourceValueConfigRequest request = new DeleteResourceValueConfigRequest + { + ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"), + }; + // Make the request + await securityCenterClient.DeleteResourceValueConfigAsync(request); + // End snippet + } + + /// Snippet for DeleteResourceValueConfig + public void DeleteResourceValueConfig() + { + // Snippet: DeleteResourceValueConfig(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]"; + // Make the request + securityCenterClient.DeleteResourceValueConfig(name); + // End snippet + } + + /// Snippet for DeleteResourceValueConfigAsync + public async Task DeleteResourceValueConfigAsync() + { + // Snippet: DeleteResourceValueConfigAsync(string, CallSettings) + // Additional: DeleteResourceValueConfigAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]"; + // Make the request + await securityCenterClient.DeleteResourceValueConfigAsync(name); + // End snippet + } + + /// Snippet for DeleteResourceValueConfig + public void DeleteResourceValueConfigResourceNames() + { + // Snippet: DeleteResourceValueConfig(ResourceValueConfigName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"); + // Make the request + securityCenterClient.DeleteResourceValueConfig(name); + // End snippet + } + + /// Snippet for DeleteResourceValueConfigAsync + public async Task DeleteResourceValueConfigResourceNamesAsync() + { + // Snippet: DeleteResourceValueConfigAsync(ResourceValueConfigName, CallSettings) + // Additional: DeleteResourceValueConfigAsync(ResourceValueConfigName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"); + // Make the request + await securityCenterClient.DeleteResourceValueConfigAsync(name); + // End snippet + } + + /// Snippet for GetResourceValueConfig + public void GetResourceValueConfigRequestObject() + { + // Snippet: GetResourceValueConfig(GetResourceValueConfigRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + GetResourceValueConfigRequest request = new GetResourceValueConfigRequest + { + ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"), + }; + // Make the request + ResourceValueConfig response = securityCenterClient.GetResourceValueConfig(request); + // End snippet + } + + /// Snippet for GetResourceValueConfigAsync + public async Task GetResourceValueConfigRequestObjectAsync() + { + // Snippet: GetResourceValueConfigAsync(GetResourceValueConfigRequest, CallSettings) + // Additional: GetResourceValueConfigAsync(GetResourceValueConfigRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + GetResourceValueConfigRequest request = new GetResourceValueConfigRequest + { + ResourceValueConfigName = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"), + }; + // Make the request + ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(request); + // End snippet + } + + /// Snippet for GetResourceValueConfig + public void GetResourceValueConfig() + { + // Snippet: GetResourceValueConfig(string, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]"; + // Make the request + ResourceValueConfig response = securityCenterClient.GetResourceValueConfig(name); + // End snippet + } + + /// Snippet for GetResourceValueConfigAsync + public async Task GetResourceValueConfigAsync() + { + // Snippet: GetResourceValueConfigAsync(string, CallSettings) + // Additional: GetResourceValueConfigAsync(string, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/resourceValueConfigs/[RESOURCE_VALUE_CONFIG]"; + // Make the request + ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(name); + // End snippet + } + + /// Snippet for GetResourceValueConfig + public void GetResourceValueConfigResourceNames() + { + // Snippet: GetResourceValueConfig(ResourceValueConfigName, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"); + // Make the request + ResourceValueConfig response = securityCenterClient.GetResourceValueConfig(name); + // End snippet + } + + /// Snippet for GetResourceValueConfigAsync + public async Task GetResourceValueConfigResourceNamesAsync() + { + // Snippet: GetResourceValueConfigAsync(ResourceValueConfigName, CallSettings) + // Additional: GetResourceValueConfigAsync(ResourceValueConfigName, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ResourceValueConfigName name = ResourceValueConfigName.FromOrganizationResourceValueConfig("[ORGANIZATION]", "[RESOURCE_VALUE_CONFIG]"); + // Make the request + ResourceValueConfig response = await securityCenterClient.GetResourceValueConfigAsync(name); + // End snippet + } + + /// Snippet for ListResourceValueConfigs + public void ListResourceValueConfigsRequestObject() + { + // Snippet: ListResourceValueConfigs(ListResourceValueConfigsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListResourceValueConfigsRequest request = new ListResourceValueConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListResourceValueConfigs(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ResourceValueConfig 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 (ListResourceValueConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ResourceValueConfig 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 (ResourceValueConfig 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 ListResourceValueConfigsAsync + public async Task ListResourceValueConfigsRequestObjectAsync() + { + // Snippet: ListResourceValueConfigsAsync(ListResourceValueConfigsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListResourceValueConfigsRequest request = new ListResourceValueConfigsRequest + { + ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"), + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListResourceValueConfigsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ResourceValueConfig 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((ListResourceValueConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ResourceValueConfig 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 (ResourceValueConfig 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 ListResourceValueConfigs + public void ListResourceValueConfigs() + { + // Snippet: ListResourceValueConfigs(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListResourceValueConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ResourceValueConfig 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 (ListResourceValueConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ResourceValueConfig 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 (ResourceValueConfig 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 ListResourceValueConfigsAsync + public async Task ListResourceValueConfigsAsync() + { + // Snippet: ListResourceValueConfigsAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListResourceValueConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ResourceValueConfig 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((ListResourceValueConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ResourceValueConfig 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 (ResourceValueConfig 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 ListResourceValueConfigs + public void ListResourceValueConfigsResourceNames() + { + // Snippet: ListResourceValueConfigs(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListResourceValueConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ResourceValueConfig 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 (ListResourceValueConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ResourceValueConfig 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 (ResourceValueConfig 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 ListResourceValueConfigsAsync + public async Task ListResourceValueConfigsResourceNamesAsync() + { + // Snippet: ListResourceValueConfigsAsync(OrganizationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListResourceValueConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ResourceValueConfig 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((ListResourceValueConfigsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ResourceValueConfig 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 (ResourceValueConfig 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 UpdateResourceValueConfig + public void UpdateResourceValueConfigRequestObject() + { + // Snippet: UpdateResourceValueConfig(UpdateResourceValueConfigRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + UpdateResourceValueConfigRequest request = new UpdateResourceValueConfigRequest + { + ResourceValueConfig = new ResourceValueConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + ResourceValueConfig response = securityCenterClient.UpdateResourceValueConfig(request); + // End snippet + } + + /// Snippet for UpdateResourceValueConfigAsync + public async Task UpdateResourceValueConfigRequestObjectAsync() + { + // Snippet: UpdateResourceValueConfigAsync(UpdateResourceValueConfigRequest, CallSettings) + // Additional: UpdateResourceValueConfigAsync(UpdateResourceValueConfigRequest, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + UpdateResourceValueConfigRequest request = new UpdateResourceValueConfigRequest + { + ResourceValueConfig = new ResourceValueConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + ResourceValueConfig response = await securityCenterClient.UpdateResourceValueConfigAsync(request); + // End snippet + } + + /// Snippet for UpdateResourceValueConfig + public void UpdateResourceValueConfig() + { + // Snippet: UpdateResourceValueConfig(ResourceValueConfig, FieldMask, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ResourceValueConfig resourceValueConfig = new ResourceValueConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + ResourceValueConfig response = securityCenterClient.UpdateResourceValueConfig(resourceValueConfig, updateMask); + // End snippet + } + + /// Snippet for UpdateResourceValueConfigAsync + public async Task UpdateResourceValueConfigAsync() + { + // Snippet: UpdateResourceValueConfigAsync(ResourceValueConfig, FieldMask, CallSettings) + // Additional: UpdateResourceValueConfigAsync(ResourceValueConfig, FieldMask, CancellationToken) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ResourceValueConfig resourceValueConfig = new ResourceValueConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + ResourceValueConfig response = await securityCenterClient.UpdateResourceValueConfigAsync(resourceValueConfig, updateMask); + // End snippet + } + + /// Snippet for ListValuedResources + public void ListValuedResourcesRequestObject() + { + // Snippet: ListValuedResources(ListValuedResourcesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListValuedResourcesRequest request = new ListValuedResourcesRequest + { + ParentAsOrganizationSimulationName = OrganizationSimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListValuedResources(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ValuedResource 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 (ListValuedResourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 ListValuedResourcesAsync + public async Task ListValuedResourcesRequestObjectAsync() + { + // Snippet: ListValuedResourcesAsync(ListValuedResourcesRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListValuedResourcesRequest request = new ListValuedResourcesRequest + { + ParentAsOrganizationSimulationName = OrganizationSimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListValuedResourcesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ValuedResource 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((ListValuedResourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 ListValuedResources + public void ListValuedResources() + { + // Snippet: ListValuedResources(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/simulations/[SIMULATION]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListValuedResources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ValuedResource 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 (ListValuedResourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 ListValuedResourcesAsync + public async Task ListValuedResourcesAsync() + { + // Snippet: ListValuedResourcesAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/simulations/[SIMULATION]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListValuedResourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ValuedResource 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((ListValuedResourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 ListValuedResources + public void ListValuedResourcesResourceNames1() + { + // Snippet: ListValuedResources(OrganizationSimulationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + OrganizationSimulationName parent = OrganizationSimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListValuedResources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ValuedResource 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 (ListValuedResourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 ListValuedResourcesAsync + public async Task ListValuedResourcesResourceNames1Async() + { + // Snippet: ListValuedResourcesAsync(OrganizationSimulationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + OrganizationSimulationName parent = OrganizationSimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListValuedResourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ValuedResource 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((ListValuedResourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 ListValuedResources + public void ListValuedResourcesResourceNames2() + { + // Snippet: ListValuedResources(SimulationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + SimulationName parent = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListValuedResources(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (ValuedResource 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 (ListValuedResourcesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 ListValuedResourcesAsync + public async Task ListValuedResourcesResourceNames2Async() + { + // Snippet: ListValuedResourcesAsync(SimulationName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + SimulationName parent = SimulationName.FromOrganizationSimulation("[ORGANIZATION]", "[SIMULATION]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListValuedResourcesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((ValuedResource 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((ListValuedResourcesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (ValuedResource 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 (ValuedResource 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 ListAttackPaths + public void ListAttackPathsRequestObject() + { + // Snippet: ListAttackPaths(ListAttackPathsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ListAttackPathsRequest request = new ListAttackPathsRequest + { + ParentAsValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"), + Filter = "", + }; + // Make the request + PagedEnumerable response = securityCenterClient.ListAttackPaths(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AttackPath 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 (ListAttackPathsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AttackPath 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 (AttackPath 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 ListAttackPathsAsync + public async Task ListAttackPathsRequestObjectAsync() + { + // Snippet: ListAttackPathsAsync(ListAttackPathsRequest, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ListAttackPathsRequest request = new ListAttackPathsRequest + { + ParentAsValuedResourceName = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"), + Filter = "", + }; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListAttackPathsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AttackPath 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((ListAttackPathsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AttackPath 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 (AttackPath 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 ListAttackPaths + public void ListAttackPaths() + { + // Snippet: ListAttackPaths(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]"; + // Make the request + PagedEnumerable response = securityCenterClient.ListAttackPaths(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AttackPath 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 (ListAttackPathsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AttackPath 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 (AttackPath 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 ListAttackPathsAsync + public async Task ListAttackPathsAsync() + { + // Snippet: ListAttackPathsAsync(string, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/simulations/[SIMULATION]/valuedResources/[VALUED_RESOURCE]"; + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListAttackPathsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AttackPath 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((ListAttackPathsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AttackPath 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 (AttackPath 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 ListAttackPaths + public void ListAttackPathsResourceNames() + { + // Snippet: ListAttackPaths(ValuedResourceName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = SecurityCenterClient.Create(); + // Initialize request argument(s) + ValuedResourceName parent = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"); + // Make the request + PagedEnumerable response = securityCenterClient.ListAttackPaths(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AttackPath 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 (ListAttackPathsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AttackPath 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 (AttackPath 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 ListAttackPathsAsync + public async Task ListAttackPathsResourceNamesAsync() + { + // Snippet: ListAttackPathsAsync(ValuedResourceName, string, int?, CallSettings) + // Create client + SecurityCenterClient securityCenterClient = await SecurityCenterClient.CreateAsync(); + // Initialize request argument(s) + ValuedResourceName parent = ValuedResourceName.FromOrganizationSimulationValuedResource("[ORGANIZATION]", "[SIMULATION]", "[VALUED_RESOURCE]"); + // Make the request + PagedAsyncEnumerable response = securityCenterClient.ListAttackPathsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AttackPath 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((ListAttackPathsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AttackPath 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 (AttackPath 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 + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Access.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Access.g.cs new file mode 100755 index 000000000000..c3eeb01779c4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Access.g.cs @@ -0,0 +1,1122 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/access.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/access.proto + public static partial class AccessReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/access.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AccessReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Citnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvYWNjZXNzLnByb3Rv", + "Eh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEiiQMKBkFjY2VzcxIX", + "Cg9wcmluY2lwYWxfZW1haWwYASABKAkSEQoJY2FsbGVyX2lwGAIgASgJEkIK", + "DWNhbGxlcl9pcF9nZW8YAyABKAsyKy5nb29nbGUuY2xvdWQuc2VjdXJpdHlj", + "ZW50ZXIudjEuR2VvbG9jYXRpb24SGQoRdXNlcl9hZ2VudF9mYW1pbHkYBCAB", + "KAkSEgoKdXNlcl9hZ2VudBgMIAEoCRIUCgxzZXJ2aWNlX25hbWUYBSABKAkS", + "EwoLbWV0aG9kX25hbWUYBiABKAkSGQoRcHJpbmNpcGFsX3N1YmplY3QYByAB", + "KAkSIAoYc2VydmljZV9hY2NvdW50X2tleV9uYW1lGAggASgJEmUKH3NlcnZp", + "Y2VfYWNjb3VudF9kZWxlZ2F0aW9uX2luZm8YCSADKAsyPC5nb29nbGUuY2xv", + "dWQuc2VjdXJpdHljZW50ZXIudjEuU2VydmljZUFjY291bnREZWxlZ2F0aW9u", + "SW5mbxIRCgl1c2VyX25hbWUYCyABKAkiUgocU2VydmljZUFjY291bnREZWxl", + "Z2F0aW9uSW5mbxIXCg9wcmluY2lwYWxfZW1haWwYASABKAkSGQoRcHJpbmNp", + "cGFsX3N1YmplY3QYAiABKAkiIgoLR2VvbG9jYXRpb24SEwoLcmVnaW9uX2Nv", + "ZGUYASABKAlC5QEKImNvbS5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIu", + "djFCC0FjY2Vzc1Byb3RvUAFaSmNsb3VkLmdvb2dsZS5jb20vZ28vc2VjdXJp", + "dHljZW50ZXIvYXBpdjEvc2VjdXJpdHljZW50ZXJwYjtzZWN1cml0eWNlbnRl", + "cnBiqgIeR29vZ2xlLkNsb3VkLlNlY3VyaXR5Q2VudGVyLlYxygIeR29vZ2xl", + "XENsb3VkXFNlY3VyaXR5Q2VudGVyXFYx6gIhR29vZ2xlOjpDbG91ZDo6U2Vj", + "dXJpdHlDZW50ZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Access), global::Google.Cloud.SecurityCenter.V1.Access.Parser, new[]{ "PrincipalEmail", "CallerIp", "CallerIpGeo", "UserAgentFamily", "UserAgent", "ServiceName", "MethodName", "PrincipalSubject", "ServiceAccountKeyName", "ServiceAccountDelegationInfo", "UserName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.ServiceAccountDelegationInfo), global::Google.Cloud.SecurityCenter.V1.ServiceAccountDelegationInfo.Parser, new[]{ "PrincipalEmail", "PrincipalSubject" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Geolocation), global::Google.Cloud.SecurityCenter.V1.Geolocation.Parser, new[]{ "RegionCode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Represents an access event. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Access : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Access()); + 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.SecurityCenter.V1.AccessReflection.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 Access() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Access(Access other) : this() { + principalEmail_ = other.principalEmail_; + callerIp_ = other.callerIp_; + callerIpGeo_ = other.callerIpGeo_ != null ? other.callerIpGeo_.Clone() : null; + userAgentFamily_ = other.userAgentFamily_; + userAgent_ = other.userAgent_; + serviceName_ = other.serviceName_; + methodName_ = other.methodName_; + principalSubject_ = other.principalSubject_; + serviceAccountKeyName_ = other.serviceAccountKeyName_; + serviceAccountDelegationInfo_ = other.serviceAccountDelegationInfo_.Clone(); + userName_ = other.userName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Access Clone() { + return new Access(this); + } + + /// Field number for the "principal_email" field. + public const int PrincipalEmailFieldNumber = 1; + private string principalEmail_ = ""; + /// + /// Associated email, such as "foo@google.com". + /// + /// The email address of the authenticated user or a service account acting on + /// behalf of a third party principal making the request. For third party + /// identity callers, the `principal_subject` field is populated instead of + /// this field. For privacy reasons, the principal email address is sometimes + /// redacted. For more information, see [Caller identities in audit + /// logs](https://cloud.google.com/logging/docs/audit#user-id). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PrincipalEmail { + get { return principalEmail_; } + set { + principalEmail_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "caller_ip" field. + public const int CallerIpFieldNumber = 2; + private string callerIp_ = ""; + /// + /// Caller's IP address, such as "1.1.1.1". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CallerIp { + get { return callerIp_; } + set { + callerIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "caller_ip_geo" field. + public const int CallerIpGeoFieldNumber = 3; + private global::Google.Cloud.SecurityCenter.V1.Geolocation callerIpGeo_; + /// + /// The caller IP's geolocation, which identifies where the call came from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Geolocation CallerIpGeo { + get { return callerIpGeo_; } + set { + callerIpGeo_ = value; + } + } + + /// Field number for the "user_agent_family" field. + public const int UserAgentFamilyFieldNumber = 4; + private string userAgentFamily_ = ""; + /// + /// Type of user agent associated with the finding. For example, an operating + /// system shell or an embedded or standalone application. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserAgentFamily { + get { return userAgentFamily_; } + set { + userAgentFamily_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "user_agent" field. + public const int UserAgentFieldNumber = 12; + private string userAgent_ = ""; + /// + /// The caller's user agent string associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserAgent { + get { return userAgent_; } + set { + userAgent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_name" field. + public const int ServiceNameFieldNumber = 5; + private string serviceName_ = ""; + /// + /// This is the API service that the service account made a call to, e.g. + /// "iam.googleapis.com" + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceName { + get { return serviceName_; } + set { + serviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "method_name" field. + public const int MethodNameFieldNumber = 6; + private string methodName_ = ""; + /// + /// The method that the service account called, e.g. "SetIamPolicy". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MethodName { + get { return methodName_; } + set { + methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "principal_subject" field. + public const int PrincipalSubjectFieldNumber = 7; + private string principalSubject_ = ""; + /// + /// A string that represents the principal_subject that is associated with the + /// identity. Unlike `principal_email`, `principal_subject` supports principals + /// that aren't associated with email addresses, such as third party + /// principals. For most identities, the format is + /// `principal://iam.googleapis.com/{identity pool name}/subject/{subject}`. + /// Some GKE identities, such as GKE_WORKLOAD, FREEFORM, and GKE_HUB_WORKLOAD, + /// still use the legacy format `serviceAccount:{identity pool + /// name}[{subject}]`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PrincipalSubject { + get { return principalSubject_; } + set { + principalSubject_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_account_key_name" field. + public const int ServiceAccountKeyNameFieldNumber = 8; + private string serviceAccountKeyName_ = ""; + /// + /// The name of the service account key that was used to create or exchange + /// credentials when authenticating the service account that made the request. + /// This is a scheme-less URI full resource name. For example: + /// + /// "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccountKeyName { + get { return serviceAccountKeyName_; } + set { + serviceAccountKeyName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service_account_delegation_info" field. + public const int ServiceAccountDelegationInfoFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_serviceAccountDelegationInfo_codec + = pb::FieldCodec.ForMessage(74, global::Google.Cloud.SecurityCenter.V1.ServiceAccountDelegationInfo.Parser); + private readonly pbc::RepeatedField serviceAccountDelegationInfo_ = new pbc::RepeatedField(); + /// + /// The identity delegation history of an authenticated service account that + /// made the request. The `serviceAccountDelegationInfo[]` object contains + /// information about the real authorities that try to access Google Cloud + /// resources by delegating on a service account. When multiple authorities are + /// present, they are guaranteed to be sorted based on the original ordering of + /// the identity delegation events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ServiceAccountDelegationInfo { + get { return serviceAccountDelegationInfo_; } + } + + /// Field number for the "user_name" field. + public const int UserNameFieldNumber = 11; + private string userName_ = ""; + /// + /// A string that represents a username. The username provided depends on the + /// type of the finding and is likely not an IAM principal. For example, this + /// can be a system username if the finding is related to a virtual machine, or + /// it can be an application login username. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserName { + get { return userName_; } + set { + userName_ = 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 Access); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Access other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PrincipalEmail != other.PrincipalEmail) return false; + if (CallerIp != other.CallerIp) return false; + if (!object.Equals(CallerIpGeo, other.CallerIpGeo)) return false; + if (UserAgentFamily != other.UserAgentFamily) return false; + if (UserAgent != other.UserAgent) return false; + if (ServiceName != other.ServiceName) return false; + if (MethodName != other.MethodName) return false; + if (PrincipalSubject != other.PrincipalSubject) return false; + if (ServiceAccountKeyName != other.ServiceAccountKeyName) return false; + if(!serviceAccountDelegationInfo_.Equals(other.serviceAccountDelegationInfo_)) return false; + if (UserName != other.UserName) 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 (PrincipalEmail.Length != 0) hash ^= PrincipalEmail.GetHashCode(); + if (CallerIp.Length != 0) hash ^= CallerIp.GetHashCode(); + if (callerIpGeo_ != null) hash ^= CallerIpGeo.GetHashCode(); + if (UserAgentFamily.Length != 0) hash ^= UserAgentFamily.GetHashCode(); + if (UserAgent.Length != 0) hash ^= UserAgent.GetHashCode(); + if (ServiceName.Length != 0) hash ^= ServiceName.GetHashCode(); + if (MethodName.Length != 0) hash ^= MethodName.GetHashCode(); + if (PrincipalSubject.Length != 0) hash ^= PrincipalSubject.GetHashCode(); + if (ServiceAccountKeyName.Length != 0) hash ^= ServiceAccountKeyName.GetHashCode(); + hash ^= serviceAccountDelegationInfo_.GetHashCode(); + if (UserName.Length != 0) hash ^= UserName.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 (PrincipalEmail.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PrincipalEmail); + } + if (CallerIp.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CallerIp); + } + if (callerIpGeo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CallerIpGeo); + } + if (UserAgentFamily.Length != 0) { + output.WriteRawTag(34); + output.WriteString(UserAgentFamily); + } + if (ServiceName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ServiceName); + } + if (MethodName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(MethodName); + } + if (PrincipalSubject.Length != 0) { + output.WriteRawTag(58); + output.WriteString(PrincipalSubject); + } + if (ServiceAccountKeyName.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ServiceAccountKeyName); + } + serviceAccountDelegationInfo_.WriteTo(output, _repeated_serviceAccountDelegationInfo_codec); + if (UserName.Length != 0) { + output.WriteRawTag(90); + output.WriteString(UserName); + } + if (UserAgent.Length != 0) { + output.WriteRawTag(98); + output.WriteString(UserAgent); + } + 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 (PrincipalEmail.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PrincipalEmail); + } + if (CallerIp.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CallerIp); + } + if (callerIpGeo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CallerIpGeo); + } + if (UserAgentFamily.Length != 0) { + output.WriteRawTag(34); + output.WriteString(UserAgentFamily); + } + if (ServiceName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ServiceName); + } + if (MethodName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(MethodName); + } + if (PrincipalSubject.Length != 0) { + output.WriteRawTag(58); + output.WriteString(PrincipalSubject); + } + if (ServiceAccountKeyName.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ServiceAccountKeyName); + } + serviceAccountDelegationInfo_.WriteTo(ref output, _repeated_serviceAccountDelegationInfo_codec); + if (UserName.Length != 0) { + output.WriteRawTag(90); + output.WriteString(UserName); + } + if (UserAgent.Length != 0) { + output.WriteRawTag(98); + output.WriteString(UserAgent); + } + 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 (PrincipalEmail.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PrincipalEmail); + } + if (CallerIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CallerIp); + } + if (callerIpGeo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallerIpGeo); + } + if (UserAgentFamily.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserAgentFamily); + } + if (UserAgent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserAgent); + } + if (ServiceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceName); + } + if (MethodName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName); + } + if (PrincipalSubject.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PrincipalSubject); + } + if (ServiceAccountKeyName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccountKeyName); + } + size += serviceAccountDelegationInfo_.CalculateSize(_repeated_serviceAccountDelegationInfo_codec); + if (UserName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Access other) { + if (other == null) { + return; + } + if (other.PrincipalEmail.Length != 0) { + PrincipalEmail = other.PrincipalEmail; + } + if (other.CallerIp.Length != 0) { + CallerIp = other.CallerIp; + } + if (other.callerIpGeo_ != null) { + if (callerIpGeo_ == null) { + CallerIpGeo = new global::Google.Cloud.SecurityCenter.V1.Geolocation(); + } + CallerIpGeo.MergeFrom(other.CallerIpGeo); + } + if (other.UserAgentFamily.Length != 0) { + UserAgentFamily = other.UserAgentFamily; + } + if (other.UserAgent.Length != 0) { + UserAgent = other.UserAgent; + } + if (other.ServiceName.Length != 0) { + ServiceName = other.ServiceName; + } + if (other.MethodName.Length != 0) { + MethodName = other.MethodName; + } + if (other.PrincipalSubject.Length != 0) { + PrincipalSubject = other.PrincipalSubject; + } + if (other.ServiceAccountKeyName.Length != 0) { + ServiceAccountKeyName = other.ServiceAccountKeyName; + } + serviceAccountDelegationInfo_.Add(other.serviceAccountDelegationInfo_); + if (other.UserName.Length != 0) { + UserName = other.UserName; + } + _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: { + PrincipalEmail = input.ReadString(); + break; + } + case 18: { + CallerIp = input.ReadString(); + break; + } + case 26: { + if (callerIpGeo_ == null) { + CallerIpGeo = new global::Google.Cloud.SecurityCenter.V1.Geolocation(); + } + input.ReadMessage(CallerIpGeo); + break; + } + case 34: { + UserAgentFamily = input.ReadString(); + break; + } + case 42: { + ServiceName = input.ReadString(); + break; + } + case 50: { + MethodName = input.ReadString(); + break; + } + case 58: { + PrincipalSubject = input.ReadString(); + break; + } + case 66: { + ServiceAccountKeyName = input.ReadString(); + break; + } + case 74: { + serviceAccountDelegationInfo_.AddEntriesFrom(input, _repeated_serviceAccountDelegationInfo_codec); + break; + } + case 90: { + UserName = input.ReadString(); + break; + } + case 98: { + UserAgent = 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: { + PrincipalEmail = input.ReadString(); + break; + } + case 18: { + CallerIp = input.ReadString(); + break; + } + case 26: { + if (callerIpGeo_ == null) { + CallerIpGeo = new global::Google.Cloud.SecurityCenter.V1.Geolocation(); + } + input.ReadMessage(CallerIpGeo); + break; + } + case 34: { + UserAgentFamily = input.ReadString(); + break; + } + case 42: { + ServiceName = input.ReadString(); + break; + } + case 50: { + MethodName = input.ReadString(); + break; + } + case 58: { + PrincipalSubject = input.ReadString(); + break; + } + case 66: { + ServiceAccountKeyName = input.ReadString(); + break; + } + case 74: { + serviceAccountDelegationInfo_.AddEntriesFrom(ref input, _repeated_serviceAccountDelegationInfo_codec); + break; + } + case 90: { + UserName = input.ReadString(); + break; + } + case 98: { + UserAgent = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Identity delegation history of an authenticated service account. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ServiceAccountDelegationInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceAccountDelegationInfo()); + 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.SecurityCenter.V1.AccessReflection.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 ServiceAccountDelegationInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceAccountDelegationInfo(ServiceAccountDelegationInfo other) : this() { + principalEmail_ = other.principalEmail_; + principalSubject_ = other.principalSubject_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceAccountDelegationInfo Clone() { + return new ServiceAccountDelegationInfo(this); + } + + /// Field number for the "principal_email" field. + public const int PrincipalEmailFieldNumber = 1; + private string principalEmail_ = ""; + /// + /// The email address of a Google account. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PrincipalEmail { + get { return principalEmail_; } + set { + principalEmail_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "principal_subject" field. + public const int PrincipalSubjectFieldNumber = 2; + private string principalSubject_ = ""; + /// + /// A string representing the principal_subject associated with the identity. + /// As compared to `principal_email`, supports principals that aren't + /// associated with email addresses, such as third party principals. For most + /// identities, the format will be `principal://iam.googleapis.com/{identity + /// pool name}/subjects/{subject}` except for some GKE identities + /// (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy + /// format `serviceAccount:{identity pool name}[{subject}]` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PrincipalSubject { + get { return principalSubject_; } + set { + principalSubject_ = 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 ServiceAccountDelegationInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceAccountDelegationInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PrincipalEmail != other.PrincipalEmail) return false; + if (PrincipalSubject != other.PrincipalSubject) 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 (PrincipalEmail.Length != 0) hash ^= PrincipalEmail.GetHashCode(); + if (PrincipalSubject.Length != 0) hash ^= PrincipalSubject.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 (PrincipalEmail.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PrincipalEmail); + } + if (PrincipalSubject.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PrincipalSubject); + } + 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 (PrincipalEmail.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PrincipalEmail); + } + if (PrincipalSubject.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PrincipalSubject); + } + 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 (PrincipalEmail.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PrincipalEmail); + } + if (PrincipalSubject.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PrincipalSubject); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceAccountDelegationInfo other) { + if (other == null) { + return; + } + if (other.PrincipalEmail.Length != 0) { + PrincipalEmail = other.PrincipalEmail; + } + if (other.PrincipalSubject.Length != 0) { + PrincipalSubject = other.PrincipalSubject; + } + _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: { + PrincipalEmail = input.ReadString(); + break; + } + case 18: { + PrincipalSubject = 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: { + PrincipalEmail = input.ReadString(); + break; + } + case 18: { + PrincipalSubject = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a geographical location for a given access. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Geolocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Geolocation()); + 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.SecurityCenter.V1.AccessReflection.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 Geolocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Geolocation(Geolocation other) : this() { + regionCode_ = other.regionCode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Geolocation Clone() { + return new Geolocation(this); + } + + /// Field number for the "region_code" field. + public const int RegionCodeFieldNumber = 1; + private string regionCode_ = ""; + /// + /// A CLDR. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RegionCode { + get { return regionCode_; } + set { + regionCode_ = 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 Geolocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Geolocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RegionCode != other.RegionCode) 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 (RegionCode.Length != 0) hash ^= RegionCode.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 (RegionCode.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RegionCode); + } + 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 (RegionCode.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RegionCode); + } + 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 (RegionCode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RegionCode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Geolocation other) { + if (other == null) { + return; + } + if (other.RegionCode.Length != 0) { + RegionCode = other.RegionCode; + } + _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: { + RegionCode = 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: { + RegionCode = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Application.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Application.g.cs new file mode 100755 index 000000000000..6187954bb8c5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Application.g.cs @@ -0,0 +1,288 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/application.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/application.proto + public static partial class ApplicationReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/application.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ApplicationReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjBnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvYXBwbGljYXRpb24u", + "cHJvdG8SHmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MSIxCgtBcHBs", + "aWNhdGlvbhIQCghiYXNlX3VyaRgBIAEoCRIQCghmdWxsX3VyaRgCIAEoCULq", + "AQoiY29tLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MUIQQXBwbGlj", + "YXRpb25Qcm90b1ABWkpjbG91ZC5nb29nbGUuY29tL2dvL3NlY3VyaXR5Y2Vu", + "dGVyL2FwaXYxL3NlY3VyaXR5Y2VudGVycGI7c2VjdXJpdHljZW50ZXJwYqoC", + "Hkdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5WMcoCHkdvb2dsZVxDbG91", + "ZFxTZWN1cml0eUNlbnRlclxWMeoCIUdvb2dsZTo6Q2xvdWQ6OlNlY3VyaXR5", + "Q2VudGVyOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Application), global::Google.Cloud.SecurityCenter.V1.Application.Parser, new[]{ "BaseUri", "FullUri" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Represents an application associated with a finding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Application : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Application()); + 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.SecurityCenter.V1.ApplicationReflection.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 Application() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Application(Application other) : this() { + baseUri_ = other.baseUri_; + fullUri_ = other.fullUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Application Clone() { + return new Application(this); + } + + /// Field number for the "base_uri" field. + public const int BaseUriFieldNumber = 1; + private string baseUri_ = ""; + /// + /// The base URI that identifies the network location of the application in + /// which the vulnerability was detected. For example, `http://example.com`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BaseUri { + get { return baseUri_; } + set { + baseUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "full_uri" field. + public const int FullUriFieldNumber = 2; + private string fullUri_ = ""; + /// + /// The full URI with payload that can be used to reproduce the + /// vulnerability. For example, `http://example.com?p=aMmYgI6H`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FullUri { + get { return fullUri_; } + set { + fullUri_ = 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 Application); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Application other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BaseUri != other.BaseUri) return false; + if (FullUri != other.FullUri) 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 (BaseUri.Length != 0) hash ^= BaseUri.GetHashCode(); + if (FullUri.Length != 0) hash ^= FullUri.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 (BaseUri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(BaseUri); + } + if (FullUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FullUri); + } + 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 (BaseUri.Length != 0) { + output.WriteRawTag(10); + output.WriteString(BaseUri); + } + if (FullUri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FullUri); + } + 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 (BaseUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseUri); + } + if (FullUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FullUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Application other) { + if (other == null) { + return; + } + if (other.BaseUri.Length != 0) { + BaseUri = other.BaseUri; + } + if (other.FullUri.Length != 0) { + FullUri = other.FullUri; + } + _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: { + BaseUri = input.ReadString(); + break; + } + case 18: { + FullUri = 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: { + BaseUri = input.ReadString(); + break; + } + case 18: { + FullUri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Asset.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Asset.g.cs new file mode 100755 index 000000000000..a21d063397c7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Asset.g.cs @@ -0,0 +1,1320 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/asset.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/asset.proto + public static partial class AssetReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/asset.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AssetReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cipnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvYXNzZXQucHJvdG8S", + "Hmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MRoZZ29vZ2xlL2FwaS9y", + "ZXNvdXJjZS5wcm90bxorZ29vZ2xlL2Nsb3VkL3NlY3VyaXR5Y2VudGVyL3Yx", + "L2ZvbGRlci5wcm90bxozZ29vZ2xlL2Nsb3VkL3NlY3VyaXR5Y2VudGVyL3Yx", + "L3NlY3VyaXR5X21hcmtzLnByb3RvGhxnb29nbGUvcHJvdG9idWYvc3RydWN0", + "LnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvIrgICgVB", + "c3NldBIMCgRuYW1lGAEgASgJEmIKGnNlY3VyaXR5X2NlbnRlcl9wcm9wZXJ0", + "aWVzGAIgASgLMj4uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkFz", + "c2V0LlNlY3VyaXR5Q2VudGVyUHJvcGVydGllcxJaChNyZXNvdXJjZV9wcm9w", + "ZXJ0aWVzGAcgAygLMj0uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYx", + "LkFzc2V0LlJlc291cmNlUHJvcGVydGllc0VudHJ5EkUKDnNlY3VyaXR5X21h", + "cmtzGAggASgLMi0uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLlNl", + "Y3VyaXR5TWFya3MSLwoLY3JlYXRlX3RpbWUYCSABKAsyGi5nb29nbGUucHJv", + "dG9idWYuVGltZXN0YW1wEi8KC3VwZGF0ZV90aW1lGAogASgLMhouZ29vZ2xl", + "LnByb3RvYnVmLlRpbWVzdGFtcBJDCgppYW1fcG9saWN5GAsgASgLMi8uZ29v", + "Z2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkFzc2V0LklhbVBvbGljeRIW", + "Cg5jYW5vbmljYWxfbmFtZRgNIAEoCRq5AgoYU2VjdXJpdHlDZW50ZXJQcm9w", + "ZXJ0aWVzEhUKDXJlc291cmNlX25hbWUYASABKAkSFQoNcmVzb3VyY2VfdHlw", + "ZRgCIAEoCRIXCg9yZXNvdXJjZV9wYXJlbnQYAyABKAkSGAoQcmVzb3VyY2Vf", + "cHJvamVjdBgEIAEoCRIXCg9yZXNvdXJjZV9vd25lcnMYBSADKAkSHQoVcmVz", + "b3VyY2VfZGlzcGxheV9uYW1lGAYgASgJEiQKHHJlc291cmNlX3BhcmVudF9k", + "aXNwbGF5X25hbWUYByABKAkSJQodcmVzb3VyY2VfcHJvamVjdF9kaXNwbGF5", + "X25hbWUYCCABKAkSNwoHZm9sZGVycxgKIAMoCzImLmdvb2dsZS5jbG91ZC5z", + "ZWN1cml0eWNlbnRlci52MS5Gb2xkZXIaIAoJSWFtUG9saWN5EhMKC3BvbGlj", + "eV9ibG9iGAEgASgJGlEKF1Jlc291cmNlUHJvcGVydGllc0VudHJ5EgsKA2tl", + "eRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1", + "ZToCOAE6qQHqQaUBCiNzZWN1cml0eWNlbnRlci5nb29nbGVhcGlzLmNvbS9B", + "c3NldBIrb3JnYW5pemF0aW9ucy97b3JnYW5pemF0aW9ufS9hc3NldHMve2Fz", + "c2V0fRIfZm9sZGVycy97Zm9sZGVyfS9hc3NldHMve2Fzc2V0fRIhcHJvamVj", + "dHMve3Byb2plY3R9L2Fzc2V0cy97YXNzZXR9KgZhc3NldHMyBWFzc2V0QtgB", + "CiJjb20uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxUAFaSmNsb3Vk", + "Lmdvb2dsZS5jb20vZ28vc2VjdXJpdHljZW50ZXIvYXBpdjEvc2VjdXJpdHlj", + "ZW50ZXJwYjtzZWN1cml0eWNlbnRlcnBiqgIeR29vZ2xlLkNsb3VkLlNlY3Vy", + "aXR5Q2VudGVyLlYxygIeR29vZ2xlXENsb3VkXFNlY3VyaXR5Q2VudGVyXFYx", + "6gIhR29vZ2xlOjpDbG91ZDo6U2VjdXJpdHlDZW50ZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.FolderReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.SecurityMarksReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Asset), global::Google.Cloud.SecurityCenter.V1.Asset.Parser, new[]{ "Name", "SecurityCenterProperties", "ResourceProperties", "SecurityMarks", "CreateTime", "UpdateTime", "IamPolicy", "CanonicalName" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Asset.Types.SecurityCenterProperties), global::Google.Cloud.SecurityCenter.V1.Asset.Types.SecurityCenterProperties.Parser, new[]{ "ResourceName", "ResourceType", "ResourceParent", "ResourceProject", "ResourceOwners", "ResourceDisplayName", "ResourceParentDisplayName", "ResourceProjectDisplayName", "Folders" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Asset.Types.IamPolicy), global::Google.Cloud.SecurityCenter.V1.Asset.Types.IamPolicy.Parser, new[]{ "PolicyBlob" }, null, null, null, null), + null, }) + })); + } + #endregion + + } + #region Messages + /// + /// Security Command Center representation of a Google Cloud + /// resource. + /// + /// The Asset is a Security Command Center resource that captures information + /// about a single Google Cloud resource. All modifications to an Asset are only + /// within the context of Security Command Center and don't affect the referenced + /// Google Cloud resource. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Asset : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Asset()); + 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.SecurityCenter.V1.AssetReflection.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 Asset() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Asset(Asset other) : this() { + name_ = other.name_; + securityCenterProperties_ = other.securityCenterProperties_ != null ? other.securityCenterProperties_.Clone() : null; + resourceProperties_ = other.resourceProperties_.Clone(); + securityMarks_ = other.securityMarks_ != null ? other.securityMarks_.Clone() : null; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + iamPolicy_ = other.iamPolicy_ != null ? other.iamPolicy_.Clone() : null; + canonicalName_ = other.canonicalName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Asset Clone() { + return new Asset(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The relative resource name of this asset. See: + /// https://cloud.google.com/apis/design/resource_names#relative_resource_name + /// Example: + /// "organizations/{organization_id}/assets/{asset_id}". + /// + [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 "security_center_properties" field. + public const int SecurityCenterPropertiesFieldNumber = 2; + private global::Google.Cloud.SecurityCenter.V1.Asset.Types.SecurityCenterProperties securityCenterProperties_; + /// + /// Security Command Center managed properties. These properties are managed by + /// Security Command Center and cannot be modified by the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Asset.Types.SecurityCenterProperties SecurityCenterProperties { + get { return securityCenterProperties_; } + set { + securityCenterProperties_ = value; + } + } + + /// Field number for the "resource_properties" field. + public const int ResourcePropertiesFieldNumber = 7; + private static readonly pbc::MapField.Codec _map_resourceProperties_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Value.Parser), 58); + private readonly pbc::MapField resourceProperties_ = new pbc::MapField(); + /// + /// Resource managed properties. These properties are managed and defined by + /// the Google Cloud resource and cannot be modified by the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ResourceProperties { + get { return resourceProperties_; } + } + + /// Field number for the "security_marks" field. + public const int SecurityMarksFieldNumber = 8; + private global::Google.Cloud.SecurityCenter.V1.SecurityMarks securityMarks_; + /// + /// User specified security marks. These marks are entirely managed by the user + /// and come from the SecurityMarks resource that belongs to the asset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.SecurityMarks SecurityMarks { + get { return securityMarks_; } + set { + securityMarks_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// The time at which the asset was created in Security Command Center. + /// + [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 "update_time" field. + public const int UpdateTimeFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// The time at which the asset was last updated or added in Cloud SCC. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "iam_policy" field. + public const int IamPolicyFieldNumber = 11; + private global::Google.Cloud.SecurityCenter.V1.Asset.Types.IamPolicy iamPolicy_; + /// + /// Cloud IAM Policy information associated with the Google Cloud resource + /// described by the Security Command Center asset. This information is managed + /// and defined by the Google Cloud resource and cannot be modified by the + /// user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Asset.Types.IamPolicy IamPolicy { + get { return iamPolicy_; } + set { + iamPolicy_ = value; + } + } + + /// Field number for the "canonical_name" field. + public const int CanonicalNameFieldNumber = 13; + private string canonicalName_ = ""; + /// + /// The canonical name of the resource. It's either + /// "organizations/{organization_id}/assets/{asset_id}", + /// "folders/{folder_id}/assets/{asset_id}" or + /// "projects/{project_number}/assets/{asset_id}", depending on the closest CRM + /// ancestor of the resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CanonicalName { + get { return canonicalName_; } + set { + canonicalName_ = 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 Asset); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Asset other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(SecurityCenterProperties, other.SecurityCenterProperties)) return false; + if (!ResourceProperties.Equals(other.ResourceProperties)) return false; + if (!object.Equals(SecurityMarks, other.SecurityMarks)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(IamPolicy, other.IamPolicy)) return false; + if (CanonicalName != other.CanonicalName) 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 (securityCenterProperties_ != null) hash ^= SecurityCenterProperties.GetHashCode(); + hash ^= ResourceProperties.GetHashCode(); + if (securityMarks_ != null) hash ^= SecurityMarks.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (iamPolicy_ != null) hash ^= IamPolicy.GetHashCode(); + if (CanonicalName.Length != 0) hash ^= CanonicalName.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 (securityCenterProperties_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SecurityCenterProperties); + } + resourceProperties_.WriteTo(output, _map_resourceProperties_codec); + if (securityMarks_ != null) { + output.WriteRawTag(66); + output.WriteMessage(SecurityMarks); + } + if (createTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(UpdateTime); + } + if (iamPolicy_ != null) { + output.WriteRawTag(90); + output.WriteMessage(IamPolicy); + } + if (CanonicalName.Length != 0) { + output.WriteRawTag(106); + output.WriteString(CanonicalName); + } + 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 (securityCenterProperties_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SecurityCenterProperties); + } + resourceProperties_.WriteTo(ref output, _map_resourceProperties_codec); + if (securityMarks_ != null) { + output.WriteRawTag(66); + output.WriteMessage(SecurityMarks); + } + if (createTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(UpdateTime); + } + if (iamPolicy_ != null) { + output.WriteRawTag(90); + output.WriteMessage(IamPolicy); + } + if (CanonicalName.Length != 0) { + output.WriteRawTag(106); + output.WriteString(CanonicalName); + } + 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 (securityCenterProperties_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityCenterProperties); + } + size += resourceProperties_.CalculateSize(_map_resourceProperties_codec); + if (securityMarks_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityMarks); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (iamPolicy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IamPolicy); + } + if (CanonicalName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CanonicalName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Asset other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.securityCenterProperties_ != null) { + if (securityCenterProperties_ == null) { + SecurityCenterProperties = new global::Google.Cloud.SecurityCenter.V1.Asset.Types.SecurityCenterProperties(); + } + SecurityCenterProperties.MergeFrom(other.SecurityCenterProperties); + } + resourceProperties_.MergeFrom(other.resourceProperties_); + if (other.securityMarks_ != null) { + if (securityMarks_ == null) { + SecurityMarks = new global::Google.Cloud.SecurityCenter.V1.SecurityMarks(); + } + SecurityMarks.MergeFrom(other.SecurityMarks); + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.iamPolicy_ != null) { + if (iamPolicy_ == null) { + IamPolicy = new global::Google.Cloud.SecurityCenter.V1.Asset.Types.IamPolicy(); + } + IamPolicy.MergeFrom(other.IamPolicy); + } + if (other.CanonicalName.Length != 0) { + CanonicalName = other.CanonicalName; + } + _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 (securityCenterProperties_ == null) { + SecurityCenterProperties = new global::Google.Cloud.SecurityCenter.V1.Asset.Types.SecurityCenterProperties(); + } + input.ReadMessage(SecurityCenterProperties); + break; + } + case 58: { + resourceProperties_.AddEntriesFrom(input, _map_resourceProperties_codec); + break; + } + case 66: { + if (securityMarks_ == null) { + SecurityMarks = new global::Google.Cloud.SecurityCenter.V1.SecurityMarks(); + } + input.ReadMessage(SecurityMarks); + break; + } + case 74: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 82: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 90: { + if (iamPolicy_ == null) { + IamPolicy = new global::Google.Cloud.SecurityCenter.V1.Asset.Types.IamPolicy(); + } + input.ReadMessage(IamPolicy); + break; + } + case 106: { + CanonicalName = 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: { + if (securityCenterProperties_ == null) { + SecurityCenterProperties = new global::Google.Cloud.SecurityCenter.V1.Asset.Types.SecurityCenterProperties(); + } + input.ReadMessage(SecurityCenterProperties); + break; + } + case 58: { + resourceProperties_.AddEntriesFrom(ref input, _map_resourceProperties_codec); + break; + } + case 66: { + if (securityMarks_ == null) { + SecurityMarks = new global::Google.Cloud.SecurityCenter.V1.SecurityMarks(); + } + input.ReadMessage(SecurityMarks); + break; + } + case 74: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 82: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 90: { + if (iamPolicy_ == null) { + IamPolicy = new global::Google.Cloud.SecurityCenter.V1.Asset.Types.IamPolicy(); + } + input.ReadMessage(IamPolicy); + break; + } + case 106: { + CanonicalName = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Asset message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Security Command Center managed properties. These properties are managed by + /// Security Command Center and cannot be modified by the user. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SecurityCenterProperties : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SecurityCenterProperties()); + 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.SecurityCenter.V1.Asset.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 SecurityCenterProperties() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecurityCenterProperties(SecurityCenterProperties other) : this() { + resourceName_ = other.resourceName_; + resourceType_ = other.resourceType_; + resourceParent_ = other.resourceParent_; + resourceProject_ = other.resourceProject_; + resourceOwners_ = other.resourceOwners_.Clone(); + resourceDisplayName_ = other.resourceDisplayName_; + resourceParentDisplayName_ = other.resourceParentDisplayName_; + resourceProjectDisplayName_ = other.resourceProjectDisplayName_; + folders_ = other.folders_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecurityCenterProperties Clone() { + return new SecurityCenterProperties(this); + } + + /// Field number for the "resource_name" field. + public const int ResourceNameFieldNumber = 1; + private string resourceName_ = ""; + /// + /// The full resource name of the Google Cloud resource this asset + /// represents. This field is immutable after create time. See: + /// https://cloud.google.com/apis/design/resource_names#full_resource_name + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceName { + get { return resourceName_; } + set { + resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_type" field. + public const int ResourceTypeFieldNumber = 2; + private string resourceType_ = ""; + /// + /// The type of the Google Cloud resource. Examples include: APPLICATION, + /// PROJECT, and ORGANIZATION. This is a case insensitive field defined by + /// Security Command Center and/or the producer of the resource and is + /// immutable after create time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceType { + get { return resourceType_; } + set { + resourceType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_parent" field. + public const int ResourceParentFieldNumber = 3; + private string resourceParent_ = ""; + /// + /// The full resource name of the immediate parent of the resource. See: + /// https://cloud.google.com/apis/design/resource_names#full_resource_name + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceParent { + get { return resourceParent_; } + set { + resourceParent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_project" field. + public const int ResourceProjectFieldNumber = 4; + private string resourceProject_ = ""; + /// + /// The full resource name of the project the resource belongs to. See: + /// https://cloud.google.com/apis/design/resource_names#full_resource_name + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceProject { + get { return resourceProject_; } + set { + resourceProject_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_owners" field. + public const int ResourceOwnersFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_resourceOwners_codec + = pb::FieldCodec.ForString(42); + private readonly pbc::RepeatedField resourceOwners_ = new pbc::RepeatedField(); + /// + /// Owners of the Google Cloud resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ResourceOwners { + get { return resourceOwners_; } + } + + /// Field number for the "resource_display_name" field. + public const int ResourceDisplayNameFieldNumber = 6; + private string resourceDisplayName_ = ""; + /// + /// The user defined display name for this resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceDisplayName { + get { return resourceDisplayName_; } + set { + resourceDisplayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_parent_display_name" field. + public const int ResourceParentDisplayNameFieldNumber = 7; + private string resourceParentDisplayName_ = ""; + /// + /// The user defined display name for the parent of this resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceParentDisplayName { + get { return resourceParentDisplayName_; } + set { + resourceParentDisplayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_project_display_name" field. + public const int ResourceProjectDisplayNameFieldNumber = 8; + private string resourceProjectDisplayName_ = ""; + /// + /// The user defined display name for the project of this resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceProjectDisplayName { + get { return resourceProjectDisplayName_; } + set { + resourceProjectDisplayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "folders" field. + public const int FoldersFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_folders_codec + = pb::FieldCodec.ForMessage(82, global::Google.Cloud.SecurityCenter.V1.Folder.Parser); + private readonly pbc::RepeatedField folders_ = new pbc::RepeatedField(); + /// + /// Contains a Folder message for each folder in the assets ancestry. + /// The first folder is the deepest nested folder, and the last folder is the + /// folder directly under the Organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Folders { + get { return folders_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SecurityCenterProperties); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SecurityCenterProperties other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ResourceName != other.ResourceName) return false; + if (ResourceType != other.ResourceType) return false; + if (ResourceParent != other.ResourceParent) return false; + if (ResourceProject != other.ResourceProject) return false; + if(!resourceOwners_.Equals(other.resourceOwners_)) return false; + if (ResourceDisplayName != other.ResourceDisplayName) return false; + if (ResourceParentDisplayName != other.ResourceParentDisplayName) return false; + if (ResourceProjectDisplayName != other.ResourceProjectDisplayName) return false; + if(!folders_.Equals(other.folders_)) 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 (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); + if (ResourceType.Length != 0) hash ^= ResourceType.GetHashCode(); + if (ResourceParent.Length != 0) hash ^= ResourceParent.GetHashCode(); + if (ResourceProject.Length != 0) hash ^= ResourceProject.GetHashCode(); + hash ^= resourceOwners_.GetHashCode(); + if (ResourceDisplayName.Length != 0) hash ^= ResourceDisplayName.GetHashCode(); + if (ResourceParentDisplayName.Length != 0) hash ^= ResourceParentDisplayName.GetHashCode(); + if (ResourceProjectDisplayName.Length != 0) hash ^= ResourceProjectDisplayName.GetHashCode(); + hash ^= folders_.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 (ResourceName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceName); + } + if (ResourceType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceType); + } + if (ResourceParent.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceParent); + } + if (ResourceProject.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ResourceProject); + } + resourceOwners_.WriteTo(output, _repeated_resourceOwners_codec); + if (ResourceDisplayName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ResourceDisplayName); + } + if (ResourceParentDisplayName.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ResourceParentDisplayName); + } + if (ResourceProjectDisplayName.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ResourceProjectDisplayName); + } + folders_.WriteTo(output, _repeated_folders_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) { + if (ResourceName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceName); + } + if (ResourceType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceType); + } + if (ResourceParent.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceParent); + } + if (ResourceProject.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ResourceProject); + } + resourceOwners_.WriteTo(ref output, _repeated_resourceOwners_codec); + if (ResourceDisplayName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ResourceDisplayName); + } + if (ResourceParentDisplayName.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ResourceParentDisplayName); + } + if (ResourceProjectDisplayName.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ResourceProjectDisplayName); + } + folders_.WriteTo(ref output, _repeated_folders_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; + if (ResourceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); + } + if (ResourceType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceType); + } + if (ResourceParent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceParent); + } + if (ResourceProject.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceProject); + } + size += resourceOwners_.CalculateSize(_repeated_resourceOwners_codec); + if (ResourceDisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceDisplayName); + } + if (ResourceParentDisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceParentDisplayName); + } + if (ResourceProjectDisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceProjectDisplayName); + } + size += folders_.CalculateSize(_repeated_folders_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SecurityCenterProperties other) { + if (other == null) { + return; + } + if (other.ResourceName.Length != 0) { + ResourceName = other.ResourceName; + } + if (other.ResourceType.Length != 0) { + ResourceType = other.ResourceType; + } + if (other.ResourceParent.Length != 0) { + ResourceParent = other.ResourceParent; + } + if (other.ResourceProject.Length != 0) { + ResourceProject = other.ResourceProject; + } + resourceOwners_.Add(other.resourceOwners_); + if (other.ResourceDisplayName.Length != 0) { + ResourceDisplayName = other.ResourceDisplayName; + } + if (other.ResourceParentDisplayName.Length != 0) { + ResourceParentDisplayName = other.ResourceParentDisplayName; + } + if (other.ResourceProjectDisplayName.Length != 0) { + ResourceProjectDisplayName = other.ResourceProjectDisplayName; + } + folders_.Add(other.folders_); + _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: { + ResourceName = input.ReadString(); + break; + } + case 18: { + ResourceType = input.ReadString(); + break; + } + case 26: { + ResourceParent = input.ReadString(); + break; + } + case 34: { + ResourceProject = input.ReadString(); + break; + } + case 42: { + resourceOwners_.AddEntriesFrom(input, _repeated_resourceOwners_codec); + break; + } + case 50: { + ResourceDisplayName = input.ReadString(); + break; + } + case 58: { + ResourceParentDisplayName = input.ReadString(); + break; + } + case 66: { + ResourceProjectDisplayName = input.ReadString(); + break; + } + case 82: { + folders_.AddEntriesFrom(input, _repeated_folders_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: { + ResourceName = input.ReadString(); + break; + } + case 18: { + ResourceType = input.ReadString(); + break; + } + case 26: { + ResourceParent = input.ReadString(); + break; + } + case 34: { + ResourceProject = input.ReadString(); + break; + } + case 42: { + resourceOwners_.AddEntriesFrom(ref input, _repeated_resourceOwners_codec); + break; + } + case 50: { + ResourceDisplayName = input.ReadString(); + break; + } + case 58: { + ResourceParentDisplayName = input.ReadString(); + break; + } + case 66: { + ResourceProjectDisplayName = input.ReadString(); + break; + } + case 82: { + folders_.AddEntriesFrom(ref input, _repeated_folders_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Cloud IAM Policy information associated with the Google Cloud resource + /// described by the Security Command Center asset. This information is managed + /// and defined by the Google Cloud resource and cannot be modified by the + /// user. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class IamPolicy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IamPolicy()); + 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.SecurityCenter.V1.Asset.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 IamPolicy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IamPolicy(IamPolicy other) : this() { + policyBlob_ = other.policyBlob_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IamPolicy Clone() { + return new IamPolicy(this); + } + + /// Field number for the "policy_blob" field. + public const int PolicyBlobFieldNumber = 1; + private string policyBlob_ = ""; + /// + /// The JSON representation of the Policy associated with the asset. + /// See https://cloud.google.com/iam/reference/rest/v1/Policy for format + /// details. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PolicyBlob { + get { return policyBlob_; } + set { + policyBlob_ = 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 IamPolicy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(IamPolicy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PolicyBlob != other.PolicyBlob) 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 (PolicyBlob.Length != 0) hash ^= PolicyBlob.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 (PolicyBlob.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PolicyBlob); + } + 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 (PolicyBlob.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PolicyBlob); + } + 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 (PolicyBlob.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PolicyBlob); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(IamPolicy other) { + if (other == null) { + return; + } + if (other.PolicyBlob.Length != 0) { + PolicyBlob = other.PolicyBlob; + } + _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: { + PolicyBlob = 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: { + PolicyBlob = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AssetResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AssetResourceNames.g.cs new file mode 100755 index 000000000000..e5d3317ffaba --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AssetResourceNames.g.cs @@ -0,0 +1,349 @@ +// 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.SecurityCenter.V1; +using sys = System; + +namespace Google.Cloud.SecurityCenter.V1 +{ + /// Resource name for the Asset resource. + public sealed partial class AssetName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern organizations/{organization}/assets/{asset}. + OrganizationAsset = 1, + + /// A resource name with pattern folders/{folder}/assets/{asset}. + FolderAsset = 2, + + /// A resource name with pattern projects/{project}/assets/{asset}. + ProjectAsset = 3, + } + + private static gax::PathTemplate s_organizationAsset = new gax::PathTemplate("organizations/{organization}/assets/{asset}"); + + private static gax::PathTemplate s_folderAsset = new gax::PathTemplate("folders/{folder}/assets/{asset}"); + + private static gax::PathTemplate s_projectAsset = new gax::PathTemplate("projects/{project}/assets/{asset}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static AssetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new AssetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern organizations/{organization}/assets/{asset}. + /// + /// The Organization ID. Must not be null or empty. + /// The Asset ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static AssetName FromOrganizationAsset(string organizationId, string assetId) => + new AssetName(ResourceNameType.OrganizationAsset, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId))); + + /// + /// Creates a with the pattern folders/{folder}/assets/{asset}. + /// + /// The Folder ID. Must not be null or empty. + /// The Asset ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static AssetName FromFolderAsset(string folderId, string assetId) => + new AssetName(ResourceNameType.FolderAsset, folderId: gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId))); + + /// + /// Creates a with the pattern projects/{project}/assets/{asset}. + /// + /// The Project ID. Must not be null or empty. + /// The Asset ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static AssetName FromProjectAsset(string projectId, string assetId) => + new AssetName(ResourceNameType.ProjectAsset, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/assets/{asset}. + /// + /// The Organization ID. Must not be null or empty. + /// The Asset ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/assets/{asset}. + /// + public static string Format(string organizationId, string assetId) => FormatOrganizationAsset(organizationId, assetId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/assets/{asset}. + /// + /// The Organization ID. Must not be null or empty. + /// The Asset ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/assets/{asset}. + /// + public static string FormatOrganizationAsset(string organizationId, string assetId) => + s_organizationAsset.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// folders/{folder}/assets/{asset}. + /// + /// The Folder ID. Must not be null or empty. + /// The Asset ID. Must not be null or empty. + /// + /// The string representation of this with pattern folders/{folder}/assets/{asset} + /// . + /// + public static string FormatFolderAsset(string folderId, string assetId) => + s_folderAsset.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/assets/{asset}. + /// + /// The Project ID. Must not be null or empty. + /// The Asset ID. Must not be null or empty. + /// + /// The string representation of this with pattern projects/{project}/assets/{asset} + /// . + /// + public static string FormatProjectAsset(string projectId, string assetId) => + s_projectAsset.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// organizations/{organization}/assets/{asset} + /// folders/{folder}/assets/{asset} + /// projects/{project}/assets/{asset} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static AssetName Parse(string assetName) => Parse(assetName, 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: + /// + /// organizations/{organization}/assets/{asset} + /// folders/{folder}/assets/{asset} + /// projects/{project}/assets/{asset} + /// + /// 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 AssetName Parse(string assetName, bool allowUnparsed) => + TryParse(assetName, allowUnparsed, out AssetName 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: + /// + /// organizations/{organization}/assets/{asset} + /// folders/{folder}/assets/{asset} + /// projects/{project}/assets/{asset} + /// + /// + /// 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 assetName, out AssetName result) => TryParse(assetName, 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: + /// + /// organizations/{organization}/assets/{asset} + /// folders/{folder}/assets/{asset} + /// projects/{project}/assets/{asset} + /// + /// 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 assetName, bool allowUnparsed, out AssetName result) + { + gax::GaxPreconditions.CheckNotNull(assetName, nameof(assetName)); + gax::TemplatedResourceName resourceName; + if (s_organizationAsset.TryParseName(assetName, out resourceName)) + { + result = FromOrganizationAsset(resourceName[0], resourceName[1]); + return true; + } + if (s_folderAsset.TryParseName(assetName, out resourceName)) + { + result = FromFolderAsset(resourceName[0], resourceName[1]); + return true; + } + if (s_projectAsset.TryParseName(assetName, out resourceName)) + { + result = FromProjectAsset(resourceName[0], resourceName[1]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(assetName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private AssetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetId = null, string folderId = null, string organizationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + AssetId = assetId; + FolderId = folderId; + OrganizationId = organizationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// organizations/{organization}/assets/{asset} + /// + /// The Organization ID. Must not be null or empty. + /// The Asset ID. Must not be null or empty. + public AssetName(string organizationId, string assetId) : this(ResourceNameType.OrganizationAsset, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId))) + { + } + + /// 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 Asset ID. May be null, depending on which resource name is contained by this instance. + /// + public string AssetId { get; } + + /// + /// The Folder ID. May be null, depending on which resource name is contained by this instance. + /// + public string FolderId { get; } + + /// + /// The Organization ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string OrganizationId { get; } + + /// + /// The Project ID. May be null, depending on which resource name is contained by this instance. + /// + public string ProjectId { 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.OrganizationAsset: return s_organizationAsset.Expand(OrganizationId, AssetId); + case ResourceNameType.FolderAsset: return s_folderAsset.Expand(FolderId, AssetId); + case ResourceNameType.ProjectAsset: return s_projectAsset.Expand(ProjectId, AssetId); + 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 AssetName); + + /// + public bool Equals(AssetName 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 ==(AssetName a, AssetName 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 !=(AssetName a, AssetName b) => !(a == b); + } + + public partial class Asset + { + /// + /// -typed view over the resource name property. + /// + public gcsv::AssetName AssetName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::AssetName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AttackExposure.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AttackExposure.g.cs new file mode 100755 index 000000000000..30bc46a84cc5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AttackExposure.g.cs @@ -0,0 +1,537 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/attack_exposure.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/attack_exposure.proto + public static partial class AttackExposureReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/attack_exposure.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AttackExposureReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjRnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvYXR0YWNrX2V4cG9z", + "dXJlLnByb3RvEh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEaH2dv", + "b2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8iigMKDkF0dGFja0V4cG9z", + "dXJlEg0KBXNjb3JlGAEgASgBEjsKF2xhdGVzdF9jYWxjdWxhdGlvbl90aW1l", + "GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIeChZhdHRhY2tf", + "ZXhwb3N1cmVfcmVzdWx0GAMgASgJEkMKBXN0YXRlGAQgASgOMjQuZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkF0dGFja0V4cG9zdXJlLlN0YXRl", + "EioKImV4cG9zZWRfaGlnaF92YWx1ZV9yZXNvdXJjZXNfY291bnQYBSABKAUS", + "LAokZXhwb3NlZF9tZWRpdW1fdmFsdWVfcmVzb3VyY2VzX2NvdW50GAYgASgF", + "EikKIWV4cG9zZWRfbG93X3ZhbHVlX3Jlc291cmNlc19jb3VudBgHIAEoBSJC", + "CgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEg4KCkNBTENVTEFURUQQ", + "ARISCg5OT1RfQ0FMQ1VMQVRFRBACQu0BCiJjb20uZ29vZ2xlLmNsb3VkLnNl", + "Y3VyaXR5Y2VudGVyLnYxQhNBdHRhY2tFeHBvc3VyZVByb3RvUAFaSmNsb3Vk", + "Lmdvb2dsZS5jb20vZ28vc2VjdXJpdHljZW50ZXIvYXBpdjEvc2VjdXJpdHlj", + "ZW50ZXJwYjtzZWN1cml0eWNlbnRlcnBiqgIeR29vZ2xlLkNsb3VkLlNlY3Vy", + "aXR5Q2VudGVyLlYxygIeR29vZ2xlXENsb3VkXFNlY3VyaXR5Q2VudGVyXFYx", + "6gIhR29vZ2xlOjpDbG91ZDo6U2VjdXJpdHlDZW50ZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.AttackExposure), global::Google.Cloud.SecurityCenter.V1.AttackExposure.Parser, new[]{ "Score", "LatestCalculationTime", "AttackExposureResult", "State", "ExposedHighValueResourcesCount", "ExposedMediumValueResourcesCount", "ExposedLowValueResourcesCount" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.AttackExposure.Types.State) }, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// An attack exposure contains the results of an attack path simulation run. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AttackExposure : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttackExposure()); + 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.SecurityCenter.V1.AttackExposureReflection.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 AttackExposure() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttackExposure(AttackExposure other) : this() { + score_ = other.score_; + latestCalculationTime_ = other.latestCalculationTime_ != null ? other.latestCalculationTime_.Clone() : null; + attackExposureResult_ = other.attackExposureResult_; + state_ = other.state_; + exposedHighValueResourcesCount_ = other.exposedHighValueResourcesCount_; + exposedMediumValueResourcesCount_ = other.exposedMediumValueResourcesCount_; + exposedLowValueResourcesCount_ = other.exposedLowValueResourcesCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttackExposure Clone() { + return new AttackExposure(this); + } + + /// Field number for the "score" field. + public const int ScoreFieldNumber = 1; + private double score_; + /// + /// A number between 0 (inclusive) and infinity that represents how important + /// this finding is to remediate. The higher the score, the more important it + /// is to remediate. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Score { + get { return score_; } + set { + score_ = value; + } + } + + /// Field number for the "latest_calculation_time" field. + public const int LatestCalculationTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp latestCalculationTime_; + /// + /// The most recent time the attack exposure was updated on this finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LatestCalculationTime { + get { return latestCalculationTime_; } + set { + latestCalculationTime_ = value; + } + } + + /// Field number for the "attack_exposure_result" field. + public const int AttackExposureResultFieldNumber = 3; + private string attackExposureResult_ = ""; + /// + /// The resource name of the attack path simulation result that contains the + /// details regarding this attack exposure score. + /// Example: `organizations/123/simulations/456/attackExposureResults/789` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AttackExposureResult { + get { return attackExposureResult_; } + set { + attackExposureResult_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private global::Google.Cloud.SecurityCenter.V1.AttackExposure.Types.State state_ = global::Google.Cloud.SecurityCenter.V1.AttackExposure.Types.State.Unspecified; + /// + /// What state this AttackExposure is in. This captures whether or not an + /// attack exposure has been calculated or not. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.AttackExposure.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "exposed_high_value_resources_count" field. + public const int ExposedHighValueResourcesCountFieldNumber = 5; + private int exposedHighValueResourcesCount_; + /// + /// The number of high value resources that are exposed as a result of this + /// finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ExposedHighValueResourcesCount { + get { return exposedHighValueResourcesCount_; } + set { + exposedHighValueResourcesCount_ = value; + } + } + + /// Field number for the "exposed_medium_value_resources_count" field. + public const int ExposedMediumValueResourcesCountFieldNumber = 6; + private int exposedMediumValueResourcesCount_; + /// + /// The number of medium value resources that are exposed as a result of this + /// finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ExposedMediumValueResourcesCount { + get { return exposedMediumValueResourcesCount_; } + set { + exposedMediumValueResourcesCount_ = value; + } + } + + /// Field number for the "exposed_low_value_resources_count" field. + public const int ExposedLowValueResourcesCountFieldNumber = 7; + private int exposedLowValueResourcesCount_; + /// + /// The number of high value resources that are exposed as a result of this + /// finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ExposedLowValueResourcesCount { + get { return exposedLowValueResourcesCount_; } + set { + exposedLowValueResourcesCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AttackExposure); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AttackExposure other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Score, other.Score)) return false; + if (!object.Equals(LatestCalculationTime, other.LatestCalculationTime)) return false; + if (AttackExposureResult != other.AttackExposureResult) return false; + if (State != other.State) return false; + if (ExposedHighValueResourcesCount != other.ExposedHighValueResourcesCount) return false; + if (ExposedMediumValueResourcesCount != other.ExposedMediumValueResourcesCount) return false; + if (ExposedLowValueResourcesCount != other.ExposedLowValueResourcesCount) 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 (Score != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Score); + if (latestCalculationTime_ != null) hash ^= LatestCalculationTime.GetHashCode(); + if (AttackExposureResult.Length != 0) hash ^= AttackExposureResult.GetHashCode(); + if (State != global::Google.Cloud.SecurityCenter.V1.AttackExposure.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (ExposedHighValueResourcesCount != 0) hash ^= ExposedHighValueResourcesCount.GetHashCode(); + if (ExposedMediumValueResourcesCount != 0) hash ^= ExposedMediumValueResourcesCount.GetHashCode(); + if (ExposedLowValueResourcesCount != 0) hash ^= ExposedLowValueResourcesCount.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 (Score != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Score); + } + if (latestCalculationTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(LatestCalculationTime); + } + if (AttackExposureResult.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AttackExposureResult); + } + if (State != global::Google.Cloud.SecurityCenter.V1.AttackExposure.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (ExposedHighValueResourcesCount != 0) { + output.WriteRawTag(40); + output.WriteInt32(ExposedHighValueResourcesCount); + } + if (ExposedMediumValueResourcesCount != 0) { + output.WriteRawTag(48); + output.WriteInt32(ExposedMediumValueResourcesCount); + } + if (ExposedLowValueResourcesCount != 0) { + output.WriteRawTag(56); + output.WriteInt32(ExposedLowValueResourcesCount); + } + 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 (Score != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Score); + } + if (latestCalculationTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(LatestCalculationTime); + } + if (AttackExposureResult.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AttackExposureResult); + } + if (State != global::Google.Cloud.SecurityCenter.V1.AttackExposure.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (ExposedHighValueResourcesCount != 0) { + output.WriteRawTag(40); + output.WriteInt32(ExposedHighValueResourcesCount); + } + if (ExposedMediumValueResourcesCount != 0) { + output.WriteRawTag(48); + output.WriteInt32(ExposedMediumValueResourcesCount); + } + if (ExposedLowValueResourcesCount != 0) { + output.WriteRawTag(56); + output.WriteInt32(ExposedLowValueResourcesCount); + } + 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 (Score != 0D) { + size += 1 + 8; + } + if (latestCalculationTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LatestCalculationTime); + } + if (AttackExposureResult.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AttackExposureResult); + } + if (State != global::Google.Cloud.SecurityCenter.V1.AttackExposure.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (ExposedHighValueResourcesCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExposedHighValueResourcesCount); + } + if (ExposedMediumValueResourcesCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExposedMediumValueResourcesCount); + } + if (ExposedLowValueResourcesCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExposedLowValueResourcesCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AttackExposure other) { + if (other == null) { + return; + } + if (other.Score != 0D) { + Score = other.Score; + } + if (other.latestCalculationTime_ != null) { + if (latestCalculationTime_ == null) { + LatestCalculationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LatestCalculationTime.MergeFrom(other.LatestCalculationTime); + } + if (other.AttackExposureResult.Length != 0) { + AttackExposureResult = other.AttackExposureResult; + } + if (other.State != global::Google.Cloud.SecurityCenter.V1.AttackExposure.Types.State.Unspecified) { + State = other.State; + } + if (other.ExposedHighValueResourcesCount != 0) { + ExposedHighValueResourcesCount = other.ExposedHighValueResourcesCount; + } + if (other.ExposedMediumValueResourcesCount != 0) { + ExposedMediumValueResourcesCount = other.ExposedMediumValueResourcesCount; + } + if (other.ExposedLowValueResourcesCount != 0) { + ExposedLowValueResourcesCount = other.ExposedLowValueResourcesCount; + } + _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 9: { + Score = input.ReadDouble(); + break; + } + case 18: { + if (latestCalculationTime_ == null) { + LatestCalculationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LatestCalculationTime); + break; + } + case 26: { + AttackExposureResult = input.ReadString(); + break; + } + case 32: { + State = (global::Google.Cloud.SecurityCenter.V1.AttackExposure.Types.State) input.ReadEnum(); + break; + } + case 40: { + ExposedHighValueResourcesCount = input.ReadInt32(); + break; + } + case 48: { + ExposedMediumValueResourcesCount = input.ReadInt32(); + break; + } + case 56: { + ExposedLowValueResourcesCount = 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 9: { + Score = input.ReadDouble(); + break; + } + case 18: { + if (latestCalculationTime_ == null) { + LatestCalculationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LatestCalculationTime); + break; + } + case 26: { + AttackExposureResult = input.ReadString(); + break; + } + case 32: { + State = (global::Google.Cloud.SecurityCenter.V1.AttackExposure.Types.State) input.ReadEnum(); + break; + } + case 40: { + ExposedHighValueResourcesCount = input.ReadInt32(); + break; + } + case 48: { + ExposedMediumValueResourcesCount = input.ReadInt32(); + break; + } + case 56: { + ExposedLowValueResourcesCount = input.ReadInt32(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AttackExposure message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// This enum defines the various states an AttackExposure can be in. + /// + public enum State { + /// + /// The state is not specified. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The attack exposure has been calculated. + /// + [pbr::OriginalName("CALCULATED")] Calculated = 1, + /// + /// The attack exposure has not been calculated. + /// + [pbr::OriginalName("NOT_CALCULATED")] NotCalculated = 2, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AttackPath.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AttackPath.g.cs new file mode 100755 index 000000000000..9d02c6e338b2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AttackPath.g.cs @@ -0,0 +1,1613 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/attack_path.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/attack_path.proto + public static partial class AttackPathReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/attack_path.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AttackPathReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjBnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvYXR0YWNrX3BhdGgu", + "cHJvdG8SHmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MRoZZ29vZ2xl", + "L2FwaS9yZXNvdXJjZS5wcm90byLnCQoKQXR0YWNrUGF0aBIMCgRuYW1lGAEg", + "ASgJEk0KCnBhdGhfbm9kZXMYAiADKAsyOS5nb29nbGUuY2xvdWQuc2VjdXJp", + "dHljZW50ZXIudjEuQXR0YWNrUGF0aC5BdHRhY2tQYXRoTm9kZRJICgVlZGdl", + "cxgDIAMoCzI5Lmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5BdHRh", + "Y2tQYXRoLkF0dGFja1BhdGhFZGdlGr0GCg5BdHRhY2tQYXRoTm9kZRIQCghy", + "ZXNvdXJjZRgBIAEoCRIVCg1yZXNvdXJjZV90eXBlGAIgASgJEhQKDGRpc3Bs", + "YXlfbmFtZRgDIAEoCRJwChNhc3NvY2lhdGVkX2ZpbmRpbmdzGAQgAygLMlMu", + "Z29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkF0dGFja1BhdGguQXR0", + "YWNrUGF0aE5vZGUuUGF0aE5vZGVBc3NvY2lhdGVkRmluZGluZxIMCgR1dWlk", + "GAUgASgJEl4KDGF0dGFja19zdGVwcxgGIAMoCzJILmdvb2dsZS5jbG91ZC5z", + "ZWN1cml0eWNlbnRlci52MS5BdHRhY2tQYXRoLkF0dGFja1BhdGhOb2RlLkF0", + "dGFja1N0ZXBOb2RlGl4KGVBhdGhOb2RlQXNzb2NpYXRlZEZpbmRpbmcSGQoR", + "Y2Fub25pY2FsX2ZpbmRpbmcYASABKAkSGAoQZmluZGluZ19jYXRlZ29yeRgC", + "IAEoCRIMCgRuYW1lGAMgASgJGrACCg5BdHRhY2tTdGVwTm9kZRIMCgR1dWlk", + "GAEgASgJElAKBHR5cGUYAiABKA4yQi5nb29nbGUuY2xvdWQuc2VjdXJpdHlj", + "ZW50ZXIudjEuQXR0YWNrUGF0aC5BdHRhY2tQYXRoTm9kZS5Ob2RlVHlwZRIU", + "CgxkaXNwbGF5X25hbWUYAyABKAkSZAoGbGFiZWxzGAQgAygLMlQuZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkF0dGFja1BhdGguQXR0YWNrUGF0", + "aE5vZGUuQXR0YWNrU3RlcE5vZGUuTGFiZWxzRW50cnkSEwoLZGVzY3JpcHRp", + "b24YBSABKAkaLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVl", + "GAIgASgJOgI4ASJ5CghOb2RlVHlwZRIZChVOT0RFX1RZUEVfVU5TUEVDSUZJ", + "RUQQABIRCg1OT0RFX1RZUEVfQU5EEAESEAoMTk9ERV9UWVBFX09SEAISFQoR", + "Tk9ERV9UWVBFX0RFRkVOU0UQAxIWChJOT0RFX1RZUEVfQVRUQUNLRVIQBBo1", + "Cg5BdHRhY2tQYXRoRWRnZRIOCgZzb3VyY2UYASABKAkSEwoLZGVzdGluYXRp", + "b24YAiABKAk6ugHqQbYBCihzZWN1cml0eWNlbnRlci5nb29nbGVhcGlzLmNv", + "bS9BdHRhY2tQYXRoEnFvcmdhbml6YXRpb25zL3tvcmdhbml6YXRpb259L3Np", + "bXVsYXRpb25zL3tzaW11bGF0aW9ufS92YWx1ZWRSZXNvdXJjZXMve3ZhbHVl", + "ZF9yZXNvdXJjZX0vYXR0YWNrUGF0aHMve2F0dGFja19wYXRofSoLYXR0YWNr", + "UGF0aHMyCmF0dGFja1BhdGhC6QEKImNvbS5nb29nbGUuY2xvdWQuc2VjdXJp", + "dHljZW50ZXIudjFCD0F0dGFja1BhdGhQcm90b1ABWkpjbG91ZC5nb29nbGUu", + "Y29tL2dvL3NlY3VyaXR5Y2VudGVyL2FwaXYxL3NlY3VyaXR5Y2VudGVycGI7", + "c2VjdXJpdHljZW50ZXJwYqoCHkdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRl", + "ci5WMcoCHkdvb2dsZVxDbG91ZFxTZWN1cml0eUNlbnRlclxWMeoCIUdvb2ds", + "ZTo6Q2xvdWQ6OlNlY3VyaXR5Q2VudGVyOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.ResourceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.AttackPath), global::Google.Cloud.SecurityCenter.V1.AttackPath.Parser, new[]{ "Name", "PathNodes", "Edges" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode), global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Parser, new[]{ "Resource", "ResourceType", "DisplayName", "AssociatedFindings", "Uuid", "AttackSteps" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.NodeType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.PathNodeAssociatedFinding), global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.PathNodeAssociatedFinding.Parser, new[]{ "CanonicalFinding", "FindingCategory", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.AttackStepNode), global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.AttackStepNode.Parser, new[]{ "Uuid", "Type", "DisplayName", "Labels", "Description" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathEdge), global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathEdge.Parser, new[]{ "Source", "Destination" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + /// + /// A path that an attacker could take to reach an exposed resource. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AttackPath : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttackPath()); + 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.SecurityCenter.V1.AttackPathReflection.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 AttackPath() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttackPath(AttackPath other) : this() { + name_ = other.name_; + pathNodes_ = other.pathNodes_.Clone(); + edges_ = other.edges_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttackPath Clone() { + return new AttackPath(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The attack path name, for example, + /// `organizations/12/simulation/34/valuedResources/56/attackPaths/78` + /// + [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 "path_nodes" field. + public const int PathNodesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_pathNodes_codec + = pb::FieldCodec.ForMessage(18, global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Parser); + private readonly pbc::RepeatedField pathNodes_ = new pbc::RepeatedField(); + /// + /// A list of nodes that exist in this attack path. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PathNodes { + get { return pathNodes_; } + } + + /// Field number for the "edges" field. + public const int EdgesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_edges_codec + = pb::FieldCodec.ForMessage(26, global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathEdge.Parser); + private readonly pbc::RepeatedField edges_ = new pbc::RepeatedField(); + /// + /// A list of the edges between nodes in this attack path. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Edges { + get { return edges_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AttackPath); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AttackPath other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!pathNodes_.Equals(other.pathNodes_)) return false; + if(!edges_.Equals(other.edges_)) 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(); + hash ^= pathNodes_.GetHashCode(); + hash ^= edges_.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); + } + pathNodes_.WriteTo(output, _repeated_pathNodes_codec); + edges_.WriteTo(output, _repeated_edges_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) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + pathNodes_.WriteTo(ref output, _repeated_pathNodes_codec); + edges_.WriteTo(ref output, _repeated_edges_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; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += pathNodes_.CalculateSize(_repeated_pathNodes_codec); + size += edges_.CalculateSize(_repeated_edges_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AttackPath other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + pathNodes_.Add(other.pathNodes_); + edges_.Add(other.edges_); + _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: { + pathNodes_.AddEntriesFrom(input, _repeated_pathNodes_codec); + break; + } + case 26: { + edges_.AddEntriesFrom(input, _repeated_edges_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: { + Name = input.ReadString(); + break; + } + case 18: { + pathNodes_.AddEntriesFrom(ref input, _repeated_pathNodes_codec); + break; + } + case 26: { + edges_.AddEntriesFrom(ref input, _repeated_edges_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AttackPath message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Represents one point that an attacker passes through in this attack path. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AttackPathNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttackPathNode()); + 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.SecurityCenter.V1.AttackPath.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 AttackPathNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttackPathNode(AttackPathNode other) : this() { + resource_ = other.resource_; + resourceType_ = other.resourceType_; + displayName_ = other.displayName_; + associatedFindings_ = other.associatedFindings_.Clone(); + uuid_ = other.uuid_; + attackSteps_ = other.attackSteps_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttackPathNode Clone() { + return new AttackPathNode(this); + } + + /// Field number for the "resource" field. + public const int ResourceFieldNumber = 1; + private string resource_ = ""; + /// + /// The name of the resource at this point in the attack path. + /// The format of the name follows the Cloud Asset Inventory [resource + /// name + /// format](https://cloud.google.com/asset-inventory/docs/resource-name-format) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Resource { + get { return resource_; } + set { + resource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_type" field. + public const int ResourceTypeFieldNumber = 2; + private string resourceType_ = ""; + /// + /// The [supported resource + /// type](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceType { + get { return resourceType_; } + set { + resourceType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 3; + private string displayName_ = ""; + /// + /// Human-readable name of this resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "associated_findings" field. + public const int AssociatedFindingsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_associatedFindings_codec + = pb::FieldCodec.ForMessage(34, global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.PathNodeAssociatedFinding.Parser); + private readonly pbc::RepeatedField associatedFindings_ = new pbc::RepeatedField(); + /// + /// The findings associated with this node in the attack path. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AssociatedFindings { + get { return associatedFindings_; } + } + + /// Field number for the "uuid" field. + public const int UuidFieldNumber = 5; + private string uuid_ = ""; + /// + /// Unique id of the attack path node. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uuid { + get { return uuid_; } + set { + uuid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "attack_steps" field. + public const int AttackStepsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_attackSteps_codec + = pb::FieldCodec.ForMessage(50, global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.AttackStepNode.Parser); + private readonly pbc::RepeatedField attackSteps_ = new pbc::RepeatedField(); + /// + /// A list of attack step nodes that exist in this attack path node. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AttackSteps { + get { return attackSteps_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AttackPathNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AttackPathNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Resource != other.Resource) return false; + if (ResourceType != other.ResourceType) return false; + if (DisplayName != other.DisplayName) return false; + if(!associatedFindings_.Equals(other.associatedFindings_)) return false; + if (Uuid != other.Uuid) return false; + if(!attackSteps_.Equals(other.attackSteps_)) 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 (Resource.Length != 0) hash ^= Resource.GetHashCode(); + if (ResourceType.Length != 0) hash ^= ResourceType.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + hash ^= associatedFindings_.GetHashCode(); + if (Uuid.Length != 0) hash ^= Uuid.GetHashCode(); + hash ^= attackSteps_.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 (Resource.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Resource); + } + if (ResourceType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceType); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + associatedFindings_.WriteTo(output, _repeated_associatedFindings_codec); + if (Uuid.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Uuid); + } + attackSteps_.WriteTo(output, _repeated_attackSteps_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) { + if (Resource.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Resource); + } + if (ResourceType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceType); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + associatedFindings_.WriteTo(ref output, _repeated_associatedFindings_codec); + if (Uuid.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Uuid); + } + attackSteps_.WriteTo(ref output, _repeated_attackSteps_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; + if (Resource.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Resource); + } + if (ResourceType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceType); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + size += associatedFindings_.CalculateSize(_repeated_associatedFindings_codec); + if (Uuid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uuid); + } + size += attackSteps_.CalculateSize(_repeated_attackSteps_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AttackPathNode other) { + if (other == null) { + return; + } + if (other.Resource.Length != 0) { + Resource = other.Resource; + } + if (other.ResourceType.Length != 0) { + ResourceType = other.ResourceType; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + associatedFindings_.Add(other.associatedFindings_); + if (other.Uuid.Length != 0) { + Uuid = other.Uuid; + } + attackSteps_.Add(other.attackSteps_); + _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: { + Resource = input.ReadString(); + break; + } + case 18: { + ResourceType = input.ReadString(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + case 34: { + associatedFindings_.AddEntriesFrom(input, _repeated_associatedFindings_codec); + break; + } + case 42: { + Uuid = input.ReadString(); + break; + } + case 50: { + attackSteps_.AddEntriesFrom(input, _repeated_attackSteps_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: { + Resource = input.ReadString(); + break; + } + case 18: { + ResourceType = input.ReadString(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + case 34: { + associatedFindings_.AddEntriesFrom(ref input, _repeated_associatedFindings_codec); + break; + } + case 42: { + Uuid = input.ReadString(); + break; + } + case 50: { + attackSteps_.AddEntriesFrom(ref input, _repeated_attackSteps_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AttackPathNode message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type of the incoming attack step node. + /// + public enum NodeType { + /// + /// Type not specified + /// + [pbr::OriginalName("NODE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Incoming edge joined with AND + /// + [pbr::OriginalName("NODE_TYPE_AND")] And = 1, + /// + /// Incoming edge joined with OR + /// + [pbr::OriginalName("NODE_TYPE_OR")] Or = 2, + /// + /// Incoming edge is defense + /// + [pbr::OriginalName("NODE_TYPE_DEFENSE")] Defense = 3, + /// + /// Incoming edge is attacker + /// + [pbr::OriginalName("NODE_TYPE_ATTACKER")] Attacker = 4, + } + + /// + /// A finding that is associated with this node in the attack path. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PathNodeAssociatedFinding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PathNodeAssociatedFinding()); + 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.SecurityCenter.V1.AttackPath.Types.AttackPathNode.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 PathNodeAssociatedFinding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PathNodeAssociatedFinding(PathNodeAssociatedFinding other) : this() { + canonicalFinding_ = other.canonicalFinding_; + findingCategory_ = other.findingCategory_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PathNodeAssociatedFinding Clone() { + return new PathNodeAssociatedFinding(this); + } + + /// Field number for the "canonical_finding" field. + public const int CanonicalFindingFieldNumber = 1; + private string canonicalFinding_ = ""; + /// + /// Canonical name of the associated findings. Example: + /// `organizations/123/sources/456/findings/789` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CanonicalFinding { + get { return canonicalFinding_; } + set { + canonicalFinding_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "finding_category" field. + public const int FindingCategoryFieldNumber = 2; + private string findingCategory_ = ""; + /// + /// The additional taxonomy group within findings from a given source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FindingCategory { + get { return findingCategory_; } + set { + findingCategory_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + /// + /// Full resource name of the finding. + /// + [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 PathNodeAssociatedFinding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PathNodeAssociatedFinding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CanonicalFinding != other.CanonicalFinding) return false; + if (FindingCategory != other.FindingCategory) return false; + 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 (CanonicalFinding.Length != 0) hash ^= CanonicalFinding.GetHashCode(); + if (FindingCategory.Length != 0) hash ^= FindingCategory.GetHashCode(); + 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 (CanonicalFinding.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CanonicalFinding); + } + if (FindingCategory.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FindingCategory); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + 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 (CanonicalFinding.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CanonicalFinding); + } + if (FindingCategory.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FindingCategory); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + 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 (CanonicalFinding.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CanonicalFinding); + } + if (FindingCategory.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FindingCategory); + } + 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(PathNodeAssociatedFinding other) { + if (other == null) { + return; + } + if (other.CanonicalFinding.Length != 0) { + CanonicalFinding = other.CanonicalFinding; + } + if (other.FindingCategory.Length != 0) { + FindingCategory = other.FindingCategory; + } + 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: { + CanonicalFinding = input.ReadString(); + break; + } + case 18: { + FindingCategory = input.ReadString(); + break; + } + case 26: { + 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: { + CanonicalFinding = input.ReadString(); + break; + } + case 18: { + FindingCategory = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Detailed steps the attack can take between path nodes. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AttackStepNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttackStepNode()); + 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.SecurityCenter.V1.AttackPath.Types.AttackPathNode.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 AttackStepNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttackStepNode(AttackStepNode other) : this() { + uuid_ = other.uuid_; + type_ = other.type_; + displayName_ = other.displayName_; + labels_ = other.labels_.Clone(); + description_ = other.description_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttackStepNode Clone() { + return new AttackStepNode(this); + } + + /// Field number for the "uuid" field. + public const int UuidFieldNumber = 1; + private string uuid_ = ""; + /// + /// Unique ID for one Node + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uuid { + get { return uuid_; } + set { + uuid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.NodeType type_ = global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.NodeType.Unspecified; + /// + /// Attack step type. Can be either AND, OR or DEFENSE + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.NodeType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 3; + private string displayName_ = ""; + /// + /// User friendly name of the attack step + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "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(); + /// + /// Attack step labels for metadata + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 5; + private string description_ = ""; + /// + /// Attack step description + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = 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 AttackStepNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AttackStepNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uuid != other.Uuid) return false; + if (Type != other.Type) return false; + if (DisplayName != other.DisplayName) return false; + if (!Labels.Equals(other.Labels)) return false; + if (Description != other.Description) 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 (Uuid.Length != 0) hash ^= Uuid.GetHashCode(); + if (Type != global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.NodeType.Unspecified) hash ^= Type.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (Description.Length != 0) hash ^= Description.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 (Uuid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uuid); + } + if (Type != global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.NodeType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + labels_.WriteTo(output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + 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 (Uuid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Uuid); + } + if (Type != global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.NodeType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + 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 (Uuid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uuid); + } + if (Type != global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.NodeType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + size += labels_.CalculateSize(_map_labels_codec); + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AttackStepNode other) { + if (other == null) { + return; + } + if (other.Uuid.Length != 0) { + Uuid = other.Uuid; + } + if (other.Type != global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.NodeType.Unspecified) { + Type = other.Type; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + labels_.MergeFrom(other.labels_); + if (other.Description.Length != 0) { + Description = other.Description; + } + _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: { + Uuid = input.ReadString(); + break; + } + case 16: { + Type = (global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.NodeType) input.ReadEnum(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 42: { + Description = 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: { + Uuid = input.ReadString(); + break; + } + case 16: { + Type = (global::Google.Cloud.SecurityCenter.V1.AttackPath.Types.AttackPathNode.Types.NodeType) input.ReadEnum(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Represents a connection between a source node and a destination node in + /// this attack path. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AttackPathEdge : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttackPathEdge()); + 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.SecurityCenter.V1.AttackPath.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 AttackPathEdge() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttackPathEdge(AttackPathEdge other) : this() { + source_ = other.source_; + destination_ = other.destination_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AttackPathEdge Clone() { + return new AttackPathEdge(this); + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 1; + private string source_ = ""; + /// + /// The attack node uuid of the source node. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Source { + get { return source_; } + set { + source_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "destination" field. + public const int DestinationFieldNumber = 2; + private string destination_ = ""; + /// + /// The attack node uuid of the destination node. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Destination { + get { return destination_; } + set { + destination_ = 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 AttackPathEdge); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AttackPathEdge other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Source != other.Source) return false; + if (Destination != other.Destination) 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 (Source.Length != 0) hash ^= Source.GetHashCode(); + if (Destination.Length != 0) hash ^= Destination.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 (Source.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Source); + } + if (Destination.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Destination); + } + 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 (Source.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Source); + } + if (Destination.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Destination); + } + 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 (Source.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Source); + } + if (Destination.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Destination); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AttackPathEdge other) { + if (other == null) { + return; + } + if (other.Source.Length != 0) { + Source = other.Source; + } + if (other.Destination.Length != 0) { + Destination = other.Destination; + } + _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: { + Source = input.ReadString(); + break; + } + case 18: { + Destination = 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: { + Source = input.ReadString(); + break; + } + case 18: { + Destination = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AttackPathResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AttackPathResourceNames.g.cs new file mode 100755 index 000000000000..c338baec18ad --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/AttackPathResourceNames.g.cs @@ -0,0 +1,324 @@ +// 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.SecurityCenter.V1; +using sys = System; + +namespace Google.Cloud.SecurityCenter.V1 +{ + /// Resource name for the AttackPath resource. + public sealed partial class AttackPathName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// + /// organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}/attackPaths/{attack_path} + /// . + /// + OrganizationSimulationValuedResourceAttackPath = 1, + } + + private static gax::PathTemplate s_organizationSimulationValuedResourceAttackPath = new gax::PathTemplate("organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}/attackPaths/{attack_path}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static AttackPathName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new AttackPathName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// + /// organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}/attackPaths/{attack_path} + /// . + /// + /// The Organization ID. Must not be null or empty. + /// The Simulation ID. Must not be null or empty. + /// The ValuedResource ID. Must not be null or empty. + /// The AttackPath ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static AttackPathName FromOrganizationSimulationValuedResourceAttackPath(string organizationId, string simulationId, string valuedResourceId, string attackPathId) => + new AttackPathName(ResourceNameType.OrganizationSimulationValuedResourceAttackPath, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), simulationId: gax::GaxPreconditions.CheckNotNullOrEmpty(simulationId, nameof(simulationId)), valuedResourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(valuedResourceId, nameof(valuedResourceId)), attackPathId: gax::GaxPreconditions.CheckNotNullOrEmpty(attackPathId, nameof(attackPathId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// + /// organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}/attackPaths/{attack_path} + /// . + /// + /// The Organization ID. Must not be null or empty. + /// The Simulation ID. Must not be null or empty. + /// The ValuedResource ID. Must not be null or empty. + /// The AttackPath ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// + /// organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}/attackPaths/{attack_path} + /// . + /// + public static string Format(string organizationId, string simulationId, string valuedResourceId, string attackPathId) => + FormatOrganizationSimulationValuedResourceAttackPath(organizationId, simulationId, valuedResourceId, attackPathId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// + /// organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}/attackPaths/{attack_path} + /// . + /// + /// The Organization ID. Must not be null or empty. + /// The Simulation ID. Must not be null or empty. + /// The ValuedResource ID. Must not be null or empty. + /// The AttackPath ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// + /// organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}/attackPaths/{attack_path} + /// . + /// + public static string FormatOrganizationSimulationValuedResourceAttackPath(string organizationId, string simulationId, string valuedResourceId, string attackPathId) => + s_organizationSimulationValuedResourceAttackPath.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(simulationId, nameof(simulationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(valuedResourceId, nameof(valuedResourceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(attackPathId, nameof(attackPathId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// + /// organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}/attackPaths/{attack_path} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static AttackPathName Parse(string attackPathName) => Parse(attackPathName, 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: + /// + /// + /// + /// + /// organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}/attackPaths/{attack_path} + /// + /// + /// + /// 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 AttackPathName Parse(string attackPathName, bool allowUnparsed) => + TryParse(attackPathName, allowUnparsed, out AttackPathName 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: + /// + /// + /// + /// + /// organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}/attackPaths/{attack_path} + /// + /// + /// + /// + /// 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 attackPathName, out AttackPathName result) => + TryParse(attackPathName, 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: + /// + /// + /// + /// + /// organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}/attackPaths/{attack_path} + /// + /// + /// + /// 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 attackPathName, bool allowUnparsed, out AttackPathName result) + { + gax::GaxPreconditions.CheckNotNull(attackPathName, nameof(attackPathName)); + gax::TemplatedResourceName resourceName; + if (s_organizationSimulationValuedResourceAttackPath.TryParseName(attackPathName, out resourceName)) + { + result = FromOrganizationSimulationValuedResourceAttackPath(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(attackPathName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private AttackPathName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string attackPathId = null, string organizationId = null, string simulationId = null, string valuedResourceId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + AttackPathId = attackPathId; + OrganizationId = organizationId; + SimulationId = simulationId; + ValuedResourceId = valuedResourceId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// + /// organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}/attackPaths/{attack_path} + /// + /// The Organization ID. Must not be null or empty. + /// The Simulation ID. Must not be null or empty. + /// The ValuedResource ID. Must not be null or empty. + /// The AttackPath ID. Must not be null or empty. + public AttackPathName(string organizationId, string simulationId, string valuedResourceId, string attackPathId) : this(ResourceNameType.OrganizationSimulationValuedResourceAttackPath, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), simulationId: gax::GaxPreconditions.CheckNotNullOrEmpty(simulationId, nameof(simulationId)), valuedResourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(valuedResourceId, nameof(valuedResourceId)), attackPathId: gax::GaxPreconditions.CheckNotNullOrEmpty(attackPathId, nameof(attackPathId))) + { + } + + /// 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 AttackPath ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string AttackPathId { get; } + + /// + /// The Organization ID. Will not be null, unless this instance contains an unparsed resource + /// name. + /// + public string OrganizationId { get; } + + /// + /// The Simulation ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string SimulationId { get; } + + /// + /// The ValuedResource ID. Will not be null, unless this instance contains an unparsed resource + /// name. + /// + public string ValuedResourceId { 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.OrganizationSimulationValuedResourceAttackPath: return s_organizationSimulationValuedResourceAttackPath.Expand(OrganizationId, SimulationId, ValuedResourceId, AttackPathId); + 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 AttackPathName); + + /// + public bool Equals(AttackPathName 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 ==(AttackPathName a, AttackPathName 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 !=(AttackPathName a, AttackPathName b) => !(a == b); + } + + public partial class AttackPath + { + /// + /// -typed view over the resource name property. + /// + public gcsv::AttackPathName AttackPathName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::AttackPathName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/BackupDisasterRecovery.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/BackupDisasterRecovery.g.cs new file mode 100755 index 000000000000..24f3e8125fc2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/BackupDisasterRecovery.g.cs @@ -0,0 +1,616 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/backup_disaster_recovery.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/backup_disaster_recovery.proto + public static partial class BackupDisasterRecoveryReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/backup_disaster_recovery.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BackupDisasterRecoveryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cj1nb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvYmFja3VwX2Rpc2Fz", + "dGVyX3JlY292ZXJ5LnByb3RvEh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50", + "ZXIudjEaH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8ihgIKFkJh", + "Y2t1cERpc2FzdGVyUmVjb3ZlcnkSFwoPYmFja3VwX3RlbXBsYXRlGAEgASgJ", + "EhAKCHBvbGljaWVzGAIgAygJEgwKBGhvc3QYAyABKAkSFAoMYXBwbGljYXRp", + "b25zGAQgAygJEhQKDHN0b3JhZ2VfcG9vbBgFIAEoCRIWCg5wb2xpY3lfb3B0", + "aW9ucxgGIAMoCRIPCgdwcm9maWxlGAcgASgJEhEKCWFwcGxpYW5jZRgIIAEo", + "CRITCgtiYWNrdXBfdHlwZRgJIAEoCRI2ChJiYWNrdXBfY3JlYXRlX3RpbWUY", + "CiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQvUBCiJjb20uZ29v", + "Z2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxQhtCYWNrdXBEaXNhc3RlclJl", + "Y292ZXJ5UHJvdG9QAVpKY2xvdWQuZ29vZ2xlLmNvbS9nby9zZWN1cml0eWNl", + "bnRlci9hcGl2MS9zZWN1cml0eWNlbnRlcnBiO3NlY3VyaXR5Y2VudGVycGKq", + "Ah5Hb29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuVjHKAh5Hb29nbGVcQ2xv", + "dWRcU2VjdXJpdHlDZW50ZXJcVjHqAiFHb29nbGU6OkNsb3VkOjpTZWN1cml0", + "eUNlbnRlcjo6VjFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.BackupDisasterRecovery), global::Google.Cloud.SecurityCenter.V1.BackupDisasterRecovery.Parser, new[]{ "BackupTemplate", "Policies", "Host", "Applications", "StoragePool", "PolicyOptions", "Profile", "Appliance", "BackupType", "BackupCreateTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Information related to Google Cloud Backup and DR Service findings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BackupDisasterRecovery : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BackupDisasterRecovery()); + 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.SecurityCenter.V1.BackupDisasterRecoveryReflection.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 BackupDisasterRecovery() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackupDisasterRecovery(BackupDisasterRecovery other) : this() { + backupTemplate_ = other.backupTemplate_; + policies_ = other.policies_.Clone(); + host_ = other.host_; + applications_ = other.applications_.Clone(); + storagePool_ = other.storagePool_; + policyOptions_ = other.policyOptions_.Clone(); + profile_ = other.profile_; + appliance_ = other.appliance_; + backupType_ = other.backupType_; + backupCreateTime_ = other.backupCreateTime_ != null ? other.backupCreateTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackupDisasterRecovery Clone() { + return new BackupDisasterRecovery(this); + } + + /// Field number for the "backup_template" field. + public const int BackupTemplateFieldNumber = 1; + private string backupTemplate_ = ""; + /// + /// The name of a Backup and DR template which comprises one or more backup + /// policies. See the [Backup and DR + /// documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) + /// for more information. For example, `snap-ov`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BackupTemplate { + get { return backupTemplate_; } + set { + backupTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "policies" field. + public const int PoliciesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_policies_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField policies_ = new pbc::RepeatedField(); + /// + /// The names of Backup and DR policies that are associated with a template + /// and that define when to run a backup, how frequently to run a backup, and + /// how long to retain the backup image. For example, `onvaults`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Policies { + get { return policies_; } + } + + /// Field number for the "host" field. + public const int HostFieldNumber = 3; + private string host_ = ""; + /// + /// The name of a Backup and DR host, which is managed by the backup and + /// recovery appliance and known to the management console. The host can be of + /// type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file + /// system, etc.), vCenter, or an ESX server. See the [Backup and DR + /// documentation on + /// hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) + /// for more information. For example, `centos7-01`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Host { + get { return host_; } + set { + host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "applications" field. + public const int ApplicationsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_applications_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField applications_ = new pbc::RepeatedField(); + /// + /// The names of Backup and DR applications. An application is a VM, database, + /// or file system on a managed host monitored by a backup and recovery + /// appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`, + /// `centos7-01-vol02`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Applications { + get { return applications_; } + } + + /// Field number for the "storage_pool" field. + public const int StoragePoolFieldNumber = 5; + private string storagePool_ = ""; + /// + /// The name of the Backup and DR storage pool that the backup and recovery + /// appliance is storing data in. The storage pool could be of type Cloud, + /// Primary, Snapshot, or OnVault. See the [Backup and DR documentation on + /// storage + /// pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). + /// For example, `DiskPoolOne`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StoragePool { + get { return storagePool_; } + set { + storagePool_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "policy_options" field. + public const int PolicyOptionsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_policyOptions_codec + = pb::FieldCodec.ForString(50); + private readonly pbc::RepeatedField policyOptions_ = new pbc::RepeatedField(); + /// + /// The names of Backup and DR advanced policy options of a policy applying to + /// an application. See the [Backup and DR documentation on policy + /// options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). + /// For example, `skipofflineappsincongrp, nounmap`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PolicyOptions { + get { return policyOptions_; } + } + + /// Field number for the "profile" field. + public const int ProfileFieldNumber = 7; + private string profile_ = ""; + /// + /// The name of the Backup and DR resource profile that specifies the storage + /// media for backups of application and VM data. See the [Backup and DR + /// documentation on + /// profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). + /// For example, `GCP`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Profile { + get { return profile_; } + set { + profile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "appliance" field. + public const int ApplianceFieldNumber = 8; + private string appliance_ = ""; + /// + /// The name of the Backup and DR appliance that captures, moves, and manages + /// the lifecycle of backup data. For example, `backup-server-57137`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Appliance { + get { return appliance_; } + set { + appliance_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "backup_type" field. + public const int BackupTypeFieldNumber = 9; + private string backupType_ = ""; + /// + /// The backup type of the Backup and DR image. + /// For example, `Snapshot`, `Remote Snapshot`, `OnVault`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BackupType { + get { return backupType_; } + set { + backupType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "backup_create_time" field. + public const int BackupCreateTimeFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp backupCreateTime_; + /// + /// The timestamp at which the Backup and DR backup was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp BackupCreateTime { + get { return backupCreateTime_; } + set { + backupCreateTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BackupDisasterRecovery); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BackupDisasterRecovery other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BackupTemplate != other.BackupTemplate) return false; + if(!policies_.Equals(other.policies_)) return false; + if (Host != other.Host) return false; + if(!applications_.Equals(other.applications_)) return false; + if (StoragePool != other.StoragePool) return false; + if(!policyOptions_.Equals(other.policyOptions_)) return false; + if (Profile != other.Profile) return false; + if (Appliance != other.Appliance) return false; + if (BackupType != other.BackupType) return false; + if (!object.Equals(BackupCreateTime, other.BackupCreateTime)) 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 (BackupTemplate.Length != 0) hash ^= BackupTemplate.GetHashCode(); + hash ^= policies_.GetHashCode(); + if (Host.Length != 0) hash ^= Host.GetHashCode(); + hash ^= applications_.GetHashCode(); + if (StoragePool.Length != 0) hash ^= StoragePool.GetHashCode(); + hash ^= policyOptions_.GetHashCode(); + if (Profile.Length != 0) hash ^= Profile.GetHashCode(); + if (Appliance.Length != 0) hash ^= Appliance.GetHashCode(); + if (BackupType.Length != 0) hash ^= BackupType.GetHashCode(); + if (backupCreateTime_ != null) hash ^= BackupCreateTime.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 (BackupTemplate.Length != 0) { + output.WriteRawTag(10); + output.WriteString(BackupTemplate); + } + policies_.WriteTo(output, _repeated_policies_codec); + if (Host.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Host); + } + applications_.WriteTo(output, _repeated_applications_codec); + if (StoragePool.Length != 0) { + output.WriteRawTag(42); + output.WriteString(StoragePool); + } + policyOptions_.WriteTo(output, _repeated_policyOptions_codec); + if (Profile.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Profile); + } + if (Appliance.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Appliance); + } + if (BackupType.Length != 0) { + output.WriteRawTag(74); + output.WriteString(BackupType); + } + if (backupCreateTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(BackupCreateTime); + } + 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 (BackupTemplate.Length != 0) { + output.WriteRawTag(10); + output.WriteString(BackupTemplate); + } + policies_.WriteTo(ref output, _repeated_policies_codec); + if (Host.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Host); + } + applications_.WriteTo(ref output, _repeated_applications_codec); + if (StoragePool.Length != 0) { + output.WriteRawTag(42); + output.WriteString(StoragePool); + } + policyOptions_.WriteTo(ref output, _repeated_policyOptions_codec); + if (Profile.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Profile); + } + if (Appliance.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Appliance); + } + if (BackupType.Length != 0) { + output.WriteRawTag(74); + output.WriteString(BackupType); + } + if (backupCreateTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(BackupCreateTime); + } + 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 (BackupTemplate.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BackupTemplate); + } + size += policies_.CalculateSize(_repeated_policies_codec); + if (Host.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); + } + size += applications_.CalculateSize(_repeated_applications_codec); + if (StoragePool.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StoragePool); + } + size += policyOptions_.CalculateSize(_repeated_policyOptions_codec); + if (Profile.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Profile); + } + if (Appliance.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Appliance); + } + if (BackupType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BackupType); + } + if (backupCreateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackupCreateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BackupDisasterRecovery other) { + if (other == null) { + return; + } + if (other.BackupTemplate.Length != 0) { + BackupTemplate = other.BackupTemplate; + } + policies_.Add(other.policies_); + if (other.Host.Length != 0) { + Host = other.Host; + } + applications_.Add(other.applications_); + if (other.StoragePool.Length != 0) { + StoragePool = other.StoragePool; + } + policyOptions_.Add(other.policyOptions_); + if (other.Profile.Length != 0) { + Profile = other.Profile; + } + if (other.Appliance.Length != 0) { + Appliance = other.Appliance; + } + if (other.BackupType.Length != 0) { + BackupType = other.BackupType; + } + if (other.backupCreateTime_ != null) { + if (backupCreateTime_ == null) { + BackupCreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + BackupCreateTime.MergeFrom(other.BackupCreateTime); + } + _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: { + BackupTemplate = input.ReadString(); + break; + } + case 18: { + policies_.AddEntriesFrom(input, _repeated_policies_codec); + break; + } + case 26: { + Host = input.ReadString(); + break; + } + case 34: { + applications_.AddEntriesFrom(input, _repeated_applications_codec); + break; + } + case 42: { + StoragePool = input.ReadString(); + break; + } + case 50: { + policyOptions_.AddEntriesFrom(input, _repeated_policyOptions_codec); + break; + } + case 58: { + Profile = input.ReadString(); + break; + } + case 66: { + Appliance = input.ReadString(); + break; + } + case 74: { + BackupType = input.ReadString(); + break; + } + case 82: { + if (backupCreateTime_ == null) { + BackupCreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(BackupCreateTime); + 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: { + BackupTemplate = input.ReadString(); + break; + } + case 18: { + policies_.AddEntriesFrom(ref input, _repeated_policies_codec); + break; + } + case 26: { + Host = input.ReadString(); + break; + } + case 34: { + applications_.AddEntriesFrom(ref input, _repeated_applications_codec); + break; + } + case 42: { + StoragePool = input.ReadString(); + break; + } + case 50: { + policyOptions_.AddEntriesFrom(ref input, _repeated_policyOptions_codec); + break; + } + case 58: { + Profile = input.ReadString(); + break; + } + case 66: { + Appliance = input.ReadString(); + break; + } + case 74: { + BackupType = input.ReadString(); + break; + } + case 82: { + if (backupCreateTime_ == null) { + BackupCreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(BackupCreateTime); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/BigqueryExport.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/BigqueryExport.g.cs new file mode 100755 index 000000000000..59121b0ad21b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/BigqueryExport.g.cs @@ -0,0 +1,592 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/bigquery_export.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/bigquery_export.proto + public static partial class BigqueryExportReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/bigquery_export.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BigqueryExportReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjRnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvYmlncXVlcnlfZXhw", + "b3J0LnByb3RvEh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEaH2dv", + "b2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVz", + "b3VyY2UucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8i", + "3gMKDkJpZ1F1ZXJ5RXhwb3J0EgwKBG5hbWUYASABKAkSEwoLZGVzY3JpcHRp", + "b24YAiABKAkSDgoGZmlsdGVyGAMgASgJEg8KB2RhdGFzZXQYBCABKAkSNAoL", + "Y3JlYXRlX3RpbWUYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "QgPgQQMSNAoLdXBkYXRlX3RpbWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wQgPgQQMSHwoSbW9zdF9yZWNlbnRfZWRpdG9yGAcgASgJQgPg", + "QQMSFgoJcHJpbmNpcGFsGAggASgJQgPgQQM64gHqQd4BCixzZWN1cml0eWNl", + "bnRlci5nb29nbGVhcGlzLmNvbS9CaWdRdWVyeUV4cG9ydBI1b3JnYW5pemF0", + "aW9ucy97b3JnYW5pemF0aW9ufS9iaWdRdWVyeUV4cG9ydHMve2V4cG9ydH0S", + "KWZvbGRlcnMve2ZvbGRlcn0vYmlnUXVlcnlFeHBvcnRzL3tleHBvcnR9Eitw", + "cm9qZWN0cy97cHJvamVjdH0vYmlnUXVlcnlFeHBvcnRzL3tleHBvcnR9Kg9i", + "aWdRdWVyeUV4cG9ydHMyDmJpZ1F1ZXJ5RXhwb3J0Qu0BCiJjb20uZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxQhNCaWdRdWVyeUV4cG9ydFByb3Rv", + "UAFaSmNsb3VkLmdvb2dsZS5jb20vZ28vc2VjdXJpdHljZW50ZXIvYXBpdjEv", + "c2VjdXJpdHljZW50ZXJwYjtzZWN1cml0eWNlbnRlcnBiqgIeR29vZ2xlLkNs", + "b3VkLlNlY3VyaXR5Q2VudGVyLlYxygIeR29vZ2xlXENsb3VkXFNlY3VyaXR5", + "Q2VudGVyXFYx6gIhR29vZ2xlOjpDbG91ZDo6U2VjdXJpdHlDZW50ZXI6OlYx", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.BigQueryExport), global::Google.Cloud.SecurityCenter.V1.BigQueryExport.Parser, new[]{ "Name", "Description", "Filter", "Dataset", "CreateTime", "UpdateTime", "MostRecentEditor", "Principal" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Configures how to deliver Findings to BigQuery Instance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BigQueryExport : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BigQueryExport()); + 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.SecurityCenter.V1.BigqueryExportReflection.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 BigQueryExport() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BigQueryExport(BigQueryExport other) : this() { + name_ = other.name_; + description_ = other.description_; + filter_ = other.filter_; + dataset_ = other.dataset_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + mostRecentEditor_ = other.mostRecentEditor_; + principal_ = other.principal_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BigQueryExport Clone() { + return new BigQueryExport(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The relative resource name of this export. See: + /// https://cloud.google.com/apis/design/resource_names#relative_resource_name. + /// Example format: + /// "organizations/{organization_id}/bigQueryExports/{export_id}" Example + /// format: "folders/{folder_id}/bigQueryExports/{export_id}" Example format: + /// "projects/{project_id}/bigQueryExports/{export_id}" + /// This field is provided in responses, and is ignored when provided in create + /// requests. + /// + [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 "description" field. + public const int DescriptionFieldNumber = 2; + private string description_ = ""; + /// + /// The description of the export (max of 1024 characters). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "filter" field. + public const int FilterFieldNumber = 3; + private string filter_ = ""; + /// + /// Expression that defines the filter to apply across create/update events + /// of findings. The expression is a list of zero or more restrictions combined + /// via logical operators `AND` and `OR`. Parentheses are supported, and `OR` + /// has higher precedence than `AND`. + /// + /// Restrictions have the form `<field> <operator> <value>` and may have a + /// `-` character in front of them to indicate negation. The fields map to + /// those defined in the corresponding resource. + /// + /// The supported operators are: + /// + /// * `=` for all value types. + /// * `>`, `<`, `>=`, `<=` for integer values. + /// * `:`, meaning substring matching, for strings. + /// + /// The supported value types are: + /// + /// * string literals in quotes. + /// * integer literals without quotes. + /// * boolean literals `true` and `false` without quotes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dataset" field. + public const int DatasetFieldNumber = 4; + private string dataset_ = ""; + /// + /// The dataset to write findings' updates to. Its format is + /// "projects/[project_id]/datasets/[bigquery_dataset_id]". + /// BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers + /// (0-9), or underscores (_). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Dataset { + get { return dataset_; } + set { + dataset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time at which the BigQuery export was created. + /// This field is set by the server and will be ignored if provided on export + /// on creation. + /// + [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 "update_time" field. + public const int UpdateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The most recent time at which the BigQuery export was updated. + /// This field is set by the server and will be ignored if provided on export + /// creation or update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "most_recent_editor" field. + public const int MostRecentEditorFieldNumber = 7; + private string mostRecentEditor_ = ""; + /// + /// Output only. Email address of the user who last edited the BigQuery export. + /// This field is set by the server and will be ignored if provided on export + /// creation or update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MostRecentEditor { + get { return mostRecentEditor_; } + set { + mostRecentEditor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "principal" field. + public const int PrincipalFieldNumber = 8; + private string principal_ = ""; + /// + /// Output only. The service account that needs permission to create table and + /// upload data to the BigQuery dataset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Principal { + get { return principal_; } + set { + principal_ = 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 BigQueryExport); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BigQueryExport other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (Filter != other.Filter) return false; + if (Dataset != other.Dataset) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (MostRecentEditor != other.MostRecentEditor) return false; + if (Principal != other.Principal) 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 (Description.Length != 0) hash ^= Description.GetHashCode(); + if (Filter.Length != 0) hash ^= Filter.GetHashCode(); + if (Dataset.Length != 0) hash ^= Dataset.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (MostRecentEditor.Length != 0) hash ^= MostRecentEditor.GetHashCode(); + if (Principal.Length != 0) hash ^= Principal.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 (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (Filter.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Filter); + } + if (Dataset.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Dataset); + } + if (createTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateTime); + } + if (MostRecentEditor.Length != 0) { + output.WriteRawTag(58); + output.WriteString(MostRecentEditor); + } + if (Principal.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Principal); + } + 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 (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); + } + if (Filter.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Filter); + } + if (Dataset.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Dataset); + } + if (createTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateTime); + } + if (MostRecentEditor.Length != 0) { + output.WriteRawTag(58); + output.WriteString(MostRecentEditor); + } + if (Principal.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Principal); + } + 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 (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (Filter.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter); + } + if (Dataset.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Dataset); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (MostRecentEditor.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MostRecentEditor); + } + if (Principal.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Principal); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BigQueryExport other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.Filter.Length != 0) { + Filter = other.Filter; + } + if (other.Dataset.Length != 0) { + Dataset = other.Dataset; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.MostRecentEditor.Length != 0) { + MostRecentEditor = other.MostRecentEditor; + } + if (other.Principal.Length != 0) { + Principal = other.Principal; + } + _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: { + Description = input.ReadString(); + break; + } + case 26: { + Filter = input.ReadString(); + break; + } + case 34: { + Dataset = input.ReadString(); + break; + } + case 42: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 50: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 58: { + MostRecentEditor = input.ReadString(); + break; + } + case 66: { + Principal = 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: { + Description = input.ReadString(); + break; + } + case 26: { + Filter = input.ReadString(); + break; + } + case 34: { + Dataset = input.ReadString(); + break; + } + case 42: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 50: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 58: { + MostRecentEditor = input.ReadString(); + break; + } + case 66: { + Principal = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/BigqueryExportResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/BigqueryExportResourceNames.g.cs new file mode 100755 index 000000000000..ff5a808a92bb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/BigqueryExportResourceNames.g.cs @@ -0,0 +1,359 @@ +// 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.SecurityCenter.V1; +using sys = System; + +namespace Google.Cloud.SecurityCenter.V1 +{ + /// Resource name for the BigQueryExport resource. + public sealed partial class BigQueryExportName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern organizations/{organization}/bigQueryExports/{export}. + /// + OrganizationExport = 1, + + /// A resource name with pattern folders/{folder}/bigQueryExports/{export}. + FolderExport = 2, + + /// A resource name with pattern projects/{project}/bigQueryExports/{export}. + ProjectExport = 3, + } + + private static gax::PathTemplate s_organizationExport = new gax::PathTemplate("organizations/{organization}/bigQueryExports/{export}"); + + private static gax::PathTemplate s_folderExport = new gax::PathTemplate("folders/{folder}/bigQueryExports/{export}"); + + private static gax::PathTemplate s_projectExport = new gax::PathTemplate("projects/{project}/bigQueryExports/{export}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static BigQueryExportName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new BigQueryExportName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// organizations/{organization}/bigQueryExports/{export}. + /// + /// The Organization ID. Must not be null or empty. + /// The Export ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static BigQueryExportName FromOrganizationExport(string organizationId, string exportId) => + new BigQueryExportName(ResourceNameType.OrganizationExport, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), exportId: gax::GaxPreconditions.CheckNotNullOrEmpty(exportId, nameof(exportId))); + + /// + /// Creates a with the pattern folders/{folder}/bigQueryExports/{export} + /// . + /// + /// The Folder ID. Must not be null or empty. + /// The Export ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static BigQueryExportName FromFolderExport(string folderId, string exportId) => + new BigQueryExportName(ResourceNameType.FolderExport, folderId: gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), exportId: gax::GaxPreconditions.CheckNotNullOrEmpty(exportId, nameof(exportId))); + + /// + /// Creates a with the pattern projects/{project}/bigQueryExports/{export} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Export ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static BigQueryExportName FromProjectExport(string projectId, string exportId) => + new BigQueryExportName(ResourceNameType.ProjectExport, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), exportId: gax::GaxPreconditions.CheckNotNullOrEmpty(exportId, nameof(exportId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/bigQueryExports/{export}. + /// + /// The Organization ID. Must not be null or empty. + /// The Export ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/bigQueryExports/{export}. + /// + public static string Format(string organizationId, string exportId) => + FormatOrganizationExport(organizationId, exportId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/bigQueryExports/{export}. + /// + /// The Organization ID. Must not be null or empty. + /// The Export ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/bigQueryExports/{export}. + /// + public static string FormatOrganizationExport(string organizationId, string exportId) => + s_organizationExport.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(exportId, nameof(exportId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// folders/{folder}/bigQueryExports/{export}. + /// + /// The Folder ID. Must not be null or empty. + /// The Export ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// folders/{folder}/bigQueryExports/{export}. + /// + public static string FormatFolderExport(string folderId, string exportId) => + s_folderExport.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), gax::GaxPreconditions.CheckNotNullOrEmpty(exportId, nameof(exportId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/bigQueryExports/{export}. + /// + /// The Project ID. Must not be null or empty. + /// The Export ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/bigQueryExports/{export}. + /// + public static string FormatProjectExport(string projectId, string exportId) => + s_projectExport.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(exportId, nameof(exportId))); + + /// + /// Parses the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// organizations/{organization}/bigQueryExports/{export} + /// folders/{folder}/bigQueryExports/{export} + /// projects/{project}/bigQueryExports/{export} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static BigQueryExportName Parse(string bigQueryExportName) => Parse(bigQueryExportName, 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: + /// + /// organizations/{organization}/bigQueryExports/{export} + /// folders/{folder}/bigQueryExports/{export} + /// projects/{project}/bigQueryExports/{export} + /// + /// 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 BigQueryExportName Parse(string bigQueryExportName, bool allowUnparsed) => + TryParse(bigQueryExportName, allowUnparsed, out BigQueryExportName 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: + /// + /// organizations/{organization}/bigQueryExports/{export} + /// folders/{folder}/bigQueryExports/{export} + /// projects/{project}/bigQueryExports/{export} + /// + /// + /// 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 bigQueryExportName, out BigQueryExportName result) => + TryParse(bigQueryExportName, 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: + /// + /// organizations/{organization}/bigQueryExports/{export} + /// folders/{folder}/bigQueryExports/{export} + /// projects/{project}/bigQueryExports/{export} + /// + /// 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 bigQueryExportName, bool allowUnparsed, out BigQueryExportName result) + { + gax::GaxPreconditions.CheckNotNull(bigQueryExportName, nameof(bigQueryExportName)); + gax::TemplatedResourceName resourceName; + if (s_organizationExport.TryParseName(bigQueryExportName, out resourceName)) + { + result = FromOrganizationExport(resourceName[0], resourceName[1]); + return true; + } + if (s_folderExport.TryParseName(bigQueryExportName, out resourceName)) + { + result = FromFolderExport(resourceName[0], resourceName[1]); + return true; + } + if (s_projectExport.TryParseName(bigQueryExportName, out resourceName)) + { + result = FromProjectExport(resourceName[0], resourceName[1]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(bigQueryExportName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private BigQueryExportName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string exportId = null, string folderId = null, string organizationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ExportId = exportId; + FolderId = folderId; + OrganizationId = organizationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// organizations/{organization}/bigQueryExports/{export} + /// + /// The Organization ID. Must not be null or empty. + /// The Export ID. Must not be null or empty. + public BigQueryExportName(string organizationId, string exportId) : this(ResourceNameType.OrganizationExport, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), exportId: gax::GaxPreconditions.CheckNotNullOrEmpty(exportId, nameof(exportId))) + { + } + + /// 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 Export ID. May be null, depending on which resource name is contained by this instance. + /// + public string ExportId { get; } + + /// + /// The Folder ID. May be null, depending on which resource name is contained by this instance. + /// + public string FolderId { get; } + + /// + /// The Organization ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string OrganizationId { get; } + + /// + /// The Project ID. May be null, depending on which resource name is contained by this instance. + /// + public string ProjectId { 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.OrganizationExport: return s_organizationExport.Expand(OrganizationId, ExportId); + case ResourceNameType.FolderExport: return s_folderExport.Expand(FolderId, ExportId); + case ResourceNameType.ProjectExport: return s_projectExport.Expand(ProjectId, ExportId); + 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 BigQueryExportName); + + /// + public bool Equals(BigQueryExportName 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 ==(BigQueryExportName a, BigQueryExportName 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 !=(BigQueryExportName a, BigQueryExportName b) => !(a == b); + } + + public partial class BigQueryExport + { + /// + /// -typed view over the resource name property. + /// + public gcsv::BigQueryExportName BigQueryExportName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::BigQueryExportName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudArmor.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudArmor.g.cs new file mode 100755 index 000000000000..89029b31b675 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudArmor.g.cs @@ -0,0 +1,1594 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/cloud_armor.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/cloud_armor.proto + public static partial class CloudArmorReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/cloud_armor.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CloudArmorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjBnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvY2xvdWRfYXJtb3Iu", + "cHJvdG8SHmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MRoeZ29vZ2xl", + "L3Byb3RvYnVmL2R1cmF0aW9uLnByb3RvIt4CCgpDbG91ZEFybW9yEkcKD3Nl", + "Y3VyaXR5X3BvbGljeRgBIAEoCzIuLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNl", + "bnRlci52MS5TZWN1cml0eVBvbGljeRI6CghyZXF1ZXN0cxgCIAEoCzIoLmdv", + "b2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5SZXF1ZXN0cxJPChNhZGFw", + "dGl2ZV9wcm90ZWN0aW9uGAMgASgLMjIuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5", + "Y2VudGVyLnYxLkFkYXB0aXZlUHJvdGVjdGlvbhI2CgZhdHRhY2sYBCABKAsy", + "Ji5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEuQXR0YWNrEhUKDXRo", + "cmVhdF92ZWN0b3IYBSABKAkSKwoIZHVyYXRpb24YBiABKAsyGS5nb29nbGUu", + "cHJvdG9idWYuRHVyYXRpb24iPQoOU2VjdXJpdHlQb2xpY3kSDAoEbmFtZRgB", + "IAEoCRIMCgR0eXBlGAIgASgJEg8KB3ByZXZpZXcYAyABKAgiagoIUmVxdWVz", + "dHMSDQoFcmF0aW8YASABKAESGgoSc2hvcnRfdGVybV9hbGxvd2VkGAIgASgF", + "EhkKEWxvbmdfdGVybV9hbGxvd2VkGAMgASgFEhgKEGxvbmdfdGVybV9kZW5p", + "ZWQYBCABKAUiKAoSQWRhcHRpdmVQcm90ZWN0aW9uEhIKCmNvbmZpZGVuY2UY", + "ASABKAEiSAoGQXR0YWNrEhIKCnZvbHVtZV9wcHMYASABKAUSEgoKdm9sdW1l", + "X2JwcxgCIAEoBRIWCg5jbGFzc2lmaWNhdGlvbhgDIAEoCULpAQoiY29tLmdv", + "b2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MUIPQ2xvdWRBcm1vclByb3Rv", + "UAFaSmNsb3VkLmdvb2dsZS5jb20vZ28vc2VjdXJpdHljZW50ZXIvYXBpdjEv", + "c2VjdXJpdHljZW50ZXJwYjtzZWN1cml0eWNlbnRlcnBiqgIeR29vZ2xlLkNs", + "b3VkLlNlY3VyaXR5Q2VudGVyLlYxygIeR29vZ2xlXENsb3VkXFNlY3VyaXR5", + "Q2VudGVyXFYx6gIhR29vZ2xlOjpDbG91ZDo6U2VjdXJpdHlDZW50ZXI6OlYx", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.CloudArmor), global::Google.Cloud.SecurityCenter.V1.CloudArmor.Parser, new[]{ "SecurityPolicy", "Requests", "AdaptiveProtection", "Attack", "ThreatVector", "Duration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.SecurityPolicy), global::Google.Cloud.SecurityCenter.V1.SecurityPolicy.Parser, new[]{ "Name", "Type", "Preview" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Requests), global::Google.Cloud.SecurityCenter.V1.Requests.Parser, new[]{ "Ratio", "ShortTermAllowed", "LongTermAllowed", "LongTermDenied" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.AdaptiveProtection), global::Google.Cloud.SecurityCenter.V1.AdaptiveProtection.Parser, new[]{ "Confidence" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Attack), global::Google.Cloud.SecurityCenter.V1.Attack.Parser, new[]{ "VolumePps", "VolumeBps", "Classification" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Fields related to Google Cloud Armor findings. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CloudArmor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloudArmor()); + 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.SecurityCenter.V1.CloudArmorReflection.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 CloudArmor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudArmor(CloudArmor other) : this() { + securityPolicy_ = other.securityPolicy_ != null ? other.securityPolicy_.Clone() : null; + requests_ = other.requests_ != null ? other.requests_.Clone() : null; + adaptiveProtection_ = other.adaptiveProtection_ != null ? other.adaptiveProtection_.Clone() : null; + attack_ = other.attack_ != null ? other.attack_.Clone() : null; + threatVector_ = other.threatVector_; + duration_ = other.duration_ != null ? other.duration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudArmor Clone() { + return new CloudArmor(this); + } + + /// Field number for the "security_policy" field. + public const int SecurityPolicyFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.V1.SecurityPolicy securityPolicy_; + /// + /// Information about the [Google Cloud Armor security + /// policy](https://cloud.google.com/armor/docs/security-policy-overview) + /// relevant to the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.SecurityPolicy SecurityPolicy { + get { return securityPolicy_; } + set { + securityPolicy_ = value; + } + } + + /// Field number for the "requests" field. + public const int RequestsFieldNumber = 2; + private global::Google.Cloud.SecurityCenter.V1.Requests requests_; + /// + /// Information about incoming requests evaluated by [Google Cloud Armor + /// security + /// policies](https://cloud.google.com/armor/docs/security-policy-overview). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Requests Requests { + get { return requests_; } + set { + requests_ = value; + } + } + + /// Field number for the "adaptive_protection" field. + public const int AdaptiveProtectionFieldNumber = 3; + private global::Google.Cloud.SecurityCenter.V1.AdaptiveProtection adaptiveProtection_; + /// + /// Information about potential Layer 7 DDoS attacks identified by [Google + /// Cloud Armor Adaptive + /// Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.AdaptiveProtection AdaptiveProtection { + get { return adaptiveProtection_; } + set { + adaptiveProtection_ = value; + } + } + + /// Field number for the "attack" field. + public const int AttackFieldNumber = 4; + private global::Google.Cloud.SecurityCenter.V1.Attack attack_; + /// + /// Information about DDoS attack volume and classification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Attack Attack { + get { return attack_; } + set { + attack_ = value; + } + } + + /// Field number for the "threat_vector" field. + public const int ThreatVectorFieldNumber = 5; + private string threatVector_ = ""; + /// + /// Distinguish between volumetric & protocol DDoS attack and + /// application layer attacks. For example, "L3_4" for Layer 3 and Layer 4 DDoS + /// attacks, or "L_7" for Layer 7 DDoS attacks. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ThreatVector { + get { return threatVector_; } + set { + threatVector_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "duration" field. + public const int DurationFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Duration duration_; + /// + /// Duration of attack from the start until the current moment (updated every 5 + /// minutes). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration Duration { + get { return duration_; } + set { + duration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CloudArmor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloudArmor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SecurityPolicy, other.SecurityPolicy)) return false; + if (!object.Equals(Requests, other.Requests)) return false; + if (!object.Equals(AdaptiveProtection, other.AdaptiveProtection)) return false; + if (!object.Equals(Attack, other.Attack)) return false; + if (ThreatVector != other.ThreatVector) return false; + if (!object.Equals(Duration, other.Duration)) 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 (securityPolicy_ != null) hash ^= SecurityPolicy.GetHashCode(); + if (requests_ != null) hash ^= Requests.GetHashCode(); + if (adaptiveProtection_ != null) hash ^= AdaptiveProtection.GetHashCode(); + if (attack_ != null) hash ^= Attack.GetHashCode(); + if (ThreatVector.Length != 0) hash ^= ThreatVector.GetHashCode(); + if (duration_ != null) hash ^= Duration.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 (securityPolicy_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SecurityPolicy); + } + if (requests_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Requests); + } + if (adaptiveProtection_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AdaptiveProtection); + } + if (attack_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Attack); + } + if (ThreatVector.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ThreatVector); + } + if (duration_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Duration); + } + 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 (securityPolicy_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SecurityPolicy); + } + if (requests_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Requests); + } + if (adaptiveProtection_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AdaptiveProtection); + } + if (attack_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Attack); + } + if (ThreatVector.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ThreatVector); + } + if (duration_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Duration); + } + 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 (securityPolicy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityPolicy); + } + if (requests_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Requests); + } + if (adaptiveProtection_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdaptiveProtection); + } + if (attack_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Attack); + } + if (ThreatVector.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ThreatVector); + } + if (duration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Duration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloudArmor other) { + if (other == null) { + return; + } + if (other.securityPolicy_ != null) { + if (securityPolicy_ == null) { + SecurityPolicy = new global::Google.Cloud.SecurityCenter.V1.SecurityPolicy(); + } + SecurityPolicy.MergeFrom(other.SecurityPolicy); + } + if (other.requests_ != null) { + if (requests_ == null) { + Requests = new global::Google.Cloud.SecurityCenter.V1.Requests(); + } + Requests.MergeFrom(other.Requests); + } + if (other.adaptiveProtection_ != null) { + if (adaptiveProtection_ == null) { + AdaptiveProtection = new global::Google.Cloud.SecurityCenter.V1.AdaptiveProtection(); + } + AdaptiveProtection.MergeFrom(other.AdaptiveProtection); + } + if (other.attack_ != null) { + if (attack_ == null) { + Attack = new global::Google.Cloud.SecurityCenter.V1.Attack(); + } + Attack.MergeFrom(other.Attack); + } + if (other.ThreatVector.Length != 0) { + ThreatVector = other.ThreatVector; + } + if (other.duration_ != null) { + if (duration_ == null) { + Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + Duration.MergeFrom(other.Duration); + } + _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 (securityPolicy_ == null) { + SecurityPolicy = new global::Google.Cloud.SecurityCenter.V1.SecurityPolicy(); + } + input.ReadMessage(SecurityPolicy); + break; + } + case 18: { + if (requests_ == null) { + Requests = new global::Google.Cloud.SecurityCenter.V1.Requests(); + } + input.ReadMessage(Requests); + break; + } + case 26: { + if (adaptiveProtection_ == null) { + AdaptiveProtection = new global::Google.Cloud.SecurityCenter.V1.AdaptiveProtection(); + } + input.ReadMessage(AdaptiveProtection); + break; + } + case 34: { + if (attack_ == null) { + Attack = new global::Google.Cloud.SecurityCenter.V1.Attack(); + } + input.ReadMessage(Attack); + break; + } + case 42: { + ThreatVector = input.ReadString(); + break; + } + case 50: { + if (duration_ == null) { + Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Duration); + 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 (securityPolicy_ == null) { + SecurityPolicy = new global::Google.Cloud.SecurityCenter.V1.SecurityPolicy(); + } + input.ReadMessage(SecurityPolicy); + break; + } + case 18: { + if (requests_ == null) { + Requests = new global::Google.Cloud.SecurityCenter.V1.Requests(); + } + input.ReadMessage(Requests); + break; + } + case 26: { + if (adaptiveProtection_ == null) { + AdaptiveProtection = new global::Google.Cloud.SecurityCenter.V1.AdaptiveProtection(); + } + input.ReadMessage(AdaptiveProtection); + break; + } + case 34: { + if (attack_ == null) { + Attack = new global::Google.Cloud.SecurityCenter.V1.Attack(); + } + input.ReadMessage(Attack); + break; + } + case 42: { + ThreatVector = input.ReadString(); + break; + } + case 50: { + if (duration_ == null) { + Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Duration); + break; + } + } + } + } + #endif + + } + + /// + /// Information about the [Google Cloud Armor security + /// policy](https://cloud.google.com/armor/docs/security-policy-overview) + /// relevant to the finding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SecurityPolicy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SecurityPolicy()); + 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.SecurityCenter.V1.CloudArmorReflection.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 SecurityPolicy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecurityPolicy(SecurityPolicy other) : this() { + name_ = other.name_; + type_ = other.type_; + preview_ = other.preview_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecurityPolicy Clone() { + return new SecurityPolicy(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The name of the Google Cloud Armor security policy, for example, + /// "my-security-policy". + /// + [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 "type" field. + public const int TypeFieldNumber = 2; + private string type_ = ""; + /// + /// The type of Google Cloud Armor security policy for example, 'backend + /// security policy', 'edge security policy', 'network edge security policy', + /// or 'always-on DDoS protection'. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "preview" field. + public const int PreviewFieldNumber = 3; + private bool preview_; + /// + /// Whether or not the associated rule or policy is in preview mode. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Preview { + get { return preview_; } + set { + preview_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SecurityPolicy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SecurityPolicy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Type != other.Type) return false; + if (Preview != other.Preview) 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 (Type.Length != 0) hash ^= Type.GetHashCode(); + if (Preview != false) hash ^= Preview.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 (Type.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (Preview != false) { + output.WriteRawTag(24); + output.WriteBool(Preview); + } + 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 (Type.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (Preview != false) { + output.WriteRawTag(24); + output.WriteBool(Preview); + } + 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 (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (Preview != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SecurityPolicy other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.Preview != false) { + Preview = other.Preview; + } + _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: { + Type = input.ReadString(); + break; + } + case 24: { + Preview = input.ReadBool(); + 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: { + Type = input.ReadString(); + break; + } + case 24: { + Preview = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Information about the requests relevant to the finding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Requests : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Requests()); + 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.SecurityCenter.V1.CloudArmorReflection.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 Requests() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Requests(Requests other) : this() { + ratio_ = other.ratio_; + shortTermAllowed_ = other.shortTermAllowed_; + longTermAllowed_ = other.longTermAllowed_; + longTermDenied_ = other.longTermDenied_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Requests Clone() { + return new Requests(this); + } + + /// Field number for the "ratio" field. + public const int RatioFieldNumber = 1; + private double ratio_; + /// + /// For 'Increasing deny ratio', the ratio is the denied traffic divided by the + /// allowed traffic. For 'Allowed traffic spike', the ratio is the allowed + /// traffic in the short term divided by allowed traffic in the long term. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Ratio { + get { return ratio_; } + set { + ratio_ = value; + } + } + + /// Field number for the "short_term_allowed" field. + public const int ShortTermAllowedFieldNumber = 2; + private int shortTermAllowed_; + /// + /// Allowed RPS (requests per second) in the short term. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShortTermAllowed { + get { return shortTermAllowed_; } + set { + shortTermAllowed_ = value; + } + } + + /// Field number for the "long_term_allowed" field. + public const int LongTermAllowedFieldNumber = 3; + private int longTermAllowed_; + /// + /// Allowed RPS (requests per second) over the long term. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LongTermAllowed { + get { return longTermAllowed_; } + set { + longTermAllowed_ = value; + } + } + + /// Field number for the "long_term_denied" field. + public const int LongTermDeniedFieldNumber = 4; + private int longTermDenied_; + /// + /// Denied RPS (requests per second) over the long term. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LongTermDenied { + get { return longTermDenied_; } + set { + longTermDenied_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Requests); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Requests other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Ratio, other.Ratio)) return false; + if (ShortTermAllowed != other.ShortTermAllowed) return false; + if (LongTermAllowed != other.LongTermAllowed) return false; + if (LongTermDenied != other.LongTermDenied) 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 (Ratio != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Ratio); + if (ShortTermAllowed != 0) hash ^= ShortTermAllowed.GetHashCode(); + if (LongTermAllowed != 0) hash ^= LongTermAllowed.GetHashCode(); + if (LongTermDenied != 0) hash ^= LongTermDenied.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 (Ratio != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Ratio); + } + if (ShortTermAllowed != 0) { + output.WriteRawTag(16); + output.WriteInt32(ShortTermAllowed); + } + if (LongTermAllowed != 0) { + output.WriteRawTag(24); + output.WriteInt32(LongTermAllowed); + } + if (LongTermDenied != 0) { + output.WriteRawTag(32); + output.WriteInt32(LongTermDenied); + } + 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 (Ratio != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Ratio); + } + if (ShortTermAllowed != 0) { + output.WriteRawTag(16); + output.WriteInt32(ShortTermAllowed); + } + if (LongTermAllowed != 0) { + output.WriteRawTag(24); + output.WriteInt32(LongTermAllowed); + } + if (LongTermDenied != 0) { + output.WriteRawTag(32); + output.WriteInt32(LongTermDenied); + } + 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 (Ratio != 0D) { + size += 1 + 8; + } + if (ShortTermAllowed != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShortTermAllowed); + } + if (LongTermAllowed != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LongTermAllowed); + } + if (LongTermDenied != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LongTermDenied); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Requests other) { + if (other == null) { + return; + } + if (other.Ratio != 0D) { + Ratio = other.Ratio; + } + if (other.ShortTermAllowed != 0) { + ShortTermAllowed = other.ShortTermAllowed; + } + if (other.LongTermAllowed != 0) { + LongTermAllowed = other.LongTermAllowed; + } + if (other.LongTermDenied != 0) { + LongTermDenied = other.LongTermDenied; + } + _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 9: { + Ratio = input.ReadDouble(); + break; + } + case 16: { + ShortTermAllowed = input.ReadInt32(); + break; + } + case 24: { + LongTermAllowed = input.ReadInt32(); + break; + } + case 32: { + LongTermDenied = 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 9: { + Ratio = input.ReadDouble(); + break; + } + case 16: { + ShortTermAllowed = input.ReadInt32(); + break; + } + case 24: { + LongTermAllowed = input.ReadInt32(); + break; + } + case 32: { + LongTermDenied = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Information about [Google Cloud Armor Adaptive + /// Protection](https://cloud.google.com/armor/docs/cloud-armor-overview#google-cloud-armor-adaptive-protection). + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AdaptiveProtection : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdaptiveProtection()); + 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.SecurityCenter.V1.CloudArmorReflection.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 AdaptiveProtection() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdaptiveProtection(AdaptiveProtection other) : this() { + confidence_ = other.confidence_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdaptiveProtection Clone() { + return new AdaptiveProtection(this); + } + + /// Field number for the "confidence" field. + public const int ConfidenceFieldNumber = 1; + private double confidence_; + /// + /// A score of 0 means that there is low confidence that the detected event is + /// an actual attack. A score of 1 means that there is high confidence that the + /// detected event is an attack. See the [Adaptive Protection + /// documentation](https://cloud.google.com/armor/docs/adaptive-protection-overview#configure-alert-tuning) + /// for further explanation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Confidence { + get { return confidence_; } + set { + confidence_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AdaptiveProtection); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AdaptiveProtection other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Confidence, other.Confidence)) 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 (Confidence != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Confidence); + 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 (Confidence != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Confidence); + } + 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 (Confidence != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Confidence); + } + 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 (Confidence != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AdaptiveProtection other) { + if (other == null) { + return; + } + if (other.Confidence != 0D) { + Confidence = other.Confidence; + } + _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 9: { + Confidence = input.ReadDouble(); + 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 9: { + Confidence = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + /// + /// Information about DDoS attack volume and classification. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Attack : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Attack()); + 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.SecurityCenter.V1.CloudArmorReflection.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 Attack() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attack(Attack other) : this() { + volumePps_ = other.volumePps_; + volumeBps_ = other.volumeBps_; + classification_ = other.classification_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Attack Clone() { + return new Attack(this); + } + + /// Field number for the "volume_pps" field. + public const int VolumePpsFieldNumber = 1; + private int volumePps_; + /// + /// Total PPS (packets per second) volume of attack. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VolumePps { + get { return volumePps_; } + set { + volumePps_ = value; + } + } + + /// Field number for the "volume_bps" field. + public const int VolumeBpsFieldNumber = 2; + private int volumeBps_; + /// + /// Total BPS (bytes per second) volume of attack. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VolumeBps { + get { return volumeBps_; } + set { + volumeBps_ = value; + } + } + + /// Field number for the "classification" field. + public const int ClassificationFieldNumber = 3; + private string classification_ = ""; + /// + /// Type of attack, for example, 'SYN-flood', 'NTP-udp', or 'CHARGEN-udp'. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Classification { + get { return classification_; } + set { + classification_ = 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 Attack); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Attack other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (VolumePps != other.VolumePps) return false; + if (VolumeBps != other.VolumeBps) return false; + if (Classification != other.Classification) 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 (VolumePps != 0) hash ^= VolumePps.GetHashCode(); + if (VolumeBps != 0) hash ^= VolumeBps.GetHashCode(); + if (Classification.Length != 0) hash ^= Classification.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 (VolumePps != 0) { + output.WriteRawTag(8); + output.WriteInt32(VolumePps); + } + if (VolumeBps != 0) { + output.WriteRawTag(16); + output.WriteInt32(VolumeBps); + } + if (Classification.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Classification); + } + 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 (VolumePps != 0) { + output.WriteRawTag(8); + output.WriteInt32(VolumePps); + } + if (VolumeBps != 0) { + output.WriteRawTag(16); + output.WriteInt32(VolumeBps); + } + if (Classification.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Classification); + } + 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 (VolumePps != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(VolumePps); + } + if (VolumeBps != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(VolumeBps); + } + if (Classification.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Classification); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Attack other) { + if (other == null) { + return; + } + if (other.VolumePps != 0) { + VolumePps = other.VolumePps; + } + if (other.VolumeBps != 0) { + VolumeBps = other.VolumeBps; + } + if (other.Classification.Length != 0) { + Classification = other.Classification; + } + _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 8: { + VolumePps = input.ReadInt32(); + break; + } + case 16: { + VolumeBps = input.ReadInt32(); + break; + } + case 26: { + Classification = 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 8: { + VolumePps = input.ReadInt32(); + break; + } + case 16: { + VolumeBps = input.ReadInt32(); + break; + } + case 26: { + Classification = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpDataProfile.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpDataProfile.g.cs new file mode 100755 index 000000000000..0a08c7e51eb7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpDataProfile.g.cs @@ -0,0 +1,323 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/cloud_dlp_data_profile.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/cloud_dlp_data_profile.proto + public static partial class CloudDlpDataProfileReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/cloud_dlp_data_profile.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CloudDlpDataProfileReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cjtnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvY2xvdWRfZGxwX2Rh", + "dGFfcHJvZmlsZS5wcm90bxIeZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVy", + "LnYxGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIvQBChNDbG91ZERscERh", + "dGFQcm9maWxlEj4KDGRhdGFfcHJvZmlsZRgBIAEoCUIo+kElCiNkbHAuZ29v", + "Z2xlYXBpcy5jb20vVGFibGVEYXRhUHJvZmlsZRJTCgtwYXJlbnRfdHlwZRgC", + "IAEoDjI+Lmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5DbG91ZERs", + "cERhdGFQcm9maWxlLlBhcmVudFR5cGUiSAoKUGFyZW50VHlwZRIbChdQQVJF", + "TlRfVFlQRV9VTlNQRUNJRklFRBAAEhAKDE9SR0FOSVpBVElPThABEgsKB1BS", + "T0pFQ1QQAkKUAwoiY29tLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52", + "MUIYQ2xvdWREbHBEYXRhUHJvZmlsZVByb3RvUAFaSmNsb3VkLmdvb2dsZS5j", + "b20vZ28vc2VjdXJpdHljZW50ZXIvYXBpdjEvc2VjdXJpdHljZW50ZXJwYjtz", + "ZWN1cml0eWNlbnRlcnBiqgIeR29vZ2xlLkNsb3VkLlNlY3VyaXR5Q2VudGVy", + "LlYxygIeR29vZ2xlXENsb3VkXFNlY3VyaXR5Q2VudGVyXFYx6gIhR29vZ2xl", + "OjpDbG91ZDo6U2VjdXJpdHlDZW50ZXI6OlYx6kGeAQojZGxwLmdvb2dsZWFw", + "aXMuY29tL1RhYmxlRGF0YVByb2ZpbGUSMHByb2plY3RzL3twcm9qZWN0fS90", + "YWJsZVByb2ZpbGVzL3t0YWJsZV9wcm9maWxlfRJFcHJvamVjdHMve3Byb2pl", + "Y3R9L2xvY2F0aW9ucy97bG9jYXRpb259L3RhYmxlUHJvZmlsZXMve3RhYmxl", + "X3Byb2ZpbGV9YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.ResourceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile), global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile.Parser, new[]{ "DataProfile", "ParentType" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile.Types.ParentType) }, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// The [data profile](https://cloud.google.com/dlp/docs/data-profiles) + /// associated with the finding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CloudDlpDataProfile : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloudDlpDataProfile()); + 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.SecurityCenter.V1.CloudDlpDataProfileReflection.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 CloudDlpDataProfile() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudDlpDataProfile(CloudDlpDataProfile other) : this() { + dataProfile_ = other.dataProfile_; + parentType_ = other.parentType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudDlpDataProfile Clone() { + return new CloudDlpDataProfile(this); + } + + /// Field number for the "data_profile" field. + public const int DataProfileFieldNumber = 1; + private string dataProfile_ = ""; + /// + /// Name of the data profile, for example, + /// `projects/123/locations/europe/tableProfiles/8383929`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DataProfile { + get { return dataProfile_; } + set { + dataProfile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "parent_type" field. + public const int ParentTypeFieldNumber = 2; + private global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile.Types.ParentType parentType_ = global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile.Types.ParentType.Unspecified; + /// + /// The resource hierarchy level at which the data profile was generated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile.Types.ParentType ParentType { + get { return parentType_; } + set { + parentType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CloudDlpDataProfile); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloudDlpDataProfile other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DataProfile != other.DataProfile) return false; + if (ParentType != other.ParentType) 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 (DataProfile.Length != 0) hash ^= DataProfile.GetHashCode(); + if (ParentType != global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile.Types.ParentType.Unspecified) hash ^= ParentType.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 (DataProfile.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DataProfile); + } + if (ParentType != global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile.Types.ParentType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) ParentType); + } + 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 (DataProfile.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DataProfile); + } + if (ParentType != global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile.Types.ParentType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) ParentType); + } + 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 (DataProfile.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DataProfile); + } + if (ParentType != global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile.Types.ParentType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ParentType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloudDlpDataProfile other) { + if (other == null) { + return; + } + if (other.DataProfile.Length != 0) { + DataProfile = other.DataProfile; + } + if (other.ParentType != global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile.Types.ParentType.Unspecified) { + ParentType = other.ParentType; + } + _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: { + DataProfile = input.ReadString(); + break; + } + case 16: { + ParentType = (global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile.Types.ParentType) input.ReadEnum(); + 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: { + DataProfile = input.ReadString(); + break; + } + case 16: { + ParentType = (global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile.Types.ParentType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CloudDlpDataProfile message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Parents for configurations that produce data profile findings. + /// + public enum ParentType { + /// + /// Unspecified parent type. + /// + [pbr::OriginalName("PARENT_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Organization-level configurations. + /// + [pbr::OriginalName("ORGANIZATION")] Organization = 1, + /// + /// Project-level configurations. + /// + [pbr::OriginalName("PROJECT")] Project = 2, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpDataProfileResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpDataProfileResourceNames.g.cs new file mode 100755 index 000000000000..a771870ab5be --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpDataProfileResourceNames.g.cs @@ -0,0 +1,325 @@ +// 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 sys = System; + +namespace Google.Cloud.SecurityCenter.V1 +{ + /// Resource name for the TableDataProfile resource. + public sealed partial class TableDataProfileName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern projects/{project}/tableProfiles/{table_profile}. + ProjectTableProfile = 1, + + /// + /// A resource name with pattern projects/{project}/locations/{location}/tableProfiles/{table_profile} + /// . + /// + ProjectLocationTableProfile = 2, + } + + private static gax::PathTemplate s_projectTableProfile = new gax::PathTemplate("projects/{project}/tableProfiles/{table_profile}"); + + private static gax::PathTemplate s_projectLocationTableProfile = new gax::PathTemplate("projects/{project}/locations/{location}/tableProfiles/{table_profile}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static TableDataProfileName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new TableDataProfileName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/tableProfiles/{table_profile}. + /// + /// The Project ID. Must not be null or empty. + /// The TableProfile ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static TableDataProfileName FromProjectTableProfile(string projectId, string tableProfileId) => + new TableDataProfileName(ResourceNameType.ProjectTableProfile, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), tableProfileId: gax::GaxPreconditions.CheckNotNullOrEmpty(tableProfileId, nameof(tableProfileId))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/tableProfiles/{table_profile}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The TableProfile ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static TableDataProfileName FromProjectLocationTableProfile(string projectId, string locationId, string tableProfileId) => + new TableDataProfileName(ResourceNameType.ProjectLocationTableProfile, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), tableProfileId: gax::GaxPreconditions.CheckNotNullOrEmpty(tableProfileId, nameof(tableProfileId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/tableProfiles/{table_profile}. + /// + /// The Project ID. Must not be null or empty. + /// The TableProfile ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/tableProfiles/{table_profile}. + /// + public static string Format(string projectId, string tableProfileId) => + FormatProjectTableProfile(projectId, tableProfileId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/tableProfiles/{table_profile}. + /// + /// The Project ID. Must not be null or empty. + /// The TableProfile ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/tableProfiles/{table_profile}. + /// + public static string FormatProjectTableProfile(string projectId, string tableProfileId) => + s_projectTableProfile.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(tableProfileId, nameof(tableProfileId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/tableProfiles/{table_profile}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The TableProfile ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/tableProfiles/{table_profile}. + /// + public static string FormatProjectLocationTableProfile(string projectId, string locationId, string tableProfileId) => + s_projectLocationTableProfile.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(tableProfileId, nameof(tableProfileId))); + + /// + /// 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}/tableProfiles/{table_profile} + /// + /// projects/{project}/locations/{location}/tableProfiles/{table_profile} + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static TableDataProfileName Parse(string tableDataProfileName) => Parse(tableDataProfileName, 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}/tableProfiles/{table_profile} + /// + /// projects/{project}/locations/{location}/tableProfiles/{table_profile} + /// + /// + /// 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 TableDataProfileName Parse(string tableDataProfileName, bool allowUnparsed) => + TryParse(tableDataProfileName, allowUnparsed, out TableDataProfileName 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}/tableProfiles/{table_profile} + /// + /// projects/{project}/locations/{location}/tableProfiles/{table_profile} + /// + /// + /// + /// 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 tableDataProfileName, out TableDataProfileName result) => + TryParse(tableDataProfileName, 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}/tableProfiles/{table_profile} + /// + /// projects/{project}/locations/{location}/tableProfiles/{table_profile} + /// + /// + /// 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 tableDataProfileName, bool allowUnparsed, out TableDataProfileName result) + { + gax::GaxPreconditions.CheckNotNull(tableDataProfileName, nameof(tableDataProfileName)); + gax::TemplatedResourceName resourceName; + if (s_projectTableProfile.TryParseName(tableDataProfileName, out resourceName)) + { + result = FromProjectTableProfile(resourceName[0], resourceName[1]); + return true; + } + if (s_projectLocationTableProfile.TryParseName(tableDataProfileName, out resourceName)) + { + result = FromProjectLocationTableProfile(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(tableDataProfileName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private TableDataProfileName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string locationId = null, string projectId = null, string tableProfileId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + LocationId = locationId; + ProjectId = projectId; + TableProfileId = tableProfileId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/tableProfiles/{table_profile} + /// + /// The Project ID. Must not be null or empty. + /// The TableProfile ID. Must not be null or empty. + public TableDataProfileName(string projectId, string tableProfileId) : this(ResourceNameType.ProjectTableProfile, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), tableProfileId: gax::GaxPreconditions.CheckNotNullOrEmpty(tableProfileId, nameof(tableProfileId))) + { + } + + /// 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 TableProfile ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string TableProfileId { 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.ProjectTableProfile: return s_projectTableProfile.Expand(ProjectId, TableProfileId); + case ResourceNameType.ProjectLocationTableProfile: return s_projectLocationTableProfile.Expand(ProjectId, LocationId, TableProfileId); + 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 TableDataProfileName); + + /// + public bool Equals(TableDataProfileName 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 ==(TableDataProfileName a, TableDataProfileName 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 !=(TableDataProfileName a, TableDataProfileName b) => !(a == b); + } + + public partial class CloudDlpDataProfile + { + /// + /// -typed view over the resource name property. + /// + public TableDataProfileName DataProfileAsTableDataProfileName + { + get => string.IsNullOrEmpty(DataProfile) ? null : TableDataProfileName.Parse(DataProfile, allowUnparsed: true); + set => DataProfile = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpInspection.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpInspection.g.cs new file mode 100755 index 000000000000..eac66f562026 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpInspection.g.cs @@ -0,0 +1,378 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/cloud_dlp_inspection.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/cloud_dlp_inspection.proto + public static partial class CloudDlpInspectionReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/cloud_dlp_inspection.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CloudDlpInspectionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cjlnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvY2xvdWRfZGxwX2lu", + "c3BlY3Rpb24ucHJvdG8SHmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52", + "MRoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byKIAQoSQ2xvdWREbHBJbnNw", + "ZWN0aW9uEjMKC2luc3BlY3Rfam9iGAEgASgJQh76QRsKGWRscC5nb29nbGVh", + "cGlzLmNvbS9EbHBKb2ISEQoJaW5mb190eXBlGAIgASgJEhcKD2luZm9fdHlw", + "ZV9jb3VudBgDIAEoAxIRCglmdWxsX3NjYW4YBCABKAhC8AIKImNvbS5nb29n", + "bGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjFCF0Nsb3VkRGxwSW5zcGVjdGlv", + "blByb3RvUAFaSmNsb3VkLmdvb2dsZS5jb20vZ28vc2VjdXJpdHljZW50ZXIv", + "YXBpdjEvc2VjdXJpdHljZW50ZXJwYjtzZWN1cml0eWNlbnRlcnBiqgIeR29v", + "Z2xlLkNsb3VkLlNlY3VyaXR5Q2VudGVyLlYxygIeR29vZ2xlXENsb3VkXFNl", + "Y3VyaXR5Q2VudGVyXFYx6gIhR29vZ2xlOjpDbG91ZDo6U2VjdXJpdHlDZW50", + "ZXI6OlYx6kF8ChlkbHAuZ29vZ2xlYXBpcy5jb20vRGxwSm9iEiRwcm9qZWN0", + "cy97cHJvamVjdH0vZGxwSm9icy97ZGxwX2pvYn0SOXByb2plY3RzL3twcm9q", + "ZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9kbHBKb2JzL3tkbHBfam9ifWIG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.ResourceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.CloudDlpInspection), global::Google.Cloud.SecurityCenter.V1.CloudDlpInspection.Parser, new[]{ "InspectJob", "InfoType", "InfoTypeCount", "FullScan" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Details about the Cloud Data Loss Prevention (Cloud DLP) [inspection + /// job](https://cloud.google.com/dlp/docs/concepts-job-triggers) that produced + /// the finding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CloudDlpInspection : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloudDlpInspection()); + 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.SecurityCenter.V1.CloudDlpInspectionReflection.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 CloudDlpInspection() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudDlpInspection(CloudDlpInspection other) : this() { + inspectJob_ = other.inspectJob_; + infoType_ = other.infoType_; + infoTypeCount_ = other.infoTypeCount_; + fullScan_ = other.fullScan_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloudDlpInspection Clone() { + return new CloudDlpInspection(this); + } + + /// Field number for the "inspect_job" field. + public const int InspectJobFieldNumber = 1; + private string inspectJob_ = ""; + /// + /// Name of the inspection job, for example, + /// `projects/123/locations/europe/dlpJobs/i-8383929`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InspectJob { + get { return inspectJob_; } + set { + inspectJob_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "info_type" field. + public const int InfoTypeFieldNumber = 2; + private string infoType_ = ""; + /// + /// The type of information (or + /// *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, + /// for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InfoType { + get { return infoType_; } + set { + infoType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "info_type_count" field. + public const int InfoTypeCountFieldNumber = 3; + private long infoTypeCount_; + /// + /// The number of times Cloud DLP found this infoType within this job + /// and resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long InfoTypeCount { + get { return infoTypeCount_; } + set { + infoTypeCount_ = value; + } + } + + /// Field number for the "full_scan" field. + public const int FullScanFieldNumber = 4; + private bool fullScan_; + /// + /// Whether Cloud DLP scanned the complete resource or a sampled subset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool FullScan { + get { return fullScan_; } + set { + fullScan_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CloudDlpInspection); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloudDlpInspection other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (InspectJob != other.InspectJob) return false; + if (InfoType != other.InfoType) return false; + if (InfoTypeCount != other.InfoTypeCount) return false; + if (FullScan != other.FullScan) 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 (InspectJob.Length != 0) hash ^= InspectJob.GetHashCode(); + if (InfoType.Length != 0) hash ^= InfoType.GetHashCode(); + if (InfoTypeCount != 0L) hash ^= InfoTypeCount.GetHashCode(); + if (FullScan != false) hash ^= FullScan.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 (InspectJob.Length != 0) { + output.WriteRawTag(10); + output.WriteString(InspectJob); + } + if (InfoType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(InfoType); + } + if (InfoTypeCount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(InfoTypeCount); + } + if (FullScan != false) { + output.WriteRawTag(32); + output.WriteBool(FullScan); + } + 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 (InspectJob.Length != 0) { + output.WriteRawTag(10); + output.WriteString(InspectJob); + } + if (InfoType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(InfoType); + } + if (InfoTypeCount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(InfoTypeCount); + } + if (FullScan != false) { + output.WriteRawTag(32); + output.WriteBool(FullScan); + } + 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 (InspectJob.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InspectJob); + } + if (InfoType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InfoType); + } + if (InfoTypeCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(InfoTypeCount); + } + if (FullScan != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloudDlpInspection other) { + if (other == null) { + return; + } + if (other.InspectJob.Length != 0) { + InspectJob = other.InspectJob; + } + if (other.InfoType.Length != 0) { + InfoType = other.InfoType; + } + if (other.InfoTypeCount != 0L) { + InfoTypeCount = other.InfoTypeCount; + } + if (other.FullScan != false) { + FullScan = other.FullScan; + } + _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: { + InspectJob = input.ReadString(); + break; + } + case 18: { + InfoType = input.ReadString(); + break; + } + case 24: { + InfoTypeCount = input.ReadInt64(); + break; + } + case 32: { + FullScan = input.ReadBool(); + 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: { + InspectJob = input.ReadString(); + break; + } + case 18: { + InfoType = input.ReadString(); + break; + } + case 24: { + InfoTypeCount = input.ReadInt64(); + break; + } + case 32: { + FullScan = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpInspectionResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpInspectionResourceNames.g.cs new file mode 100755 index 000000000000..e1426010ea76 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/CloudDlpInspectionResourceNames.g.cs @@ -0,0 +1,309 @@ +// 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 sys = System; + +namespace Google.Cloud.SecurityCenter.V1 +{ + /// Resource name for the DlpJob resource. + public sealed partial class DlpJobName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern projects/{project}/dlpJobs/{dlp_job}. + ProjectDlpJob = 1, + + /// + /// A resource name with pattern projects/{project}/locations/{location}/dlpJobs/{dlp_job}. + /// + ProjectLocationDlpJob = 2, + } + + private static gax::PathTemplate s_projectDlpJob = new gax::PathTemplate("projects/{project}/dlpJobs/{dlp_job}"); + + private static gax::PathTemplate s_projectLocationDlpJob = new gax::PathTemplate("projects/{project}/locations/{location}/dlpJobs/{dlp_job}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static DlpJobName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new DlpJobName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern projects/{project}/dlpJobs/{dlp_job}. + /// + /// The Project ID. Must not be null or empty. + /// The DlpJob ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static DlpJobName FromProjectDlpJob(string projectId, string dlpJobId) => + new DlpJobName(ResourceNameType.ProjectDlpJob, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), dlpJobId: gax::GaxPreconditions.CheckNotNullOrEmpty(dlpJobId, nameof(dlpJobId))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/dlpJobs/{dlp_job}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The DlpJob ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static DlpJobName FromProjectLocationDlpJob(string projectId, string locationId, string dlpJobId) => + new DlpJobName(ResourceNameType.ProjectLocationDlpJob, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), dlpJobId: gax::GaxPreconditions.CheckNotNullOrEmpty(dlpJobId, nameof(dlpJobId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/dlpJobs/{dlp_job}. + /// + /// The Project ID. Must not be null or empty. + /// The DlpJob ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/dlpJobs/{dlp_job}. + /// + public static string Format(string projectId, string dlpJobId) => FormatProjectDlpJob(projectId, dlpJobId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/dlpJobs/{dlp_job}. + /// + /// The Project ID. Must not be null or empty. + /// The DlpJob ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/dlpJobs/{dlp_job}. + /// + public static string FormatProjectDlpJob(string projectId, string dlpJobId) => + s_projectDlpJob.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(dlpJobId, nameof(dlpJobId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/dlpJobs/{dlp_job}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The DlpJob ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/dlpJobs/{dlp_job}. + /// + public static string FormatProjectLocationDlpJob(string projectId, string locationId, string dlpJobId) => + s_projectLocationDlpJob.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(dlpJobId, nameof(dlpJobId))); + + /// 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}/dlpJobs/{dlp_job} + /// projects/{project}/locations/{location}/dlpJobs/{dlp_job} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static DlpJobName Parse(string dlpJobName) => Parse(dlpJobName, 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}/dlpJobs/{dlp_job} + /// projects/{project}/locations/{location}/dlpJobs/{dlp_job} + /// + /// 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 DlpJobName Parse(string dlpJobName, bool allowUnparsed) => + TryParse(dlpJobName, allowUnparsed, out DlpJobName 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}/dlpJobs/{dlp_job} + /// projects/{project}/locations/{location}/dlpJobs/{dlp_job} + /// + /// + /// 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 dlpJobName, out DlpJobName result) => TryParse(dlpJobName, 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}/dlpJobs/{dlp_job} + /// projects/{project}/locations/{location}/dlpJobs/{dlp_job} + /// + /// 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 dlpJobName, bool allowUnparsed, out DlpJobName result) + { + gax::GaxPreconditions.CheckNotNull(dlpJobName, nameof(dlpJobName)); + gax::TemplatedResourceName resourceName; + if (s_projectDlpJob.TryParseName(dlpJobName, out resourceName)) + { + result = FromProjectDlpJob(resourceName[0], resourceName[1]); + return true; + } + if (s_projectLocationDlpJob.TryParseName(dlpJobName, out resourceName)) + { + result = FromProjectLocationDlpJob(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(dlpJobName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private DlpJobName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string dlpJobId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + DlpJobId = dlpJobId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/dlpJobs/{dlp_job} + /// + /// The Project ID. Must not be null or empty. + /// The DlpJob ID. Must not be null or empty. + public DlpJobName(string projectId, string dlpJobId) : this(ResourceNameType.ProjectDlpJob, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), dlpJobId: gax::GaxPreconditions.CheckNotNullOrEmpty(dlpJobId, nameof(dlpJobId))) + { + } + + /// 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 DlpJob ID. May be null, depending on which resource name is contained by this instance. + /// + public string DlpJobId { 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; } + + /// 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.ProjectDlpJob: return s_projectDlpJob.Expand(ProjectId, DlpJobId); + case ResourceNameType.ProjectLocationDlpJob: return s_projectLocationDlpJob.Expand(ProjectId, LocationId, DlpJobId); + 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 DlpJobName); + + /// + public bool Equals(DlpJobName 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 ==(DlpJobName a, DlpJobName 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 !=(DlpJobName a, DlpJobName b) => !(a == b); + } + + public partial class CloudDlpInspection + { + /// + /// -typed view over the resource name property. + /// + public DlpJobName InspectJobAsDlpJobName + { + get => string.IsNullOrEmpty(InspectJob) ? null : DlpJobName.Parse(InspectJob, allowUnparsed: true); + set => InspectJob = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Compliance.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Compliance.g.cs new file mode 100755 index 000000000000..3500539fcc01 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Compliance.g.cs @@ -0,0 +1,317 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/compliance.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/compliance.proto + public static partial class ComplianceReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/compliance.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ComplianceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci9nb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvY29tcGxpYW5jZS5w", + "cm90bxIeZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxIjwKCkNvbXBs", + "aWFuY2USEAoIc3RhbmRhcmQYASABKAkSDwoHdmVyc2lvbhgCIAEoCRILCgNp", + "ZHMYAyADKAlC6QEKImNvbS5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIu", + "djFCD0NvbXBsaWFuY2VQcm90b1ABWkpjbG91ZC5nb29nbGUuY29tL2dvL3Nl", + "Y3VyaXR5Y2VudGVyL2FwaXYxL3NlY3VyaXR5Y2VudGVycGI7c2VjdXJpdHlj", + "ZW50ZXJwYqoCHkdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5WMcoCHkdv", + "b2dsZVxDbG91ZFxTZWN1cml0eUNlbnRlclxWMeoCIUdvb2dsZTo6Q2xvdWQ6", + "OlNlY3VyaXR5Q2VudGVyOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Compliance), global::Google.Cloud.SecurityCenter.V1.Compliance.Parser, new[]{ "Standard", "Version", "Ids" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Contains compliance information about a security standard indicating unmet + /// recommendations. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Compliance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Compliance()); + 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.SecurityCenter.V1.ComplianceReflection.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 Compliance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Compliance(Compliance other) : this() { + standard_ = other.standard_; + version_ = other.version_; + ids_ = other.ids_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Compliance Clone() { + return new Compliance(this); + } + + /// Field number for the "standard" field. + public const int StandardFieldNumber = 1; + private string standard_ = ""; + /// + /// Industry-wide compliance standards or benchmarks, such as CIS, PCI, and + /// OWASP. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Standard { + get { return standard_; } + set { + standard_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 2; + private string version_ = ""; + /// + /// Version of the standard or benchmark, for example, 1.1 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ids" field. + public const int IdsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_ids_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField ids_ = new pbc::RepeatedField(); + /// + /// Policies within the standard or benchmark, for example, A.12.4.1 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Ids { + get { return ids_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Compliance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Compliance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Standard != other.Standard) return false; + if (Version != other.Version) return false; + if(!ids_.Equals(other.ids_)) 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 (Standard.Length != 0) hash ^= Standard.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); + hash ^= ids_.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 (Standard.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Standard); + } + if (Version.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Version); + } + ids_.WriteTo(output, _repeated_ids_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) { + if (Standard.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Standard); + } + if (Version.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Version); + } + ids_.WriteTo(ref output, _repeated_ids_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; + if (Standard.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Standard); + } + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + size += ids_.CalculateSize(_repeated_ids_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Compliance other) { + if (other == null) { + return; + } + if (other.Standard.Length != 0) { + Standard = other.Standard; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + ids_.Add(other.ids_); + _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: { + Standard = input.ReadString(); + break; + } + case 18: { + Version = input.ReadString(); + break; + } + case 26: { + ids_.AddEntriesFrom(input, _repeated_ids_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: { + Standard = input.ReadString(); + break; + } + case 18: { + Version = input.ReadString(); + break; + } + case 26: { + ids_.AddEntriesFrom(ref input, _repeated_ids_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Connection.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Connection.g.cs new file mode 100755 index 000000000000..0c7c2f613f70 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Connection.g.cs @@ -0,0 +1,450 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/connection.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/connection.proto + public static partial class ConnectionReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/connection.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ConnectionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci9nb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvY29ubmVjdGlvbi5w", + "cm90bxIeZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxIoECCgpDb25u", + "ZWN0aW9uEhYKDmRlc3RpbmF0aW9uX2lwGAEgASgJEhgKEGRlc3RpbmF0aW9u", + "X3BvcnQYAiABKAUSEQoJc291cmNlX2lwGAMgASgJEhMKC3NvdXJjZV9wb3J0", + "GAQgASgFEkUKCHByb3RvY29sGAUgASgOMjMuZ29vZ2xlLmNsb3VkLnNlY3Vy", + "aXR5Y2VudGVyLnYxLkNvbm5lY3Rpb24uUHJvdG9jb2wiUgoIUHJvdG9jb2wS", + "GAoUUFJPVE9DT0xfVU5TUEVDSUZJRUQQABIICgRJQ01QEAESBwoDVENQEAYS", + "BwoDVURQEBESBwoDR1JFEC8SBwoDRVNQEDJC6QEKImNvbS5nb29nbGUuY2xv", + "dWQuc2VjdXJpdHljZW50ZXIudjFCD0Nvbm5lY3Rpb25Qcm90b1ABWkpjbG91", + "ZC5nb29nbGUuY29tL2dvL3NlY3VyaXR5Y2VudGVyL2FwaXYxL3NlY3VyaXR5", + "Y2VudGVycGI7c2VjdXJpdHljZW50ZXJwYqoCHkdvb2dsZS5DbG91ZC5TZWN1", + "cml0eUNlbnRlci5WMcoCHkdvb2dsZVxDbG91ZFxTZWN1cml0eUNlbnRlclxW", + "MeoCIUdvb2dsZTo6Q2xvdWQ6OlNlY3VyaXR5Q2VudGVyOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Connection), global::Google.Cloud.SecurityCenter.V1.Connection.Parser, new[]{ "DestinationIp", "DestinationPort", "SourceIp", "SourcePort", "Protocol" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.Connection.Types.Protocol) }, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Contains information about the IP connection associated with the finding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Connection : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Connection()); + 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.SecurityCenter.V1.ConnectionReflection.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 Connection() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Connection(Connection other) : this() { + destinationIp_ = other.destinationIp_; + destinationPort_ = other.destinationPort_; + sourceIp_ = other.sourceIp_; + sourcePort_ = other.sourcePort_; + protocol_ = other.protocol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Connection Clone() { + return new Connection(this); + } + + /// Field number for the "destination_ip" field. + public const int DestinationIpFieldNumber = 1; + private string destinationIp_ = ""; + /// + /// Destination IP address. Not present for sockets that are listening and not + /// connected. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DestinationIp { + get { return destinationIp_; } + set { + destinationIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "destination_port" field. + public const int DestinationPortFieldNumber = 2; + private int destinationPort_; + /// + /// Destination port. Not present for sockets that are listening and not + /// connected. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DestinationPort { + get { return destinationPort_; } + set { + destinationPort_ = value; + } + } + + /// Field number for the "source_ip" field. + public const int SourceIpFieldNumber = 3; + private string sourceIp_ = ""; + /// + /// Source IP address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceIp { + get { return sourceIp_; } + set { + sourceIp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_port" field. + public const int SourcePortFieldNumber = 4; + private int sourcePort_; + /// + /// Source port. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SourcePort { + get { return sourcePort_; } + set { + sourcePort_ = value; + } + } + + /// Field number for the "protocol" field. + public const int ProtocolFieldNumber = 5; + private global::Google.Cloud.SecurityCenter.V1.Connection.Types.Protocol protocol_ = global::Google.Cloud.SecurityCenter.V1.Connection.Types.Protocol.Unspecified; + /// + /// IANA Internet Protocol Number such as TCP(6) and UDP(17). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Connection.Types.Protocol Protocol { + get { return protocol_; } + set { + protocol_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Connection); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Connection other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DestinationIp != other.DestinationIp) return false; + if (DestinationPort != other.DestinationPort) return false; + if (SourceIp != other.SourceIp) return false; + if (SourcePort != other.SourcePort) return false; + if (Protocol != other.Protocol) 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 (DestinationIp.Length != 0) hash ^= DestinationIp.GetHashCode(); + if (DestinationPort != 0) hash ^= DestinationPort.GetHashCode(); + if (SourceIp.Length != 0) hash ^= SourceIp.GetHashCode(); + if (SourcePort != 0) hash ^= SourcePort.GetHashCode(); + if (Protocol != global::Google.Cloud.SecurityCenter.V1.Connection.Types.Protocol.Unspecified) hash ^= Protocol.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 (DestinationIp.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DestinationIp); + } + if (DestinationPort != 0) { + output.WriteRawTag(16); + output.WriteInt32(DestinationPort); + } + if (SourceIp.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SourceIp); + } + if (SourcePort != 0) { + output.WriteRawTag(32); + output.WriteInt32(SourcePort); + } + if (Protocol != global::Google.Cloud.SecurityCenter.V1.Connection.Types.Protocol.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) Protocol); + } + 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 (DestinationIp.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DestinationIp); + } + if (DestinationPort != 0) { + output.WriteRawTag(16); + output.WriteInt32(DestinationPort); + } + if (SourceIp.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SourceIp); + } + if (SourcePort != 0) { + output.WriteRawTag(32); + output.WriteInt32(SourcePort); + } + if (Protocol != global::Google.Cloud.SecurityCenter.V1.Connection.Types.Protocol.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) Protocol); + } + 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 (DestinationIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DestinationIp); + } + if (DestinationPort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DestinationPort); + } + if (SourceIp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceIp); + } + if (SourcePort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SourcePort); + } + if (Protocol != global::Google.Cloud.SecurityCenter.V1.Connection.Types.Protocol.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Protocol); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Connection other) { + if (other == null) { + return; + } + if (other.DestinationIp.Length != 0) { + DestinationIp = other.DestinationIp; + } + if (other.DestinationPort != 0) { + DestinationPort = other.DestinationPort; + } + if (other.SourceIp.Length != 0) { + SourceIp = other.SourceIp; + } + if (other.SourcePort != 0) { + SourcePort = other.SourcePort; + } + if (other.Protocol != global::Google.Cloud.SecurityCenter.V1.Connection.Types.Protocol.Unspecified) { + Protocol = other.Protocol; + } + _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: { + DestinationIp = input.ReadString(); + break; + } + case 16: { + DestinationPort = input.ReadInt32(); + break; + } + case 26: { + SourceIp = input.ReadString(); + break; + } + case 32: { + SourcePort = input.ReadInt32(); + break; + } + case 40: { + Protocol = (global::Google.Cloud.SecurityCenter.V1.Connection.Types.Protocol) input.ReadEnum(); + 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: { + DestinationIp = input.ReadString(); + break; + } + case 16: { + DestinationPort = input.ReadInt32(); + break; + } + case 26: { + SourceIp = input.ReadString(); + break; + } + case 32: { + SourcePort = input.ReadInt32(); + break; + } + case 40: { + Protocol = (global::Google.Cloud.SecurityCenter.V1.Connection.Types.Protocol) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Connection message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// IANA Internet Protocol Number such as TCP(6) and UDP(17). + /// + public enum Protocol { + /// + /// Unspecified protocol (not HOPOPT). + /// + [pbr::OriginalName("PROTOCOL_UNSPECIFIED")] Unspecified = 0, + /// + /// Internet Control Message Protocol. + /// + [pbr::OriginalName("ICMP")] Icmp = 1, + /// + /// Transmission Control Protocol. + /// + [pbr::OriginalName("TCP")] Tcp = 6, + /// + /// User Datagram Protocol. + /// + [pbr::OriginalName("UDP")] Udp = 17, + /// + /// Generic Routing Encapsulation. + /// + [pbr::OriginalName("GRE")] Gre = 47, + /// + /// Encap Security Payload. + /// + [pbr::OriginalName("ESP")] Esp = 50, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ContactDetails.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ContactDetails.g.cs new file mode 100755 index 000000000000..7de8ac87e484 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ContactDetails.g.cs @@ -0,0 +1,433 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/contact_details.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/contact_details.proto + public static partial class ContactDetailsReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/contact_details.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ContactDetailsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjRnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvY29udGFjdF9kZXRh", + "aWxzLnByb3RvEh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEiSwoO", + "Q29udGFjdERldGFpbHMSOQoIY29udGFjdHMYASADKAsyJy5nb29nbGUuY2xv", + "dWQuc2VjdXJpdHljZW50ZXIudjEuQ29udGFjdCIYCgdDb250YWN0Eg0KBWVt", + "YWlsGAEgASgJQu0BCiJjb20uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVy", + "LnYxQhNDb250YWN0RGV0YWlsc1Byb3RvUAFaSmNsb3VkLmdvb2dsZS5jb20v", + "Z28vc2VjdXJpdHljZW50ZXIvYXBpdjEvc2VjdXJpdHljZW50ZXJwYjtzZWN1", + "cml0eWNlbnRlcnBiqgIeR29vZ2xlLkNsb3VkLlNlY3VyaXR5Q2VudGVyLlYx", + "ygIeR29vZ2xlXENsb3VkXFNlY3VyaXR5Q2VudGVyXFYx6gIhR29vZ2xlOjpD", + "bG91ZDo6U2VjdXJpdHlDZW50ZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.ContactDetails), global::Google.Cloud.SecurityCenter.V1.ContactDetails.Parser, new[]{ "Contacts" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Contact), global::Google.Cloud.SecurityCenter.V1.Contact.Parser, new[]{ "Email" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Details about specific contacts + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ContactDetails : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContactDetails()); + 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.SecurityCenter.V1.ContactDetailsReflection.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 ContactDetails() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContactDetails(ContactDetails other) : this() { + contacts_ = other.contacts_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ContactDetails Clone() { + return new ContactDetails(this); + } + + /// Field number for the "contacts" field. + public const int ContactsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_contacts_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecurityCenter.V1.Contact.Parser); + private readonly pbc::RepeatedField contacts_ = new pbc::RepeatedField(); + /// + /// A list of contacts + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Contacts { + get { return contacts_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ContactDetails); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ContactDetails other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!contacts_.Equals(other.contacts_)) 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 ^= contacts_.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 + contacts_.WriteTo(output, _repeated_contacts_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) { + contacts_.WriteTo(ref output, _repeated_contacts_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 += contacts_.CalculateSize(_repeated_contacts_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ContactDetails other) { + if (other == null) { + return; + } + contacts_.Add(other.contacts_); + _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: { + contacts_.AddEntriesFrom(input, _repeated_contacts_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: { + contacts_.AddEntriesFrom(ref input, _repeated_contacts_codec); + break; + } + } + } + } + #endif + + } + + /// + /// The email address of a contact. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Contact : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Contact()); + 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.SecurityCenter.V1.ContactDetailsReflection.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 Contact() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Contact(Contact other) : this() { + email_ = other.email_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Contact Clone() { + return new Contact(this); + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 1; + private string email_ = ""; + /// + /// An email address. For example, "`person123@company.com`". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Email { + get { return email_; } + set { + email_ = 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 Contact); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Contact other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Email != other.Email) 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 (Email.Length != 0) hash ^= Email.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 (Email.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Email); + } + 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 (Email.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Email); + } + 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 (Email.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Contact other) { + if (other == null) { + return; + } + if (other.Email.Length != 0) { + Email = other.Email; + } + _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: { + Email = 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: { + Email = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Container.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Container.g.cs new file mode 100755 index 000000000000..b210b004eaea --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Container.g.cs @@ -0,0 +1,410 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/container.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/container.proto + public static partial class ContainerReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/container.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ContainerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci5nb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvY29udGFpbmVyLnBy", + "b3RvEh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEaKmdvb2dsZS9j", + "bG91ZC9zZWN1cml0eWNlbnRlci92MS9sYWJlbC5wcm90bxofZ29vZ2xlL3By", + "b3RvYnVmL3RpbWVzdGFtcC5wcm90byKgAQoJQ29udGFpbmVyEgwKBG5hbWUY", + "ASABKAkSCwoDdXJpGAIgASgJEhAKCGltYWdlX2lkGAMgASgJEjUKBmxhYmVs", + "cxgEIAMoCzIlLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5MYWJl", + "bBIvCgtjcmVhdGVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXBC6AEKImNvbS5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjFC", + "DkNvbnRhaW5lclByb3RvUAFaSmNsb3VkLmdvb2dsZS5jb20vZ28vc2VjdXJp", + "dHljZW50ZXIvYXBpdjEvc2VjdXJpdHljZW50ZXJwYjtzZWN1cml0eWNlbnRl", + "cnBiqgIeR29vZ2xlLkNsb3VkLlNlY3VyaXR5Q2VudGVyLlYxygIeR29vZ2xl", + "XENsb3VkXFNlY3VyaXR5Q2VudGVyXFYx6gIhR29vZ2xlOjpDbG91ZDo6U2Vj", + "dXJpdHlDZW50ZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Cloud.SecurityCenter.V1.LabelReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Container), global::Google.Cloud.SecurityCenter.V1.Container.Parser, new[]{ "Name", "Uri", "ImageId", "Labels", "CreateTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Container associated with the finding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Container : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Container()); + 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.SecurityCenter.V1.ContainerReflection.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 Container() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Container(Container other) : this() { + name_ = other.name_; + uri_ = other.uri_; + imageId_ = other.imageId_; + labels_ = other.labels_.Clone(); + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Container Clone() { + return new Container(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Name of the container. + /// + [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 "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// Container image URI provided when configuring a pod or container. This + /// string can identify a container image version using mutable tags. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "image_id" field. + public const int ImageIdFieldNumber = 3; + private string imageId_ = ""; + /// + /// Optional container image ID, if provided by the container runtime. Uniquely + /// identifies the container image launched using a container image digest. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ImageId { + get { return imageId_; } + set { + imageId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_labels_codec + = pb::FieldCodec.ForMessage(34, global::Google.Cloud.SecurityCenter.V1.Label.Parser); + private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); + /// + /// Container labels, as provided by the container runtime. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Labels { + get { return labels_; } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// The time that the container 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; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Container); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Container other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Uri != other.Uri) return false; + if (ImageId != other.ImageId) return false; + if(!labels_.Equals(other.labels_)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) 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 (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (ImageId.Length != 0) hash ^= ImageId.GetHashCode(); + hash ^= labels_.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.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 (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (ImageId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ImageId); + } + labels_.WriteTo(output, _repeated_labels_codec); + if (createTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreateTime); + } + 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 (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (ImageId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ImageId); + } + labels_.WriteTo(ref output, _repeated_labels_codec); + if (createTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(CreateTime); + } + 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 (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (ImageId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageId); + } + size += labels_.CalculateSize(_repeated_labels_codec); + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Container other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.ImageId.Length != 0) { + ImageId = other.ImageId; + } + labels_.Add(other.labels_); + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + _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: { + Uri = input.ReadString(); + break; + } + case 26: { + ImageId = input.ReadString(); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _repeated_labels_codec); + break; + } + case 42: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + 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: { + Uri = input.ReadString(); + break; + } + case 26: { + ImageId = input.ReadString(); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _repeated_labels_codec); + break; + } + case 42: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Database.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Database.g.cs new file mode 100755 index 000000000000..f571e65009f9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Database.g.cs @@ -0,0 +1,453 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/database.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/database.proto + public static partial class DatabaseReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/database.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DatabaseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci1nb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZGF0YWJhc2UucHJv", + "dG8SHmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MSJzCghEYXRhYmFz", + "ZRIMCgRuYW1lGAEgASgJEhQKDGRpc3BsYXlfbmFtZRgCIAEoCRIRCgl1c2Vy", + "X25hbWUYAyABKAkSDQoFcXVlcnkYBCABKAkSEAoIZ3JhbnRlZXMYBSADKAkS", + "DwoHdmVyc2lvbhgGIAEoCULnAQoiY29tLmdvb2dsZS5jbG91ZC5zZWN1cml0", + "eWNlbnRlci52MUINRGF0YWJhc2VQcm90b1ABWkpjbG91ZC5nb29nbGUuY29t", + "L2dvL3NlY3VyaXR5Y2VudGVyL2FwaXYxL3NlY3VyaXR5Y2VudGVycGI7c2Vj", + "dXJpdHljZW50ZXJwYqoCHkdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5W", + "McoCHkdvb2dsZVxDbG91ZFxTZWN1cml0eUNlbnRlclxWMeoCIUdvb2dsZTo6", + "Q2xvdWQ6OlNlY3VyaXR5Q2VudGVyOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Database), global::Google.Cloud.SecurityCenter.V1.Database.Parser, new[]{ "Name", "DisplayName", "UserName", "Query", "Grantees", "Version" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Represents database access information, such as queries. A database may be a + /// sub-resource of an instance (as in the case of Cloud SQL instances or Cloud + /// Spanner instances), or the database instance itself. Some database resources + /// might not have the [full resource + /// name](https://google.aip.dev/122#full-resource-names) populated because these + /// resource types, such as Cloud SQL databases, are not yet supported by Cloud + /// Asset Inventory. In these cases only the display name is provided. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Database : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Database()); + 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.SecurityCenter.V1.DatabaseReflection.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 Database() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Database(Database other) : this() { + name_ = other.name_; + displayName_ = other.displayName_; + userName_ = other.userName_; + query_ = other.query_; + grantees_ = other.grantees_.Clone(); + version_ = other.version_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Database Clone() { + return new Database(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Some database resources may not have the [full resource + /// name](https://google.aip.dev/122#full-resource-names) populated because + /// these resource types are not yet supported by Cloud Asset Inventory (e.g. + /// Cloud SQL databases). In these cases only the display name will be + /// provided. + /// The [full resource name](https://google.aip.dev/122#full-resource-names) of + /// the database that the user connected to, if it is supported by Cloud Asset + /// Inventory. + /// + [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 "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// The human-readable name of the database that the user connected to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "user_name" field. + public const int UserNameFieldNumber = 3; + private string userName_ = ""; + /// + /// The username used to connect to the database. The username might not be an + /// IAM principal and does not have a set format. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserName { + get { return userName_; } + set { + userName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "query" field. + public const int QueryFieldNumber = 4; + private string query_ = ""; + /// + /// The SQL statement that is associated with the database access. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Query { + get { return query_; } + set { + query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "grantees" field. + public const int GranteesFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_grantees_codec + = pb::FieldCodec.ForString(42); + private readonly pbc::RepeatedField grantees_ = new pbc::RepeatedField(); + /// + /// The target usernames, roles, or groups of an SQL privilege grant, which is + /// not an IAM policy change. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Grantees { + get { return grantees_; } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 6; + private string version_ = ""; + /// + /// The version of the database, for example, POSTGRES_14. + /// See [the complete + /// list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = 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 Database); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Database other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (UserName != other.UserName) return false; + if (Query != other.Query) return false; + if(!grantees_.Equals(other.grantees_)) return false; + if (Version != other.Version) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (UserName.Length != 0) hash ^= UserName.GetHashCode(); + if (Query.Length != 0) hash ^= Query.GetHashCode(); + hash ^= grantees_.GetHashCode(); + if (Version.Length != 0) hash ^= Version.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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (UserName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(UserName); + } + if (Query.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Query); + } + grantees_.WriteTo(output, _repeated_grantees_codec); + if (Version.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Version); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (UserName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(UserName); + } + if (Query.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Query); + } + grantees_.WriteTo(ref output, _repeated_grantees_codec); + if (Version.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Version); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (UserName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserName); + } + if (Query.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); + } + size += grantees_.CalculateSize(_repeated_grantees_codec); + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Database other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.UserName.Length != 0) { + UserName = other.UserName; + } + if (other.Query.Length != 0) { + Query = other.Query; + } + grantees_.Add(other.grantees_); + if (other.Version.Length != 0) { + Version = other.Version; + } + _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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + UserName = input.ReadString(); + break; + } + case 34: { + Query = input.ReadString(); + break; + } + case 42: { + grantees_.AddEntriesFrom(input, _repeated_grantees_codec); + break; + } + case 50: { + Version = 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: { + DisplayName = input.ReadString(); + break; + } + case 26: { + UserName = input.ReadString(); + break; + } + case 34: { + Query = input.ReadString(); + break; + } + case 42: { + grantees_.AddEntriesFrom(ref input, _repeated_grantees_codec); + break; + } + case 50: { + Version = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveEventThreatDetectionCustomModule.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveEventThreatDetectionCustomModule.g.cs new file mode 100755 index 000000000000..2f4fcb2bb71e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveEventThreatDetectionCustomModule.g.cs @@ -0,0 +1,514 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/effective_event_threat_detection_custom_module.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/effective_event_threat_detection_custom_module.proto + public static partial class EffectiveEventThreatDetectionCustomModuleReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/effective_event_threat_detection_custom_module.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EffectiveEventThreatDetectionCustomModuleReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ClNnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZWZmZWN0aXZlX2V2", + "ZW50X3RocmVhdF9kZXRlY3Rpb25fY3VzdG9tX21vZHVsZS5wcm90bxIeZ29v", + "Z2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxGh9nb29nbGUvYXBpL2ZpZWxk", + "X2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvGhxn", + "b29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvIskFCilFZmZlY3RpdmVFdmVu", + "dFRocmVhdERldGVjdGlvbkN1c3RvbU1vZHVsZRIRCgRuYW1lGAEgASgJQgPg", + "QQMSLAoGY29uZmlnGAIgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdEID", + "4EEDEngKEGVuYWJsZW1lbnRfc3RhdGUYAyABKA4yWS5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHljZW50ZXIudjEuRWZmZWN0aXZlRXZlbnRUaHJlYXREZXRlY3Rp", + "b25DdXN0b21Nb2R1bGUuRW5hYmxlbWVudFN0YXRlQgPgQQMSEQoEdHlwZRgE", + "IAEoCUID4EEDEhkKDGRpc3BsYXlfbmFtZRgFIAEoCUID4EEDEhgKC2Rlc2Ny", + "aXB0aW9uGAYgASgJQgPgQQMiTgoPRW5hYmxlbWVudFN0YXRlEiAKHEVOQUJM", + "RU1FTlRfU1RBVEVfVU5TUEVDSUZJRUQQABILCgdFTkFCTEVEEAESDAoIRElT", + "QUJMRUQQAjrIAupBxAIKR3NlY3VyaXR5Y2VudGVyLmdvb2dsZWFwaXMuY29t", + "L0VmZmVjdGl2ZUV2ZW50VGhyZWF0RGV0ZWN0aW9uQ3VzdG9tTW9kdWxlEllv", + "cmdhbml6YXRpb25zL3tvcmdhbml6YXRpb259L2V2ZW50VGhyZWF0RGV0ZWN0", + "aW9uU2V0dGluZ3MvZWZmZWN0aXZlQ3VzdG9tTW9kdWxlcy97bW9kdWxlfRJN", + "Zm9sZGVycy97Zm9sZGVyfS9ldmVudFRocmVhdERldGVjdGlvblNldHRpbmdz", + "L2VmZmVjdGl2ZUN1c3RvbU1vZHVsZXMve21vZHVsZX0ST3Byb2plY3RzL3tw", + "cm9qZWN0fS9ldmVudFRocmVhdERldGVjdGlvblNldHRpbmdzL2VmZmVjdGl2", + "ZUN1c3RvbU1vZHVsZXMve21vZHVsZX1CiAIKImNvbS5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHljZW50ZXIudjFCLkVmZmVjdGl2ZUV2ZW50VGhyZWF0RGV0ZWN0", + "aW9uQ3VzdG9tTW9kdWxlUHJvdG9QAVpKY2xvdWQuZ29vZ2xlLmNvbS9nby9z", + "ZWN1cml0eWNlbnRlci9hcGl2MS9zZWN1cml0eWNlbnRlcnBiO3NlY3VyaXR5", + "Y2VudGVycGKqAh5Hb29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuVjHKAh5H", + "b29nbGVcQ2xvdWRcU2VjdXJpdHlDZW50ZXJcVjHqAiFHb29nbGU6OkNsb3Vk", + "OjpTZWN1cml0eUNlbnRlcjo6VjFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule), global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule.Parser, new[]{ "Name", "Config", "EnablementState", "Type", "DisplayName", "Description" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule.Types.EnablementState) }, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// An EffectiveEventThreatDetectionCustomModule is the representation of + /// an Event Threat Detection custom module at a specified level of the + /// resource hierarchy: organization, folder, or project. If a custom module is + /// inherited from a parent organization or folder, the value of the + /// `enablement_state` property in EffectiveEventThreatDetectionCustomModule is + /// set to the value that is effective in the parent, instead of `INHERITED`. + /// For example, if the module is enabled in a parent organization or folder, the + /// effective `enablement_state` for the module in all child folders or projects + /// is also `enabled`. EffectiveEventThreatDetectionCustomModule is read-only. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EffectiveEventThreatDetectionCustomModule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EffectiveEventThreatDetectionCustomModule()); + 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.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModuleReflection.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 EffectiveEventThreatDetectionCustomModule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EffectiveEventThreatDetectionCustomModule(EffectiveEventThreatDetectionCustomModule other) : this() { + name_ = other.name_; + config_ = other.config_ != null ? other.config_.Clone() : null; + enablementState_ = other.enablementState_; + type_ = other.type_; + displayName_ = other.displayName_; + description_ = other.description_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EffectiveEventThreatDetectionCustomModule Clone() { + return new EffectiveEventThreatDetectionCustomModule(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The resource name of the effective ETD custom module. + /// + /// Its format is: + /// + /// * `organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module}`. + /// * `folders/{folder}/eventThreatDetectionSettings/effectiveCustomModules/{module}`. + /// * `projects/{project}/eventThreatDetectionSettings/effectiveCustomModules/{module}`. + /// + [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 "config" field. + public const int ConfigFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Struct config_; + /// + /// Output only. Config for the effective module. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Struct Config { + get { return config_; } + set { + config_ = value; + } + } + + /// Field number for the "enablement_state" field. + public const int EnablementStateFieldNumber = 3; + private global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule.Types.EnablementState enablementState_ = global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule.Types.EnablementState.Unspecified; + /// + /// Output only. The effective state of enablement for the module at the given + /// level of the hierarchy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule.Types.EnablementState EnablementState { + get { return enablementState_; } + set { + enablementState_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private string type_ = ""; + /// + /// Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 5; + private string displayName_ = ""; + /// + /// Output only. The human readable name to be displayed for the module. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 6; + private string description_ = ""; + /// + /// Output only. The description for the module. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = 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 EffectiveEventThreatDetectionCustomModule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EffectiveEventThreatDetectionCustomModule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(Config, other.Config)) return false; + if (EnablementState != other.EnablementState) return false; + if (Type != other.Type) return false; + if (DisplayName != other.DisplayName) return false; + if (Description != other.Description) 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 (config_ != null) hash ^= Config.GetHashCode(); + if (EnablementState != global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule.Types.EnablementState.Unspecified) hash ^= EnablementState.GetHashCode(); + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Description.Length != 0) hash ^= Description.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 (config_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Config); + } + if (EnablementState != global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule.Types.EnablementState.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) EnablementState); + } + if (Type.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Type); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Description); + } + 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 (config_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Config); + } + if (EnablementState != global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule.Types.EnablementState.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) EnablementState); + } + if (Type.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Type); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Description); + } + 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 (config_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Config); + } + if (EnablementState != global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule.Types.EnablementState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnablementState); + } + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EffectiveEventThreatDetectionCustomModule other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.config_ != null) { + if (config_ == null) { + Config = new global::Google.Protobuf.WellKnownTypes.Struct(); + } + Config.MergeFrom(other.Config); + } + if (other.EnablementState != global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule.Types.EnablementState.Unspecified) { + EnablementState = other.EnablementState; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + _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 (config_ == null) { + Config = new global::Google.Protobuf.WellKnownTypes.Struct(); + } + input.ReadMessage(Config); + break; + } + case 24: { + EnablementState = (global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule.Types.EnablementState) input.ReadEnum(); + break; + } + case 34: { + Type = input.ReadString(); + break; + } + case 42: { + DisplayName = input.ReadString(); + break; + } + case 50: { + Description = 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: { + if (config_ == null) { + Config = new global::Google.Protobuf.WellKnownTypes.Struct(); + } + input.ReadMessage(Config); + break; + } + case 24: { + EnablementState = (global::Google.Cloud.SecurityCenter.V1.EffectiveEventThreatDetectionCustomModule.Types.EnablementState) input.ReadEnum(); + break; + } + case 34: { + Type = input.ReadString(); + break; + } + case 42: { + DisplayName = input.ReadString(); + break; + } + case 50: { + Description = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the EffectiveEventThreatDetectionCustomModule message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The enablement state of the module. + /// + public enum EnablementState { + /// + /// Unspecified enablement state. + /// + [pbr::OriginalName("ENABLEMENT_STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The module is enabled at the given level. + /// + [pbr::OriginalName("ENABLED")] Enabled = 1, + /// + /// The module is disabled at the given level. + /// + [pbr::OriginalName("DISABLED")] Disabled = 2, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveEventThreatDetectionCustomModuleResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveEventThreatDetectionCustomModuleResourceNames.g.cs new file mode 100755 index 000000000000..0d774f08e067 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveEventThreatDetectionCustomModuleResourceNames.g.cs @@ -0,0 +1,445 @@ +// 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.SecurityCenter.V1; +using sys = System; + +namespace Google.Cloud.SecurityCenter.V1 +{ + /// Resource name for the EffectiveEventThreatDetectionCustomModule resource. + public sealed partial class EffectiveEventThreatDetectionCustomModuleName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + OrganizationModule = 1, + + /// + /// A resource name with pattern + /// folders/{folder}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + FolderModule = 2, + + /// + /// A resource name with pattern + /// projects/{project}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + ProjectModule = 3, + } + + private static gax::PathTemplate s_organizationModule = new gax::PathTemplate("organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module}"); + + private static gax::PathTemplate s_folderModule = new gax::PathTemplate("folders/{folder}/eventThreatDetectionSettings/effectiveCustomModules/{module}"); + + private static gax::PathTemplate s_projectModule = new gax::PathTemplate("projects/{project}/eventThreatDetectionSettings/effectiveCustomModules/{module}"); + + /// + /// Creates a containing an unparsed resource name. + /// + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static EffectiveEventThreatDetectionCustomModuleName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new EffectiveEventThreatDetectionCustomModuleName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + /// The Organization ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// A new instance of constructed from the provided + /// ids. + /// + public static EffectiveEventThreatDetectionCustomModuleName FromOrganizationModule(string organizationId, string moduleId) => + new EffectiveEventThreatDetectionCustomModuleName(ResourceNameType.OrganizationModule, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), moduleId: gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))); + + /// + /// Creates a with the pattern + /// folders/{folder}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + /// The Folder ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// A new instance of constructed from the provided + /// ids. + /// + public static EffectiveEventThreatDetectionCustomModuleName FromFolderModule(string folderId, string moduleId) => + new EffectiveEventThreatDetectionCustomModuleName(ResourceNameType.FolderModule, folderId: gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), moduleId: gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))); + + /// + /// Creates a with the pattern + /// projects/{project}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + /// The Project ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// A new instance of constructed from the provided + /// ids. + /// + public static EffectiveEventThreatDetectionCustomModuleName FromProjectModule(string projectId, string moduleId) => + new EffectiveEventThreatDetectionCustomModuleName(ResourceNameType.ProjectModule, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), moduleId: gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))); + + /// + /// Formats the IDs into the string representation of this + /// with pattern + /// organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + /// The Organization ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + public static string Format(string organizationId, string moduleId) => + FormatOrganizationModule(organizationId, moduleId); + + /// + /// Formats the IDs into the string representation of this + /// with pattern + /// organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + /// The Organization ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + public static string FormatOrganizationModule(string organizationId, string moduleId) => + s_organizationModule.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))); + + /// + /// Formats the IDs into the string representation of this + /// with pattern + /// folders/{folder}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + /// The Folder ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// folders/{folder}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + public static string FormatFolderModule(string folderId, string moduleId) => + s_folderModule.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))); + + /// + /// Formats the IDs into the string representation of this + /// with pattern + /// projects/{project}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + /// The Project ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/eventThreatDetectionSettings/effectiveCustomModules/{module}. + /// + public static string FormatProjectModule(string projectId, string moduleId) => + s_projectModule.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))); + + /// + /// Parses the given resource name string into a new + /// instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// + /// + /// + /// folders/{folder}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// + /// + /// + /// projects/{project}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// The parsed if successful. + public static EffectiveEventThreatDetectionCustomModuleName Parse(string effectiveEventThreatDetectionCustomModuleName) => + Parse(effectiveEventThreatDetectionCustomModuleName, 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: + /// + /// + /// + /// organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// + /// + /// + /// folders/{folder}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// + /// + /// + /// projects/{project}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// + /// + /// 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 EffectiveEventThreatDetectionCustomModuleName Parse(string effectiveEventThreatDetectionCustomModuleName, bool allowUnparsed) => + TryParse(effectiveEventThreatDetectionCustomModuleName, allowUnparsed, out EffectiveEventThreatDetectionCustomModuleName 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: + /// + /// + /// + /// organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// + /// + /// + /// folders/{folder}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// + /// + /// + /// projects/{project}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// + /// + /// + /// + /// 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 effectiveEventThreatDetectionCustomModuleName, out EffectiveEventThreatDetectionCustomModuleName result) => + TryParse(effectiveEventThreatDetectionCustomModuleName, 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: + /// + /// + /// + /// organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// + /// + /// + /// folders/{folder}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// + /// + /// + /// projects/{project}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// + /// + /// 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 effectiveEventThreatDetectionCustomModuleName, bool allowUnparsed, out EffectiveEventThreatDetectionCustomModuleName result) + { + gax::GaxPreconditions.CheckNotNull(effectiveEventThreatDetectionCustomModuleName, nameof(effectiveEventThreatDetectionCustomModuleName)); + gax::TemplatedResourceName resourceName; + if (s_organizationModule.TryParseName(effectiveEventThreatDetectionCustomModuleName, out resourceName)) + { + result = FromOrganizationModule(resourceName[0], resourceName[1]); + return true; + } + if (s_folderModule.TryParseName(effectiveEventThreatDetectionCustomModuleName, out resourceName)) + { + result = FromFolderModule(resourceName[0], resourceName[1]); + return true; + } + if (s_projectModule.TryParseName(effectiveEventThreatDetectionCustomModuleName, out resourceName)) + { + result = FromProjectModule(resourceName[0], resourceName[1]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(effectiveEventThreatDetectionCustomModuleName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private EffectiveEventThreatDetectionCustomModuleName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string folderId = null, string moduleId = null, string organizationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + FolderId = folderId; + ModuleId = moduleId; + OrganizationId = organizationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the + /// component parts of pattern + /// organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module} + /// + /// The Organization ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + public EffectiveEventThreatDetectionCustomModuleName(string organizationId, string moduleId) : this(ResourceNameType.OrganizationModule, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), moduleId: gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))) + { + } + + /// 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 Folder ID. May be null, depending on which resource name is contained by this instance. + /// + public string FolderId { get; } + + /// + /// The Module ID. May be null, depending on which resource name is contained by this instance. + /// + public string ModuleId { get; } + + /// + /// The Organization ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string OrganizationId { get; } + + /// + /// The Project ID. May be null, depending on which resource name is contained by this instance. + /// + public string ProjectId { 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.OrganizationModule: return s_organizationModule.Expand(OrganizationId, ModuleId); + case ResourceNameType.FolderModule: return s_folderModule.Expand(FolderId, ModuleId); + case ResourceNameType.ProjectModule: return s_projectModule.Expand(ProjectId, ModuleId); + 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 EffectiveEventThreatDetectionCustomModuleName); + + /// + public bool Equals(EffectiveEventThreatDetectionCustomModuleName 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 ==(EffectiveEventThreatDetectionCustomModuleName a, EffectiveEventThreatDetectionCustomModuleName 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 !=(EffectiveEventThreatDetectionCustomModuleName a, EffectiveEventThreatDetectionCustomModuleName b) => !(a == b); + } + + public partial class EffectiveEventThreatDetectionCustomModule + { + /// + /// -typed view over the + /// resource name property. + /// + public gcsv::EffectiveEventThreatDetectionCustomModuleName EffectiveEventThreatDetectionCustomModuleName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::EffectiveEventThreatDetectionCustomModuleName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveSecurityHealthAnalyticsCustomModule.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveSecurityHealthAnalyticsCustomModule.g.cs new file mode 100755 index 000000000000..27c8831bccf7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveSecurityHealthAnalyticsCustomModule.g.cs @@ -0,0 +1,438 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto + public static partial class EffectiveSecurityHealthAnalyticsCustomModuleReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EffectiveSecurityHealthAnalyticsCustomModuleReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ClZnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZWZmZWN0aXZlX3Nl", + "Y3VyaXR5X2hlYWx0aF9hbmFseXRpY3NfY3VzdG9tX21vZHVsZS5wcm90bxIe", + "Z29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxGh9nb29nbGUvYXBpL2Zp", + "ZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3Rv", + "Gkxnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvc2VjdXJpdHlfaGVh", + "bHRoX2FuYWx5dGljc19jdXN0b21fY29uZmlnLnByb3RvIv0FCixFZmZlY3Rp", + "dmVTZWN1cml0eUhlYWx0aEFuYWx5dGljc0N1c3RvbU1vZHVsZRIRCgRuYW1l", + "GAEgASgJQgPgQQMSSAoNY3VzdG9tX2NvbmZpZxgCIAEoCzIsLmdvb2dsZS5j", + "bG91ZC5zZWN1cml0eWNlbnRlci52MS5DdXN0b21Db25maWdCA+BBAxJ7ChBl", + "bmFibGVtZW50X3N0YXRlGAMgASgOMlwuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5", + "Y2VudGVyLnYxLkVmZmVjdGl2ZVNlY3VyaXR5SGVhbHRoQW5hbHl0aWNzQ3Vz", + "dG9tTW9kdWxlLkVuYWJsZW1lbnRTdGF0ZUID4EEDEhkKDGRpc3BsYXlfbmFt", + "ZRgEIAEoCUID4EEDIk4KD0VuYWJsZW1lbnRTdGF0ZRIgChxFTkFCTEVNRU5U", + "X1NUQVRFX1VOU1BFQ0lGSUVEEAASCwoHRU5BQkxFRBABEgwKCERJU0FCTEVE", + "EAI6hwPqQYMDCkpzZWN1cml0eWNlbnRlci5nb29nbGVhcGlzLmNvbS9FZmZl", + "Y3RpdmVTZWN1cml0eUhlYWx0aEFuYWx5dGljc0N1c3RvbU1vZHVsZRJtb3Jn", + "YW5pemF0aW9ucy97b3JnYW5pemF0aW9ufS9zZWN1cml0eUhlYWx0aEFuYWx5", + "dGljc1NldHRpbmdzL2VmZmVjdGl2ZUN1c3RvbU1vZHVsZXMve2VmZmVjdGl2", + "ZV9jdXN0b21fbW9kdWxlfRJhZm9sZGVycy97Zm9sZGVyfS9zZWN1cml0eUhl", + "YWx0aEFuYWx5dGljc1NldHRpbmdzL2VmZmVjdGl2ZUN1c3RvbU1vZHVsZXMv", + "e2VmZmVjdGl2ZV9jdXN0b21fbW9kdWxlfRJjcHJvamVjdHMve3Byb2plY3R9", + "L3NlY3VyaXR5SGVhbHRoQW5hbHl0aWNzU2V0dGluZ3MvZWZmZWN0aXZlQ3Vz", + "dG9tTW9kdWxlcy97ZWZmZWN0aXZlX2N1c3RvbV9tb2R1bGV9QosCCiJjb20u", + "Z29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxQjFFZmZlY3RpdmVTZWN1", + "cml0eUhlYWx0aEFuYWx5dGljc0N1c3RvbU1vZHVsZVByb3RvUAFaSmNsb3Vk", + "Lmdvb2dsZS5jb20vZ28vc2VjdXJpdHljZW50ZXIvYXBpdjEvc2VjdXJpdHlj", + "ZW50ZXJwYjtzZWN1cml0eWNlbnRlcnBiqgIeR29vZ2xlLkNsb3VkLlNlY3Vy", + "aXR5Q2VudGVyLlYxygIeR29vZ2xlXENsb3VkXFNlY3VyaXR5Q2VudGVyXFYx", + "6gIhR29vZ2xlOjpDbG91ZDo6U2VjdXJpdHlDZW50ZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.SecurityHealthAnalyticsCustomConfigReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule), global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule.Parser, new[]{ "Name", "CustomConfig", "EnablementState", "DisplayName" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule.Types.EnablementState) }, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// An EffectiveSecurityHealthAnalyticsCustomModule is the representation of + /// a Security Health Analytics custom module at a specified level of the + /// resource hierarchy: organization, folder, or project. If a custom module is + /// inherited from a parent organization or folder, the value of the + /// `enablementState` property in EffectiveSecurityHealthAnalyticsCustomModule is + /// set to the value that is effective in the parent, instead of `INHERITED`. + /// For example, if the module is enabled in a parent organization or folder, the + /// effective enablement_state for the module in all child folders or projects is + /// also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EffectiveSecurityHealthAnalyticsCustomModule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EffectiveSecurityHealthAnalyticsCustomModule()); + 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.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModuleReflection.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 EffectiveSecurityHealthAnalyticsCustomModule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EffectiveSecurityHealthAnalyticsCustomModule(EffectiveSecurityHealthAnalyticsCustomModule other) : this() { + name_ = other.name_; + customConfig_ = other.customConfig_ != null ? other.customConfig_.Clone() : null; + enablementState_ = other.enablementState_; + displayName_ = other.displayName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EffectiveSecurityHealthAnalyticsCustomModule Clone() { + return new EffectiveSecurityHealthAnalyticsCustomModule(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The resource name of the custom module. + /// Its format is + /// "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + /// or + /// "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + /// or + /// "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}" + /// + [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 "custom_config" field. + public const int CustomConfigFieldNumber = 2; + private global::Google.Cloud.SecurityCenter.V1.CustomConfig customConfig_; + /// + /// Output only. The user-specified configuration for the module. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.CustomConfig CustomConfig { + get { return customConfig_; } + set { + customConfig_ = value; + } + } + + /// Field number for the "enablement_state" field. + public const int EnablementStateFieldNumber = 3; + private global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule.Types.EnablementState enablementState_ = global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule.Types.EnablementState.Unspecified; + /// + /// Output only. The effective state of enablement for the module at the given + /// level of the hierarchy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule.Types.EnablementState EnablementState { + get { return enablementState_; } + set { + enablementState_ = value; + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 4; + private string displayName_ = ""; + /// + /// Output only. The display name for the custom module. The name must be + /// between 1 and 128 characters, start with a lowercase letter, and contain + /// alphanumeric characters or underscores only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = 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 EffectiveSecurityHealthAnalyticsCustomModule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EffectiveSecurityHealthAnalyticsCustomModule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(CustomConfig, other.CustomConfig)) return false; + if (EnablementState != other.EnablementState) return false; + if (DisplayName != other.DisplayName) 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 (customConfig_ != null) hash ^= CustomConfig.GetHashCode(); + if (EnablementState != global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule.Types.EnablementState.Unspecified) hash ^= EnablementState.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.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 (customConfig_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CustomConfig); + } + if (EnablementState != global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule.Types.EnablementState.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) EnablementState); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(DisplayName); + } + 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 (customConfig_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CustomConfig); + } + if (EnablementState != global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule.Types.EnablementState.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) EnablementState); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(DisplayName); + } + 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 (customConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomConfig); + } + if (EnablementState != global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule.Types.EnablementState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnablementState); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EffectiveSecurityHealthAnalyticsCustomModule other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.customConfig_ != null) { + if (customConfig_ == null) { + CustomConfig = new global::Google.Cloud.SecurityCenter.V1.CustomConfig(); + } + CustomConfig.MergeFrom(other.CustomConfig); + } + if (other.EnablementState != global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule.Types.EnablementState.Unspecified) { + EnablementState = other.EnablementState; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + _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 (customConfig_ == null) { + CustomConfig = new global::Google.Cloud.SecurityCenter.V1.CustomConfig(); + } + input.ReadMessage(CustomConfig); + break; + } + case 24: { + EnablementState = (global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule.Types.EnablementState) input.ReadEnum(); + break; + } + case 34: { + DisplayName = 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: { + if (customConfig_ == null) { + CustomConfig = new global::Google.Cloud.SecurityCenter.V1.CustomConfig(); + } + input.ReadMessage(CustomConfig); + break; + } + case 24: { + EnablementState = (global::Google.Cloud.SecurityCenter.V1.EffectiveSecurityHealthAnalyticsCustomModule.Types.EnablementState) input.ReadEnum(); + break; + } + case 34: { + DisplayName = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the EffectiveSecurityHealthAnalyticsCustomModule message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The enablement state of the module. + /// + public enum EnablementState { + /// + /// Unspecified enablement state. + /// + [pbr::OriginalName("ENABLEMENT_STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The module is enabled at the given level. + /// + [pbr::OriginalName("ENABLED")] Enabled = 1, + /// + /// The module is disabled at the given level. + /// + [pbr::OriginalName("DISABLED")] Disabled = 2, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveSecurityHealthAnalyticsCustomModuleResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveSecurityHealthAnalyticsCustomModuleResourceNames.g.cs new file mode 100755 index 000000000000..2466340bd4d4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EffectiveSecurityHealthAnalyticsCustomModuleResourceNames.g.cs @@ -0,0 +1,487 @@ +// 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.SecurityCenter.V1; +using sys = System; + +namespace Google.Cloud.SecurityCenter.V1 +{ + /// Resource name for the EffectiveSecurityHealthAnalyticsCustomModule resource. + public sealed partial class EffectiveSecurityHealthAnalyticsCustomModuleName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// + /// organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// . + /// + OrganizationEffectiveCustomModule = 1, + + /// + /// A resource name with pattern + /// folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// . + /// + FolderEffectiveCustomModule = 2, + + /// + /// A resource name with pattern + /// projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// . + /// + ProjectEffectiveCustomModule = 3, + } + + private static gax::PathTemplate s_organizationEffectiveCustomModule = new gax::PathTemplate("organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}"); + + private static gax::PathTemplate s_folderEffectiveCustomModule = new gax::PathTemplate("folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}"); + + private static gax::PathTemplate s_projectEffectiveCustomModule = new gax::PathTemplate("projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}"); + + /// + /// Creates a containing an unparsed resource + /// name. + /// + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static EffectiveSecurityHealthAnalyticsCustomModuleName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new EffectiveSecurityHealthAnalyticsCustomModuleName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// + /// organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// . + /// + /// The Organization ID. Must not be null or empty. + /// + /// The EffectiveCustomModule ID. Must not be null or empty. + /// + /// + /// A new instance of constructed from the + /// provided ids. + /// + public static EffectiveSecurityHealthAnalyticsCustomModuleName FromOrganizationEffectiveCustomModule(string organizationId, string effectiveCustomModuleId) => + new EffectiveSecurityHealthAnalyticsCustomModuleName(ResourceNameType.OrganizationEffectiveCustomModule, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), effectiveCustomModuleId: gax::GaxPreconditions.CheckNotNullOrEmpty(effectiveCustomModuleId, nameof(effectiveCustomModuleId))); + + /// + /// Creates a with the pattern + /// folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}. + /// + /// The Folder ID. Must not be null or empty. + /// + /// The EffectiveCustomModule ID. Must not be null or empty. + /// + /// + /// A new instance of constructed from the + /// provided ids. + /// + public static EffectiveSecurityHealthAnalyticsCustomModuleName FromFolderEffectiveCustomModule(string folderId, string effectiveCustomModuleId) => + new EffectiveSecurityHealthAnalyticsCustomModuleName(ResourceNameType.FolderEffectiveCustomModule, folderId: gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), effectiveCustomModuleId: gax::GaxPreconditions.CheckNotNullOrEmpty(effectiveCustomModuleId, nameof(effectiveCustomModuleId))); + + /// + /// Creates a with the pattern + /// projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}. + /// + /// The Project ID. Must not be null or empty. + /// + /// The EffectiveCustomModule ID. Must not be null or empty. + /// + /// + /// A new instance of constructed from the + /// provided ids. + /// + public static EffectiveSecurityHealthAnalyticsCustomModuleName FromProjectEffectiveCustomModule(string projectId, string effectiveCustomModuleId) => + new EffectiveSecurityHealthAnalyticsCustomModuleName(ResourceNameType.ProjectEffectiveCustomModule, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), effectiveCustomModuleId: gax::GaxPreconditions.CheckNotNullOrEmpty(effectiveCustomModuleId, nameof(effectiveCustomModuleId))); + + /// + /// Formats the IDs into the string representation of this + /// with pattern + /// + /// organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// . + /// + /// The Organization ID. Must not be null or empty. + /// + /// The EffectiveCustomModule ID. Must not be null or empty. + /// + /// + /// The string representation of this with + /// pattern + /// + /// organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// . + /// + public static string Format(string organizationId, string effectiveCustomModuleId) => + FormatOrganizationEffectiveCustomModule(organizationId, effectiveCustomModuleId); + + /// + /// Formats the IDs into the string representation of this + /// with pattern + /// + /// organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// . + /// + /// The Organization ID. Must not be null or empty. + /// + /// The EffectiveCustomModule ID. Must not be null or empty. + /// + /// + /// The string representation of this with + /// pattern + /// + /// organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// . + /// + public static string FormatOrganizationEffectiveCustomModule(string organizationId, string effectiveCustomModuleId) => + s_organizationEffectiveCustomModule.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(effectiveCustomModuleId, nameof(effectiveCustomModuleId))); + + /// + /// Formats the IDs into the string representation of this + /// with pattern + /// folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}. + /// + /// The Folder ID. Must not be null or empty. + /// + /// The EffectiveCustomModule ID. Must not be null or empty. + /// + /// + /// The string representation of this with + /// pattern folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// . + /// + public static string FormatFolderEffectiveCustomModule(string folderId, string effectiveCustomModuleId) => + s_folderEffectiveCustomModule.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), gax::GaxPreconditions.CheckNotNullOrEmpty(effectiveCustomModuleId, nameof(effectiveCustomModuleId))); + + /// + /// Formats the IDs into the string representation of this + /// with pattern + /// projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}. + /// + /// The Project ID. Must not be null or empty. + /// + /// The EffectiveCustomModule ID. Must not be null or empty. + /// + /// + /// The string representation of this with + /// pattern + /// projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}. + /// + public static string FormatProjectEffectiveCustomModule(string projectId, string effectiveCustomModuleId) => + s_projectEffectiveCustomModule.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(effectiveCustomModuleId, nameof(effectiveCustomModuleId))); + + /// + /// Parses the given resource name string into a new + /// instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// + /// organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// + /// + /// + /// folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// + /// + /// + /// projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// The parsed if successful. + public static EffectiveSecurityHealthAnalyticsCustomModuleName Parse(string effectiveSecurityHealthAnalyticsCustomModuleName) => + Parse(effectiveSecurityHealthAnalyticsCustomModuleName, 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: + /// + /// + /// + /// + /// organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// + /// + /// + /// folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// + /// + /// + /// projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// + /// + /// 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 EffectiveSecurityHealthAnalyticsCustomModuleName Parse(string effectiveSecurityHealthAnalyticsCustomModuleName, bool allowUnparsed) => + TryParse(effectiveSecurityHealthAnalyticsCustomModuleName, allowUnparsed, out EffectiveSecurityHealthAnalyticsCustomModuleName 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: + /// + /// + /// + /// + /// organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// + /// + /// + /// folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// + /// + /// + /// projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// + /// + /// + /// + /// 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 effectiveSecurityHealthAnalyticsCustomModuleName, out EffectiveSecurityHealthAnalyticsCustomModuleName result) => + TryParse(effectiveSecurityHealthAnalyticsCustomModuleName, 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: + /// + /// + /// + /// + /// organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// + /// + /// + /// folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// + /// + /// + /// projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// + /// + /// 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 effectiveSecurityHealthAnalyticsCustomModuleName, bool allowUnparsed, out EffectiveSecurityHealthAnalyticsCustomModuleName result) + { + gax::GaxPreconditions.CheckNotNull(effectiveSecurityHealthAnalyticsCustomModuleName, nameof(effectiveSecurityHealthAnalyticsCustomModuleName)); + gax::TemplatedResourceName resourceName; + if (s_organizationEffectiveCustomModule.TryParseName(effectiveSecurityHealthAnalyticsCustomModuleName, out resourceName)) + { + result = FromOrganizationEffectiveCustomModule(resourceName[0], resourceName[1]); + return true; + } + if (s_folderEffectiveCustomModule.TryParseName(effectiveSecurityHealthAnalyticsCustomModuleName, out resourceName)) + { + result = FromFolderEffectiveCustomModule(resourceName[0], resourceName[1]); + return true; + } + if (s_projectEffectiveCustomModule.TryParseName(effectiveSecurityHealthAnalyticsCustomModuleName, out resourceName)) + { + result = FromProjectEffectiveCustomModule(resourceName[0], resourceName[1]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(effectiveSecurityHealthAnalyticsCustomModuleName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private EffectiveSecurityHealthAnalyticsCustomModuleName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string effectiveCustomModuleId = null, string folderId = null, string organizationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + EffectiveCustomModuleId = effectiveCustomModuleId; + FolderId = folderId; + OrganizationId = organizationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the + /// component parts of pattern + /// + /// organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module} + /// + /// The Organization ID. Must not be null or empty. + /// + /// The EffectiveCustomModule ID. Must not be null or empty. + /// + public EffectiveSecurityHealthAnalyticsCustomModuleName(string organizationId, string effectiveCustomModuleId) : this(ResourceNameType.OrganizationEffectiveCustomModule, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), effectiveCustomModuleId: gax::GaxPreconditions.CheckNotNullOrEmpty(effectiveCustomModuleId, nameof(effectiveCustomModuleId))) + { + } + + /// 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 EffectiveCustomModule ID. May be null, depending on which resource name is contained by + /// this instance. + /// + public string EffectiveCustomModuleId { get; } + + /// + /// The Folder ID. May be null, depending on which resource name is contained by this instance. + /// + public string FolderId { get; } + + /// + /// The Organization ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string OrganizationId { get; } + + /// + /// The Project ID. May be null, depending on which resource name is contained by this instance. + /// + public string ProjectId { 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.OrganizationEffectiveCustomModule: return s_organizationEffectiveCustomModule.Expand(OrganizationId, EffectiveCustomModuleId); + case ResourceNameType.FolderEffectiveCustomModule: return s_folderEffectiveCustomModule.Expand(FolderId, EffectiveCustomModuleId); + case ResourceNameType.ProjectEffectiveCustomModule: return s_projectEffectiveCustomModule.Expand(ProjectId, EffectiveCustomModuleId); + 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 EffectiveSecurityHealthAnalyticsCustomModuleName); + + /// + public bool Equals(EffectiveSecurityHealthAnalyticsCustomModuleName 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 ==(EffectiveSecurityHealthAnalyticsCustomModuleName a, EffectiveSecurityHealthAnalyticsCustomModuleName 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 !=(EffectiveSecurityHealthAnalyticsCustomModuleName a, EffectiveSecurityHealthAnalyticsCustomModuleName b) => !(a == b); + } + + public partial class EffectiveSecurityHealthAnalyticsCustomModule + { + /// + /// -typed view over the + /// resource name property. + /// + public gcsv::EffectiveSecurityHealthAnalyticsCustomModuleName EffectiveSecurityHealthAnalyticsCustomModuleName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::EffectiveSecurityHealthAnalyticsCustomModuleName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EventThreatDetectionCustomModule.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EventThreatDetectionCustomModule.g.cs new file mode 100755 index 000000000000..ba6c809fc39f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EventThreatDetectionCustomModule.g.cs @@ -0,0 +1,649 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/event_threat_detection_custom_module.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/event_threat_detection_custom_module.proto + public static partial class EventThreatDetectionCustomModuleReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/event_threat_detection_custom_module.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EventThreatDetectionCustomModuleReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cklnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZXZlbnRfdGhyZWF0", + "X2RldGVjdGlvbl9jdXN0b21fbW9kdWxlLnByb3RvEh5nb29nbGUuY2xvdWQu", + "c2VjdXJpdHljZW50ZXIudjEaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", + "cHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aHGdvb2dsZS9wcm90", + "b2J1Zi9zdHJ1Y3QucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAu", + "cHJvdG8iugYKIEV2ZW50VGhyZWF0RGV0ZWN0aW9uQ3VzdG9tTW9kdWxlEhEK", + "BG5hbWUYASABKAlCA+BBBRInCgZjb25maWcYAiABKAsyFy5nb29nbGUucHJv", + "dG9idWYuU3RydWN0El8KD2FuY2VzdG9yX21vZHVsZRgDIAEoCUJG4EED+kFA", + "Cj5zZWN1cml0eWNlbnRlci5nb29nbGVhcGlzLmNvbS9FdmVudFRocmVhdERl", + "dGVjdGlvbkN1c3RvbU1vZHVsZRJqChBlbmFibGVtZW50X3N0YXRlGAQgASgO", + "MlAuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkV2ZW50VGhyZWF0", + "RGV0ZWN0aW9uQ3VzdG9tTW9kdWxlLkVuYWJsZW1lbnRTdGF0ZRIMCgR0eXBl", + "GAUgASgJEhQKDGRpc3BsYXlfbmFtZRgGIAEoCRITCgtkZXNjcmlwdGlvbhgH", + "IAEoCRI0Cgt1cGRhdGVfdGltZRgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXBCA+BBAxIYCgtsYXN0X2VkaXRvchgJIAEoCUID4EEDIl0KD0Vu", + "YWJsZW1lbnRTdGF0ZRIgChxFTkFCTEVNRU5UX1NUQVRFX1VOU1BFQ0lGSUVE", + "EAASCwoHRU5BQkxFRBABEgwKCERJU0FCTEVEEAISDQoJSU5IRVJJVEVEEAM6", + "pALqQaACCj5zZWN1cml0eWNlbnRlci5nb29nbGVhcGlzLmNvbS9FdmVudFRo", + "cmVhdERldGVjdGlvbkN1c3RvbU1vZHVsZRJQb3JnYW5pemF0aW9ucy97b3Jn", + "YW5pemF0aW9ufS9ldmVudFRocmVhdERldGVjdGlvblNldHRpbmdzL2N1c3Rv", + "bU1vZHVsZXMve21vZHVsZX0SRGZvbGRlcnMve2ZvbGRlcn0vZXZlbnRUaHJl", + "YXREZXRlY3Rpb25TZXR0aW5ncy9jdXN0b21Nb2R1bGVzL3ttb2R1bGV9EkZw", + "cm9qZWN0cy97cHJvamVjdH0vZXZlbnRUaHJlYXREZXRlY3Rpb25TZXR0aW5n", + "cy9jdXN0b21Nb2R1bGVzL3ttb2R1bGV9Qv8BCiJjb20uZ29vZ2xlLmNsb3Vk", + "LnNlY3VyaXR5Y2VudGVyLnYxQiVFdmVudFRocmVhdERldGVjdGlvbkN1c3Rv", + "bU1vZHVsZVByb3RvUAFaSmNsb3VkLmdvb2dsZS5jb20vZ28vc2VjdXJpdHlj", + "ZW50ZXIvYXBpdjEvc2VjdXJpdHljZW50ZXJwYjtzZWN1cml0eWNlbnRlcnBi", + "qgIeR29vZ2xlLkNsb3VkLlNlY3VyaXR5Q2VudGVyLlYxygIeR29vZ2xlXENs", + "b3VkXFNlY3VyaXR5Q2VudGVyXFYx6gIhR29vZ2xlOjpDbG91ZDo6U2VjdXJp", + "dHlDZW50ZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule), global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule.Parser, new[]{ "Name", "Config", "AncestorModule", "EnablementState", "Type", "DisplayName", "Description", "UpdateTime", "LastEditor" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule.Types.EnablementState) }, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Represents an instance of an Event Threat Detection custom module, + /// including its full module name, display name, enablement state, and last + /// updated time. You can create a custom module at the organization, folder, or + /// project level. Custom modules that you create at the organization or folder + /// level are inherited by child folders and projects. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EventThreatDetectionCustomModule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EventThreatDetectionCustomModule()); + 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.SecurityCenter.V1.EventThreatDetectionCustomModuleReflection.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 EventThreatDetectionCustomModule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventThreatDetectionCustomModule(EventThreatDetectionCustomModule other) : this() { + name_ = other.name_; + config_ = other.config_ != null ? other.config_.Clone() : null; + ancestorModule_ = other.ancestorModule_; + enablementState_ = other.enablementState_; + type_ = other.type_; + displayName_ = other.displayName_; + description_ = other.description_; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + lastEditor_ = other.lastEditor_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EventThreatDetectionCustomModule Clone() { + return new EventThreatDetectionCustomModule(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Immutable. The resource name of the Event Threat Detection custom module. + /// + /// Its format is: + /// + /// * `organizations/{organization}/eventThreatDetectionSettings/customModules/{module}`. + /// * `folders/{folder}/eventThreatDetectionSettings/customModules/{module}`. + /// * `projects/{project}/eventThreatDetectionSettings/customModules/{module}`. + /// + [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 "config" field. + public const int ConfigFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Struct config_; + /// + /// Config for the module. For the resident module, its config value is defined + /// at this level. For the inherited module, its config value is inherited from + /// the ancestor module. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Struct Config { + get { return config_; } + set { + config_ = value; + } + } + + /// Field number for the "ancestor_module" field. + public const int AncestorModuleFieldNumber = 3; + private string ancestorModule_ = ""; + /// + /// Output only. The closest ancestor module that this module inherits the + /// enablement state from. The format is the same as the + /// EventThreatDetectionCustomModule resource name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AncestorModule { + get { return ancestorModule_; } + set { + ancestorModule_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "enablement_state" field. + public const int EnablementStateFieldNumber = 4; + private global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule.Types.EnablementState enablementState_ = global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule.Types.EnablementState.Unspecified; + /// + /// The state of enablement for the module at the given level of the hierarchy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule.Types.EnablementState EnablementState { + get { return enablementState_; } + set { + enablementState_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 5; + private string type_ = ""; + /// + /// Type for the module. e.g. CONFIGURABLE_BAD_IP. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 6; + private string displayName_ = ""; + /// + /// The human readable name to be displayed for the module. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 7; + private string description_ = ""; + /// + /// The description for the module. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time the module was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "last_editor" field. + public const int LastEditorFieldNumber = 9; + private string lastEditor_ = ""; + /// + /// Output only. The editor the module was last updated by. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LastEditor { + get { return lastEditor_; } + set { + lastEditor_ = 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 EventThreatDetectionCustomModule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EventThreatDetectionCustomModule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(Config, other.Config)) return false; + if (AncestorModule != other.AncestorModule) return false; + if (EnablementState != other.EnablementState) return false; + if (Type != other.Type) return false; + if (DisplayName != other.DisplayName) return false; + if (Description != other.Description) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (LastEditor != other.LastEditor) 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 (config_ != null) hash ^= Config.GetHashCode(); + if (AncestorModule.Length != 0) hash ^= AncestorModule.GetHashCode(); + if (EnablementState != global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule.Types.EnablementState.Unspecified) hash ^= EnablementState.GetHashCode(); + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (LastEditor.Length != 0) hash ^= LastEditor.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 (config_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Config); + } + if (AncestorModule.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AncestorModule); + } + if (EnablementState != global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule.Types.EnablementState.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) EnablementState); + } + if (Type.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Type); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Description); + } + if (updateTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(UpdateTime); + } + if (LastEditor.Length != 0) { + output.WriteRawTag(74); + output.WriteString(LastEditor); + } + 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 (config_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Config); + } + if (AncestorModule.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AncestorModule); + } + if (EnablementState != global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule.Types.EnablementState.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) EnablementState); + } + if (Type.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Type); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(50); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Description); + } + if (updateTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(UpdateTime); + } + if (LastEditor.Length != 0) { + output.WriteRawTag(74); + output.WriteString(LastEditor); + } + 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 (config_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Config); + } + if (AncestorModule.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AncestorModule); + } + if (EnablementState != global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule.Types.EnablementState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnablementState); + } + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (LastEditor.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LastEditor); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EventThreatDetectionCustomModule other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.config_ != null) { + if (config_ == null) { + Config = new global::Google.Protobuf.WellKnownTypes.Struct(); + } + Config.MergeFrom(other.Config); + } + if (other.AncestorModule.Length != 0) { + AncestorModule = other.AncestorModule; + } + if (other.EnablementState != global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule.Types.EnablementState.Unspecified) { + EnablementState = other.EnablementState; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.LastEditor.Length != 0) { + LastEditor = other.LastEditor; + } + _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 (config_ == null) { + Config = new global::Google.Protobuf.WellKnownTypes.Struct(); + } + input.ReadMessage(Config); + break; + } + case 26: { + AncestorModule = input.ReadString(); + break; + } + case 32: { + EnablementState = (global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule.Types.EnablementState) input.ReadEnum(); + break; + } + case 42: { + Type = input.ReadString(); + break; + } + case 50: { + DisplayName = input.ReadString(); + break; + } + case 58: { + Description = input.ReadString(); + break; + } + case 66: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 74: { + LastEditor = 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: { + if (config_ == null) { + Config = new global::Google.Protobuf.WellKnownTypes.Struct(); + } + input.ReadMessage(Config); + break; + } + case 26: { + AncestorModule = input.ReadString(); + break; + } + case 32: { + EnablementState = (global::Google.Cloud.SecurityCenter.V1.EventThreatDetectionCustomModule.Types.EnablementState) input.ReadEnum(); + break; + } + case 42: { + Type = input.ReadString(); + break; + } + case 50: { + DisplayName = input.ReadString(); + break; + } + case 58: { + Description = input.ReadString(); + break; + } + case 66: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 74: { + LastEditor = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the EventThreatDetectionCustomModule message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The enablement state of the module. + /// + public enum EnablementState { + /// + /// Unspecified enablement state. + /// + [pbr::OriginalName("ENABLEMENT_STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The module is enabled at the given level. + /// + [pbr::OriginalName("ENABLED")] Enabled = 1, + /// + /// The module is disabled at the given level. + /// + [pbr::OriginalName("DISABLED")] Disabled = 2, + /// + /// When the enablement state is inherited. + /// + [pbr::OriginalName("INHERITED")] Inherited = 3, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EventThreatDetectionCustomModuleResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EventThreatDetectionCustomModuleResourceNames.g.cs new file mode 100755 index 000000000000..02de7afd0e04 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EventThreatDetectionCustomModuleResourceNames.g.cs @@ -0,0 +1,430 @@ +// 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.SecurityCenter.V1; +using sys = System; + +namespace Google.Cloud.SecurityCenter.V1 +{ + /// Resource name for the EventThreatDetectionCustomModule resource. + public sealed partial class EventThreatDetectionCustomModuleName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// organizations/{organization}/eventThreatDetectionSettings/customModules/{module}. + /// + OrganizationModule = 1, + + /// + /// A resource name with pattern folders/{folder}/eventThreatDetectionSettings/customModules/{module} + /// . + /// + FolderModule = 2, + + /// + /// A resource name with pattern projects/{project}/eventThreatDetectionSettings/customModules/{module} + /// . + /// + ProjectModule = 3, + } + + private static gax::PathTemplate s_organizationModule = new gax::PathTemplate("organizations/{organization}/eventThreatDetectionSettings/customModules/{module}"); + + private static gax::PathTemplate s_folderModule = new gax::PathTemplate("folders/{folder}/eventThreatDetectionSettings/customModules/{module}"); + + private static gax::PathTemplate s_projectModule = new gax::PathTemplate("projects/{project}/eventThreatDetectionSettings/customModules/{module}"); + + /// + /// Creates a containing an unparsed resource name. + /// + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static EventThreatDetectionCustomModuleName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new EventThreatDetectionCustomModuleName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// organizations/{organization}/eventThreatDetectionSettings/customModules/{module}. + /// + /// The Organization ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// A new instance of constructed from the provided ids. + /// + public static EventThreatDetectionCustomModuleName FromOrganizationModule(string organizationId, string moduleId) => + new EventThreatDetectionCustomModuleName(ResourceNameType.OrganizationModule, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), moduleId: gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))); + + /// + /// Creates a with the pattern + /// folders/{folder}/eventThreatDetectionSettings/customModules/{module}. + /// + /// The Folder ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// A new instance of constructed from the provided ids. + /// + public static EventThreatDetectionCustomModuleName FromFolderModule(string folderId, string moduleId) => + new EventThreatDetectionCustomModuleName(ResourceNameType.FolderModule, folderId: gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), moduleId: gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))); + + /// + /// Creates a with the pattern + /// projects/{project}/eventThreatDetectionSettings/customModules/{module}. + /// + /// The Project ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// A new instance of constructed from the provided ids. + /// + public static EventThreatDetectionCustomModuleName FromProjectModule(string projectId, string moduleId) => + new EventThreatDetectionCustomModuleName(ResourceNameType.ProjectModule, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), moduleId: gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))); + + /// + /// Formats the IDs into the string representation of this + /// with pattern organizations/{organization}/eventThreatDetectionSettings/customModules/{module}. + /// + /// The Organization ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/eventThreatDetectionSettings/customModules/{module}. + /// + public static string Format(string organizationId, string moduleId) => + FormatOrganizationModule(organizationId, moduleId); + + /// + /// Formats the IDs into the string representation of this + /// with pattern organizations/{organization}/eventThreatDetectionSettings/customModules/{module}. + /// + /// The Organization ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/eventThreatDetectionSettings/customModules/{module}. + /// + public static string FormatOrganizationModule(string organizationId, string moduleId) => + s_organizationModule.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))); + + /// + /// Formats the IDs into the string representation of this + /// with pattern folders/{folder}/eventThreatDetectionSettings/customModules/{module}. + /// + /// The Folder ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// folders/{folder}/eventThreatDetectionSettings/customModules/{module}. + /// + public static string FormatFolderModule(string folderId, string moduleId) => + s_folderModule.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))); + + /// + /// Formats the IDs into the string representation of this + /// with pattern projects/{project}/eventThreatDetectionSettings/customModules/{module}. + /// + /// The Project ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/eventThreatDetectionSettings/customModules/{module}. + /// + public static string FormatProjectModule(string projectId, string moduleId) => + s_projectModule.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))); + + /// + /// Parses the given resource name string into a new + /// instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// organizations/{organization}/eventThreatDetectionSettings/customModules/{module} + /// + /// + /// + /// folders/{folder}/eventThreatDetectionSettings/customModules/{module} + /// + /// + /// projects/{project}/eventThreatDetectionSettings/customModules/{module} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// The parsed if successful. + public static EventThreatDetectionCustomModuleName Parse(string eventThreatDetectionCustomModuleName) => + Parse(eventThreatDetectionCustomModuleName, 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: + /// + /// + /// + /// organizations/{organization}/eventThreatDetectionSettings/customModules/{module} + /// + /// + /// + /// folders/{folder}/eventThreatDetectionSettings/customModules/{module} + /// + /// + /// projects/{project}/eventThreatDetectionSettings/customModules/{module} + /// + /// + /// 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 EventThreatDetectionCustomModuleName Parse(string eventThreatDetectionCustomModuleName, bool allowUnparsed) => + TryParse(eventThreatDetectionCustomModuleName, allowUnparsed, out EventThreatDetectionCustomModuleName 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: + /// + /// + /// + /// organizations/{organization}/eventThreatDetectionSettings/customModules/{module} + /// + /// + /// + /// folders/{folder}/eventThreatDetectionSettings/customModules/{module} + /// + /// + /// projects/{project}/eventThreatDetectionSettings/customModules/{module} + /// + /// + /// + /// + /// 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 eventThreatDetectionCustomModuleName, out EventThreatDetectionCustomModuleName result) => + TryParse(eventThreatDetectionCustomModuleName, 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: + /// + /// + /// + /// organizations/{organization}/eventThreatDetectionSettings/customModules/{module} + /// + /// + /// + /// folders/{folder}/eventThreatDetectionSettings/customModules/{module} + /// + /// + /// projects/{project}/eventThreatDetectionSettings/customModules/{module} + /// + /// + /// 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 eventThreatDetectionCustomModuleName, bool allowUnparsed, out EventThreatDetectionCustomModuleName result) + { + gax::GaxPreconditions.CheckNotNull(eventThreatDetectionCustomModuleName, nameof(eventThreatDetectionCustomModuleName)); + gax::TemplatedResourceName resourceName; + if (s_organizationModule.TryParseName(eventThreatDetectionCustomModuleName, out resourceName)) + { + result = FromOrganizationModule(resourceName[0], resourceName[1]); + return true; + } + if (s_folderModule.TryParseName(eventThreatDetectionCustomModuleName, out resourceName)) + { + result = FromFolderModule(resourceName[0], resourceName[1]); + return true; + } + if (s_projectModule.TryParseName(eventThreatDetectionCustomModuleName, out resourceName)) + { + result = FromProjectModule(resourceName[0], resourceName[1]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(eventThreatDetectionCustomModuleName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private EventThreatDetectionCustomModuleName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string folderId = null, string moduleId = null, string organizationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + FolderId = folderId; + ModuleId = moduleId; + OrganizationId = organizationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component + /// parts of pattern organizations/{organization}/eventThreatDetectionSettings/customModules/{module} + /// + /// The Organization ID. Must not be null or empty. + /// The Module ID. Must not be null or empty. + public EventThreatDetectionCustomModuleName(string organizationId, string moduleId) : this(ResourceNameType.OrganizationModule, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), moduleId: gax::GaxPreconditions.CheckNotNullOrEmpty(moduleId, nameof(moduleId))) + { + } + + /// 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 Folder ID. May be null, depending on which resource name is contained by this instance. + /// + public string FolderId { get; } + + /// + /// The Module ID. May be null, depending on which resource name is contained by this instance. + /// + public string ModuleId { get; } + + /// + /// The Organization ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string OrganizationId { get; } + + /// + /// The Project ID. May be null, depending on which resource name is contained by this instance. + /// + public string ProjectId { 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.OrganizationModule: return s_organizationModule.Expand(OrganizationId, ModuleId); + case ResourceNameType.FolderModule: return s_folderModule.Expand(FolderId, ModuleId); + case ResourceNameType.ProjectModule: return s_projectModule.Expand(ProjectId, ModuleId); + 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 EventThreatDetectionCustomModuleName); + + /// + public bool Equals(EventThreatDetectionCustomModuleName 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 ==(EventThreatDetectionCustomModuleName a, EventThreatDetectionCustomModuleName 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 !=(EventThreatDetectionCustomModuleName a, EventThreatDetectionCustomModuleName b) => !(a == b); + } + + public partial class EventThreatDetectionCustomModule + { + /// + /// -typed view over the resource + /// name property. + /// + public gcsv::EventThreatDetectionCustomModuleName EventThreatDetectionCustomModuleName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::EventThreatDetectionCustomModuleName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + + /// + /// -typed view over the + /// resource name property. + /// + public gcsv::EventThreatDetectionCustomModuleName AncestorModuleAsEventThreatDetectionCustomModuleName + { + get => string.IsNullOrEmpty(AncestorModule) ? null : gcsv::EventThreatDetectionCustomModuleName.Parse(AncestorModule, allowUnparsed: true); + set => AncestorModule = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EventThreatDetectionCustomModuleValidationErrors.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EventThreatDetectionCustomModuleValidationErrors.g.cs new file mode 100755 index 000000000000..330a406c93fb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/EventThreatDetectionCustomModuleValidationErrors.g.cs @@ -0,0 +1,814 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/event_threat_detection_custom_module_validation_errors.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/event_threat_detection_custom_module_validation_errors.proto + public static partial class EventThreatDetectionCustomModuleValidationErrorsReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/event_threat_detection_custom_module_validation_errors.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EventThreatDetectionCustomModuleValidationErrorsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cltnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZXZlbnRfdGhyZWF0", + "X2RldGVjdGlvbl9jdXN0b21fbW9kdWxlX3ZhbGlkYXRpb25fZXJyb3JzLnBy", + "b3RvEh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEiawocQ3VzdG9t", + "TW9kdWxlVmFsaWRhdGlvbkVycm9ycxJLCgZlcnJvcnMYASADKAsyOy5nb29n", + "bGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEuQ3VzdG9tTW9kdWxlVmFsaWRh", + "dGlvbkVycm9yItIBChtDdXN0b21Nb2R1bGVWYWxpZGF0aW9uRXJyb3ISEwoL", + "ZGVzY3JpcHRpb24YASABKAkSEgoKZmllbGRfcGF0aBgCIAEoCRI8CgVzdGFy", + "dBgDIAEoCzIoLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5Qb3Np", + "dGlvbkgAiAEBEjoKA2VuZBgEIAEoCzIoLmdvb2dsZS5jbG91ZC5zZWN1cml0", + "eWNlbnRlci52MS5Qb3NpdGlvbkgBiAEBQggKBl9zdGFydEIGCgRfZW5kIjYK", + "CFBvc2l0aW9uEhMKC2xpbmVfbnVtYmVyGAEgASgFEhUKDWNvbHVtbl9udW1i", + "ZXIYAiABKAVCjwIKImNvbS5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIu", + "djFCNUV2ZW50VGhyZWF0RGV0ZWN0aW9uQ3VzdG9tTW9kdWxlVmFsaWRhdGlv", + "bkVycm9yc1Byb3RvUAFaSmNsb3VkLmdvb2dsZS5jb20vZ28vc2VjdXJpdHlj", + "ZW50ZXIvYXBpdjEvc2VjdXJpdHljZW50ZXJwYjtzZWN1cml0eWNlbnRlcnBi", + "qgIeR29vZ2xlLkNsb3VkLlNlY3VyaXR5Q2VudGVyLlYxygIeR29vZ2xlXENs", + "b3VkXFNlY3VyaXR5Q2VudGVyXFYx6gIhR29vZ2xlOjpDbG91ZDo6U2VjdXJp", + "dHlDZW50ZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.CustomModuleValidationErrors), global::Google.Cloud.SecurityCenter.V1.CustomModuleValidationErrors.Parser, new[]{ "Errors" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.CustomModuleValidationError), global::Google.Cloud.SecurityCenter.V1.CustomModuleValidationError.Parser, new[]{ "Description", "FieldPath", "Start", "End" }, new[]{ "Start", "End" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Position), global::Google.Cloud.SecurityCenter.V1.Position.Parser, new[]{ "LineNumber", "ColumnNumber" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A list of zero or more errors encountered while validating the uploaded + /// configuration of an Event Threat Detection Custom Module. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CustomModuleValidationErrors : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomModuleValidationErrors()); + 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.SecurityCenter.V1.EventThreatDetectionCustomModuleValidationErrorsReflection.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 CustomModuleValidationErrors() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomModuleValidationErrors(CustomModuleValidationErrors other) : this() { + errors_ = other.errors_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomModuleValidationErrors Clone() { + return new CustomModuleValidationErrors(this); + } + + /// Field number for the "errors" field. + public const int ErrorsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_errors_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecurityCenter.V1.CustomModuleValidationError.Parser); + private readonly pbc::RepeatedField errors_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Errors { + get { return errors_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CustomModuleValidationErrors); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CustomModuleValidationErrors other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!errors_.Equals(other.errors_)) 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 ^= errors_.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 + errors_.WriteTo(output, _repeated_errors_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) { + errors_.WriteTo(ref output, _repeated_errors_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 += errors_.CalculateSize(_repeated_errors_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CustomModuleValidationErrors other) { + if (other == null) { + return; + } + errors_.Add(other.errors_); + _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: { + errors_.AddEntriesFrom(input, _repeated_errors_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: { + errors_.AddEntriesFrom(ref input, _repeated_errors_codec); + break; + } + } + } + } + #endif + + } + + /// + /// An error encountered while validating the uploaded configuration of an + /// Event Threat Detection Custom Module. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CustomModuleValidationError : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomModuleValidationError()); + 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.SecurityCenter.V1.EventThreatDetectionCustomModuleValidationErrorsReflection.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 CustomModuleValidationError() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomModuleValidationError(CustomModuleValidationError other) : this() { + description_ = other.description_; + fieldPath_ = other.fieldPath_; + start_ = other.start_ != null ? other.start_.Clone() : null; + end_ = other.end_ != null ? other.end_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomModuleValidationError Clone() { + return new CustomModuleValidationError(this); + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 1; + private string description_ = ""; + /// + /// A description of the error, suitable for human consumption. Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "field_path" field. + public const int FieldPathFieldNumber = 2; + private string fieldPath_ = ""; + /// + /// The path, in RFC 8901 JSON Pointer format, to the field that failed + /// validation. This may be left empty if no specific field is affected. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FieldPath { + get { return fieldPath_; } + set { + fieldPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start" field. + public const int StartFieldNumber = 3; + private global::Google.Cloud.SecurityCenter.V1.Position start_; + /// + /// The initial position of the error in the uploaded text version of the + /// module. This field may be omitted if no specific position applies, or if + /// one could not be computed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Position Start { + get { return start_; } + set { + start_ = value; + } + } + + /// Field number for the "end" field. + public const int EndFieldNumber = 4; + private global::Google.Cloud.SecurityCenter.V1.Position end_; + /// + /// The end position of the error in the uploaded text version of the + /// module. This field may be omitted if no specific position applies, or if + /// one could not be computed.. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Position End { + get { return end_; } + set { + end_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CustomModuleValidationError); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CustomModuleValidationError other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Description != other.Description) return false; + if (FieldPath != other.FieldPath) return false; + if (!object.Equals(Start, other.Start)) return false; + if (!object.Equals(End, other.End)) 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 (Description.Length != 0) hash ^= Description.GetHashCode(); + if (FieldPath.Length != 0) hash ^= FieldPath.GetHashCode(); + if (start_ != null) hash ^= Start.GetHashCode(); + if (end_ != null) hash ^= End.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 (Description.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Description); + } + if (FieldPath.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FieldPath); + } + if (start_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Start); + } + if (end_ != null) { + output.WriteRawTag(34); + output.WriteMessage(End); + } + 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 (Description.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Description); + } + if (FieldPath.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FieldPath); + } + if (start_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Start); + } + if (end_ != null) { + output.WriteRawTag(34); + output.WriteMessage(End); + } + 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 (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (FieldPath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FieldPath); + } + if (start_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start); + } + if (end_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(End); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CustomModuleValidationError other) { + if (other == null) { + return; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.FieldPath.Length != 0) { + FieldPath = other.FieldPath; + } + if (other.start_ != null) { + if (start_ == null) { + Start = new global::Google.Cloud.SecurityCenter.V1.Position(); + } + Start.MergeFrom(other.Start); + } + if (other.end_ != null) { + if (end_ == null) { + End = new global::Google.Cloud.SecurityCenter.V1.Position(); + } + End.MergeFrom(other.End); + } + _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: { + Description = input.ReadString(); + break; + } + case 18: { + FieldPath = input.ReadString(); + break; + } + case 26: { + if (start_ == null) { + Start = new global::Google.Cloud.SecurityCenter.V1.Position(); + } + input.ReadMessage(Start); + break; + } + case 34: { + if (end_ == null) { + End = new global::Google.Cloud.SecurityCenter.V1.Position(); + } + input.ReadMessage(End); + 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: { + Description = input.ReadString(); + break; + } + case 18: { + FieldPath = input.ReadString(); + break; + } + case 26: { + if (start_ == null) { + Start = new global::Google.Cloud.SecurityCenter.V1.Position(); + } + input.ReadMessage(Start); + break; + } + case 34: { + if (end_ == null) { + End = new global::Google.Cloud.SecurityCenter.V1.Position(); + } + input.ReadMessage(End); + break; + } + } + } + } + #endif + + } + + /// + /// A position in the uploaded text version of a module. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Position : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Position()); + 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.SecurityCenter.V1.EventThreatDetectionCustomModuleValidationErrorsReflection.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 Position() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Position(Position other) : this() { + lineNumber_ = other.lineNumber_; + columnNumber_ = other.columnNumber_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Position Clone() { + return new Position(this); + } + + /// Field number for the "line_number" field. + public const int LineNumberFieldNumber = 1; + private int lineNumber_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LineNumber { + get { return lineNumber_; } + set { + lineNumber_ = value; + } + } + + /// Field number for the "column_number" field. + public const int ColumnNumberFieldNumber = 2; + private int columnNumber_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ColumnNumber { + get { return columnNumber_; } + set { + columnNumber_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Position); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Position other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LineNumber != other.LineNumber) return false; + if (ColumnNumber != other.ColumnNumber) 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 (LineNumber != 0) hash ^= LineNumber.GetHashCode(); + if (ColumnNumber != 0) hash ^= ColumnNumber.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 (LineNumber != 0) { + output.WriteRawTag(8); + output.WriteInt32(LineNumber); + } + if (ColumnNumber != 0) { + output.WriteRawTag(16); + output.WriteInt32(ColumnNumber); + } + 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 (LineNumber != 0) { + output.WriteRawTag(8); + output.WriteInt32(LineNumber); + } + if (ColumnNumber != 0) { + output.WriteRawTag(16); + output.WriteInt32(ColumnNumber); + } + 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 (LineNumber != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(LineNumber); + } + if (ColumnNumber != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ColumnNumber); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Position other) { + if (other == null) { + return; + } + if (other.LineNumber != 0) { + LineNumber = other.LineNumber; + } + if (other.ColumnNumber != 0) { + ColumnNumber = other.ColumnNumber; + } + _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 8: { + LineNumber = input.ReadInt32(); + break; + } + case 16: { + ColumnNumber = 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 8: { + LineNumber = input.ReadInt32(); + break; + } + case 16: { + ColumnNumber = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Exfiltration.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Exfiltration.g.cs new file mode 100755 index 000000000000..abbb632c501a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Exfiltration.g.cs @@ -0,0 +1,545 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/exfiltration.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/exfiltration.proto + public static partial class ExfiltrationReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/exfiltration.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ExfiltrationReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjFnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZXhmaWx0cmF0aW9u", + "LnByb3RvEh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEirwEKDEV4", + "ZmlsdHJhdGlvbhI+Cgdzb3VyY2VzGAEgAygLMi0uZ29vZ2xlLmNsb3VkLnNl", + "Y3VyaXR5Y2VudGVyLnYxLkV4ZmlsUmVzb3VyY2USPgoHdGFyZ2V0cxgCIAMo", + "CzItLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5FeGZpbFJlc291", + "cmNlEh8KF3RvdGFsX2V4ZmlsdHJhdGVkX2J5dGVzGAMgASgDIjEKDUV4Zmls", + "UmVzb3VyY2USDAoEbmFtZRgBIAEoCRISCgpjb21wb25lbnRzGAIgAygJQusB", + "CiJjb20uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxQhFFeGZpbHRy", + "YXRpb25Qcm90b1ABWkpjbG91ZC5nb29nbGUuY29tL2dvL3NlY3VyaXR5Y2Vu", + "dGVyL2FwaXYxL3NlY3VyaXR5Y2VudGVycGI7c2VjdXJpdHljZW50ZXJwYqoC", + "Hkdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5WMcoCHkdvb2dsZVxDbG91", + "ZFxTZWN1cml0eUNlbnRlclxWMeoCIUdvb2dsZTo6Q2xvdWQ6OlNlY3VyaXR5", + "Q2VudGVyOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Exfiltration), global::Google.Cloud.SecurityCenter.V1.Exfiltration.Parser, new[]{ "Sources", "Targets", "TotalExfiltratedBytes" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.ExfilResource), global::Google.Cloud.SecurityCenter.V1.ExfilResource.Parser, new[]{ "Name", "Components" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Exfiltration represents a data exfiltration attempt from one or more sources + /// to one or more targets. The `sources` attribute lists the sources of the + /// exfiltrated data. The `targets` attribute lists the destinations the data was + /// copied to. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Exfiltration : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Exfiltration()); + 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.SecurityCenter.V1.ExfiltrationReflection.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 Exfiltration() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Exfiltration(Exfiltration other) : this() { + sources_ = other.sources_.Clone(); + targets_ = other.targets_.Clone(); + totalExfiltratedBytes_ = other.totalExfiltratedBytes_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Exfiltration Clone() { + return new Exfiltration(this); + } + + /// Field number for the "sources" field. + public const int SourcesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_sources_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecurityCenter.V1.ExfilResource.Parser); + private readonly pbc::RepeatedField sources_ = new pbc::RepeatedField(); + /// + /// If there are multiple sources, then the data is considered "joined" between + /// them. For instance, BigQuery can join multiple tables, and each + /// table would be considered a source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Sources { + get { return sources_; } + } + + /// Field number for the "targets" field. + public const int TargetsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_targets_codec + = pb::FieldCodec.ForMessage(18, global::Google.Cloud.SecurityCenter.V1.ExfilResource.Parser); + private readonly pbc::RepeatedField targets_ = new pbc::RepeatedField(); + /// + /// If there are multiple targets, each target would get a complete copy of the + /// "joined" source data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Targets { + get { return targets_; } + } + + /// Field number for the "total_exfiltrated_bytes" field. + public const int TotalExfiltratedBytesFieldNumber = 3; + private long totalExfiltratedBytes_; + /// + /// Total exfiltrated bytes processed for the entire job. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TotalExfiltratedBytes { + get { return totalExfiltratedBytes_; } + set { + totalExfiltratedBytes_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Exfiltration); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Exfiltration other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!sources_.Equals(other.sources_)) return false; + if(!targets_.Equals(other.targets_)) return false; + if (TotalExfiltratedBytes != other.TotalExfiltratedBytes) 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 ^= sources_.GetHashCode(); + hash ^= targets_.GetHashCode(); + if (TotalExfiltratedBytes != 0L) hash ^= TotalExfiltratedBytes.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 + sources_.WriteTo(output, _repeated_sources_codec); + targets_.WriteTo(output, _repeated_targets_codec); + if (TotalExfiltratedBytes != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalExfiltratedBytes); + } + 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) { + sources_.WriteTo(ref output, _repeated_sources_codec); + targets_.WriteTo(ref output, _repeated_targets_codec); + if (TotalExfiltratedBytes != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalExfiltratedBytes); + } + 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 += sources_.CalculateSize(_repeated_sources_codec); + size += targets_.CalculateSize(_repeated_targets_codec); + if (TotalExfiltratedBytes != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalExfiltratedBytes); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Exfiltration other) { + if (other == null) { + return; + } + sources_.Add(other.sources_); + targets_.Add(other.targets_); + if (other.TotalExfiltratedBytes != 0L) { + TotalExfiltratedBytes = other.TotalExfiltratedBytes; + } + _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: { + sources_.AddEntriesFrom(input, _repeated_sources_codec); + break; + } + case 18: { + targets_.AddEntriesFrom(input, _repeated_targets_codec); + break; + } + case 24: { + TotalExfiltratedBytes = 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: { + sources_.AddEntriesFrom(ref input, _repeated_sources_codec); + break; + } + case 18: { + targets_.AddEntriesFrom(ref input, _repeated_targets_codec); + break; + } + case 24: { + TotalExfiltratedBytes = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Resource where data was exfiltrated from or exfiltrated to. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExfilResource : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExfilResource()); + 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.SecurityCenter.V1.ExfiltrationReflection.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 ExfilResource() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExfilResource(ExfilResource other) : this() { + name_ = other.name_; + components_ = other.components_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExfilResource Clone() { + return new ExfilResource(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The resource's [full resource + /// name](https://cloud.google.com/apis/design/resource_names#full_resource_name). + /// + [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 "components" field. + public const int ComponentsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_components_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField components_ = new pbc::RepeatedField(); + /// + /// Subcomponents of the asset that was exfiltrated, like URIs used during + /// exfiltration, table names, databases, and filenames. For example, multiple + /// tables might have been exfiltrated from the same Cloud SQL instance, or + /// multiple files might have been exfiltrated from the same Cloud Storage + /// bucket. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Components { + get { return components_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExfilResource); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExfilResource other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!components_.Equals(other.components_)) 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(); + hash ^= components_.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); + } + components_.WriteTo(output, _repeated_components_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) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + components_.WriteTo(ref output, _repeated_components_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; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += components_.CalculateSize(_repeated_components_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExfilResource other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + components_.Add(other.components_); + _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: { + components_.AddEntriesFrom(input, _repeated_components_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: { + Name = input.ReadString(); + break; + } + case 18: { + components_.AddEntriesFrom(ref input, _repeated_components_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ExternalSystem.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ExternalSystem.g.cs new file mode 100755 index 000000000000..aa9c18196e6a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ExternalSystem.g.cs @@ -0,0 +1,1123 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/external_system.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/external_system.proto + public static partial class ExternalSystemReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/external_system.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ExternalSystemReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjRnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZXh0ZXJuYWxfc3lz", + "dGVtLnByb3RvEh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEaGWdv", + "b2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1l", + "c3RhbXAucHJvdG8iowcKDkV4dGVybmFsU3lzdGVtEgwKBG5hbWUYASABKAkS", + "EQoJYXNzaWduZWVzGAIgAygJEhQKDGV4dGVybmFsX3VpZBgDIAEoCRIOCgZz", + "dGF0dXMYBCABKAkSPwobZXh0ZXJuYWxfc3lzdGVtX3VwZGF0ZV90aW1lGAUg", + "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIQCghjYXNlX3VyaRgG", + "IAEoCRIVCg1jYXNlX3ByaW9yaXR5GAcgASgJEiwKCGNhc2Vfc2xhGAkgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBI0ChBjYXNlX2NyZWF0ZV90", + "aW1lGAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIzCg9jYXNl", + "X2Nsb3NlX3RpbWUYCyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "Ek4KC3RpY2tldF9pbmZvGAggASgLMjkuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5", + "Y2VudGVyLnYxLkV4dGVybmFsU3lzdGVtLlRpY2tldEluZm8ajQEKClRpY2tl", + "dEluZm8SCgoCaWQYASABKAkSEAoIYXNzaWduZWUYAiABKAkSEwoLZGVzY3Jp", + "cHRpb24YAyABKAkSCwoDdXJpGAQgASgJEg4KBnN0YXR1cxgFIAEoCRIvCgt1", + "cGRhdGVfdGltZRgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXA6", + "5gLqQeICCixzZWN1cml0eWNlbnRlci5nb29nbGVhcGlzLmNvbS9FeHRlcm5h", + "bFN5c3RlbRJhb3JnYW5pemF0aW9ucy97b3JnYW5pemF0aW9ufS9zb3VyY2Vz", + "L3tzb3VyY2V9L2ZpbmRpbmdzL3tmaW5kaW5nfS9leHRlcm5hbFN5c3RlbXMv", + "e2V4dGVybmFsc3lzdGVtfRJVZm9sZGVycy97Zm9sZGVyfS9zb3VyY2VzL3tz", + "b3VyY2V9L2ZpbmRpbmdzL3tmaW5kaW5nfS9leHRlcm5hbFN5c3RlbXMve2V4", + "dGVybmFsc3lzdGVtfRJXcHJvamVjdHMve3Byb2plY3R9L3NvdXJjZXMve3Nv", + "dXJjZX0vZmluZGluZ3Mve2ZpbmRpbmd9L2V4dGVybmFsU3lzdGVtcy97ZXh0", + "ZXJuYWxzeXN0ZW19Kg9leHRlcm5hbFN5c3RlbXMyDmV4dGVybmFsU3lzdGVt", + "Qu0BCiJjb20uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxQhNFeHRl", + "cm5hbFN5c3RlbVByb3RvUAFaSmNsb3VkLmdvb2dsZS5jb20vZ28vc2VjdXJp", + "dHljZW50ZXIvYXBpdjEvc2VjdXJpdHljZW50ZXJwYjtzZWN1cml0eWNlbnRl", + "cnBiqgIeR29vZ2xlLkNsb3VkLlNlY3VyaXR5Q2VudGVyLlYxygIeR29vZ2xl", + "XENsb3VkXFNlY3VyaXR5Q2VudGVyXFYx6gIhR29vZ2xlOjpDbG91ZDo6U2Vj", + "dXJpdHlDZW50ZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.ExternalSystem), global::Google.Cloud.SecurityCenter.V1.ExternalSystem.Parser, new[]{ "Name", "Assignees", "ExternalUid", "Status", "ExternalSystemUpdateTime", "CaseUri", "CasePriority", "CaseSla", "CaseCreateTime", "CaseCloseTime", "TicketInfo" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.ExternalSystem.Types.TicketInfo), global::Google.Cloud.SecurityCenter.V1.ExternalSystem.Types.TicketInfo.Parser, new[]{ "Id", "Assignee", "Description", "Uri", "Status", "UpdateTime" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + /// + /// Representation of third party SIEM/SOAR fields within SCC. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExternalSystem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalSystem()); + 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.SecurityCenter.V1.ExternalSystemReflection.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 ExternalSystem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalSystem(ExternalSystem other) : this() { + name_ = other.name_; + assignees_ = other.assignees_.Clone(); + externalUid_ = other.externalUid_; + status_ = other.status_; + externalSystemUpdateTime_ = other.externalSystemUpdateTime_ != null ? other.externalSystemUpdateTime_.Clone() : null; + caseUri_ = other.caseUri_; + casePriority_ = other.casePriority_; + caseSla_ = other.caseSla_ != null ? other.caseSla_.Clone() : null; + caseCreateTime_ = other.caseCreateTime_ != null ? other.caseCreateTime_.Clone() : null; + caseCloseTime_ = other.caseCloseTime_ != null ? other.caseCloseTime_.Clone() : null; + ticketInfo_ = other.ticketInfo_ != null ? other.ticketInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalSystem Clone() { + return new ExternalSystem(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Full resource name of the external system, for example: + /// "organizations/1234/sources/5678/findings/123456/externalSystems/jira", + /// "folders/1234/sources/5678/findings/123456/externalSystems/jira", + /// "projects/1234/sources/5678/findings/123456/externalSystems/jira" + /// + [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 "assignees" field. + public const int AssigneesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_assignees_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField assignees_ = new pbc::RepeatedField(); + /// + /// References primary/secondary etc assignees in the external system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Assignees { + get { return assignees_; } + } + + /// Field number for the "external_uid" field. + public const int ExternalUidFieldNumber = 3; + private string externalUid_ = ""; + /// + /// The identifier that's used to track the finding's corresponding case in the + /// external system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExternalUid { + get { return externalUid_; } + set { + externalUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 4; + private string status_ = ""; + /// + /// The most recent status of the finding's corresponding case, as reported by + /// the external system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Status { + get { return status_; } + set { + status_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "external_system_update_time" field. + public const int ExternalSystemUpdateTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp externalSystemUpdateTime_; + /// + /// The time when the case was last updated, as reported by the external + /// system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExternalSystemUpdateTime { + get { return externalSystemUpdateTime_; } + set { + externalSystemUpdateTime_ = value; + } + } + + /// Field number for the "case_uri" field. + public const int CaseUriFieldNumber = 6; + private string caseUri_ = ""; + /// + /// The link to the finding's corresponding case in the external system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CaseUri { + get { return caseUri_; } + set { + caseUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "case_priority" field. + public const int CasePriorityFieldNumber = 7; + private string casePriority_ = ""; + /// + /// The priority of the finding's corresponding case in the external system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CasePriority { + get { return casePriority_; } + set { + casePriority_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "case_sla" field. + public const int CaseSlaFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp caseSla_; + /// + /// The SLA of the finding's corresponding case in the external system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CaseSla { + get { return caseSla_; } + set { + caseSla_ = value; + } + } + + /// Field number for the "case_create_time" field. + public const int CaseCreateTimeFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp caseCreateTime_; + /// + /// The time when the case was created, as reported by the external system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CaseCreateTime { + get { return caseCreateTime_; } + set { + caseCreateTime_ = value; + } + } + + /// Field number for the "case_close_time" field. + public const int CaseCloseTimeFieldNumber = 11; + private global::Google.Protobuf.WellKnownTypes.Timestamp caseCloseTime_; + /// + /// The time when the case was closed, as reported by the external system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CaseCloseTime { + get { return caseCloseTime_; } + set { + caseCloseTime_ = value; + } + } + + /// Field number for the "ticket_info" field. + public const int TicketInfoFieldNumber = 8; + private global::Google.Cloud.SecurityCenter.V1.ExternalSystem.Types.TicketInfo ticketInfo_; + /// + /// Information about the ticket, if any, that is being used to track the + /// resolution of the issue that is identified by this finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.ExternalSystem.Types.TicketInfo TicketInfo { + get { return ticketInfo_; } + set { + ticketInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExternalSystem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExternalSystem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!assignees_.Equals(other.assignees_)) return false; + if (ExternalUid != other.ExternalUid) return false; + if (Status != other.Status) return false; + if (!object.Equals(ExternalSystemUpdateTime, other.ExternalSystemUpdateTime)) return false; + if (CaseUri != other.CaseUri) return false; + if (CasePriority != other.CasePriority) return false; + if (!object.Equals(CaseSla, other.CaseSla)) return false; + if (!object.Equals(CaseCreateTime, other.CaseCreateTime)) return false; + if (!object.Equals(CaseCloseTime, other.CaseCloseTime)) return false; + if (!object.Equals(TicketInfo, other.TicketInfo)) 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(); + hash ^= assignees_.GetHashCode(); + if (ExternalUid.Length != 0) hash ^= ExternalUid.GetHashCode(); + if (Status.Length != 0) hash ^= Status.GetHashCode(); + if (externalSystemUpdateTime_ != null) hash ^= ExternalSystemUpdateTime.GetHashCode(); + if (CaseUri.Length != 0) hash ^= CaseUri.GetHashCode(); + if (CasePriority.Length != 0) hash ^= CasePriority.GetHashCode(); + if (caseSla_ != null) hash ^= CaseSla.GetHashCode(); + if (caseCreateTime_ != null) hash ^= CaseCreateTime.GetHashCode(); + if (caseCloseTime_ != null) hash ^= CaseCloseTime.GetHashCode(); + if (ticketInfo_ != null) hash ^= TicketInfo.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); + } + assignees_.WriteTo(output, _repeated_assignees_codec); + if (ExternalUid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ExternalUid); + } + if (Status.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Status); + } + if (externalSystemUpdateTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ExternalSystemUpdateTime); + } + if (CaseUri.Length != 0) { + output.WriteRawTag(50); + output.WriteString(CaseUri); + } + if (CasePriority.Length != 0) { + output.WriteRawTag(58); + output.WriteString(CasePriority); + } + if (ticketInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(TicketInfo); + } + if (caseSla_ != null) { + output.WriteRawTag(74); + output.WriteMessage(CaseSla); + } + if (caseCreateTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CaseCreateTime); + } + if (caseCloseTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(CaseCloseTime); + } + 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); + } + assignees_.WriteTo(ref output, _repeated_assignees_codec); + if (ExternalUid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ExternalUid); + } + if (Status.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Status); + } + if (externalSystemUpdateTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ExternalSystemUpdateTime); + } + if (CaseUri.Length != 0) { + output.WriteRawTag(50); + output.WriteString(CaseUri); + } + if (CasePriority.Length != 0) { + output.WriteRawTag(58); + output.WriteString(CasePriority); + } + if (ticketInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(TicketInfo); + } + if (caseSla_ != null) { + output.WriteRawTag(74); + output.WriteMessage(CaseSla); + } + if (caseCreateTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CaseCreateTime); + } + if (caseCloseTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(CaseCloseTime); + } + 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); + } + size += assignees_.CalculateSize(_repeated_assignees_codec); + if (ExternalUid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalUid); + } + if (Status.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Status); + } + if (externalSystemUpdateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalSystemUpdateTime); + } + if (CaseUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CaseUri); + } + if (CasePriority.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CasePriority); + } + if (caseSla_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaseSla); + } + if (caseCreateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaseCreateTime); + } + if (caseCloseTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaseCloseTime); + } + if (ticketInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TicketInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExternalSystem other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + assignees_.Add(other.assignees_); + if (other.ExternalUid.Length != 0) { + ExternalUid = other.ExternalUid; + } + if (other.Status.Length != 0) { + Status = other.Status; + } + if (other.externalSystemUpdateTime_ != null) { + if (externalSystemUpdateTime_ == null) { + ExternalSystemUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExternalSystemUpdateTime.MergeFrom(other.ExternalSystemUpdateTime); + } + if (other.CaseUri.Length != 0) { + CaseUri = other.CaseUri; + } + if (other.CasePriority.Length != 0) { + CasePriority = other.CasePriority; + } + if (other.caseSla_ != null) { + if (caseSla_ == null) { + CaseSla = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CaseSla.MergeFrom(other.CaseSla); + } + if (other.caseCreateTime_ != null) { + if (caseCreateTime_ == null) { + CaseCreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CaseCreateTime.MergeFrom(other.CaseCreateTime); + } + if (other.caseCloseTime_ != null) { + if (caseCloseTime_ == null) { + CaseCloseTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CaseCloseTime.MergeFrom(other.CaseCloseTime); + } + if (other.ticketInfo_ != null) { + if (ticketInfo_ == null) { + TicketInfo = new global::Google.Cloud.SecurityCenter.V1.ExternalSystem.Types.TicketInfo(); + } + TicketInfo.MergeFrom(other.TicketInfo); + } + _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: { + assignees_.AddEntriesFrom(input, _repeated_assignees_codec); + break; + } + case 26: { + ExternalUid = input.ReadString(); + break; + } + case 34: { + Status = input.ReadString(); + break; + } + case 42: { + if (externalSystemUpdateTime_ == null) { + ExternalSystemUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExternalSystemUpdateTime); + break; + } + case 50: { + CaseUri = input.ReadString(); + break; + } + case 58: { + CasePriority = input.ReadString(); + break; + } + case 66: { + if (ticketInfo_ == null) { + TicketInfo = new global::Google.Cloud.SecurityCenter.V1.ExternalSystem.Types.TicketInfo(); + } + input.ReadMessage(TicketInfo); + break; + } + case 74: { + if (caseSla_ == null) { + CaseSla = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CaseSla); + break; + } + case 82: { + if (caseCreateTime_ == null) { + CaseCreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CaseCreateTime); + break; + } + case 90: { + if (caseCloseTime_ == null) { + CaseCloseTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CaseCloseTime); + 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: { + assignees_.AddEntriesFrom(ref input, _repeated_assignees_codec); + break; + } + case 26: { + ExternalUid = input.ReadString(); + break; + } + case 34: { + Status = input.ReadString(); + break; + } + case 42: { + if (externalSystemUpdateTime_ == null) { + ExternalSystemUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExternalSystemUpdateTime); + break; + } + case 50: { + CaseUri = input.ReadString(); + break; + } + case 58: { + CasePriority = input.ReadString(); + break; + } + case 66: { + if (ticketInfo_ == null) { + TicketInfo = new global::Google.Cloud.SecurityCenter.V1.ExternalSystem.Types.TicketInfo(); + } + input.ReadMessage(TicketInfo); + break; + } + case 74: { + if (caseSla_ == null) { + CaseSla = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CaseSla); + break; + } + case 82: { + if (caseCreateTime_ == null) { + CaseCreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CaseCreateTime); + break; + } + case 90: { + if (caseCloseTime_ == null) { + CaseCloseTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CaseCloseTime); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ExternalSystem message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Information about the ticket, if any, that is being used to track the + /// resolution of the issue that is identified by this finding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TicketInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TicketInfo()); + 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.SecurityCenter.V1.ExternalSystem.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 TicketInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TicketInfo(TicketInfo other) : this() { + id_ = other.id_; + assignee_ = other.assignee_; + description_ = other.description_; + uri_ = other.uri_; + status_ = other.status_; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TicketInfo Clone() { + return new TicketInfo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// The identifier of the ticket in the ticket system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "assignee" field. + public const int AssigneeFieldNumber = 2; + private string assignee_ = ""; + /// + /// The assignee of the ticket in the ticket system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Assignee { + get { return assignee_; } + set { + assignee_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// The description of the ticket in the ticket system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uri" field. + public const int UriFieldNumber = 4; + private string uri_ = ""; + /// + /// The link to the ticket in the ticket system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 5; + private string status_ = ""; + /// + /// The latest status of the ticket, as reported by the ticket system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Status { + get { return status_; } + set { + status_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// The time when the ticket was last updated, as reported by the ticket + /// system. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TicketInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TicketInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Assignee != other.Assignee) return false; + if (Description != other.Description) return false; + if (Uri != other.Uri) return false; + if (Status != other.Status) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Assignee.Length != 0) hash ^= Assignee.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (Status.Length != 0) hash ^= Status.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Assignee.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Assignee); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (Uri.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Uri); + } + if (Status.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Status); + } + if (updateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateTime); + } + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Assignee.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Assignee); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (Uri.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Uri); + } + if (Status.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Status); + } + if (updateTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateTime); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Assignee.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Assignee); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (Status.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Status); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TicketInfo other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Assignee.Length != 0) { + Assignee = other.Assignee; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.Status.Length != 0) { + Status = other.Status; + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + _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: { + Id = input.ReadString(); + break; + } + case 18: { + Assignee = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + Uri = input.ReadString(); + break; + } + case 42: { + Status = input.ReadString(); + break; + } + case 50: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + 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: { + Id = input.ReadString(); + break; + } + case 18: { + Assignee = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + Uri = input.ReadString(); + break; + } + case 42: { + Status = input.ReadString(); + break; + } + case 50: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ExternalSystemResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ExternalSystemResourceNames.g.cs new file mode 100755 index 000000000000..ab985b121df7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/ExternalSystemResourceNames.g.cs @@ -0,0 +1,444 @@ +// 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.SecurityCenter.V1; +using sys = System; + +namespace Google.Cloud.SecurityCenter.V1 +{ + /// Resource name for the ExternalSystem resource. + public sealed partial class ExternalSystemName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// . + /// + OrganizationSourceFindingExternalsystem = 1, + + /// + /// A resource name with pattern + /// folders/{folder}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + FolderSourceFindingExternalsystem = 2, + + /// + /// A resource name with pattern + /// projects/{project}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + ProjectSourceFindingExternalsystem = 3, + } + + private static gax::PathTemplate s_organizationSourceFindingExternalsystem = new gax::PathTemplate("organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}"); + + private static gax::PathTemplate s_folderSourceFindingExternalsystem = new gax::PathTemplate("folders/{folder}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}"); + + private static gax::PathTemplate s_projectSourceFindingExternalsystem = new gax::PathTemplate("projects/{project}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static ExternalSystemName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new ExternalSystemName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + /// The Organization ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// The Externalsystem ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ExternalSystemName FromOrganizationSourceFindingExternalsystem(string organizationId, string sourceId, string findingId, string externalsystemId) => + new ExternalSystemName(ResourceNameType.OrganizationSourceFindingExternalsystem, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), sourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), findingId: gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId)), externalsystemId: gax::GaxPreconditions.CheckNotNullOrEmpty(externalsystemId, nameof(externalsystemId))); + + /// + /// Creates a with the pattern + /// folders/{folder}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + /// The Folder ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// The Externalsystem ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ExternalSystemName FromFolderSourceFindingExternalsystem(string folderId, string sourceId, string findingId, string externalsystemId) => + new ExternalSystemName(ResourceNameType.FolderSourceFindingExternalsystem, folderId: gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), sourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), findingId: gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId)), externalsystemId: gax::GaxPreconditions.CheckNotNullOrEmpty(externalsystemId, nameof(externalsystemId))); + + /// + /// Creates a with the pattern + /// projects/{project}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + /// The Project ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// The Externalsystem ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ExternalSystemName FromProjectSourceFindingExternalsystem(string projectId, string sourceId, string findingId, string externalsystemId) => + new ExternalSystemName(ResourceNameType.ProjectSourceFindingExternalsystem, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), sourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), findingId: gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId)), externalsystemId: gax::GaxPreconditions.CheckNotNullOrEmpty(externalsystemId, nameof(externalsystemId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + /// The Organization ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// The Externalsystem ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + public static string Format(string organizationId, string sourceId, string findingId, string externalsystemId) => + FormatOrganizationSourceFindingExternalsystem(organizationId, sourceId, findingId, externalsystemId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + /// The Organization ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// The Externalsystem ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + public static string FormatOrganizationSourceFindingExternalsystem(string organizationId, string sourceId, string findingId, string externalsystemId) => + s_organizationSourceFindingExternalsystem.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId)), gax::GaxPreconditions.CheckNotNullOrEmpty(externalsystemId, nameof(externalsystemId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// folders/{folder}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + /// The Folder ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// The Externalsystem ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// folders/{folder}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + public static string FormatFolderSourceFindingExternalsystem(string folderId, string sourceId, string findingId, string externalsystemId) => + s_folderSourceFindingExternalsystem.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId)), gax::GaxPreconditions.CheckNotNullOrEmpty(externalsystemId, nameof(externalsystemId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + /// The Project ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// The Externalsystem ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}. + /// + public static string FormatProjectSourceFindingExternalsystem(string projectId, string sourceId, string findingId, string externalsystemId) => + s_projectSourceFindingExternalsystem.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId)), gax::GaxPreconditions.CheckNotNullOrEmpty(externalsystemId, nameof(externalsystemId))); + + /// + /// Parses the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// + /// + /// + /// folders/{folder}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// + /// + /// + /// projects/{project}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static ExternalSystemName Parse(string externalSystemName) => Parse(externalSystemName, 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: + /// + /// + /// + /// organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// + /// + /// + /// folders/{folder}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// + /// + /// + /// projects/{project}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// + /// + /// 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 ExternalSystemName Parse(string externalSystemName, bool allowUnparsed) => + TryParse(externalSystemName, allowUnparsed, out ExternalSystemName 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: + /// + /// + /// + /// organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// + /// + /// + /// folders/{folder}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// + /// + /// + /// projects/{project}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// + /// + /// + /// 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 externalSystemName, out ExternalSystemName result) => + TryParse(externalSystemName, 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: + /// + /// + /// + /// organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// + /// + /// + /// folders/{folder}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// + /// + /// + /// projects/{project}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// + /// + /// 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 externalSystemName, bool allowUnparsed, out ExternalSystemName result) + { + gax::GaxPreconditions.CheckNotNull(externalSystemName, nameof(externalSystemName)); + gax::TemplatedResourceName resourceName; + if (s_organizationSourceFindingExternalsystem.TryParseName(externalSystemName, out resourceName)) + { + result = FromOrganizationSourceFindingExternalsystem(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (s_folderSourceFindingExternalsystem.TryParseName(externalSystemName, out resourceName)) + { + result = FromFolderSourceFindingExternalsystem(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (s_projectSourceFindingExternalsystem.TryParseName(externalSystemName, out resourceName)) + { + result = FromProjectSourceFindingExternalsystem(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(externalSystemName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private ExternalSystemName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string externalsystemId = null, string findingId = null, string folderId = null, string organizationId = null, string projectId = null, string sourceId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ExternalsystemId = externalsystemId; + FindingId = findingId; + FolderId = folderId; + OrganizationId = organizationId; + ProjectId = projectId; + SourceId = sourceId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// organizations/{organization}/sources/{source}/findings/{finding}/externalSystems/{externalsystem} + /// + /// The Organization ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// The Externalsystem ID. Must not be null or empty. + public ExternalSystemName(string organizationId, string sourceId, string findingId, string externalsystemId) : this(ResourceNameType.OrganizationSourceFindingExternalsystem, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), sourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), findingId: gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId)), externalsystemId: gax::GaxPreconditions.CheckNotNullOrEmpty(externalsystemId, nameof(externalsystemId))) + { + } + + /// 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 Externalsystem ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string ExternalsystemId { get; } + + /// + /// The Finding ID. May be null, depending on which resource name is contained by this instance. + /// + public string FindingId { get; } + + /// + /// The Folder ID. May be null, depending on which resource name is contained by this instance. + /// + public string FolderId { get; } + + /// + /// The Organization ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string OrganizationId { get; } + + /// + /// The Project ID. May be null, depending on which resource name is contained by this instance. + /// + public string ProjectId { get; } + + /// + /// The Source ID. May be null, depending on which resource name is contained by this instance. + /// + public string SourceId { 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.OrganizationSourceFindingExternalsystem: return s_organizationSourceFindingExternalsystem.Expand(OrganizationId, SourceId, FindingId, ExternalsystemId); + case ResourceNameType.FolderSourceFindingExternalsystem: return s_folderSourceFindingExternalsystem.Expand(FolderId, SourceId, FindingId, ExternalsystemId); + case ResourceNameType.ProjectSourceFindingExternalsystem: return s_projectSourceFindingExternalsystem.Expand(ProjectId, SourceId, FindingId, ExternalsystemId); + 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 ExternalSystemName); + + /// + public bool Equals(ExternalSystemName 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 ==(ExternalSystemName a, ExternalSystemName 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 !=(ExternalSystemName a, ExternalSystemName b) => !(a == b); + } + + public partial class ExternalSystem + { + /// + /// -typed view over the resource name property. + /// + public gcsv::ExternalSystemName ExternalSystemName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::ExternalSystemName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/File.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/File.g.cs new file mode 100755 index 000000000000..103f30cb14a4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/File.g.cs @@ -0,0 +1,750 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/file.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/file.proto + public static partial class FileReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/file.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FileReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cilnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZmlsZS5wcm90bxIe", + "Z29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxIvABCgRGaWxlEgwKBHBh", + "dGgYASABKAkSDAoEc2l6ZRgCIAEoAxIOCgZzaGEyNTYYAyABKAkSEwoLaGFz", + "aGVkX3NpemUYBCABKAMSGAoQcGFydGlhbGx5X2hhc2hlZBgFIAEoCBIQCghj", + "b250ZW50cxgGIAEoCRJACglkaXNrX3BhdGgYByABKAsyLS5nb29nbGUuY2xv", + "dWQuc2VjdXJpdHljZW50ZXIudjEuRmlsZS5EaXNrUGF0aBo5CghEaXNrUGF0", + "aBIWCg5wYXJ0aXRpb25fdXVpZBgBIAEoCRIVCg1yZWxhdGl2ZV9wYXRoGAIg", + "ASgJQuMBCiJjb20uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxQglG", + "aWxlUHJvdG9QAVpKY2xvdWQuZ29vZ2xlLmNvbS9nby9zZWN1cml0eWNlbnRl", + "ci9hcGl2MS9zZWN1cml0eWNlbnRlcnBiO3NlY3VyaXR5Y2VudGVycGKqAh5H", + "b29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuVjHKAh5Hb29nbGVcQ2xvdWRc", + "U2VjdXJpdHlDZW50ZXJcVjHqAiFHb29nbGU6OkNsb3VkOjpTZWN1cml0eUNl", + "bnRlcjo6VjFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.File), global::Google.Cloud.SecurityCenter.V1.File.Parser, new[]{ "Path", "Size", "Sha256", "HashedSize", "PartiallyHashed", "Contents", "DiskPath" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.File.Types.DiskPath), global::Google.Cloud.SecurityCenter.V1.File.Types.DiskPath.Parser, new[]{ "PartitionUuid", "RelativePath" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + /// + /// File information about the related binary/library used by an executable, or + /// the script used by a script interpreter + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class File : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new File()); + 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.SecurityCenter.V1.FileReflection.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 File() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public File(File other) : this() { + path_ = other.path_; + size_ = other.size_; + sha256_ = other.sha256_; + hashedSize_ = other.hashedSize_; + partiallyHashed_ = other.partiallyHashed_; + contents_ = other.contents_; + diskPath_ = other.diskPath_ != null ? other.diskPath_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public File Clone() { + return new File(this); + } + + /// Field number for the "path" field. + public const int PathFieldNumber = 1; + private string path_ = ""; + /// + /// Absolute path of the file as a JSON encoded string. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Path { + get { return path_; } + set { + path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "size" field. + public const int SizeFieldNumber = 2; + private long size_; + /// + /// Size of the file in bytes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Size { + get { return size_; } + set { + size_ = value; + } + } + + /// Field number for the "sha256" field. + public const int Sha256FieldNumber = 3; + private string sha256_ = ""; + /// + /// SHA256 hash of the first hashed_size bytes of the file encoded as a + /// hex string. If hashed_size == size, sha256 represents the SHA256 hash + /// of the entire file. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sha256 { + get { return sha256_; } + set { + sha256_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "hashed_size" field. + public const int HashedSizeFieldNumber = 4; + private long hashedSize_; + /// + /// The length in bytes of the file prefix that was hashed. If + /// hashed_size == size, any hashes reported represent the entire + /// file. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long HashedSize { + get { return hashedSize_; } + set { + hashedSize_ = value; + } + } + + /// Field number for the "partially_hashed" field. + public const int PartiallyHashedFieldNumber = 5; + private bool partiallyHashed_; + /// + /// True when the hash covers only a prefix of the file. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PartiallyHashed { + get { return partiallyHashed_; } + set { + partiallyHashed_ = value; + } + } + + /// Field number for the "contents" field. + public const int ContentsFieldNumber = 6; + private string contents_ = ""; + /// + /// Prefix of the file contents as a JSON-encoded string. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Contents { + get { return contents_; } + set { + contents_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "disk_path" field. + public const int DiskPathFieldNumber = 7; + private global::Google.Cloud.SecurityCenter.V1.File.Types.DiskPath diskPath_; + /// + /// Path of the file in terms of underlying disk/partition identifiers. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.File.Types.DiskPath DiskPath { + get { return diskPath_; } + set { + diskPath_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as File); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(File other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Path != other.Path) return false; + if (Size != other.Size) return false; + if (Sha256 != other.Sha256) return false; + if (HashedSize != other.HashedSize) return false; + if (PartiallyHashed != other.PartiallyHashed) return false; + if (Contents != other.Contents) return false; + if (!object.Equals(DiskPath, other.DiskPath)) 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 (Path.Length != 0) hash ^= Path.GetHashCode(); + if (Size != 0L) hash ^= Size.GetHashCode(); + if (Sha256.Length != 0) hash ^= Sha256.GetHashCode(); + if (HashedSize != 0L) hash ^= HashedSize.GetHashCode(); + if (PartiallyHashed != false) hash ^= PartiallyHashed.GetHashCode(); + if (Contents.Length != 0) hash ^= Contents.GetHashCode(); + if (diskPath_ != null) hash ^= DiskPath.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 (Path.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Path); + } + if (Size != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Size); + } + if (Sha256.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Sha256); + } + if (HashedSize != 0L) { + output.WriteRawTag(32); + output.WriteInt64(HashedSize); + } + if (PartiallyHashed != false) { + output.WriteRawTag(40); + output.WriteBool(PartiallyHashed); + } + if (Contents.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Contents); + } + if (diskPath_ != null) { + output.WriteRawTag(58); + output.WriteMessage(DiskPath); + } + 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 (Path.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Path); + } + if (Size != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Size); + } + if (Sha256.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Sha256); + } + if (HashedSize != 0L) { + output.WriteRawTag(32); + output.WriteInt64(HashedSize); + } + if (PartiallyHashed != false) { + output.WriteRawTag(40); + output.WriteBool(PartiallyHashed); + } + if (Contents.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Contents); + } + if (diskPath_ != null) { + output.WriteRawTag(58); + output.WriteMessage(DiskPath); + } + 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 (Path.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); + } + if (Size != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Size); + } + if (Sha256.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sha256); + } + if (HashedSize != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(HashedSize); + } + if (PartiallyHashed != false) { + size += 1 + 1; + } + if (Contents.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Contents); + } + if (diskPath_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DiskPath); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(File other) { + if (other == null) { + return; + } + if (other.Path.Length != 0) { + Path = other.Path; + } + if (other.Size != 0L) { + Size = other.Size; + } + if (other.Sha256.Length != 0) { + Sha256 = other.Sha256; + } + if (other.HashedSize != 0L) { + HashedSize = other.HashedSize; + } + if (other.PartiallyHashed != false) { + PartiallyHashed = other.PartiallyHashed; + } + if (other.Contents.Length != 0) { + Contents = other.Contents; + } + if (other.diskPath_ != null) { + if (diskPath_ == null) { + DiskPath = new global::Google.Cloud.SecurityCenter.V1.File.Types.DiskPath(); + } + DiskPath.MergeFrom(other.DiskPath); + } + _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: { + Path = input.ReadString(); + break; + } + case 16: { + Size = input.ReadInt64(); + break; + } + case 26: { + Sha256 = input.ReadString(); + break; + } + case 32: { + HashedSize = input.ReadInt64(); + break; + } + case 40: { + PartiallyHashed = input.ReadBool(); + break; + } + case 50: { + Contents = input.ReadString(); + break; + } + case 58: { + if (diskPath_ == null) { + DiskPath = new global::Google.Cloud.SecurityCenter.V1.File.Types.DiskPath(); + } + input.ReadMessage(DiskPath); + 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: { + Path = input.ReadString(); + break; + } + case 16: { + Size = input.ReadInt64(); + break; + } + case 26: { + Sha256 = input.ReadString(); + break; + } + case 32: { + HashedSize = input.ReadInt64(); + break; + } + case 40: { + PartiallyHashed = input.ReadBool(); + break; + } + case 50: { + Contents = input.ReadString(); + break; + } + case 58: { + if (diskPath_ == null) { + DiskPath = new global::Google.Cloud.SecurityCenter.V1.File.Types.DiskPath(); + } + input.ReadMessage(DiskPath); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the File message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Path of the file in terms of underlying disk/partition identifiers. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DiskPath : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiskPath()); + 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.SecurityCenter.V1.File.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 DiskPath() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiskPath(DiskPath other) : this() { + partitionUuid_ = other.partitionUuid_; + relativePath_ = other.relativePath_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiskPath Clone() { + return new DiskPath(this); + } + + /// Field number for the "partition_uuid" field. + public const int PartitionUuidFieldNumber = 1; + private string partitionUuid_ = ""; + /// + /// UUID of the partition (format + /// https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PartitionUuid { + get { return partitionUuid_; } + set { + partitionUuid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "relative_path" field. + public const int RelativePathFieldNumber = 2; + private string relativePath_ = ""; + /// + /// Relative path of the file in the partition as a JSON encoded string. + /// Example: /home/user1/executable_file.sh + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RelativePath { + get { return relativePath_; } + set { + relativePath_ = 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 DiskPath); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DiskPath other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PartitionUuid != other.PartitionUuid) return false; + if (RelativePath != other.RelativePath) 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 (PartitionUuid.Length != 0) hash ^= PartitionUuid.GetHashCode(); + if (RelativePath.Length != 0) hash ^= RelativePath.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 (PartitionUuid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PartitionUuid); + } + if (RelativePath.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RelativePath); + } + 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 (PartitionUuid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PartitionUuid); + } + if (RelativePath.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RelativePath); + } + 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 (PartitionUuid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PartitionUuid); + } + if (RelativePath.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RelativePath); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DiskPath other) { + if (other == null) { + return; + } + if (other.PartitionUuid.Length != 0) { + PartitionUuid = other.PartitionUuid; + } + if (other.RelativePath.Length != 0) { + RelativePath = other.RelativePath; + } + _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: { + PartitionUuid = input.ReadString(); + break; + } + case 18: { + RelativePath = 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: { + PartitionUuid = input.ReadString(); + break; + } + case 18: { + RelativePath = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Finding.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Finding.g.cs new file mode 100755 index 000000000000..f12786807e12 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Finding.g.cs @@ -0,0 +1,3375 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/finding.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/finding.proto + public static partial class FindingReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/finding.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FindingReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cixnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZmluZGluZy5wcm90", + "bxIeZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxGh9nb29nbGUvYXBp", + "L2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnBy", + "b3RvGitnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvYWNjZXNzLnBy", + "b3RvGjBnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvYXBwbGljYXRp", + "b24ucHJvdG8aNGdvb2dsZS9jbG91ZC9zZWN1cml0eWNlbnRlci92MS9hdHRh", + "Y2tfZXhwb3N1cmUucHJvdG8aPWdvb2dsZS9jbG91ZC9zZWN1cml0eWNlbnRl", + "ci92MS9iYWNrdXBfZGlzYXN0ZXJfcmVjb3ZlcnkucHJvdG8aMGdvb2dsZS9j", + "bG91ZC9zZWN1cml0eWNlbnRlci92MS9jbG91ZF9hcm1vci5wcm90bxo7Z29v", + "Z2xlL2Nsb3VkL3NlY3VyaXR5Y2VudGVyL3YxL2Nsb3VkX2RscF9kYXRhX3By", + "b2ZpbGUucHJvdG8aOWdvb2dsZS9jbG91ZC9zZWN1cml0eWNlbnRlci92MS9j", + "bG91ZF9kbHBfaW5zcGVjdGlvbi5wcm90bxovZ29vZ2xlL2Nsb3VkL3NlY3Vy", + "aXR5Y2VudGVyL3YxL2NvbXBsaWFuY2UucHJvdG8aL2dvb2dsZS9jbG91ZC9z", + "ZWN1cml0eWNlbnRlci92MS9jb25uZWN0aW9uLnByb3RvGjRnb29nbGUvY2xv", + "dWQvc2VjdXJpdHljZW50ZXIvdjEvY29udGFjdF9kZXRhaWxzLnByb3RvGi5n", + "b29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvY29udGFpbmVyLnByb3Rv", + "Gi1nb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZGF0YWJhc2UucHJv", + "dG8aMWdvb2dsZS9jbG91ZC9zZWN1cml0eWNlbnRlci92MS9leGZpbHRyYXRp", + "b24ucHJvdG8aNGdvb2dsZS9jbG91ZC9zZWN1cml0eWNlbnRlci92MS9leHRl", + "cm5hbF9zeXN0ZW0ucHJvdG8aKWdvb2dsZS9jbG91ZC9zZWN1cml0eWNlbnRl", + "ci92MS9maWxlLnByb3RvGjVnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIv", + "djEvZ3JvdXBfbWVtYmVyc2hpcC5wcm90bxowZ29vZ2xlL2Nsb3VkL3NlY3Vy", + "aXR5Y2VudGVyL3YxL2lhbV9iaW5kaW5nLnByb3RvGi5nb29nbGUvY2xvdWQv", + "c2VjdXJpdHljZW50ZXIvdjEvaW5kaWNhdG9yLnByb3RvGjNnb29nbGUvY2xv", + "dWQvc2VjdXJpdHljZW50ZXIvdjEva2VybmVsX3Jvb3RraXQucHJvdG8aL2dv", + "b2dsZS9jbG91ZC9zZWN1cml0eWNlbnRlci92MS9rdWJlcm5ldGVzLnByb3Rv", + "GjJnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvbG9hZF9iYWxhbmNl", + "ci5wcm90bxouZ29vZ2xlL2Nsb3VkL3NlY3VyaXR5Y2VudGVyL3YxL2xvZ19l", + "bnRyeS5wcm90bxoxZ29vZ2xlL2Nsb3VkL3NlY3VyaXR5Y2VudGVyL3YxL21p", + "dHJlX2F0dGFjay5wcm90bxotZ29vZ2xlL2Nsb3VkL3NlY3VyaXR5Y2VudGVy", + "L3YxL25vdGVib29rLnByb3RvGi9nb29nbGUvY2xvdWQvc2VjdXJpdHljZW50", + "ZXIvdjEvb3JnX3BvbGljeS5wcm90bxosZ29vZ2xlL2Nsb3VkL3NlY3VyaXR5", + "Y2VudGVyL3YxL3Byb2Nlc3MucHJvdG8aM2dvb2dsZS9jbG91ZC9zZWN1cml0", + "eWNlbnRlci92MS9zZWN1cml0eV9tYXJrcy5wcm90bxo1Z29vZ2xlL2Nsb3Vk", + "L3NlY3VyaXR5Y2VudGVyL3YxL3NlY3VyaXR5X3Bvc3R1cmUucHJvdG8aNmdv", + "b2dsZS9jbG91ZC9zZWN1cml0eWNlbnRlci92MS90b3hpY19jb21iaW5hdGlv", + "bi5wcm90bxoyZ29vZ2xlL2Nsb3VkL3NlY3VyaXR5Y2VudGVyL3YxL3Z1bG5l", + "cmFiaWxpdHkucHJvdG8aHGdvb2dsZS9wcm90b2J1Zi9zdHJ1Y3QucHJvdG8a", + "H2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8iiyEKB0ZpbmRpbmcS", + "DAoEbmFtZRgBIAEoCRIOCgZwYXJlbnQYAiABKAkSFQoNcmVzb3VyY2VfbmFt", + "ZRgDIAEoCRI8CgVzdGF0ZRgEIAEoDjItLmdvb2dsZS5jbG91ZC5zZWN1cml0", + "eWNlbnRlci52MS5GaW5kaW5nLlN0YXRlEhAKCGNhdGVnb3J5GAUgASgJEhQK", + "DGV4dGVybmFsX3VyaRgGIAEoCRJYChFzb3VyY2VfcHJvcGVydGllcxgHIAMo", + "CzI9Lmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5GaW5kaW5nLlNv", + "dXJjZVByb3BlcnRpZXNFbnRyeRJKCg5zZWN1cml0eV9tYXJrcxgIIAEoCzIt", + "Lmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5TZWN1cml0eU1hcmtz", + "QgPgQQMSLgoKZXZlbnRfdGltZRgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXASLwoLY3JlYXRlX3RpbWUYCiABKAsyGi5nb29nbGUucHJvdG9i", + "dWYuVGltZXN0YW1wEkIKCHNldmVyaXR5GAwgASgOMjAuZ29vZ2xlLmNsb3Vk", + "LnNlY3VyaXR5Y2VudGVyLnYxLkZpbmRpbmcuU2V2ZXJpdHkSFgoOY2Fub25p", + "Y2FsX25hbWUYDiABKAkSOgoEbXV0ZRgPIAEoDjIsLmdvb2dsZS5jbG91ZC5z", + "ZWN1cml0eWNlbnRlci52MS5GaW5kaW5nLk11dGUSSwoNZmluZGluZ19jbGFz", + "cxgRIAEoDjI0Lmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5GaW5k", + "aW5nLkZpbmRpbmdDbGFzcxI8CglpbmRpY2F0b3IYEiABKAsyKS5nb29nbGUu", + "Y2xvdWQuc2VjdXJpdHljZW50ZXIudjEuSW5kaWNhdG9yEkQKDXZ1bG5lcmFi", + "aWxpdHkYFCABKAsyLS5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEu", + "VnVsbmVyYWJpbGl0eRI5ChBtdXRlX3VwZGF0ZV90aW1lGBUgASgLMhouZ29v", + "Z2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDElsKEGV4dGVybmFsX3N5c3Rl", + "bXMYFiADKAsyPC5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEuRmlu", + "ZGluZy5FeHRlcm5hbFN5c3RlbXNFbnRyeUID4EEDEkEKDG1pdHJlX2F0dGFj", + "axgZIAEoCzIrLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5NaXRy", + "ZUF0dGFjaxI2CgZhY2Nlc3MYGiABKAsyJi5nb29nbGUuY2xvdWQuc2VjdXJp", + "dHljZW50ZXIudjEuQWNjZXNzEj8KC2Nvbm5lY3Rpb25zGB8gAygLMiouZ29v", + "Z2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkNvbm5lY3Rpb24SFgoObXV0", + "ZV9pbml0aWF0b3IYHCABKAkSSAoJbXV0ZV9pbmZvGD0gASgLMjAuZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkZpbmRpbmcuTXV0ZUluZm9CA+BB", + "AxI6Cglwcm9jZXNzZXMYHiADKAsyJy5nb29nbGUuY2xvdWQuc2VjdXJpdHlj", + "ZW50ZXIudjEuUHJvY2VzcxJMCghjb250YWN0cxghIAMoCzI1Lmdvb2dsZS5j", + "bG91ZC5zZWN1cml0eWNlbnRlci52MS5GaW5kaW5nLkNvbnRhY3RzRW50cnlC", + "A+BBAxI/Cgtjb21wbGlhbmNlcxgiIAMoCzIqLmdvb2dsZS5jbG91ZC5zZWN1", + "cml0eWNlbnRlci52MS5Db21wbGlhbmNlEiAKE3BhcmVudF9kaXNwbGF5X25h", + "bWUYJCABKAlCA+BBAxITCgtkZXNjcmlwdGlvbhglIAEoCRJCCgxleGZpbHRy", + "YXRpb24YJiABKAsyLC5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEu", + "RXhmaWx0cmF0aW9uEkAKDGlhbV9iaW5kaW5ncxgnIAMoCzIqLmdvb2dsZS5j", + "bG91ZC5zZWN1cml0eWNlbnRlci52MS5JYW1CaW5kaW5nEhIKCm5leHRfc3Rl", + "cHMYKCABKAkSEwoLbW9kdWxlX25hbWUYKSABKAkSPQoKY29udGFpbmVycxgq", + "IAMoCzIpLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5Db250YWlu", + "ZXISPgoKa3ViZXJuZXRlcxgrIAEoCzIqLmdvb2dsZS5jbG91ZC5zZWN1cml0", + "eWNlbnRlci52MS5LdWJlcm5ldGVzEjoKCGRhdGFiYXNlGCwgASgLMiguZ29v", + "Z2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkRhdGFiYXNlEkcKD2F0dGFj", + "a19leHBvc3VyZRgtIAEoCzIuLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRl", + "ci52MS5BdHRhY2tFeHBvc3VyZRIzCgVmaWxlcxguIAMoCzIkLmdvb2dsZS5j", + "bG91ZC5zZWN1cml0eWNlbnRlci52MS5GaWxlElAKFGNsb3VkX2RscF9pbnNw", + "ZWN0aW9uGDAgASgLMjIuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYx", + "LkNsb3VkRGxwSW5zcGVjdGlvbhJTChZjbG91ZF9kbHBfZGF0YV9wcm9maWxl", + "GDEgASgLMjMuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkNsb3Vk", + "RGxwRGF0YVByb2ZpbGUSRQoOa2VybmVsX3Jvb3RraXQYMiABKAsyLS5nb29n", + "bGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEuS2VybmVsUm9vdGtpdBI/Cgxv", + "cmdfcG9saWNpZXMYMyADKAsyKS5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50", + "ZXIudjEuT3JnUG9saWN5EkAKC2FwcGxpY2F0aW9uGDUgASgLMisuZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkFwcGxpY2F0aW9uElgKGGJhY2t1", + "cF9kaXNhc3Rlcl9yZWNvdmVyeRg3IAEoCzI2Lmdvb2dsZS5jbG91ZC5zZWN1", + "cml0eWNlbnRlci52MS5CYWNrdXBEaXNhc3RlclJlY292ZXJ5EkkKEHNlY3Vy", + "aXR5X3Bvc3R1cmUYOCABKAsyLy5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50", + "ZXIudjEuU2VjdXJpdHlQb3N0dXJlEj0KC2xvZ19lbnRyaWVzGDkgAygLMigu", + "Z29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkxvZ0VudHJ5EkQKDmxv", + "YWRfYmFsYW5jZXJzGDogAygLMiwuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2Vu", + "dGVyLnYxLkxvYWRCYWxhbmNlchI/CgtjbG91ZF9hcm1vchg7IAEoCzIqLmdv", + "b2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5DbG91ZEFybW9yEjoKCG5v", + "dGVib29rGD8gASgLMiguZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYx", + "Lk5vdGVib29rEksKEXRveGljX2NvbWJpbmF0aW9uGEAgASgLMjAuZ29vZ2xl", + "LmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLlRveGljQ29tYmluYXRpb24SSgoR", + "Z3JvdXBfbWVtYmVyc2hpcHMYQSADKAsyLy5nb29nbGUuY2xvdWQuc2VjdXJp", + "dHljZW50ZXIudjEuR3JvdXBNZW1iZXJzaGlwGpMDCghNdXRlSW5mbxJQCgtz", + "dGF0aWNfbXV0ZRgBIAEoCzI7Lmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRl", + "ci52MS5GaW5kaW5nLk11dGVJbmZvLlN0YXRpY011dGUSYAoUZHluYW1pY19t", + "dXRlX3JlY29yZHMYAiADKAsyQi5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50", + "ZXIudjEuRmluZGluZy5NdXRlSW5mby5EeW5hbWljTXV0ZVJlY29yZBp5CgpT", + "dGF0aWNNdXRlEjsKBXN0YXRlGAEgASgOMiwuZ29vZ2xlLmNsb3VkLnNlY3Vy", + "aXR5Y2VudGVyLnYxLkZpbmRpbmcuTXV0ZRIuCgphcHBseV90aW1lGAIgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBpYChFEeW5hbWljTXV0ZVJl", + "Y29yZBITCgttdXRlX2NvbmZpZxgBIAEoCRIuCgptYXRjaF90aW1lGAIgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBpPChVTb3VyY2VQcm9wZXJ0", + "aWVzRW50cnkSCwoDa2V5GAEgASgJEiUKBXZhbHVlGAIgASgLMhYuZ29vZ2xl", + "LnByb3RvYnVmLlZhbHVlOgI4ARpmChRFeHRlcm5hbFN5c3RlbXNFbnRyeRIL", + "CgNrZXkYASABKAkSPQoFdmFsdWUYAiABKAsyLi5nb29nbGUuY2xvdWQuc2Vj", + "dXJpdHljZW50ZXIudjEuRXh0ZXJuYWxTeXN0ZW06AjgBGl8KDUNvbnRhY3Rz", + "RW50cnkSCwoDa2V5GAEgASgJEj0KBXZhbHVlGAIgASgLMi4uZ29vZ2xlLmNs", + "b3VkLnNlY3VyaXR5Y2VudGVyLnYxLkNvbnRhY3REZXRhaWxzOgI4ASI4CgVT", + "dGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEgoKBkFDVElWRRABEgwKCElO", + "QUNUSVZFEAIiUQoIU2V2ZXJpdHkSGAoUU0VWRVJJVFlfVU5TUEVDSUZJRUQQ", + "ABIMCghDUklUSUNBTBABEggKBEhJR0gQAhIKCgZNRURJVU0QAxIHCgNMT1cQ", + "BCJDCgRNdXRlEhQKEE1VVEVfVU5TUEVDSUZJRUQQABIJCgVNVVRFRBABEgsK", + "B1VOTVVURUQQAhINCglVTkRFRklORUQQBCKwAQoMRmluZGluZ0NsYXNzEh0K", + "GUZJTkRJTkdfQ0xBU1NfVU5TUEVDSUZJRUQQABIKCgZUSFJFQVQQARIRCg1W", + "VUxORVJBQklMSVRZEAISFAoQTUlTQ09ORklHVVJBVElPThADEg8KC09CU0VS", + "VkFUSU9OEAQSDQoJU0NDX0VSUk9SEAUSFQoRUE9TVFVSRV9WSU9MQVRJT04Q", + "BhIVChFUT1hJQ19DT01CSU5BVElPThAHOu4B6kHqAQolc2VjdXJpdHljZW50", + "ZXIuZ29vZ2xlYXBpcy5jb20vRmluZGluZxJAb3JnYW5pemF0aW9ucy97b3Jn", + "YW5pemF0aW9ufS9zb3VyY2VzL3tzb3VyY2V9L2ZpbmRpbmdzL3tmaW5kaW5n", + "fRI0Zm9sZGVycy97Zm9sZGVyfS9zb3VyY2VzL3tzb3VyY2V9L2ZpbmRpbmdz", + "L3tmaW5kaW5nfRI2cHJvamVjdHMve3Byb2plY3R9L3NvdXJjZXMve3NvdXJj", + "ZX0vZmluZGluZ3Mve2ZpbmRpbmd9KghmaW5kaW5nczIHZmluZGluZ0LYAQoi", + "Y29tLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MVABWkpjbG91ZC5n", + "b29nbGUuY29tL2dvL3NlY3VyaXR5Y2VudGVyL2FwaXYxL3NlY3VyaXR5Y2Vu", + "dGVycGI7c2VjdXJpdHljZW50ZXJwYqoCHkdvb2dsZS5DbG91ZC5TZWN1cml0", + "eUNlbnRlci5WMcoCHkdvb2dsZVxDbG91ZFxTZWN1cml0eUNlbnRlclxWMeoC", + "IUdvb2dsZTo6Q2xvdWQ6OlNlY3VyaXR5Q2VudGVyOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.AccessReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.ApplicationReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.AttackExposureReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.BackupDisasterRecoveryReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.CloudArmorReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfileReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.CloudDlpInspectionReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.ComplianceReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.ConnectionReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.ContactDetailsReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.ContainerReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.DatabaseReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.ExfiltrationReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.ExternalSystemReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.FileReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.GroupMembershipReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.IamBindingReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.IndicatorReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.KernelRootkitReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.KubernetesReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.LoadBalancerReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.LogEntryReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.MitreAttackReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.NotebookReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.OrgPolicyReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.ProcessReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.SecurityMarksReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.SecurityPostureReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.ToxicCombinationReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.VulnerabilityReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Finding), global::Google.Cloud.SecurityCenter.V1.Finding.Parser, new[]{ "Name", "Parent", "ResourceName", "State", "Category", "ExternalUri", "SourceProperties", "SecurityMarks", "EventTime", "CreateTime", "Severity", "CanonicalName", "Mute", "FindingClass", "Indicator", "Vulnerability", "MuteUpdateTime", "ExternalSystems", "MitreAttack", "Access", "Connections", "MuteInitiator", "MuteInfo", "Processes", "Contacts", "Compliances", "ParentDisplayName", "Description", "Exfiltration", "IamBindings", "NextSteps", "ModuleName", "Containers", "Kubernetes", "Database", "AttackExposure", "Files", "CloudDlpInspection", "CloudDlpDataProfile", "KernelRootkit", "OrgPolicies", "Application", "BackupDisasterRecovery", "SecurityPosture", "LogEntries", "LoadBalancers", "CloudArmor", "Notebook", "ToxicCombination", "GroupMemberships" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.Finding.Types.State), typeof(global::Google.Cloud.SecurityCenter.V1.Finding.Types.Severity), typeof(global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute), typeof(global::Google.Cloud.SecurityCenter.V1.Finding.Types.FindingClass) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo), global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo.Parser, new[]{ "StaticMute", "DynamicMuteRecords" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo.Types.StaticMute), global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo.Types.StaticMute.Parser, new[]{ "State", "ApplyTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo.Types.DynamicMuteRecord), global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo.Types.DynamicMuteRecord.Parser, new[]{ "MuteConfig", "MatchTime" }, null, null, null, null)}), + null, null, null, }) + })); + } + #endregion + + } + #region Messages + /// + /// Security Command Center finding. + /// + /// A finding is a record of assessment data like security, risk, health, or + /// privacy, that is ingested into Security Command Center for presentation, + /// notification, analysis, policy testing, and enforcement. For example, a + /// cross-site scripting (XSS) vulnerability in an App Engine application is a + /// finding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Finding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Finding()); + 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.SecurityCenter.V1.FindingReflection.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 Finding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Finding(Finding other) : this() { + name_ = other.name_; + parent_ = other.parent_; + resourceName_ = other.resourceName_; + state_ = other.state_; + category_ = other.category_; + externalUri_ = other.externalUri_; + sourceProperties_ = other.sourceProperties_.Clone(); + securityMarks_ = other.securityMarks_ != null ? other.securityMarks_.Clone() : null; + eventTime_ = other.eventTime_ != null ? other.eventTime_.Clone() : null; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + severity_ = other.severity_; + canonicalName_ = other.canonicalName_; + mute_ = other.mute_; + findingClass_ = other.findingClass_; + indicator_ = other.indicator_ != null ? other.indicator_.Clone() : null; + vulnerability_ = other.vulnerability_ != null ? other.vulnerability_.Clone() : null; + muteUpdateTime_ = other.muteUpdateTime_ != null ? other.muteUpdateTime_.Clone() : null; + externalSystems_ = other.externalSystems_.Clone(); + mitreAttack_ = other.mitreAttack_ != null ? other.mitreAttack_.Clone() : null; + access_ = other.access_ != null ? other.access_.Clone() : null; + connections_ = other.connections_.Clone(); + muteInitiator_ = other.muteInitiator_; + muteInfo_ = other.muteInfo_ != null ? other.muteInfo_.Clone() : null; + processes_ = other.processes_.Clone(); + contacts_ = other.contacts_.Clone(); + compliances_ = other.compliances_.Clone(); + parentDisplayName_ = other.parentDisplayName_; + description_ = other.description_; + exfiltration_ = other.exfiltration_ != null ? other.exfiltration_.Clone() : null; + iamBindings_ = other.iamBindings_.Clone(); + nextSteps_ = other.nextSteps_; + moduleName_ = other.moduleName_; + containers_ = other.containers_.Clone(); + kubernetes_ = other.kubernetes_ != null ? other.kubernetes_.Clone() : null; + database_ = other.database_ != null ? other.database_.Clone() : null; + attackExposure_ = other.attackExposure_ != null ? other.attackExposure_.Clone() : null; + files_ = other.files_.Clone(); + cloudDlpInspection_ = other.cloudDlpInspection_ != null ? other.cloudDlpInspection_.Clone() : null; + cloudDlpDataProfile_ = other.cloudDlpDataProfile_ != null ? other.cloudDlpDataProfile_.Clone() : null; + kernelRootkit_ = other.kernelRootkit_ != null ? other.kernelRootkit_.Clone() : null; + orgPolicies_ = other.orgPolicies_.Clone(); + application_ = other.application_ != null ? other.application_.Clone() : null; + backupDisasterRecovery_ = other.backupDisasterRecovery_ != null ? other.backupDisasterRecovery_.Clone() : null; + securityPosture_ = other.securityPosture_ != null ? other.securityPosture_.Clone() : null; + logEntries_ = other.logEntries_.Clone(); + loadBalancers_ = other.loadBalancers_.Clone(); + cloudArmor_ = other.cloudArmor_ != null ? other.cloudArmor_.Clone() : null; + notebook_ = other.notebook_ != null ? other.notebook_.Clone() : null; + toxicCombination_ = other.toxicCombination_ != null ? other.toxicCombination_.Clone() : null; + groupMemberships_ = other.groupMemberships_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Finding Clone() { + return new Finding(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The [relative resource + /// name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) + /// of the finding. Example: + /// "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + /// "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + /// "projects/{project_id}/sources/{source_id}/findings/{finding_id}". + /// + [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 "parent" field. + public const int ParentFieldNumber = 2; + private string parent_ = ""; + /// + /// The relative resource name of the source the finding belongs to. See: + /// https://cloud.google.com/apis/design/resource_names#relative_resource_name + /// This field is immutable after creation time. + /// For example: + /// "organizations/{organization_id}/sources/{source_id}" + /// + [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 "resource_name" field. + public const int ResourceNameFieldNumber = 3; + private string resourceName_ = ""; + /// + /// For findings on Google Cloud resources, the full resource + /// name of the Google Cloud resource this finding is for. See: + /// https://cloud.google.com/apis/design/resource_names#full_resource_name + /// When the finding is for a non-Google Cloud resource, the resourceName can + /// be a customer or partner defined string. This field is immutable after + /// creation time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceName { + get { return resourceName_; } + set { + resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private global::Google.Cloud.SecurityCenter.V1.Finding.Types.State state_ = global::Google.Cloud.SecurityCenter.V1.Finding.Types.State.Unspecified; + /// + /// The state of the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Finding.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "category" field. + public const int CategoryFieldNumber = 5; + private string category_ = ""; + /// + /// The additional taxonomy group within findings from a given source. + /// This field is immutable after creation time. + /// Example: "XSS_FLASH_INJECTION" + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Category { + get { return category_; } + set { + category_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "external_uri" field. + public const int ExternalUriFieldNumber = 6; + private string externalUri_ = ""; + /// + /// The URI that, if available, points to a web page outside of Security + /// Command Center where additional information about the finding can be found. + /// This field is guaranteed to be either empty or a well formed URL. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExternalUri { + get { return externalUri_; } + set { + externalUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_properties" field. + public const int SourcePropertiesFieldNumber = 7; + private static readonly pbc::MapField.Codec _map_sourceProperties_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Value.Parser), 58); + private readonly pbc::MapField sourceProperties_ = new pbc::MapField(); + /// + /// Source specific properties. These properties are managed by the source + /// that writes the finding. The key names in the source_properties map must be + /// between 1 and 255 characters, and must start with a letter and contain + /// alphanumeric characters or underscores only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField SourceProperties { + get { return sourceProperties_; } + } + + /// Field number for the "security_marks" field. + public const int SecurityMarksFieldNumber = 8; + private global::Google.Cloud.SecurityCenter.V1.SecurityMarks securityMarks_; + /// + /// Output only. User specified security marks. These marks are entirely + /// managed by the user and come from the SecurityMarks resource that belongs + /// to the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.SecurityMarks SecurityMarks { + get { return securityMarks_; } + set { + securityMarks_ = value; + } + } + + /// Field number for the "event_time" field. + public const int EventTimeFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Timestamp eventTime_; + /// + /// The time the finding was first detected. If an existing finding is updated, + /// then this is the time the update occurred. + /// For example, if the finding represents an open firewall, this property + /// captures the time the detector believes the firewall became open. The + /// accuracy is determined by the detector. If the finding is later resolved, + /// then this time reflects when the finding was resolved. This must not + /// be set to a value greater than the current timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EventTime { + get { return eventTime_; } + set { + eventTime_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// The time at which the finding was created in Security Command Center. + /// + [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 "severity" field. + public const int SeverityFieldNumber = 12; + private global::Google.Cloud.SecurityCenter.V1.Finding.Types.Severity severity_ = global::Google.Cloud.SecurityCenter.V1.Finding.Types.Severity.Unspecified; + /// + /// The severity of the finding. This field is managed by the source that + /// writes the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Finding.Types.Severity Severity { + get { return severity_; } + set { + severity_ = value; + } + } + + /// Field number for the "canonical_name" field. + public const int CanonicalNameFieldNumber = 14; + private string canonicalName_ = ""; + /// + /// The canonical name of the finding. It's either + /// "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + /// "folders/{folder_id}/sources/{source_id}/findings/{finding_id}" or + /// "projects/{project_number}/sources/{source_id}/findings/{finding_id}", + /// depending on the closest CRM ancestor of the resource associated with the + /// finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CanonicalName { + get { return canonicalName_; } + set { + canonicalName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mute" field. + public const int MuteFieldNumber = 15; + private global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute mute_ = global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute.Unspecified; + /// + /// Indicates the mute state of a finding (either muted, unmuted + /// or undefined). Unlike other attributes of a finding, a finding provider + /// shouldn't set the value of mute. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute Mute { + get { return mute_; } + set { + mute_ = value; + } + } + + /// Field number for the "finding_class" field. + public const int FindingClassFieldNumber = 17; + private global::Google.Cloud.SecurityCenter.V1.Finding.Types.FindingClass findingClass_ = global::Google.Cloud.SecurityCenter.V1.Finding.Types.FindingClass.Unspecified; + /// + /// The class of the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Finding.Types.FindingClass FindingClass { + get { return findingClass_; } + set { + findingClass_ = value; + } + } + + /// Field number for the "indicator" field. + public const int IndicatorFieldNumber = 18; + private global::Google.Cloud.SecurityCenter.V1.Indicator indicator_; + /// + /// Represents what's commonly known as an *indicator of compromise* (IoC) in + /// computer forensics. This is an artifact observed on a network or in an + /// operating system that, with high confidence, indicates a computer + /// intrusion. For more information, see [Indicator of + /// compromise](https://en.wikipedia.org/wiki/Indicator_of_compromise). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Indicator Indicator { + get { return indicator_; } + set { + indicator_ = value; + } + } + + /// Field number for the "vulnerability" field. + public const int VulnerabilityFieldNumber = 20; + private global::Google.Cloud.SecurityCenter.V1.Vulnerability vulnerability_; + /// + /// Represents vulnerability-specific fields like CVE and CVSS scores. + /// CVE stands for Common Vulnerabilities and Exposures + /// (https://cve.mitre.org/about/) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Vulnerability Vulnerability { + get { return vulnerability_; } + set { + vulnerability_ = value; + } + } + + /// Field number for the "mute_update_time" field. + public const int MuteUpdateTimeFieldNumber = 21; + private global::Google.Protobuf.WellKnownTypes.Timestamp muteUpdateTime_; + /// + /// Output only. The most recent time this finding was muted or unmuted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp MuteUpdateTime { + get { return muteUpdateTime_; } + set { + muteUpdateTime_ = value; + } + } + + /// Field number for the "external_systems" field. + public const int ExternalSystemsFieldNumber = 22; + private static readonly pbc::MapField.Codec _map_externalSystems_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.SecurityCenter.V1.ExternalSystem.Parser), 178); + private readonly pbc::MapField externalSystems_ = new pbc::MapField(); + /// + /// Output only. Third party SIEM/SOAR fields within SCC, contains external + /// system information and external system finding fields. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ExternalSystems { + get { return externalSystems_; } + } + + /// Field number for the "mitre_attack" field. + public const int MitreAttackFieldNumber = 25; + private global::Google.Cloud.SecurityCenter.V1.MitreAttack mitreAttack_; + /// + /// MITRE ATT&CK tactics and techniques related to this finding. + /// See: https://attack.mitre.org + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.MitreAttack MitreAttack { + get { return mitreAttack_; } + set { + mitreAttack_ = value; + } + } + + /// Field number for the "access" field. + public const int AccessFieldNumber = 26; + private global::Google.Cloud.SecurityCenter.V1.Access access_; + /// + /// Access details associated with the finding, such as more information on the + /// caller, which method was accessed, and from where. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Access Access { + get { return access_; } + set { + access_ = value; + } + } + + /// Field number for the "connections" field. + public const int ConnectionsFieldNumber = 31; + private static readonly pb::FieldCodec _repeated_connections_codec + = pb::FieldCodec.ForMessage(250, global::Google.Cloud.SecurityCenter.V1.Connection.Parser); + private readonly pbc::RepeatedField connections_ = new pbc::RepeatedField(); + /// + /// Contains information about the IP connection associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Connections { + get { return connections_; } + } + + /// Field number for the "mute_initiator" field. + public const int MuteInitiatorFieldNumber = 28; + private string muteInitiator_ = ""; + /// + /// Records additional information about the mute operation, for example, the + /// [mute configuration](/security-command-center/docs/how-to-mute-findings) + /// that muted the finding and the user who muted the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MuteInitiator { + get { return muteInitiator_; } + set { + muteInitiator_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mute_info" field. + public const int MuteInfoFieldNumber = 61; + private global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo muteInfo_; + /// + /// Output only. The mute information regarding this finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo MuteInfo { + get { return muteInfo_; } + set { + muteInfo_ = value; + } + } + + /// Field number for the "processes" field. + public const int ProcessesFieldNumber = 30; + private static readonly pb::FieldCodec _repeated_processes_codec + = pb::FieldCodec.ForMessage(242, global::Google.Cloud.SecurityCenter.V1.Process.Parser); + private readonly pbc::RepeatedField processes_ = new pbc::RepeatedField(); + /// + /// Represents operating system processes associated with the Finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Processes { + get { return processes_; } + } + + /// Field number for the "contacts" field. + public const int ContactsFieldNumber = 33; + private static readonly pbc::MapField.Codec _map_contacts_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.SecurityCenter.V1.ContactDetails.Parser), 266); + private readonly pbc::MapField contacts_ = new pbc::MapField(); + /// + /// Output only. Map containing the points of contact for the given finding. + /// The key represents the type of contact, while the value contains a list of + /// all the contacts that pertain. Please refer to: + /// https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories + /// + /// { + /// "security": { + /// "contacts": [ + /// { + /// "email": "person1@company.com" + /// }, + /// { + /// "email": "person2@company.com" + /// } + /// ] + /// } + /// } + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Contacts { + get { return contacts_; } + } + + /// Field number for the "compliances" field. + public const int CompliancesFieldNumber = 34; + private static readonly pb::FieldCodec _repeated_compliances_codec + = pb::FieldCodec.ForMessage(274, global::Google.Cloud.SecurityCenter.V1.Compliance.Parser); + private readonly pbc::RepeatedField compliances_ = new pbc::RepeatedField(); + /// + /// Contains compliance information for security standards associated to the + /// finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Compliances { + get { return compliances_; } + } + + /// Field number for the "parent_display_name" field. + public const int ParentDisplayNameFieldNumber = 36; + private string parentDisplayName_ = ""; + /// + /// Output only. The human readable display name of the finding source such as + /// "Event Threat Detection" or "Security Health Analytics". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParentDisplayName { + get { return parentDisplayName_; } + set { + parentDisplayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 37; + private string description_ = ""; + /// + /// Contains more details about the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "exfiltration" field. + public const int ExfiltrationFieldNumber = 38; + private global::Google.Cloud.SecurityCenter.V1.Exfiltration exfiltration_; + /// + /// Represents exfiltrations associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Exfiltration Exfiltration { + get { return exfiltration_; } + set { + exfiltration_ = value; + } + } + + /// Field number for the "iam_bindings" field. + public const int IamBindingsFieldNumber = 39; + private static readonly pb::FieldCodec _repeated_iamBindings_codec + = pb::FieldCodec.ForMessage(314, global::Google.Cloud.SecurityCenter.V1.IamBinding.Parser); + private readonly pbc::RepeatedField iamBindings_ = new pbc::RepeatedField(); + /// + /// Represents IAM bindings associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField IamBindings { + get { return iamBindings_; } + } + + /// Field number for the "next_steps" field. + public const int NextStepsFieldNumber = 40; + private string nextSteps_ = ""; + /// + /// Steps to address the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextSteps { + get { return nextSteps_; } + set { + nextSteps_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "module_name" field. + public const int ModuleNameFieldNumber = 41; + private string moduleName_ = ""; + /// + /// Unique identifier of the module which generated the finding. + /// Example: + /// folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ModuleName { + get { return moduleName_; } + set { + moduleName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "containers" field. + public const int ContainersFieldNumber = 42; + private static readonly pb::FieldCodec _repeated_containers_codec + = pb::FieldCodec.ForMessage(338, global::Google.Cloud.SecurityCenter.V1.Container.Parser); + private readonly pbc::RepeatedField containers_ = new pbc::RepeatedField(); + /// + /// Containers associated with the finding. This field provides information for + /// both Kubernetes and non-Kubernetes containers. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Containers { + get { return containers_; } + } + + /// Field number for the "kubernetes" field. + public const int KubernetesFieldNumber = 43; + private global::Google.Cloud.SecurityCenter.V1.Kubernetes kubernetes_; + /// + /// Kubernetes resources associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Kubernetes Kubernetes { + get { return kubernetes_; } + set { + kubernetes_ = value; + } + } + + /// Field number for the "database" field. + public const int DatabaseFieldNumber = 44; + private global::Google.Cloud.SecurityCenter.V1.Database database_; + /// + /// Database associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Database Database { + get { return database_; } + set { + database_ = value; + } + } + + /// Field number for the "attack_exposure" field. + public const int AttackExposureFieldNumber = 45; + private global::Google.Cloud.SecurityCenter.V1.AttackExposure attackExposure_; + /// + /// The results of an attack path simulation relevant to this finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.AttackExposure AttackExposure { + get { return attackExposure_; } + set { + attackExposure_ = value; + } + } + + /// Field number for the "files" field. + public const int FilesFieldNumber = 46; + private static readonly pb::FieldCodec _repeated_files_codec + = pb::FieldCodec.ForMessage(370, global::Google.Cloud.SecurityCenter.V1.File.Parser); + private readonly pbc::RepeatedField files_ = new pbc::RepeatedField(); + /// + /// File associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Files { + get { return files_; } + } + + /// Field number for the "cloud_dlp_inspection" field. + public const int CloudDlpInspectionFieldNumber = 48; + private global::Google.Cloud.SecurityCenter.V1.CloudDlpInspection cloudDlpInspection_; + /// + /// Cloud Data Loss Prevention (Cloud DLP) inspection results that are + /// associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.CloudDlpInspection CloudDlpInspection { + get { return cloudDlpInspection_; } + set { + cloudDlpInspection_ = value; + } + } + + /// Field number for the "cloud_dlp_data_profile" field. + public const int CloudDlpDataProfileFieldNumber = 49; + private global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile cloudDlpDataProfile_; + /// + /// Cloud DLP data profile that is associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile CloudDlpDataProfile { + get { return cloudDlpDataProfile_; } + set { + cloudDlpDataProfile_ = value; + } + } + + /// Field number for the "kernel_rootkit" field. + public const int KernelRootkitFieldNumber = 50; + private global::Google.Cloud.SecurityCenter.V1.KernelRootkit kernelRootkit_; + /// + /// Signature of the kernel rootkit. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.KernelRootkit KernelRootkit { + get { return kernelRootkit_; } + set { + kernelRootkit_ = value; + } + } + + /// Field number for the "org_policies" field. + public const int OrgPoliciesFieldNumber = 51; + private static readonly pb::FieldCodec _repeated_orgPolicies_codec + = pb::FieldCodec.ForMessage(410, global::Google.Cloud.SecurityCenter.V1.OrgPolicy.Parser); + private readonly pbc::RepeatedField orgPolicies_ = new pbc::RepeatedField(); + /// + /// Contains information about the org policies associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OrgPolicies { + get { return orgPolicies_; } + } + + /// Field number for the "application" field. + public const int ApplicationFieldNumber = 53; + private global::Google.Cloud.SecurityCenter.V1.Application application_; + /// + /// Represents an application associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Application Application { + get { return application_; } + set { + application_ = value; + } + } + + /// Field number for the "backup_disaster_recovery" field. + public const int BackupDisasterRecoveryFieldNumber = 55; + private global::Google.Cloud.SecurityCenter.V1.BackupDisasterRecovery backupDisasterRecovery_; + /// + /// Fields related to Backup and DR findings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.BackupDisasterRecovery BackupDisasterRecovery { + get { return backupDisasterRecovery_; } + set { + backupDisasterRecovery_ = value; + } + } + + /// Field number for the "security_posture" field. + public const int SecurityPostureFieldNumber = 56; + private global::Google.Cloud.SecurityCenter.V1.SecurityPosture securityPosture_; + /// + /// The security posture associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.SecurityPosture SecurityPosture { + get { return securityPosture_; } + set { + securityPosture_ = value; + } + } + + /// Field number for the "log_entries" field. + public const int LogEntriesFieldNumber = 57; + private static readonly pb::FieldCodec _repeated_logEntries_codec + = pb::FieldCodec.ForMessage(458, global::Google.Cloud.SecurityCenter.V1.LogEntry.Parser); + private readonly pbc::RepeatedField logEntries_ = new pbc::RepeatedField(); + /// + /// Log entries that are relevant to the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LogEntries { + get { return logEntries_; } + } + + /// Field number for the "load_balancers" field. + public const int LoadBalancersFieldNumber = 58; + private static readonly pb::FieldCodec _repeated_loadBalancers_codec + = pb::FieldCodec.ForMessage(466, global::Google.Cloud.SecurityCenter.V1.LoadBalancer.Parser); + private readonly pbc::RepeatedField loadBalancers_ = new pbc::RepeatedField(); + /// + /// The load balancers associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LoadBalancers { + get { return loadBalancers_; } + } + + /// Field number for the "cloud_armor" field. + public const int CloudArmorFieldNumber = 59; + private global::Google.Cloud.SecurityCenter.V1.CloudArmor cloudArmor_; + /// + /// Fields related to Cloud Armor findings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.CloudArmor CloudArmor { + get { return cloudArmor_; } + set { + cloudArmor_ = value; + } + } + + /// Field number for the "notebook" field. + public const int NotebookFieldNumber = 63; + private global::Google.Cloud.SecurityCenter.V1.Notebook notebook_; + /// + /// Notebook associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Notebook Notebook { + get { return notebook_; } + set { + notebook_ = value; + } + } + + /// Field number for the "toxic_combination" field. + public const int ToxicCombinationFieldNumber = 64; + private global::Google.Cloud.SecurityCenter.V1.ToxicCombination toxicCombination_; + /// + /// Contains details about a group of security issues that, when the issues + /// occur together, represent a greater risk than when the issues occur + /// independently. A group of such issues is referred to as a toxic + /// combination. + /// This field cannot be updated. Its value is ignored in all update requests. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.ToxicCombination ToxicCombination { + get { return toxicCombination_; } + set { + toxicCombination_ = value; + } + } + + /// Field number for the "group_memberships" field. + public const int GroupMembershipsFieldNumber = 65; + private static readonly pb::FieldCodec _repeated_groupMemberships_codec + = pb::FieldCodec.ForMessage(522, global::Google.Cloud.SecurityCenter.V1.GroupMembership.Parser); + private readonly pbc::RepeatedField groupMemberships_ = new pbc::RepeatedField(); + /// + /// Contains details about groups of which this finding is a member. A group is + /// a collection of findings that are related in some way. + /// This field cannot be updated. Its value is ignored in all update requests. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GroupMemberships { + get { return groupMemberships_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Finding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Finding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Parent != other.Parent) return false; + if (ResourceName != other.ResourceName) return false; + if (State != other.State) return false; + if (Category != other.Category) return false; + if (ExternalUri != other.ExternalUri) return false; + if (!SourceProperties.Equals(other.SourceProperties)) return false; + if (!object.Equals(SecurityMarks, other.SecurityMarks)) return false; + if (!object.Equals(EventTime, other.EventTime)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (Severity != other.Severity) return false; + if (CanonicalName != other.CanonicalName) return false; + if (Mute != other.Mute) return false; + if (FindingClass != other.FindingClass) return false; + if (!object.Equals(Indicator, other.Indicator)) return false; + if (!object.Equals(Vulnerability, other.Vulnerability)) return false; + if (!object.Equals(MuteUpdateTime, other.MuteUpdateTime)) return false; + if (!ExternalSystems.Equals(other.ExternalSystems)) return false; + if (!object.Equals(MitreAttack, other.MitreAttack)) return false; + if (!object.Equals(Access, other.Access)) return false; + if(!connections_.Equals(other.connections_)) return false; + if (MuteInitiator != other.MuteInitiator) return false; + if (!object.Equals(MuteInfo, other.MuteInfo)) return false; + if(!processes_.Equals(other.processes_)) return false; + if (!Contacts.Equals(other.Contacts)) return false; + if(!compliances_.Equals(other.compliances_)) return false; + if (ParentDisplayName != other.ParentDisplayName) return false; + if (Description != other.Description) return false; + if (!object.Equals(Exfiltration, other.Exfiltration)) return false; + if(!iamBindings_.Equals(other.iamBindings_)) return false; + if (NextSteps != other.NextSteps) return false; + if (ModuleName != other.ModuleName) return false; + if(!containers_.Equals(other.containers_)) return false; + if (!object.Equals(Kubernetes, other.Kubernetes)) return false; + if (!object.Equals(Database, other.Database)) return false; + if (!object.Equals(AttackExposure, other.AttackExposure)) return false; + if(!files_.Equals(other.files_)) return false; + if (!object.Equals(CloudDlpInspection, other.CloudDlpInspection)) return false; + if (!object.Equals(CloudDlpDataProfile, other.CloudDlpDataProfile)) return false; + if (!object.Equals(KernelRootkit, other.KernelRootkit)) return false; + if(!orgPolicies_.Equals(other.orgPolicies_)) return false; + if (!object.Equals(Application, other.Application)) return false; + if (!object.Equals(BackupDisasterRecovery, other.BackupDisasterRecovery)) return false; + if (!object.Equals(SecurityPosture, other.SecurityPosture)) return false; + if(!logEntries_.Equals(other.logEntries_)) return false; + if(!loadBalancers_.Equals(other.loadBalancers_)) return false; + if (!object.Equals(CloudArmor, other.CloudArmor)) return false; + if (!object.Equals(Notebook, other.Notebook)) return false; + if (!object.Equals(ToxicCombination, other.ToxicCombination)) return false; + if(!groupMemberships_.Equals(other.groupMemberships_)) 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 (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); + if (State != global::Google.Cloud.SecurityCenter.V1.Finding.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (Category.Length != 0) hash ^= Category.GetHashCode(); + if (ExternalUri.Length != 0) hash ^= ExternalUri.GetHashCode(); + hash ^= SourceProperties.GetHashCode(); + if (securityMarks_ != null) hash ^= SecurityMarks.GetHashCode(); + if (eventTime_ != null) hash ^= EventTime.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (Severity != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Severity.Unspecified) hash ^= Severity.GetHashCode(); + if (CanonicalName.Length != 0) hash ^= CanonicalName.GetHashCode(); + if (Mute != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute.Unspecified) hash ^= Mute.GetHashCode(); + if (FindingClass != global::Google.Cloud.SecurityCenter.V1.Finding.Types.FindingClass.Unspecified) hash ^= FindingClass.GetHashCode(); + if (indicator_ != null) hash ^= Indicator.GetHashCode(); + if (vulnerability_ != null) hash ^= Vulnerability.GetHashCode(); + if (muteUpdateTime_ != null) hash ^= MuteUpdateTime.GetHashCode(); + hash ^= ExternalSystems.GetHashCode(); + if (mitreAttack_ != null) hash ^= MitreAttack.GetHashCode(); + if (access_ != null) hash ^= Access.GetHashCode(); + hash ^= connections_.GetHashCode(); + if (MuteInitiator.Length != 0) hash ^= MuteInitiator.GetHashCode(); + if (muteInfo_ != null) hash ^= MuteInfo.GetHashCode(); + hash ^= processes_.GetHashCode(); + hash ^= Contacts.GetHashCode(); + hash ^= compliances_.GetHashCode(); + if (ParentDisplayName.Length != 0) hash ^= ParentDisplayName.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (exfiltration_ != null) hash ^= Exfiltration.GetHashCode(); + hash ^= iamBindings_.GetHashCode(); + if (NextSteps.Length != 0) hash ^= NextSteps.GetHashCode(); + if (ModuleName.Length != 0) hash ^= ModuleName.GetHashCode(); + hash ^= containers_.GetHashCode(); + if (kubernetes_ != null) hash ^= Kubernetes.GetHashCode(); + if (database_ != null) hash ^= Database.GetHashCode(); + if (attackExposure_ != null) hash ^= AttackExposure.GetHashCode(); + hash ^= files_.GetHashCode(); + if (cloudDlpInspection_ != null) hash ^= CloudDlpInspection.GetHashCode(); + if (cloudDlpDataProfile_ != null) hash ^= CloudDlpDataProfile.GetHashCode(); + if (kernelRootkit_ != null) hash ^= KernelRootkit.GetHashCode(); + hash ^= orgPolicies_.GetHashCode(); + if (application_ != null) hash ^= Application.GetHashCode(); + if (backupDisasterRecovery_ != null) hash ^= BackupDisasterRecovery.GetHashCode(); + if (securityPosture_ != null) hash ^= SecurityPosture.GetHashCode(); + hash ^= logEntries_.GetHashCode(); + hash ^= loadBalancers_.GetHashCode(); + if (cloudArmor_ != null) hash ^= CloudArmor.GetHashCode(); + if (notebook_ != null) hash ^= Notebook.GetHashCode(); + if (toxicCombination_ != null) hash ^= ToxicCombination.GetHashCode(); + hash ^= groupMemberships_.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 (Parent.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Parent); + } + if (ResourceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceName); + } + if (State != global::Google.Cloud.SecurityCenter.V1.Finding.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (Category.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Category); + } + if (ExternalUri.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ExternalUri); + } + sourceProperties_.WriteTo(output, _map_sourceProperties_codec); + if (securityMarks_ != null) { + output.WriteRawTag(66); + output.WriteMessage(SecurityMarks); + } + if (eventTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(EventTime); + } + if (createTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CreateTime); + } + if (Severity != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Severity.Unspecified) { + output.WriteRawTag(96); + output.WriteEnum((int) Severity); + } + if (CanonicalName.Length != 0) { + output.WriteRawTag(114); + output.WriteString(CanonicalName); + } + if (Mute != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute.Unspecified) { + output.WriteRawTag(120); + output.WriteEnum((int) Mute); + } + if (FindingClass != global::Google.Cloud.SecurityCenter.V1.Finding.Types.FindingClass.Unspecified) { + output.WriteRawTag(136, 1); + output.WriteEnum((int) FindingClass); + } + if (indicator_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(Indicator); + } + if (vulnerability_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(Vulnerability); + } + if (muteUpdateTime_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(MuteUpdateTime); + } + externalSystems_.WriteTo(output, _map_externalSystems_codec); + if (mitreAttack_ != null) { + output.WriteRawTag(202, 1); + output.WriteMessage(MitreAttack); + } + if (access_ != null) { + output.WriteRawTag(210, 1); + output.WriteMessage(Access); + } + if (MuteInitiator.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(MuteInitiator); + } + processes_.WriteTo(output, _repeated_processes_codec); + connections_.WriteTo(output, _repeated_connections_codec); + contacts_.WriteTo(output, _map_contacts_codec); + compliances_.WriteTo(output, _repeated_compliances_codec); + if (ParentDisplayName.Length != 0) { + output.WriteRawTag(162, 2); + output.WriteString(ParentDisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(170, 2); + output.WriteString(Description); + } + if (exfiltration_ != null) { + output.WriteRawTag(178, 2); + output.WriteMessage(Exfiltration); + } + iamBindings_.WriteTo(output, _repeated_iamBindings_codec); + if (NextSteps.Length != 0) { + output.WriteRawTag(194, 2); + output.WriteString(NextSteps); + } + if (ModuleName.Length != 0) { + output.WriteRawTag(202, 2); + output.WriteString(ModuleName); + } + containers_.WriteTo(output, _repeated_containers_codec); + if (kubernetes_ != null) { + output.WriteRawTag(218, 2); + output.WriteMessage(Kubernetes); + } + if (database_ != null) { + output.WriteRawTag(226, 2); + output.WriteMessage(Database); + } + if (attackExposure_ != null) { + output.WriteRawTag(234, 2); + output.WriteMessage(AttackExposure); + } + files_.WriteTo(output, _repeated_files_codec); + if (cloudDlpInspection_ != null) { + output.WriteRawTag(130, 3); + output.WriteMessage(CloudDlpInspection); + } + if (cloudDlpDataProfile_ != null) { + output.WriteRawTag(138, 3); + output.WriteMessage(CloudDlpDataProfile); + } + if (kernelRootkit_ != null) { + output.WriteRawTag(146, 3); + output.WriteMessage(KernelRootkit); + } + orgPolicies_.WriteTo(output, _repeated_orgPolicies_codec); + if (application_ != null) { + output.WriteRawTag(170, 3); + output.WriteMessage(Application); + } + if (backupDisasterRecovery_ != null) { + output.WriteRawTag(186, 3); + output.WriteMessage(BackupDisasterRecovery); + } + if (securityPosture_ != null) { + output.WriteRawTag(194, 3); + output.WriteMessage(SecurityPosture); + } + logEntries_.WriteTo(output, _repeated_logEntries_codec); + loadBalancers_.WriteTo(output, _repeated_loadBalancers_codec); + if (cloudArmor_ != null) { + output.WriteRawTag(218, 3); + output.WriteMessage(CloudArmor); + } + if (muteInfo_ != null) { + output.WriteRawTag(234, 3); + output.WriteMessage(MuteInfo); + } + if (notebook_ != null) { + output.WriteRawTag(250, 3); + output.WriteMessage(Notebook); + } + if (toxicCombination_ != null) { + output.WriteRawTag(130, 4); + output.WriteMessage(ToxicCombination); + } + groupMemberships_.WriteTo(output, _repeated_groupMemberships_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) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Parent.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Parent); + } + if (ResourceName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceName); + } + if (State != global::Google.Cloud.SecurityCenter.V1.Finding.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (Category.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Category); + } + if (ExternalUri.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ExternalUri); + } + sourceProperties_.WriteTo(ref output, _map_sourceProperties_codec); + if (securityMarks_ != null) { + output.WriteRawTag(66); + output.WriteMessage(SecurityMarks); + } + if (eventTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(EventTime); + } + if (createTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CreateTime); + } + if (Severity != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Severity.Unspecified) { + output.WriteRawTag(96); + output.WriteEnum((int) Severity); + } + if (CanonicalName.Length != 0) { + output.WriteRawTag(114); + output.WriteString(CanonicalName); + } + if (Mute != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute.Unspecified) { + output.WriteRawTag(120); + output.WriteEnum((int) Mute); + } + if (FindingClass != global::Google.Cloud.SecurityCenter.V1.Finding.Types.FindingClass.Unspecified) { + output.WriteRawTag(136, 1); + output.WriteEnum((int) FindingClass); + } + if (indicator_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(Indicator); + } + if (vulnerability_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(Vulnerability); + } + if (muteUpdateTime_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(MuteUpdateTime); + } + externalSystems_.WriteTo(ref output, _map_externalSystems_codec); + if (mitreAttack_ != null) { + output.WriteRawTag(202, 1); + output.WriteMessage(MitreAttack); + } + if (access_ != null) { + output.WriteRawTag(210, 1); + output.WriteMessage(Access); + } + if (MuteInitiator.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(MuteInitiator); + } + processes_.WriteTo(ref output, _repeated_processes_codec); + connections_.WriteTo(ref output, _repeated_connections_codec); + contacts_.WriteTo(ref output, _map_contacts_codec); + compliances_.WriteTo(ref output, _repeated_compliances_codec); + if (ParentDisplayName.Length != 0) { + output.WriteRawTag(162, 2); + output.WriteString(ParentDisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(170, 2); + output.WriteString(Description); + } + if (exfiltration_ != null) { + output.WriteRawTag(178, 2); + output.WriteMessage(Exfiltration); + } + iamBindings_.WriteTo(ref output, _repeated_iamBindings_codec); + if (NextSteps.Length != 0) { + output.WriteRawTag(194, 2); + output.WriteString(NextSteps); + } + if (ModuleName.Length != 0) { + output.WriteRawTag(202, 2); + output.WriteString(ModuleName); + } + containers_.WriteTo(ref output, _repeated_containers_codec); + if (kubernetes_ != null) { + output.WriteRawTag(218, 2); + output.WriteMessage(Kubernetes); + } + if (database_ != null) { + output.WriteRawTag(226, 2); + output.WriteMessage(Database); + } + if (attackExposure_ != null) { + output.WriteRawTag(234, 2); + output.WriteMessage(AttackExposure); + } + files_.WriteTo(ref output, _repeated_files_codec); + if (cloudDlpInspection_ != null) { + output.WriteRawTag(130, 3); + output.WriteMessage(CloudDlpInspection); + } + if (cloudDlpDataProfile_ != null) { + output.WriteRawTag(138, 3); + output.WriteMessage(CloudDlpDataProfile); + } + if (kernelRootkit_ != null) { + output.WriteRawTag(146, 3); + output.WriteMessage(KernelRootkit); + } + orgPolicies_.WriteTo(ref output, _repeated_orgPolicies_codec); + if (application_ != null) { + output.WriteRawTag(170, 3); + output.WriteMessage(Application); + } + if (backupDisasterRecovery_ != null) { + output.WriteRawTag(186, 3); + output.WriteMessage(BackupDisasterRecovery); + } + if (securityPosture_ != null) { + output.WriteRawTag(194, 3); + output.WriteMessage(SecurityPosture); + } + logEntries_.WriteTo(ref output, _repeated_logEntries_codec); + loadBalancers_.WriteTo(ref output, _repeated_loadBalancers_codec); + if (cloudArmor_ != null) { + output.WriteRawTag(218, 3); + output.WriteMessage(CloudArmor); + } + if (muteInfo_ != null) { + output.WriteRawTag(234, 3); + output.WriteMessage(MuteInfo); + } + if (notebook_ != null) { + output.WriteRawTag(250, 3); + output.WriteMessage(Notebook); + } + if (toxicCombination_ != null) { + output.WriteRawTag(130, 4); + output.WriteMessage(ToxicCombination); + } + groupMemberships_.WriteTo(ref output, _repeated_groupMemberships_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; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (ResourceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); + } + if (State != global::Google.Cloud.SecurityCenter.V1.Finding.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (Category.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Category); + } + if (ExternalUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalUri); + } + size += sourceProperties_.CalculateSize(_map_sourceProperties_codec); + if (securityMarks_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityMarks); + } + if (eventTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EventTime); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (Severity != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Severity.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Severity); + } + if (CanonicalName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CanonicalName); + } + if (Mute != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mute); + } + if (FindingClass != global::Google.Cloud.SecurityCenter.V1.Finding.Types.FindingClass.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FindingClass); + } + if (indicator_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Indicator); + } + if (vulnerability_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Vulnerability); + } + if (muteUpdateTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MuteUpdateTime); + } + size += externalSystems_.CalculateSize(_map_externalSystems_codec); + if (mitreAttack_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MitreAttack); + } + if (access_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Access); + } + size += connections_.CalculateSize(_repeated_connections_codec); + if (MuteInitiator.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(MuteInitiator); + } + if (muteInfo_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MuteInfo); + } + size += processes_.CalculateSize(_repeated_processes_codec); + size += contacts_.CalculateSize(_map_contacts_codec); + size += compliances_.CalculateSize(_repeated_compliances_codec); + if (ParentDisplayName.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ParentDisplayName); + } + if (Description.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (exfiltration_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Exfiltration); + } + size += iamBindings_.CalculateSize(_repeated_iamBindings_codec); + if (NextSteps.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(NextSteps); + } + if (ModuleName.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ModuleName); + } + size += containers_.CalculateSize(_repeated_containers_codec); + if (kubernetes_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Kubernetes); + } + if (database_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Database); + } + if (attackExposure_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AttackExposure); + } + size += files_.CalculateSize(_repeated_files_codec); + if (cloudDlpInspection_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CloudDlpInspection); + } + if (cloudDlpDataProfile_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CloudDlpDataProfile); + } + if (kernelRootkit_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(KernelRootkit); + } + size += orgPolicies_.CalculateSize(_repeated_orgPolicies_codec); + if (application_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Application); + } + if (backupDisasterRecovery_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(BackupDisasterRecovery); + } + if (securityPosture_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SecurityPosture); + } + size += logEntries_.CalculateSize(_repeated_logEntries_codec); + size += loadBalancers_.CalculateSize(_repeated_loadBalancers_codec); + if (cloudArmor_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CloudArmor); + } + if (notebook_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Notebook); + } + if (toxicCombination_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ToxicCombination); + } + size += groupMemberships_.CalculateSize(_repeated_groupMemberships_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Finding other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.ResourceName.Length != 0) { + ResourceName = other.ResourceName; + } + if (other.State != global::Google.Cloud.SecurityCenter.V1.Finding.Types.State.Unspecified) { + State = other.State; + } + if (other.Category.Length != 0) { + Category = other.Category; + } + if (other.ExternalUri.Length != 0) { + ExternalUri = other.ExternalUri; + } + sourceProperties_.MergeFrom(other.sourceProperties_); + if (other.securityMarks_ != null) { + if (securityMarks_ == null) { + SecurityMarks = new global::Google.Cloud.SecurityCenter.V1.SecurityMarks(); + } + SecurityMarks.MergeFrom(other.SecurityMarks); + } + if (other.eventTime_ != null) { + if (eventTime_ == null) { + EventTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EventTime.MergeFrom(other.EventTime); + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.Severity != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Severity.Unspecified) { + Severity = other.Severity; + } + if (other.CanonicalName.Length != 0) { + CanonicalName = other.CanonicalName; + } + if (other.Mute != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute.Unspecified) { + Mute = other.Mute; + } + if (other.FindingClass != global::Google.Cloud.SecurityCenter.V1.Finding.Types.FindingClass.Unspecified) { + FindingClass = other.FindingClass; + } + if (other.indicator_ != null) { + if (indicator_ == null) { + Indicator = new global::Google.Cloud.SecurityCenter.V1.Indicator(); + } + Indicator.MergeFrom(other.Indicator); + } + if (other.vulnerability_ != null) { + if (vulnerability_ == null) { + Vulnerability = new global::Google.Cloud.SecurityCenter.V1.Vulnerability(); + } + Vulnerability.MergeFrom(other.Vulnerability); + } + if (other.muteUpdateTime_ != null) { + if (muteUpdateTime_ == null) { + MuteUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + MuteUpdateTime.MergeFrom(other.MuteUpdateTime); + } + externalSystems_.MergeFrom(other.externalSystems_); + if (other.mitreAttack_ != null) { + if (mitreAttack_ == null) { + MitreAttack = new global::Google.Cloud.SecurityCenter.V1.MitreAttack(); + } + MitreAttack.MergeFrom(other.MitreAttack); + } + if (other.access_ != null) { + if (access_ == null) { + Access = new global::Google.Cloud.SecurityCenter.V1.Access(); + } + Access.MergeFrom(other.Access); + } + connections_.Add(other.connections_); + if (other.MuteInitiator.Length != 0) { + MuteInitiator = other.MuteInitiator; + } + if (other.muteInfo_ != null) { + if (muteInfo_ == null) { + MuteInfo = new global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo(); + } + MuteInfo.MergeFrom(other.MuteInfo); + } + processes_.Add(other.processes_); + contacts_.MergeFrom(other.contacts_); + compliances_.Add(other.compliances_); + if (other.ParentDisplayName.Length != 0) { + ParentDisplayName = other.ParentDisplayName; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.exfiltration_ != null) { + if (exfiltration_ == null) { + Exfiltration = new global::Google.Cloud.SecurityCenter.V1.Exfiltration(); + } + Exfiltration.MergeFrom(other.Exfiltration); + } + iamBindings_.Add(other.iamBindings_); + if (other.NextSteps.Length != 0) { + NextSteps = other.NextSteps; + } + if (other.ModuleName.Length != 0) { + ModuleName = other.ModuleName; + } + containers_.Add(other.containers_); + if (other.kubernetes_ != null) { + if (kubernetes_ == null) { + Kubernetes = new global::Google.Cloud.SecurityCenter.V1.Kubernetes(); + } + Kubernetes.MergeFrom(other.Kubernetes); + } + if (other.database_ != null) { + if (database_ == null) { + Database = new global::Google.Cloud.SecurityCenter.V1.Database(); + } + Database.MergeFrom(other.Database); + } + if (other.attackExposure_ != null) { + if (attackExposure_ == null) { + AttackExposure = new global::Google.Cloud.SecurityCenter.V1.AttackExposure(); + } + AttackExposure.MergeFrom(other.AttackExposure); + } + files_.Add(other.files_); + if (other.cloudDlpInspection_ != null) { + if (cloudDlpInspection_ == null) { + CloudDlpInspection = new global::Google.Cloud.SecurityCenter.V1.CloudDlpInspection(); + } + CloudDlpInspection.MergeFrom(other.CloudDlpInspection); + } + if (other.cloudDlpDataProfile_ != null) { + if (cloudDlpDataProfile_ == null) { + CloudDlpDataProfile = new global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile(); + } + CloudDlpDataProfile.MergeFrom(other.CloudDlpDataProfile); + } + if (other.kernelRootkit_ != null) { + if (kernelRootkit_ == null) { + KernelRootkit = new global::Google.Cloud.SecurityCenter.V1.KernelRootkit(); + } + KernelRootkit.MergeFrom(other.KernelRootkit); + } + orgPolicies_.Add(other.orgPolicies_); + if (other.application_ != null) { + if (application_ == null) { + Application = new global::Google.Cloud.SecurityCenter.V1.Application(); + } + Application.MergeFrom(other.Application); + } + if (other.backupDisasterRecovery_ != null) { + if (backupDisasterRecovery_ == null) { + BackupDisasterRecovery = new global::Google.Cloud.SecurityCenter.V1.BackupDisasterRecovery(); + } + BackupDisasterRecovery.MergeFrom(other.BackupDisasterRecovery); + } + if (other.securityPosture_ != null) { + if (securityPosture_ == null) { + SecurityPosture = new global::Google.Cloud.SecurityCenter.V1.SecurityPosture(); + } + SecurityPosture.MergeFrom(other.SecurityPosture); + } + logEntries_.Add(other.logEntries_); + loadBalancers_.Add(other.loadBalancers_); + if (other.cloudArmor_ != null) { + if (cloudArmor_ == null) { + CloudArmor = new global::Google.Cloud.SecurityCenter.V1.CloudArmor(); + } + CloudArmor.MergeFrom(other.CloudArmor); + } + if (other.notebook_ != null) { + if (notebook_ == null) { + Notebook = new global::Google.Cloud.SecurityCenter.V1.Notebook(); + } + Notebook.MergeFrom(other.Notebook); + } + if (other.toxicCombination_ != null) { + if (toxicCombination_ == null) { + ToxicCombination = new global::Google.Cloud.SecurityCenter.V1.ToxicCombination(); + } + ToxicCombination.MergeFrom(other.ToxicCombination); + } + groupMemberships_.Add(other.groupMemberships_); + _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: { + Parent = input.ReadString(); + break; + } + case 26: { + ResourceName = input.ReadString(); + break; + } + case 32: { + State = (global::Google.Cloud.SecurityCenter.V1.Finding.Types.State) input.ReadEnum(); + break; + } + case 42: { + Category = input.ReadString(); + break; + } + case 50: { + ExternalUri = input.ReadString(); + break; + } + case 58: { + sourceProperties_.AddEntriesFrom(input, _map_sourceProperties_codec); + break; + } + case 66: { + if (securityMarks_ == null) { + SecurityMarks = new global::Google.Cloud.SecurityCenter.V1.SecurityMarks(); + } + input.ReadMessage(SecurityMarks); + break; + } + case 74: { + if (eventTime_ == null) { + EventTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EventTime); + break; + } + case 82: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 96: { + Severity = (global::Google.Cloud.SecurityCenter.V1.Finding.Types.Severity) input.ReadEnum(); + break; + } + case 114: { + CanonicalName = input.ReadString(); + break; + } + case 120: { + Mute = (global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute) input.ReadEnum(); + break; + } + case 136: { + FindingClass = (global::Google.Cloud.SecurityCenter.V1.Finding.Types.FindingClass) input.ReadEnum(); + break; + } + case 146: { + if (indicator_ == null) { + Indicator = new global::Google.Cloud.SecurityCenter.V1.Indicator(); + } + input.ReadMessage(Indicator); + break; + } + case 162: { + if (vulnerability_ == null) { + Vulnerability = new global::Google.Cloud.SecurityCenter.V1.Vulnerability(); + } + input.ReadMessage(Vulnerability); + break; + } + case 170: { + if (muteUpdateTime_ == null) { + MuteUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(MuteUpdateTime); + break; + } + case 178: { + externalSystems_.AddEntriesFrom(input, _map_externalSystems_codec); + break; + } + case 202: { + if (mitreAttack_ == null) { + MitreAttack = new global::Google.Cloud.SecurityCenter.V1.MitreAttack(); + } + input.ReadMessage(MitreAttack); + break; + } + case 210: { + if (access_ == null) { + Access = new global::Google.Cloud.SecurityCenter.V1.Access(); + } + input.ReadMessage(Access); + break; + } + case 226: { + MuteInitiator = input.ReadString(); + break; + } + case 242: { + processes_.AddEntriesFrom(input, _repeated_processes_codec); + break; + } + case 250: { + connections_.AddEntriesFrom(input, _repeated_connections_codec); + break; + } + case 266: { + contacts_.AddEntriesFrom(input, _map_contacts_codec); + break; + } + case 274: { + compliances_.AddEntriesFrom(input, _repeated_compliances_codec); + break; + } + case 290: { + ParentDisplayName = input.ReadString(); + break; + } + case 298: { + Description = input.ReadString(); + break; + } + case 306: { + if (exfiltration_ == null) { + Exfiltration = new global::Google.Cloud.SecurityCenter.V1.Exfiltration(); + } + input.ReadMessage(Exfiltration); + break; + } + case 314: { + iamBindings_.AddEntriesFrom(input, _repeated_iamBindings_codec); + break; + } + case 322: { + NextSteps = input.ReadString(); + break; + } + case 330: { + ModuleName = input.ReadString(); + break; + } + case 338: { + containers_.AddEntriesFrom(input, _repeated_containers_codec); + break; + } + case 346: { + if (kubernetes_ == null) { + Kubernetes = new global::Google.Cloud.SecurityCenter.V1.Kubernetes(); + } + input.ReadMessage(Kubernetes); + break; + } + case 354: { + if (database_ == null) { + Database = new global::Google.Cloud.SecurityCenter.V1.Database(); + } + input.ReadMessage(Database); + break; + } + case 362: { + if (attackExposure_ == null) { + AttackExposure = new global::Google.Cloud.SecurityCenter.V1.AttackExposure(); + } + input.ReadMessage(AttackExposure); + break; + } + case 370: { + files_.AddEntriesFrom(input, _repeated_files_codec); + break; + } + case 386: { + if (cloudDlpInspection_ == null) { + CloudDlpInspection = new global::Google.Cloud.SecurityCenter.V1.CloudDlpInspection(); + } + input.ReadMessage(CloudDlpInspection); + break; + } + case 394: { + if (cloudDlpDataProfile_ == null) { + CloudDlpDataProfile = new global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile(); + } + input.ReadMessage(CloudDlpDataProfile); + break; + } + case 402: { + if (kernelRootkit_ == null) { + KernelRootkit = new global::Google.Cloud.SecurityCenter.V1.KernelRootkit(); + } + input.ReadMessage(KernelRootkit); + break; + } + case 410: { + orgPolicies_.AddEntriesFrom(input, _repeated_orgPolicies_codec); + break; + } + case 426: { + if (application_ == null) { + Application = new global::Google.Cloud.SecurityCenter.V1.Application(); + } + input.ReadMessage(Application); + break; + } + case 442: { + if (backupDisasterRecovery_ == null) { + BackupDisasterRecovery = new global::Google.Cloud.SecurityCenter.V1.BackupDisasterRecovery(); + } + input.ReadMessage(BackupDisasterRecovery); + break; + } + case 450: { + if (securityPosture_ == null) { + SecurityPosture = new global::Google.Cloud.SecurityCenter.V1.SecurityPosture(); + } + input.ReadMessage(SecurityPosture); + break; + } + case 458: { + logEntries_.AddEntriesFrom(input, _repeated_logEntries_codec); + break; + } + case 466: { + loadBalancers_.AddEntriesFrom(input, _repeated_loadBalancers_codec); + break; + } + case 474: { + if (cloudArmor_ == null) { + CloudArmor = new global::Google.Cloud.SecurityCenter.V1.CloudArmor(); + } + input.ReadMessage(CloudArmor); + break; + } + case 490: { + if (muteInfo_ == null) { + MuteInfo = new global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo(); + } + input.ReadMessage(MuteInfo); + break; + } + case 506: { + if (notebook_ == null) { + Notebook = new global::Google.Cloud.SecurityCenter.V1.Notebook(); + } + input.ReadMessage(Notebook); + break; + } + case 514: { + if (toxicCombination_ == null) { + ToxicCombination = new global::Google.Cloud.SecurityCenter.V1.ToxicCombination(); + } + input.ReadMessage(ToxicCombination); + break; + } + case 522: { + groupMemberships_.AddEntriesFrom(input, _repeated_groupMemberships_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: { + Name = input.ReadString(); + break; + } + case 18: { + Parent = input.ReadString(); + break; + } + case 26: { + ResourceName = input.ReadString(); + break; + } + case 32: { + State = (global::Google.Cloud.SecurityCenter.V1.Finding.Types.State) input.ReadEnum(); + break; + } + case 42: { + Category = input.ReadString(); + break; + } + case 50: { + ExternalUri = input.ReadString(); + break; + } + case 58: { + sourceProperties_.AddEntriesFrom(ref input, _map_sourceProperties_codec); + break; + } + case 66: { + if (securityMarks_ == null) { + SecurityMarks = new global::Google.Cloud.SecurityCenter.V1.SecurityMarks(); + } + input.ReadMessage(SecurityMarks); + break; + } + case 74: { + if (eventTime_ == null) { + EventTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EventTime); + break; + } + case 82: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 96: { + Severity = (global::Google.Cloud.SecurityCenter.V1.Finding.Types.Severity) input.ReadEnum(); + break; + } + case 114: { + CanonicalName = input.ReadString(); + break; + } + case 120: { + Mute = (global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute) input.ReadEnum(); + break; + } + case 136: { + FindingClass = (global::Google.Cloud.SecurityCenter.V1.Finding.Types.FindingClass) input.ReadEnum(); + break; + } + case 146: { + if (indicator_ == null) { + Indicator = new global::Google.Cloud.SecurityCenter.V1.Indicator(); + } + input.ReadMessage(Indicator); + break; + } + case 162: { + if (vulnerability_ == null) { + Vulnerability = new global::Google.Cloud.SecurityCenter.V1.Vulnerability(); + } + input.ReadMessage(Vulnerability); + break; + } + case 170: { + if (muteUpdateTime_ == null) { + MuteUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(MuteUpdateTime); + break; + } + case 178: { + externalSystems_.AddEntriesFrom(ref input, _map_externalSystems_codec); + break; + } + case 202: { + if (mitreAttack_ == null) { + MitreAttack = new global::Google.Cloud.SecurityCenter.V1.MitreAttack(); + } + input.ReadMessage(MitreAttack); + break; + } + case 210: { + if (access_ == null) { + Access = new global::Google.Cloud.SecurityCenter.V1.Access(); + } + input.ReadMessage(Access); + break; + } + case 226: { + MuteInitiator = input.ReadString(); + break; + } + case 242: { + processes_.AddEntriesFrom(ref input, _repeated_processes_codec); + break; + } + case 250: { + connections_.AddEntriesFrom(ref input, _repeated_connections_codec); + break; + } + case 266: { + contacts_.AddEntriesFrom(ref input, _map_contacts_codec); + break; + } + case 274: { + compliances_.AddEntriesFrom(ref input, _repeated_compliances_codec); + break; + } + case 290: { + ParentDisplayName = input.ReadString(); + break; + } + case 298: { + Description = input.ReadString(); + break; + } + case 306: { + if (exfiltration_ == null) { + Exfiltration = new global::Google.Cloud.SecurityCenter.V1.Exfiltration(); + } + input.ReadMessage(Exfiltration); + break; + } + case 314: { + iamBindings_.AddEntriesFrom(ref input, _repeated_iamBindings_codec); + break; + } + case 322: { + NextSteps = input.ReadString(); + break; + } + case 330: { + ModuleName = input.ReadString(); + break; + } + case 338: { + containers_.AddEntriesFrom(ref input, _repeated_containers_codec); + break; + } + case 346: { + if (kubernetes_ == null) { + Kubernetes = new global::Google.Cloud.SecurityCenter.V1.Kubernetes(); + } + input.ReadMessage(Kubernetes); + break; + } + case 354: { + if (database_ == null) { + Database = new global::Google.Cloud.SecurityCenter.V1.Database(); + } + input.ReadMessage(Database); + break; + } + case 362: { + if (attackExposure_ == null) { + AttackExposure = new global::Google.Cloud.SecurityCenter.V1.AttackExposure(); + } + input.ReadMessage(AttackExposure); + break; + } + case 370: { + files_.AddEntriesFrom(ref input, _repeated_files_codec); + break; + } + case 386: { + if (cloudDlpInspection_ == null) { + CloudDlpInspection = new global::Google.Cloud.SecurityCenter.V1.CloudDlpInspection(); + } + input.ReadMessage(CloudDlpInspection); + break; + } + case 394: { + if (cloudDlpDataProfile_ == null) { + CloudDlpDataProfile = new global::Google.Cloud.SecurityCenter.V1.CloudDlpDataProfile(); + } + input.ReadMessage(CloudDlpDataProfile); + break; + } + case 402: { + if (kernelRootkit_ == null) { + KernelRootkit = new global::Google.Cloud.SecurityCenter.V1.KernelRootkit(); + } + input.ReadMessage(KernelRootkit); + break; + } + case 410: { + orgPolicies_.AddEntriesFrom(ref input, _repeated_orgPolicies_codec); + break; + } + case 426: { + if (application_ == null) { + Application = new global::Google.Cloud.SecurityCenter.V1.Application(); + } + input.ReadMessage(Application); + break; + } + case 442: { + if (backupDisasterRecovery_ == null) { + BackupDisasterRecovery = new global::Google.Cloud.SecurityCenter.V1.BackupDisasterRecovery(); + } + input.ReadMessage(BackupDisasterRecovery); + break; + } + case 450: { + if (securityPosture_ == null) { + SecurityPosture = new global::Google.Cloud.SecurityCenter.V1.SecurityPosture(); + } + input.ReadMessage(SecurityPosture); + break; + } + case 458: { + logEntries_.AddEntriesFrom(ref input, _repeated_logEntries_codec); + break; + } + case 466: { + loadBalancers_.AddEntriesFrom(ref input, _repeated_loadBalancers_codec); + break; + } + case 474: { + if (cloudArmor_ == null) { + CloudArmor = new global::Google.Cloud.SecurityCenter.V1.CloudArmor(); + } + input.ReadMessage(CloudArmor); + break; + } + case 490: { + if (muteInfo_ == null) { + MuteInfo = new global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo(); + } + input.ReadMessage(MuteInfo); + break; + } + case 506: { + if (notebook_ == null) { + Notebook = new global::Google.Cloud.SecurityCenter.V1.Notebook(); + } + input.ReadMessage(Notebook); + break; + } + case 514: { + if (toxicCombination_ == null) { + ToxicCombination = new global::Google.Cloud.SecurityCenter.V1.ToxicCombination(); + } + input.ReadMessage(ToxicCombination); + break; + } + case 522: { + groupMemberships_.AddEntriesFrom(ref input, _repeated_groupMemberships_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Finding message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The state of the finding. + /// + public enum State { + /// + /// Unspecified state. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The finding requires attention and has not been addressed yet. + /// + [pbr::OriginalName("ACTIVE")] Active = 1, + /// + /// The finding has been fixed, triaged as a non-issue or otherwise addressed + /// and is no longer active. + /// + [pbr::OriginalName("INACTIVE")] Inactive = 2, + } + + /// + /// The severity of the finding. + /// + public enum Severity { + /// + /// This value is used for findings when a source doesn't write a severity + /// value. + /// + [pbr::OriginalName("SEVERITY_UNSPECIFIED")] Unspecified = 0, + /// + /// Vulnerability: + /// A critical vulnerability is easily discoverable by an external actor, + /// exploitable, and results in the direct ability to execute arbitrary code, + /// exfiltrate data, and otherwise gain additional access and privileges to + /// cloud resources and workloads. Examples include publicly accessible + /// unprotected user data and public SSH access with weak or no + /// passwords. + /// + /// Threat: + /// Indicates a threat that is able to access, modify, or delete data or + /// execute unauthorized code within existing resources. + /// + [pbr::OriginalName("CRITICAL")] Critical = 1, + /// + /// Vulnerability: + /// A high risk vulnerability can be easily discovered and exploited in + /// combination with other vulnerabilities in order to gain direct access and + /// the ability to execute arbitrary code, exfiltrate data, and otherwise + /// gain additional access and privileges to cloud resources and workloads. + /// An example is a database with weak or no passwords that is only + /// accessible internally. This database could easily be compromised by an + /// actor that had access to the internal network. + /// + /// Threat: + /// Indicates a threat that is able to create new computational resources in + /// an environment but not able to access data or execute code in existing + /// resources. + /// + [pbr::OriginalName("HIGH")] High = 2, + /// + /// Vulnerability: + /// A medium risk vulnerability could be used by an actor to gain access to + /// resources or privileges that enable them to eventually (through multiple + /// steps or a complex exploit) gain access and the ability to execute + /// arbitrary code or exfiltrate data. An example is a service account with + /// access to more projects than it should have. If an actor gains access to + /// the service account, they could potentially use that access to manipulate + /// a project the service account was not intended to. + /// + /// Threat: + /// Indicates a threat that is able to cause operational impact but may not + /// access data or execute unauthorized code. + /// + [pbr::OriginalName("MEDIUM")] Medium = 3, + /// + /// Vulnerability: + /// A low risk vulnerability hampers a security organization's ability to + /// detect vulnerabilities or active threats in their deployment, or prevents + /// the root cause investigation of security issues. An example is monitoring + /// and logs being disabled for resource configurations and access. + /// + /// Threat: + /// Indicates a threat that has obtained minimal access to an environment but + /// is not able to access data, execute code, or create resources. + /// + [pbr::OriginalName("LOW")] Low = 4, + } + + /// + /// Mute state a finding can be in. + /// + public enum Mute { + /// + /// Unspecified. + /// + [pbr::OriginalName("MUTE_UNSPECIFIED")] Unspecified = 0, + /// + /// Finding has been muted. + /// + [pbr::OriginalName("MUTED")] D = 1, + /// + /// Finding has been unmuted. + /// + [pbr::OriginalName("UNMUTED")] Unmuted = 2, + /// + /// Finding has never been muted/unmuted. + /// + [pbr::OriginalName("UNDEFINED")] Undefined = 4, + } + + /// + /// Represents what kind of Finding it is. + /// + public enum FindingClass { + /// + /// Unspecified finding class. + /// + [pbr::OriginalName("FINDING_CLASS_UNSPECIFIED")] Unspecified = 0, + /// + /// Describes unwanted or malicious activity. + /// + [pbr::OriginalName("THREAT")] Threat = 1, + /// + /// Describes a potential weakness in software that increases risk to + /// Confidentiality & Integrity & Availability. + /// + [pbr::OriginalName("VULNERABILITY")] Vulnerability = 2, + /// + /// Describes a potential weakness in cloud resource/asset configuration that + /// increases risk. + /// + [pbr::OriginalName("MISCONFIGURATION")] Misconfiguration = 3, + /// + /// Describes a security observation that is for informational purposes. + /// + [pbr::OriginalName("OBSERVATION")] Observation = 4, + /// + /// Describes an error that prevents some SCC functionality. + /// + [pbr::OriginalName("SCC_ERROR")] SccError = 5, + /// + /// Describes a potential security risk due to a change in the security + /// posture. + /// + [pbr::OriginalName("POSTURE_VIOLATION")] PostureViolation = 6, + /// + /// Describes a group of security issues that, when the issues + /// occur together, represent a greater risk than when the issues occur + /// independently. A group of such issues is referred to as a toxic + /// combination. + /// + [pbr::OriginalName("TOXIC_COMBINATION")] ToxicCombination = 7, + } + + /// + /// Mute information about the finding, including whether the finding has a + /// static mute or any matching dynamic mute rules. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MuteInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MuteInfo()); + 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.SecurityCenter.V1.Finding.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 MuteInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MuteInfo(MuteInfo other) : this() { + staticMute_ = other.staticMute_ != null ? other.staticMute_.Clone() : null; + dynamicMuteRecords_ = other.dynamicMuteRecords_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MuteInfo Clone() { + return new MuteInfo(this); + } + + /// Field number for the "static_mute" field. + public const int StaticMuteFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo.Types.StaticMute staticMute_; + /// + /// If set, the static mute applied to this finding. Static mutes override + /// dynamic mutes. If unset, there is no static mute. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo.Types.StaticMute StaticMute { + get { return staticMute_; } + set { + staticMute_ = value; + } + } + + /// Field number for the "dynamic_mute_records" field. + public const int DynamicMuteRecordsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_dynamicMuteRecords_codec + = pb::FieldCodec.ForMessage(18, global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo.Types.DynamicMuteRecord.Parser); + private readonly pbc::RepeatedField dynamicMuteRecords_ = new pbc::RepeatedField(); + /// + /// The list of dynamic mute rules that currently match the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DynamicMuteRecords { + get { return dynamicMuteRecords_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MuteInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MuteInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StaticMute, other.StaticMute)) return false; + if(!dynamicMuteRecords_.Equals(other.dynamicMuteRecords_)) 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 (staticMute_ != null) hash ^= StaticMute.GetHashCode(); + hash ^= dynamicMuteRecords_.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 (staticMute_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StaticMute); + } + dynamicMuteRecords_.WriteTo(output, _repeated_dynamicMuteRecords_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) { + if (staticMute_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StaticMute); + } + dynamicMuteRecords_.WriteTo(ref output, _repeated_dynamicMuteRecords_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; + if (staticMute_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StaticMute); + } + size += dynamicMuteRecords_.CalculateSize(_repeated_dynamicMuteRecords_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MuteInfo other) { + if (other == null) { + return; + } + if (other.staticMute_ != null) { + if (staticMute_ == null) { + StaticMute = new global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo.Types.StaticMute(); + } + StaticMute.MergeFrom(other.StaticMute); + } + dynamicMuteRecords_.Add(other.dynamicMuteRecords_); + _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 (staticMute_ == null) { + StaticMute = new global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo.Types.StaticMute(); + } + input.ReadMessage(StaticMute); + break; + } + case 18: { + dynamicMuteRecords_.AddEntriesFrom(input, _repeated_dynamicMuteRecords_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: { + if (staticMute_ == null) { + StaticMute = new global::Google.Cloud.SecurityCenter.V1.Finding.Types.MuteInfo.Types.StaticMute(); + } + input.ReadMessage(StaticMute); + break; + } + case 18: { + dynamicMuteRecords_.AddEntriesFrom(ref input, _repeated_dynamicMuteRecords_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MuteInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Information about the static mute state. A static mute state overrides + /// any dynamic mute rules that apply to this finding. The static mute state + /// can be set by a static mute rule or by muting the finding directly. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StaticMute : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StaticMute()); + 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.SecurityCenter.V1.Finding.Types.MuteInfo.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 StaticMute() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StaticMute(StaticMute other) : this() { + state_ = other.state_; + applyTime_ = other.applyTime_ != null ? other.applyTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StaticMute Clone() { + return new StaticMute(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute state_ = global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute.Unspecified; + /// + /// The static mute state. If the value is `MUTED` or `UNMUTED`, then the + /// finding's overall mute state will have the same value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "apply_time" field. + public const int ApplyTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp applyTime_; + /// + /// When the static mute was applied. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ApplyTime { + get { return applyTime_; } + set { + applyTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StaticMute); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StaticMute other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (State != other.State) return false; + if (!object.Equals(ApplyTime, other.ApplyTime)) 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 (State != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute.Unspecified) hash ^= State.GetHashCode(); + if (applyTime_ != null) hash ^= ApplyTime.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 (State != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + if (applyTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ApplyTime); + } + 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 (State != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + if (applyTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ApplyTime); + } + 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 (State != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (applyTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApplyTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StaticMute other) { + if (other == null) { + return; + } + if (other.State != global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute.Unspecified) { + State = other.State; + } + if (other.applyTime_ != null) { + if (applyTime_ == null) { + ApplyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ApplyTime.MergeFrom(other.ApplyTime); + } + _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 8: { + State = (global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute) input.ReadEnum(); + break; + } + case 18: { + if (applyTime_ == null) { + ApplyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ApplyTime); + 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 8: { + State = (global::Google.Cloud.SecurityCenter.V1.Finding.Types.Mute) input.ReadEnum(); + break; + } + case 18: { + if (applyTime_ == null) { + ApplyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ApplyTime); + break; + } + } + } + } + #endif + + } + + /// + /// The record of a dynamic mute rule that matches the finding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DynamicMuteRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicMuteRecord()); + 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.SecurityCenter.V1.Finding.Types.MuteInfo.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 DynamicMuteRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DynamicMuteRecord(DynamicMuteRecord other) : this() { + muteConfig_ = other.muteConfig_; + matchTime_ = other.matchTime_ != null ? other.matchTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DynamicMuteRecord Clone() { + return new DynamicMuteRecord(this); + } + + /// Field number for the "mute_config" field. + public const int MuteConfigFieldNumber = 1; + private string muteConfig_ = ""; + /// + /// The relative resource name of the mute rule, represented by a mute + /// config, that created this record, for example + /// `organizations/123/muteConfigs/mymuteconfig` or + /// `organizations/123/locations/global/muteConfigs/mymuteconfig`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MuteConfig { + get { return muteConfig_; } + set { + muteConfig_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "match_time" field. + public const int MatchTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp matchTime_; + /// + /// When the dynamic mute rule first matched the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp MatchTime { + get { return matchTime_; } + set { + matchTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DynamicMuteRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DynamicMuteRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MuteConfig != other.MuteConfig) return false; + if (!object.Equals(MatchTime, other.MatchTime)) 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 (MuteConfig.Length != 0) hash ^= MuteConfig.GetHashCode(); + if (matchTime_ != null) hash ^= MatchTime.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 (MuteConfig.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MuteConfig); + } + if (matchTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MatchTime); + } + 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 (MuteConfig.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MuteConfig); + } + if (matchTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MatchTime); + } + 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 (MuteConfig.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MuteConfig); + } + if (matchTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MatchTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DynamicMuteRecord other) { + if (other == null) { + return; + } + if (other.MuteConfig.Length != 0) { + MuteConfig = other.MuteConfig; + } + if (other.matchTime_ != null) { + if (matchTime_ == null) { + MatchTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + MatchTime.MergeFrom(other.MatchTime); + } + _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: { + MuteConfig = input.ReadString(); + break; + } + case 18: { + if (matchTime_ == null) { + MatchTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(MatchTime); + 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: { + MuteConfig = input.ReadString(); + break; + } + case 18: { + if (matchTime_ == null) { + MatchTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(MatchTime); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/FindingResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/FindingResourceNames.g.cs new file mode 100755 index 000000000000..d7d9a02a95ee --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/FindingResourceNames.g.cs @@ -0,0 +1,381 @@ +// 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.SecurityCenter.V1; +using sys = System; + +namespace Google.Cloud.SecurityCenter.V1 +{ + /// Resource name for the Finding resource. + public sealed partial class FindingName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern organizations/{organization}/sources/{source}/findings/{finding}. + /// + OrganizationSourceFinding = 1, + + /// + /// A resource name with pattern folders/{folder}/sources/{source}/findings/{finding}. + /// + FolderSourceFinding = 2, + + /// + /// A resource name with pattern projects/{project}/sources/{source}/findings/{finding}. + /// + ProjectSourceFinding = 3, + } + + private static gax::PathTemplate s_organizationSourceFinding = new gax::PathTemplate("organizations/{organization}/sources/{source}/findings/{finding}"); + + private static gax::PathTemplate s_folderSourceFinding = new gax::PathTemplate("folders/{folder}/sources/{source}/findings/{finding}"); + + private static gax::PathTemplate s_projectSourceFinding = new gax::PathTemplate("projects/{project}/sources/{source}/findings/{finding}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static FindingName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new FindingName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// organizations/{organization}/sources/{source}/findings/{finding}. + /// + /// The Organization ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static FindingName FromOrganizationSourceFinding(string organizationId, string sourceId, string findingId) => + new FindingName(ResourceNameType.OrganizationSourceFinding, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), sourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), findingId: gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId))); + + /// + /// Creates a with the pattern folders/{folder}/sources/{source}/findings/{finding} + /// . + /// + /// The Folder ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static FindingName FromFolderSourceFinding(string folderId, string sourceId, string findingId) => + new FindingName(ResourceNameType.FolderSourceFinding, folderId: gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), sourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), findingId: gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId))); + + /// + /// Creates a with the pattern + /// projects/{project}/sources/{source}/findings/{finding}. + /// + /// The Project ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static FindingName FromProjectSourceFinding(string projectId, string sourceId, string findingId) => + new FindingName(ResourceNameType.ProjectSourceFinding, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), sourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), findingId: gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/sources/{source}/findings/{finding}. + /// + /// The Organization ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/sources/{source}/findings/{finding}. + /// + public static string Format(string organizationId, string sourceId, string findingId) => + FormatOrganizationSourceFinding(organizationId, sourceId, findingId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/sources/{source}/findings/{finding}. + /// + /// The Organization ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/sources/{source}/findings/{finding}. + /// + public static string FormatOrganizationSourceFinding(string organizationId, string sourceId, string findingId) => + s_organizationSourceFinding.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// folders/{folder}/sources/{source}/findings/{finding}. + /// + /// The Folder ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// folders/{folder}/sources/{source}/findings/{finding}. + /// + public static string FormatFolderSourceFinding(string folderId, string sourceId, string findingId) => + s_folderSourceFinding.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/sources/{source}/findings/{finding}. + /// + /// The Project ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/sources/{source}/findings/{finding}. + /// + public static string FormatProjectSourceFinding(string projectId, string sourceId, string findingId) => + s_projectSourceFinding.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// organizations/{organization}/sources/{source}/findings/{finding} + /// + /// folders/{folder}/sources/{source}/findings/{finding} + /// projects/{project}/sources/{source}/findings/{finding} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static FindingName Parse(string findingName) => Parse(findingName, 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: + /// + /// + /// organizations/{organization}/sources/{source}/findings/{finding} + /// + /// folders/{folder}/sources/{source}/findings/{finding} + /// projects/{project}/sources/{source}/findings/{finding} + /// + /// 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 FindingName Parse(string findingName, bool allowUnparsed) => + TryParse(findingName, allowUnparsed, out FindingName 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: + /// + /// + /// organizations/{organization}/sources/{source}/findings/{finding} + /// + /// folders/{folder}/sources/{source}/findings/{finding} + /// projects/{project}/sources/{source}/findings/{finding} + /// + /// + /// 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 findingName, out FindingName result) => TryParse(findingName, 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: + /// + /// + /// organizations/{organization}/sources/{source}/findings/{finding} + /// + /// folders/{folder}/sources/{source}/findings/{finding} + /// projects/{project}/sources/{source}/findings/{finding} + /// + /// 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 findingName, bool allowUnparsed, out FindingName result) + { + gax::GaxPreconditions.CheckNotNull(findingName, nameof(findingName)); + gax::TemplatedResourceName resourceName; + if (s_organizationSourceFinding.TryParseName(findingName, out resourceName)) + { + result = FromOrganizationSourceFinding(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (s_folderSourceFinding.TryParseName(findingName, out resourceName)) + { + result = FromFolderSourceFinding(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (s_projectSourceFinding.TryParseName(findingName, out resourceName)) + { + result = FromProjectSourceFinding(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(findingName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private FindingName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string findingId = null, string folderId = null, string organizationId = null, string projectId = null, string sourceId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + FindingId = findingId; + FolderId = folderId; + OrganizationId = organizationId; + ProjectId = projectId; + SourceId = sourceId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// organizations/{organization}/sources/{source}/findings/{finding} + /// + /// The Organization ID. Must not be null or empty. + /// The Source ID. Must not be null or empty. + /// The Finding ID. Must not be null or empty. + public FindingName(string organizationId, string sourceId, string findingId) : this(ResourceNameType.OrganizationSourceFinding, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), sourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)), findingId: gax::GaxPreconditions.CheckNotNullOrEmpty(findingId, nameof(findingId))) + { + } + + /// 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 Finding ID. May be null, depending on which resource name is contained by this instance. + /// + public string FindingId { get; } + + /// + /// The Folder ID. May be null, depending on which resource name is contained by this instance. + /// + public string FolderId { get; } + + /// + /// The Organization ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string OrganizationId { get; } + + /// + /// The Project ID. May be null, depending on which resource name is contained by this instance. + /// + public string ProjectId { get; } + + /// + /// The Source ID. May be null, depending on which resource name is contained by this instance. + /// + public string SourceId { 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.OrganizationSourceFinding: return s_organizationSourceFinding.Expand(OrganizationId, SourceId, FindingId); + case ResourceNameType.FolderSourceFinding: return s_folderSourceFinding.Expand(FolderId, SourceId, FindingId); + case ResourceNameType.ProjectSourceFinding: return s_projectSourceFinding.Expand(ProjectId, SourceId, FindingId); + 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 FindingName); + + /// + public bool Equals(FindingName 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 ==(FindingName a, FindingName 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 !=(FindingName a, FindingName b) => !(a == b); + } + + public partial class Finding + { + /// + /// -typed view over the resource name property. + /// + public gcsv::FindingName FindingName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::FindingName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Folder.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Folder.g.cs new file mode 100755 index 000000000000..29c1d8b0c6dd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Folder.g.cs @@ -0,0 +1,288 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/folder.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/folder.proto + public static partial class FolderReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/folder.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FolderReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Citnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZm9sZGVyLnByb3Rv", + "Eh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEiRwoGRm9sZGVyEhcK", + "D3Jlc291cmNlX2ZvbGRlchgBIAEoCRIkChxyZXNvdXJjZV9mb2xkZXJfZGlz", + "cGxheV9uYW1lGAIgASgJQuUBCiJjb20uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5", + "Y2VudGVyLnYxQgtGb2xkZXJQcm90b1ABWkpjbG91ZC5nb29nbGUuY29tL2dv", + "L3NlY3VyaXR5Y2VudGVyL2FwaXYxL3NlY3VyaXR5Y2VudGVycGI7c2VjdXJp", + "dHljZW50ZXJwYqoCHkdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5WMcoC", + "Hkdvb2dsZVxDbG91ZFxTZWN1cml0eUNlbnRlclxWMeoCIUdvb2dsZTo6Q2xv", + "dWQ6OlNlY3VyaXR5Q2VudGVyOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Folder), global::Google.Cloud.SecurityCenter.V1.Folder.Parser, new[]{ "ResourceFolder", "ResourceFolderDisplayName" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Message that contains the resource name and display name of a folder + /// resource. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Folder : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Folder()); + 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.SecurityCenter.V1.FolderReflection.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 Folder() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Folder(Folder other) : this() { + resourceFolder_ = other.resourceFolder_; + resourceFolderDisplayName_ = other.resourceFolderDisplayName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Folder Clone() { + return new Folder(this); + } + + /// Field number for the "resource_folder" field. + public const int ResourceFolderFieldNumber = 1; + private string resourceFolder_ = ""; + /// + /// Full resource name of this folder. See: + /// https://cloud.google.com/apis/design/resource_names#full_resource_name + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceFolder { + get { return resourceFolder_; } + set { + resourceFolder_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_folder_display_name" field. + public const int ResourceFolderDisplayNameFieldNumber = 2; + private string resourceFolderDisplayName_ = ""; + /// + /// The user defined display name for this folder. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceFolderDisplayName { + get { return resourceFolderDisplayName_; } + set { + resourceFolderDisplayName_ = 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 Folder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Folder other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ResourceFolder != other.ResourceFolder) return false; + if (ResourceFolderDisplayName != other.ResourceFolderDisplayName) 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 (ResourceFolder.Length != 0) hash ^= ResourceFolder.GetHashCode(); + if (ResourceFolderDisplayName.Length != 0) hash ^= ResourceFolderDisplayName.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 (ResourceFolder.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceFolder); + } + if (ResourceFolderDisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceFolderDisplayName); + } + 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 (ResourceFolder.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ResourceFolder); + } + if (ResourceFolderDisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceFolderDisplayName); + } + 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 (ResourceFolder.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceFolder); + } + if (ResourceFolderDisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceFolderDisplayName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Folder other) { + if (other == null) { + return; + } + if (other.ResourceFolder.Length != 0) { + ResourceFolder = other.ResourceFolder; + } + if (other.ResourceFolderDisplayName.Length != 0) { + ResourceFolderDisplayName = other.ResourceFolderDisplayName; + } + _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: { + ResourceFolder = input.ReadString(); + break; + } + case 18: { + ResourceFolderDisplayName = 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: { + ResourceFolder = input.ReadString(); + break; + } + case 18: { + ResourceFolderDisplayName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.csproj b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.csproj new file mode 100755 index 000000000000..564228297271 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1.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.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/GroupMembership.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/GroupMembership.g.cs new file mode 100755 index 000000000000..92c085587948 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/GroupMembership.g.cs @@ -0,0 +1,312 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/group_membership.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/group_membership.proto + public static partial class GroupMembershipReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/group_membership.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GroupMembershipReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjVnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZ3JvdXBfbWVtYmVy", + "c2hpcC5wcm90bxIeZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxIr0B", + "Cg9Hcm91cE1lbWJlcnNoaXASTQoKZ3JvdXBfdHlwZRgBIAEoDjI5Lmdvb2ds", + "ZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5Hcm91cE1lbWJlcnNoaXAuR3Jv", + "dXBUeXBlEhAKCGdyb3VwX2lkGAIgASgJIkkKCUdyb3VwVHlwZRIaChZHUk9V", + "UF9UWVBFX1VOU1BFQ0lGSUVEEAASIAocR1JPVVBfVFlQRV9UT1hJQ19DT01C", + "SU5BVElPThABQu4BCiJjb20uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVy", + "LnYxQhRHcm91cE1lbWJlcnNoaXBQcm90b1ABWkpjbG91ZC5nb29nbGUuY29t", + "L2dvL3NlY3VyaXR5Y2VudGVyL2FwaXYxL3NlY3VyaXR5Y2VudGVycGI7c2Vj", + "dXJpdHljZW50ZXJwYqoCHkdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5W", + "McoCHkdvb2dsZVxDbG91ZFxTZWN1cml0eUNlbnRlclxWMeoCIUdvb2dsZTo6", + "Q2xvdWQ6OlNlY3VyaXR5Q2VudGVyOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.GroupMembership), global::Google.Cloud.SecurityCenter.V1.GroupMembership.Parser, new[]{ "GroupType", "GroupId" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.GroupMembership.Types.GroupType) }, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Contains details about groups of which this finding is a member. A group is a + /// collection of findings that are related in some way. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GroupMembership : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GroupMembership()); + 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.SecurityCenter.V1.GroupMembershipReflection.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 GroupMembership() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupMembership(GroupMembership other) : this() { + groupType_ = other.groupType_; + groupId_ = other.groupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupMembership Clone() { + return new GroupMembership(this); + } + + /// Field number for the "group_type" field. + public const int GroupTypeFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.V1.GroupMembership.Types.GroupType groupType_ = global::Google.Cloud.SecurityCenter.V1.GroupMembership.Types.GroupType.Unspecified; + /// + /// Type of group. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.GroupMembership.Types.GroupType GroupType { + get { return groupType_; } + set { + groupType_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 2; + private string groupId_ = ""; + /// + /// ID of the group. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GroupId { + get { return groupId_; } + set { + groupId_ = 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 GroupMembership); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GroupMembership other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupType != other.GroupType) return false; + if (GroupId != other.GroupId) 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 (GroupType != global::Google.Cloud.SecurityCenter.V1.GroupMembership.Types.GroupType.Unspecified) hash ^= GroupType.GetHashCode(); + if (GroupId.Length != 0) hash ^= GroupId.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 (GroupType != global::Google.Cloud.SecurityCenter.V1.GroupMembership.Types.GroupType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) GroupType); + } + if (GroupId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GroupId); + } + 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 (GroupType != global::Google.Cloud.SecurityCenter.V1.GroupMembership.Types.GroupType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) GroupType); + } + if (GroupId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GroupId); + } + 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 (GroupType != global::Google.Cloud.SecurityCenter.V1.GroupMembership.Types.GroupType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GroupType); + } + if (GroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GroupMembership other) { + if (other == null) { + return; + } + if (other.GroupType != global::Google.Cloud.SecurityCenter.V1.GroupMembership.Types.GroupType.Unspecified) { + GroupType = other.GroupType; + } + if (other.GroupId.Length != 0) { + GroupId = other.GroupId; + } + _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 8: { + GroupType = (global::Google.Cloud.SecurityCenter.V1.GroupMembership.Types.GroupType) input.ReadEnum(); + break; + } + case 18: { + GroupId = 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 8: { + GroupType = (global::Google.Cloud.SecurityCenter.V1.GroupMembership.Types.GroupType) input.ReadEnum(); + break; + } + case 18: { + GroupId = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the GroupMembership message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible types of groups. + /// + public enum GroupType { + /// + /// Default value. + /// + [pbr::OriginalName("GROUP_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Group represents a toxic combination. + /// + [pbr::OriginalName("GROUP_TYPE_TOXIC_COMBINATION")] ToxicCombination = 1, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/IamBinding.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/IamBinding.g.cs new file mode 100755 index 000000000000..8b9f06719c7f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/IamBinding.g.cs @@ -0,0 +1,357 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/iam_binding.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/iam_binding.proto + public static partial class IamBindingReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/iam_binding.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static IamBindingReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjBnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvaWFtX2JpbmRpbmcu", + "cHJvdG8SHmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MSKkAQoKSWFt", + "QmluZGluZxJBCgZhY3Rpb24YASABKA4yMS5nb29nbGUuY2xvdWQuc2VjdXJp", + "dHljZW50ZXIudjEuSWFtQmluZGluZy5BY3Rpb24SDAoEcm9sZRgCIAEoCRIO", + "CgZtZW1iZXIYAyABKAkiNQoGQWN0aW9uEhYKEkFDVElPTl9VTlNQRUNJRklF", + "RBAAEgcKA0FERBABEgoKBlJFTU9WRRACQukBCiJjb20uZ29vZ2xlLmNsb3Vk", + "LnNlY3VyaXR5Y2VudGVyLnYxQg9JYW1CaW5kaW5nUHJvdG9QAVpKY2xvdWQu", + "Z29vZ2xlLmNvbS9nby9zZWN1cml0eWNlbnRlci9hcGl2MS9zZWN1cml0eWNl", + "bnRlcnBiO3NlY3VyaXR5Y2VudGVycGKqAh5Hb29nbGUuQ2xvdWQuU2VjdXJp", + "dHlDZW50ZXIuVjHKAh5Hb29nbGVcQ2xvdWRcU2VjdXJpdHlDZW50ZXJcVjHq", + "AiFHb29nbGU6OkNsb3VkOjpTZWN1cml0eUNlbnRlcjo6VjFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.IamBinding), global::Google.Cloud.SecurityCenter.V1.IamBinding.Parser, new[]{ "Action", "Role", "Member" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.IamBinding.Types.Action) }, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Represents a particular IAM binding, which captures a member's role addition, + /// removal, or state. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class IamBinding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IamBinding()); + 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.SecurityCenter.V1.IamBindingReflection.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 IamBinding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IamBinding(IamBinding other) : this() { + action_ = other.action_; + role_ = other.role_; + member_ = other.member_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IamBinding Clone() { + return new IamBinding(this); + } + + /// Field number for the "action" field. + public const int ActionFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.V1.IamBinding.Types.Action action_ = global::Google.Cloud.SecurityCenter.V1.IamBinding.Types.Action.Unspecified; + /// + /// The action that was performed on a Binding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.IamBinding.Types.Action Action { + get { return action_; } + set { + action_ = value; + } + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 2; + private string role_ = ""; + /// + /// Role that is assigned to "members". + /// For example, "roles/viewer", "roles/editor", or "roles/owner". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Role { + get { return role_; } + set { + role_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "member" field. + public const int MemberFieldNumber = 3; + private string member_ = ""; + /// + /// A single identity requesting access for a Cloud Platform resource, for + /// example, "foo@google.com". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Member { + get { return member_; } + set { + member_ = 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 IamBinding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(IamBinding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Action != other.Action) return false; + if (Role != other.Role) return false; + if (Member != other.Member) 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 (Action != global::Google.Cloud.SecurityCenter.V1.IamBinding.Types.Action.Unspecified) hash ^= Action.GetHashCode(); + if (Role.Length != 0) hash ^= Role.GetHashCode(); + if (Member.Length != 0) hash ^= Member.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 (Action != global::Google.Cloud.SecurityCenter.V1.IamBinding.Types.Action.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Action); + } + if (Role.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Role); + } + if (Member.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Member); + } + 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 (Action != global::Google.Cloud.SecurityCenter.V1.IamBinding.Types.Action.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Action); + } + if (Role.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Role); + } + if (Member.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Member); + } + 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 (Action != global::Google.Cloud.SecurityCenter.V1.IamBinding.Types.Action.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Action); + } + if (Role.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Role); + } + if (Member.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Member); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(IamBinding other) { + if (other == null) { + return; + } + if (other.Action != global::Google.Cloud.SecurityCenter.V1.IamBinding.Types.Action.Unspecified) { + Action = other.Action; + } + if (other.Role.Length != 0) { + Role = other.Role; + } + if (other.Member.Length != 0) { + Member = other.Member; + } + _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 8: { + Action = (global::Google.Cloud.SecurityCenter.V1.IamBinding.Types.Action) input.ReadEnum(); + break; + } + case 18: { + Role = input.ReadString(); + break; + } + case 26: { + Member = 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 8: { + Action = (global::Google.Cloud.SecurityCenter.V1.IamBinding.Types.Action) input.ReadEnum(); + break; + } + case 18: { + Role = input.ReadString(); + break; + } + case 26: { + Member = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the IamBinding message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type of action performed on a Binding in a policy. + /// + public enum Action { + /// + /// Unspecified. + /// + [pbr::OriginalName("ACTION_UNSPECIFIED")] Unspecified = 0, + /// + /// Addition of a Binding. + /// + [pbr::OriginalName("ADD")] Add = 1, + /// + /// Removal of a Binding. + /// + [pbr::OriginalName("REMOVE")] Remove = 2, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Indicator.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Indicator.g.cs new file mode 100755 index 000000000000..4f833c54585e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Indicator.g.cs @@ -0,0 +1,1383 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/indicator.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/indicator.proto + public static partial class IndicatorReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/indicator.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static IndicatorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci5nb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvaW5kaWNhdG9yLnBy", + "b3RvEh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEi2QYKCUluZGlj", + "YXRvchIUCgxpcF9hZGRyZXNzZXMYASADKAkSDwoHZG9tYWlucxgCIAMoCRJO", + "CgpzaWduYXR1cmVzGAMgAygLMjouZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2Vu", + "dGVyLnYxLkluZGljYXRvci5Qcm9jZXNzU2lnbmF0dXJlEgwKBHVyaXMYBCAD", + "KAkaxgUKEFByb2Nlc3NTaWduYXR1cmUSbwoVbWVtb3J5X2hhc2hfc2lnbmF0", + "dXJlGAYgASgLMk4uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLklu", + "ZGljYXRvci5Qcm9jZXNzU2lnbmF0dXJlLk1lbW9yeUhhc2hTaWduYXR1cmVI", + "ABJrChN5YXJhX3J1bGVfc2lnbmF0dXJlGAcgASgLMkwuZ29vZ2xlLmNsb3Vk", + "LnNlY3VyaXR5Y2VudGVyLnYxLkluZGljYXRvci5Qcm9jZXNzU2lnbmF0dXJl", + "LllhcmFSdWxlU2lnbmF0dXJlSAASYAoOc2lnbmF0dXJlX3R5cGUYCCABKA4y", + "SC5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEuSW5kaWNhdG9yLlBy", + "b2Nlc3NTaWduYXR1cmUuU2lnbmF0dXJlVHlwZRrWAQoTTWVtb3J5SGFzaFNp", + "Z25hdHVyZRIVCg1iaW5hcnlfZmFtaWx5GAEgASgJEmwKCmRldGVjdGlvbnMY", + "BCADKAsyWC5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEuSW5kaWNh", + "dG9yLlByb2Nlc3NTaWduYXR1cmUuTWVtb3J5SGFzaFNpZ25hdHVyZS5EZXRl", + "Y3Rpb24aOgoJRGV0ZWN0aW9uEg4KBmJpbmFyeRgCIAEoCRIdChVwZXJjZW50", + "X3BhZ2VzX21hdGNoZWQYAyABKAEaJgoRWWFyYVJ1bGVTaWduYXR1cmUSEQoJ", + "eWFyYV9ydWxlGAUgASgJImQKDVNpZ25hdHVyZVR5cGUSHgoaU0lHTkFUVVJF", + "X1RZUEVfVU5TUEVDSUZJRUQQABIaChZTSUdOQVRVUkVfVFlQRV9QUk9DRVNT", + "EAESFwoTU0lHTkFUVVJFX1RZUEVfRklMRRACQgsKCXNpZ25hdHVyZULoAQoi", + "Y29tLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MUIOSW5kaWNhdG9y", + "UHJvdG9QAVpKY2xvdWQuZ29vZ2xlLmNvbS9nby9zZWN1cml0eWNlbnRlci9h", + "cGl2MS9zZWN1cml0eWNlbnRlcnBiO3NlY3VyaXR5Y2VudGVycGKqAh5Hb29n", + "bGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuVjHKAh5Hb29nbGVcQ2xvdWRcU2Vj", + "dXJpdHlDZW50ZXJcVjHqAiFHb29nbGU6OkNsb3VkOjpTZWN1cml0eUNlbnRl", + "cjo6VjFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Indicator), global::Google.Cloud.SecurityCenter.V1.Indicator.Parser, new[]{ "IpAddresses", "Domains", "Signatures", "Uris" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature), global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Parser, new[]{ "MemoryHashSignature", "YaraRuleSignature", "SignatureType" }, new[]{ "Signature" }, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.SignatureType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature), global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature.Parser, new[]{ "BinaryFamily", "Detections" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature.Types.Detection), global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature.Types.Detection.Parser, new[]{ "Binary", "PercentPagesMatched" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.YaraRuleSignature), global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.YaraRuleSignature.Parser, new[]{ "YaraRule" }, null, null, null, null)})}) + })); + } + #endregion + + } + #region Messages + /// + /// Represents what's commonly known as an _indicator of compromise_ (IoC) in + /// computer forensics. This is an artifact observed on a network or in an + /// operating system that, with high confidence, indicates a computer intrusion. + /// For more information, see [Indicator of + /// compromise](https://en.wikipedia.org/wiki/Indicator_of_compromise). + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Indicator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Indicator()); + 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.SecurityCenter.V1.IndicatorReflection.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 Indicator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Indicator(Indicator other) : this() { + ipAddresses_ = other.ipAddresses_.Clone(); + domains_ = other.domains_.Clone(); + signatures_ = other.signatures_.Clone(); + uris_ = other.uris_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Indicator Clone() { + return new Indicator(this); + } + + /// Field number for the "ip_addresses" field. + public const int IpAddressesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_ipAddresses_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField ipAddresses_ = new pbc::RepeatedField(); + /// + /// The list of IP addresses that are associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField IpAddresses { + get { return ipAddresses_; } + } + + /// Field number for the "domains" field. + public const int DomainsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_domains_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField domains_ = new pbc::RepeatedField(); + /// + /// List of domains associated to the Finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Domains { + get { return domains_; } + } + + /// Field number for the "signatures" field. + public const int SignaturesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_signatures_codec + = pb::FieldCodec.ForMessage(26, global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Parser); + private readonly pbc::RepeatedField signatures_ = new pbc::RepeatedField(); + /// + /// The list of matched signatures indicating that the given + /// process is present in the environment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Signatures { + get { return signatures_; } + } + + /// Field number for the "uris" field. + public const int UrisFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_uris_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField uris_ = new pbc::RepeatedField(); + /// + /// The list of URIs associated to the Findings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Uris { + get { return uris_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Indicator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Indicator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!ipAddresses_.Equals(other.ipAddresses_)) return false; + if(!domains_.Equals(other.domains_)) return false; + if(!signatures_.Equals(other.signatures_)) return false; + if(!uris_.Equals(other.uris_)) 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 ^= ipAddresses_.GetHashCode(); + hash ^= domains_.GetHashCode(); + hash ^= signatures_.GetHashCode(); + hash ^= uris_.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 + ipAddresses_.WriteTo(output, _repeated_ipAddresses_codec); + domains_.WriteTo(output, _repeated_domains_codec); + signatures_.WriteTo(output, _repeated_signatures_codec); + uris_.WriteTo(output, _repeated_uris_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) { + ipAddresses_.WriteTo(ref output, _repeated_ipAddresses_codec); + domains_.WriteTo(ref output, _repeated_domains_codec); + signatures_.WriteTo(ref output, _repeated_signatures_codec); + uris_.WriteTo(ref output, _repeated_uris_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 += ipAddresses_.CalculateSize(_repeated_ipAddresses_codec); + size += domains_.CalculateSize(_repeated_domains_codec); + size += signatures_.CalculateSize(_repeated_signatures_codec); + size += uris_.CalculateSize(_repeated_uris_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Indicator other) { + if (other == null) { + return; + } + ipAddresses_.Add(other.ipAddresses_); + domains_.Add(other.domains_); + signatures_.Add(other.signatures_); + uris_.Add(other.uris_); + _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: { + ipAddresses_.AddEntriesFrom(input, _repeated_ipAddresses_codec); + break; + } + case 18: { + domains_.AddEntriesFrom(input, _repeated_domains_codec); + break; + } + case 26: { + signatures_.AddEntriesFrom(input, _repeated_signatures_codec); + break; + } + case 34: { + uris_.AddEntriesFrom(input, _repeated_uris_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: { + ipAddresses_.AddEntriesFrom(ref input, _repeated_ipAddresses_codec); + break; + } + case 18: { + domains_.AddEntriesFrom(ref input, _repeated_domains_codec); + break; + } + case 26: { + signatures_.AddEntriesFrom(ref input, _repeated_signatures_codec); + break; + } + case 34: { + uris_.AddEntriesFrom(ref input, _repeated_uris_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Indicator message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Indicates what signature matched this process. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ProcessSignature : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProcessSignature()); + 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.SecurityCenter.V1.Indicator.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 ProcessSignature() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProcessSignature(ProcessSignature other) : this() { + signatureType_ = other.signatureType_; + switch (other.SignatureCase) { + case SignatureOneofCase.MemoryHashSignature: + MemoryHashSignature = other.MemoryHashSignature.Clone(); + break; + case SignatureOneofCase.YaraRuleSignature: + YaraRuleSignature = other.YaraRuleSignature.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProcessSignature Clone() { + return new ProcessSignature(this); + } + + /// Field number for the "memory_hash_signature" field. + public const int MemoryHashSignatureFieldNumber = 6; + /// + /// Signature indicating that a binary family was matched. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature MemoryHashSignature { + get { return signatureCase_ == SignatureOneofCase.MemoryHashSignature ? (global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature) signature_ : null; } + set { + signature_ = value; + signatureCase_ = value == null ? SignatureOneofCase.None : SignatureOneofCase.MemoryHashSignature; + } + } + + /// Field number for the "yara_rule_signature" field. + public const int YaraRuleSignatureFieldNumber = 7; + /// + /// Signature indicating that a YARA rule was matched. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.YaraRuleSignature YaraRuleSignature { + get { return signatureCase_ == SignatureOneofCase.YaraRuleSignature ? (global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.YaraRuleSignature) signature_ : null; } + set { + signature_ = value; + signatureCase_ = value == null ? SignatureOneofCase.None : SignatureOneofCase.YaraRuleSignature; + } + } + + /// Field number for the "signature_type" field. + public const int SignatureTypeFieldNumber = 8; + private global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.SignatureType signatureType_ = global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.SignatureType.Unspecified; + /// + /// Describes the type of resource associated with the signature. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.SignatureType SignatureType { + get { return signatureType_; } + set { + signatureType_ = value; + } + } + + private object signature_; + /// Enum of possible cases for the "signature" oneof. + public enum SignatureOneofCase { + None = 0, + MemoryHashSignature = 6, + YaraRuleSignature = 7, + } + private SignatureOneofCase signatureCase_ = SignatureOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SignatureOneofCase SignatureCase { + get { return signatureCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSignature() { + signatureCase_ = SignatureOneofCase.None; + signature_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ProcessSignature); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ProcessSignature other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MemoryHashSignature, other.MemoryHashSignature)) return false; + if (!object.Equals(YaraRuleSignature, other.YaraRuleSignature)) return false; + if (SignatureType != other.SignatureType) return false; + if (SignatureCase != other.SignatureCase) 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 (signatureCase_ == SignatureOneofCase.MemoryHashSignature) hash ^= MemoryHashSignature.GetHashCode(); + if (signatureCase_ == SignatureOneofCase.YaraRuleSignature) hash ^= YaraRuleSignature.GetHashCode(); + if (SignatureType != global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.SignatureType.Unspecified) hash ^= SignatureType.GetHashCode(); + hash ^= (int) signatureCase_; + 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 (signatureCase_ == SignatureOneofCase.MemoryHashSignature) { + output.WriteRawTag(50); + output.WriteMessage(MemoryHashSignature); + } + if (signatureCase_ == SignatureOneofCase.YaraRuleSignature) { + output.WriteRawTag(58); + output.WriteMessage(YaraRuleSignature); + } + if (SignatureType != global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.SignatureType.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) SignatureType); + } + 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 (signatureCase_ == SignatureOneofCase.MemoryHashSignature) { + output.WriteRawTag(50); + output.WriteMessage(MemoryHashSignature); + } + if (signatureCase_ == SignatureOneofCase.YaraRuleSignature) { + output.WriteRawTag(58); + output.WriteMessage(YaraRuleSignature); + } + if (SignatureType != global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.SignatureType.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) SignatureType); + } + 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 (signatureCase_ == SignatureOneofCase.MemoryHashSignature) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MemoryHashSignature); + } + if (signatureCase_ == SignatureOneofCase.YaraRuleSignature) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(YaraRuleSignature); + } + if (SignatureType != global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.SignatureType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SignatureType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ProcessSignature other) { + if (other == null) { + return; + } + if (other.SignatureType != global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.SignatureType.Unspecified) { + SignatureType = other.SignatureType; + } + switch (other.SignatureCase) { + case SignatureOneofCase.MemoryHashSignature: + if (MemoryHashSignature == null) { + MemoryHashSignature = new global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature(); + } + MemoryHashSignature.MergeFrom(other.MemoryHashSignature); + break; + case SignatureOneofCase.YaraRuleSignature: + if (YaraRuleSignature == null) { + YaraRuleSignature = new global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.YaraRuleSignature(); + } + YaraRuleSignature.MergeFrom(other.YaraRuleSignature); + 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 50: { + global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature subBuilder = new global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature(); + if (signatureCase_ == SignatureOneofCase.MemoryHashSignature) { + subBuilder.MergeFrom(MemoryHashSignature); + } + input.ReadMessage(subBuilder); + MemoryHashSignature = subBuilder; + break; + } + case 58: { + global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.YaraRuleSignature subBuilder = new global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.YaraRuleSignature(); + if (signatureCase_ == SignatureOneofCase.YaraRuleSignature) { + subBuilder.MergeFrom(YaraRuleSignature); + } + input.ReadMessage(subBuilder); + YaraRuleSignature = subBuilder; + break; + } + case 64: { + SignatureType = (global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.SignatureType) input.ReadEnum(); + 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 50: { + global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature subBuilder = new global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature(); + if (signatureCase_ == SignatureOneofCase.MemoryHashSignature) { + subBuilder.MergeFrom(MemoryHashSignature); + } + input.ReadMessage(subBuilder); + MemoryHashSignature = subBuilder; + break; + } + case 58: { + global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.YaraRuleSignature subBuilder = new global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.YaraRuleSignature(); + if (signatureCase_ == SignatureOneofCase.YaraRuleSignature) { + subBuilder.MergeFrom(YaraRuleSignature); + } + input.ReadMessage(subBuilder); + YaraRuleSignature = subBuilder; + break; + } + case 64: { + SignatureType = (global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.SignatureType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ProcessSignature message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible resource types to be associated with a signature. + /// + public enum SignatureType { + /// + /// The default signature type. + /// + [pbr::OriginalName("SIGNATURE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Used for signatures concerning processes. + /// + [pbr::OriginalName("SIGNATURE_TYPE_PROCESS")] Process = 1, + /// + /// Used for signatures concerning disks. + /// + [pbr::OriginalName("SIGNATURE_TYPE_FILE")] File = 2, + } + + /// + /// A signature corresponding to memory page hashes. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MemoryHashSignature : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MemoryHashSignature()); + 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.SecurityCenter.V1.Indicator.Types.ProcessSignature.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 MemoryHashSignature() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MemoryHashSignature(MemoryHashSignature other) : this() { + binaryFamily_ = other.binaryFamily_; + detections_ = other.detections_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MemoryHashSignature Clone() { + return new MemoryHashSignature(this); + } + + /// Field number for the "binary_family" field. + public const int BinaryFamilyFieldNumber = 1; + private string binaryFamily_ = ""; + /// + /// The binary family. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BinaryFamily { + get { return binaryFamily_; } + set { + binaryFamily_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "detections" field. + public const int DetectionsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_detections_codec + = pb::FieldCodec.ForMessage(34, global::Google.Cloud.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature.Types.Detection.Parser); + private readonly pbc::RepeatedField detections_ = new pbc::RepeatedField(); + /// + /// The list of memory hash detections contributing to the binary family + /// match. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Detections { + get { return detections_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MemoryHashSignature); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MemoryHashSignature other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BinaryFamily != other.BinaryFamily) return false; + if(!detections_.Equals(other.detections_)) 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 (BinaryFamily.Length != 0) hash ^= BinaryFamily.GetHashCode(); + hash ^= detections_.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 (BinaryFamily.Length != 0) { + output.WriteRawTag(10); + output.WriteString(BinaryFamily); + } + detections_.WriteTo(output, _repeated_detections_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) { + if (BinaryFamily.Length != 0) { + output.WriteRawTag(10); + output.WriteString(BinaryFamily); + } + detections_.WriteTo(ref output, _repeated_detections_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; + if (BinaryFamily.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BinaryFamily); + } + size += detections_.CalculateSize(_repeated_detections_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MemoryHashSignature other) { + if (other == null) { + return; + } + if (other.BinaryFamily.Length != 0) { + BinaryFamily = other.BinaryFamily; + } + detections_.Add(other.detections_); + _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: { + BinaryFamily = input.ReadString(); + break; + } + case 34: { + detections_.AddEntriesFrom(input, _repeated_detections_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: { + BinaryFamily = input.ReadString(); + break; + } + case 34: { + detections_.AddEntriesFrom(ref input, _repeated_detections_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MemoryHashSignature message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Memory hash detection contributing to the binary family match. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Detection : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Detection()); + 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.SecurityCenter.V1.Indicator.Types.ProcessSignature.Types.MemoryHashSignature.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 Detection() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Detection(Detection other) : this() { + binary_ = other.binary_; + percentPagesMatched_ = other.percentPagesMatched_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Detection Clone() { + return new Detection(this); + } + + /// Field number for the "binary" field. + public const int BinaryFieldNumber = 2; + private string binary_ = ""; + /// + /// The name of the binary associated with the memory hash + /// signature detection. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Binary { + get { return binary_; } + set { + binary_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "percent_pages_matched" field. + public const int PercentPagesMatchedFieldNumber = 3; + private double percentPagesMatched_; + /// + /// The percentage of memory page hashes in the signature + /// that were matched. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double PercentPagesMatched { + get { return percentPagesMatched_; } + set { + percentPagesMatched_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Detection); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Detection other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Binary != other.Binary) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(PercentPagesMatched, other.PercentPagesMatched)) 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 (Binary.Length != 0) hash ^= Binary.GetHashCode(); + if (PercentPagesMatched != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PercentPagesMatched); + 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 (Binary.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Binary); + } + if (PercentPagesMatched != 0D) { + output.WriteRawTag(25); + output.WriteDouble(PercentPagesMatched); + } + 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 (Binary.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Binary); + } + if (PercentPagesMatched != 0D) { + output.WriteRawTag(25); + output.WriteDouble(PercentPagesMatched); + } + 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 (Binary.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Binary); + } + if (PercentPagesMatched != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Detection other) { + if (other == null) { + return; + } + if (other.Binary.Length != 0) { + Binary = other.Binary; + } + if (other.PercentPagesMatched != 0D) { + PercentPagesMatched = other.PercentPagesMatched; + } + _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 18: { + Binary = input.ReadString(); + break; + } + case 25: { + PercentPagesMatched = input.ReadDouble(); + 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 18: { + Binary = input.ReadString(); + break; + } + case 25: { + PercentPagesMatched = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A signature corresponding to a YARA rule. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class YaraRuleSignature : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new YaraRuleSignature()); + 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.SecurityCenter.V1.Indicator.Types.ProcessSignature.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 YaraRuleSignature() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public YaraRuleSignature(YaraRuleSignature other) : this() { + yaraRule_ = other.yaraRule_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public YaraRuleSignature Clone() { + return new YaraRuleSignature(this); + } + + /// Field number for the "yara_rule" field. + public const int YaraRuleFieldNumber = 5; + private string yaraRule_ = ""; + /// + /// The name of the YARA rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string YaraRule { + get { return yaraRule_; } + set { + yaraRule_ = 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 YaraRuleSignature); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(YaraRuleSignature other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (YaraRule != other.YaraRule) 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 (YaraRule.Length != 0) hash ^= YaraRule.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 (YaraRule.Length != 0) { + output.WriteRawTag(42); + output.WriteString(YaraRule); + } + 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 (YaraRule.Length != 0) { + output.WriteRawTag(42); + output.WriteString(YaraRule); + } + 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 (YaraRule.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(YaraRule); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(YaraRuleSignature other) { + if (other == null) { + return; + } + if (other.YaraRule.Length != 0) { + YaraRule = other.YaraRule; + } + _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 42: { + YaraRule = 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 42: { + YaraRule = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/KernelRootkit.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/KernelRootkit.g.cs new file mode 100755 index 000000000000..b42dca4b52cf --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/KernelRootkit.g.cs @@ -0,0 +1,580 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/kernel_rootkit.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/kernel_rootkit.proto + public static partial class KernelRootkitReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/kernel_rootkit.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static KernelRootkitReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjNnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEva2VybmVsX3Jvb3Rr", + "aXQucHJvdG8SHmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MSLXAgoN", + "S2VybmVsUm9vdGtpdBIMCgRuYW1lGAEgASgJEiQKHHVuZXhwZWN0ZWRfY29k", + "ZV9tb2RpZmljYXRpb24YAiABKAgSLgomdW5leHBlY3RlZF9yZWFkX29ubHlf", + "ZGF0YV9tb2RpZmljYXRpb24YAyABKAgSIQoZdW5leHBlY3RlZF9mdHJhY2Vf", + "aGFuZGxlchgEIAEoCBIhChl1bmV4cGVjdGVkX2twcm9iZV9oYW5kbGVyGAUg", + "ASgIEiQKHHVuZXhwZWN0ZWRfa2VybmVsX2NvZGVfcGFnZXMYBiABKAgSJgoe", + "dW5leHBlY3RlZF9zeXN0ZW1fY2FsbF9oYW5kbGVyGAcgASgIEiQKHHVuZXhw", + "ZWN0ZWRfaW50ZXJydXB0X2hhbmRsZXIYCCABKAgSKAogdW5leHBlY3RlZF9w", + "cm9jZXNzZXNfaW5fcnVucXVldWUYCSABKAhC7AEKImNvbS5nb29nbGUuY2xv", + "dWQuc2VjdXJpdHljZW50ZXIudjFCEktlcm5lbFJvb3RraXRQcm90b1ABWkpj", + "bG91ZC5nb29nbGUuY29tL2dvL3NlY3VyaXR5Y2VudGVyL2FwaXYxL3NlY3Vy", + "aXR5Y2VudGVycGI7c2VjdXJpdHljZW50ZXJwYqoCHkdvb2dsZS5DbG91ZC5T", + "ZWN1cml0eUNlbnRlci5WMcoCHkdvb2dsZVxDbG91ZFxTZWN1cml0eUNlbnRl", + "clxWMeoCIUdvb2dsZTo6Q2xvdWQ6OlNlY3VyaXR5Q2VudGVyOjpWMWIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.KernelRootkit), global::Google.Cloud.SecurityCenter.V1.KernelRootkit.Parser, new[]{ "Name", "UnexpectedCodeModification", "UnexpectedReadOnlyDataModification", "UnexpectedFtraceHandler", "UnexpectedKprobeHandler", "UnexpectedKernelCodePages", "UnexpectedSystemCallHandler", "UnexpectedInterruptHandler", "UnexpectedProcessesInRunqueue" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Kernel mode rootkit signatures. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class KernelRootkit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KernelRootkit()); + 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.SecurityCenter.V1.KernelRootkitReflection.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 KernelRootkit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KernelRootkit(KernelRootkit other) : this() { + name_ = other.name_; + unexpectedCodeModification_ = other.unexpectedCodeModification_; + unexpectedReadOnlyDataModification_ = other.unexpectedReadOnlyDataModification_; + unexpectedFtraceHandler_ = other.unexpectedFtraceHandler_; + unexpectedKprobeHandler_ = other.unexpectedKprobeHandler_; + unexpectedKernelCodePages_ = other.unexpectedKernelCodePages_; + unexpectedSystemCallHandler_ = other.unexpectedSystemCallHandler_; + unexpectedInterruptHandler_ = other.unexpectedInterruptHandler_; + unexpectedProcessesInRunqueue_ = other.unexpectedProcessesInRunqueue_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KernelRootkit Clone() { + return new KernelRootkit(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Rootkit name, when available. + /// + [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 "unexpected_code_modification" field. + public const int UnexpectedCodeModificationFieldNumber = 2; + private bool unexpectedCodeModification_; + /// + /// True if unexpected modifications of kernel code memory are present. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UnexpectedCodeModification { + get { return unexpectedCodeModification_; } + set { + unexpectedCodeModification_ = value; + } + } + + /// Field number for the "unexpected_read_only_data_modification" field. + public const int UnexpectedReadOnlyDataModificationFieldNumber = 3; + private bool unexpectedReadOnlyDataModification_; + /// + /// True if unexpected modifications of kernel read-only data memory are + /// present. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UnexpectedReadOnlyDataModification { + get { return unexpectedReadOnlyDataModification_; } + set { + unexpectedReadOnlyDataModification_ = value; + } + } + + /// Field number for the "unexpected_ftrace_handler" field. + public const int UnexpectedFtraceHandlerFieldNumber = 4; + private bool unexpectedFtraceHandler_; + /// + /// True if `ftrace` points are present with callbacks pointing to regions + /// that are not in the expected kernel or module code range. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UnexpectedFtraceHandler { + get { return unexpectedFtraceHandler_; } + set { + unexpectedFtraceHandler_ = value; + } + } + + /// Field number for the "unexpected_kprobe_handler" field. + public const int UnexpectedKprobeHandlerFieldNumber = 5; + private bool unexpectedKprobeHandler_; + /// + /// True if `kprobe` points are present with callbacks pointing to regions + /// that are not in the expected kernel or module code range. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UnexpectedKprobeHandler { + get { return unexpectedKprobeHandler_; } + set { + unexpectedKprobeHandler_ = value; + } + } + + /// Field number for the "unexpected_kernel_code_pages" field. + public const int UnexpectedKernelCodePagesFieldNumber = 6; + private bool unexpectedKernelCodePages_; + /// + /// True if kernel code pages that are not in the expected kernel or module + /// code regions are present. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UnexpectedKernelCodePages { + get { return unexpectedKernelCodePages_; } + set { + unexpectedKernelCodePages_ = value; + } + } + + /// Field number for the "unexpected_system_call_handler" field. + public const int UnexpectedSystemCallHandlerFieldNumber = 7; + private bool unexpectedSystemCallHandler_; + /// + /// True if system call handlers that are are not in the expected kernel or + /// module code regions are present. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UnexpectedSystemCallHandler { + get { return unexpectedSystemCallHandler_; } + set { + unexpectedSystemCallHandler_ = value; + } + } + + /// Field number for the "unexpected_interrupt_handler" field. + public const int UnexpectedInterruptHandlerFieldNumber = 8; + private bool unexpectedInterruptHandler_; + /// + /// True if interrupt handlers that are are not in the expected kernel or + /// module code regions are present. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UnexpectedInterruptHandler { + get { return unexpectedInterruptHandler_; } + set { + unexpectedInterruptHandler_ = value; + } + } + + /// Field number for the "unexpected_processes_in_runqueue" field. + public const int UnexpectedProcessesInRunqueueFieldNumber = 9; + private bool unexpectedProcessesInRunqueue_; + /// + /// True if unexpected processes in the scheduler run queue are present. Such + /// processes are in the run queue, but not in the process task list. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UnexpectedProcessesInRunqueue { + get { return unexpectedProcessesInRunqueue_; } + set { + unexpectedProcessesInRunqueue_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as KernelRootkit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(KernelRootkit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (UnexpectedCodeModification != other.UnexpectedCodeModification) return false; + if (UnexpectedReadOnlyDataModification != other.UnexpectedReadOnlyDataModification) return false; + if (UnexpectedFtraceHandler != other.UnexpectedFtraceHandler) return false; + if (UnexpectedKprobeHandler != other.UnexpectedKprobeHandler) return false; + if (UnexpectedKernelCodePages != other.UnexpectedKernelCodePages) return false; + if (UnexpectedSystemCallHandler != other.UnexpectedSystemCallHandler) return false; + if (UnexpectedInterruptHandler != other.UnexpectedInterruptHandler) return false; + if (UnexpectedProcessesInRunqueue != other.UnexpectedProcessesInRunqueue) 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 (UnexpectedCodeModification != false) hash ^= UnexpectedCodeModification.GetHashCode(); + if (UnexpectedReadOnlyDataModification != false) hash ^= UnexpectedReadOnlyDataModification.GetHashCode(); + if (UnexpectedFtraceHandler != false) hash ^= UnexpectedFtraceHandler.GetHashCode(); + if (UnexpectedKprobeHandler != false) hash ^= UnexpectedKprobeHandler.GetHashCode(); + if (UnexpectedKernelCodePages != false) hash ^= UnexpectedKernelCodePages.GetHashCode(); + if (UnexpectedSystemCallHandler != false) hash ^= UnexpectedSystemCallHandler.GetHashCode(); + if (UnexpectedInterruptHandler != false) hash ^= UnexpectedInterruptHandler.GetHashCode(); + if (UnexpectedProcessesInRunqueue != false) hash ^= UnexpectedProcessesInRunqueue.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 (UnexpectedCodeModification != false) { + output.WriteRawTag(16); + output.WriteBool(UnexpectedCodeModification); + } + if (UnexpectedReadOnlyDataModification != false) { + output.WriteRawTag(24); + output.WriteBool(UnexpectedReadOnlyDataModification); + } + if (UnexpectedFtraceHandler != false) { + output.WriteRawTag(32); + output.WriteBool(UnexpectedFtraceHandler); + } + if (UnexpectedKprobeHandler != false) { + output.WriteRawTag(40); + output.WriteBool(UnexpectedKprobeHandler); + } + if (UnexpectedKernelCodePages != false) { + output.WriteRawTag(48); + output.WriteBool(UnexpectedKernelCodePages); + } + if (UnexpectedSystemCallHandler != false) { + output.WriteRawTag(56); + output.WriteBool(UnexpectedSystemCallHandler); + } + if (UnexpectedInterruptHandler != false) { + output.WriteRawTag(64); + output.WriteBool(UnexpectedInterruptHandler); + } + if (UnexpectedProcessesInRunqueue != false) { + output.WriteRawTag(72); + output.WriteBool(UnexpectedProcessesInRunqueue); + } + 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 (UnexpectedCodeModification != false) { + output.WriteRawTag(16); + output.WriteBool(UnexpectedCodeModification); + } + if (UnexpectedReadOnlyDataModification != false) { + output.WriteRawTag(24); + output.WriteBool(UnexpectedReadOnlyDataModification); + } + if (UnexpectedFtraceHandler != false) { + output.WriteRawTag(32); + output.WriteBool(UnexpectedFtraceHandler); + } + if (UnexpectedKprobeHandler != false) { + output.WriteRawTag(40); + output.WriteBool(UnexpectedKprobeHandler); + } + if (UnexpectedKernelCodePages != false) { + output.WriteRawTag(48); + output.WriteBool(UnexpectedKernelCodePages); + } + if (UnexpectedSystemCallHandler != false) { + output.WriteRawTag(56); + output.WriteBool(UnexpectedSystemCallHandler); + } + if (UnexpectedInterruptHandler != false) { + output.WriteRawTag(64); + output.WriteBool(UnexpectedInterruptHandler); + } + if (UnexpectedProcessesInRunqueue != false) { + output.WriteRawTag(72); + output.WriteBool(UnexpectedProcessesInRunqueue); + } + 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 (UnexpectedCodeModification != false) { + size += 1 + 1; + } + if (UnexpectedReadOnlyDataModification != false) { + size += 1 + 1; + } + if (UnexpectedFtraceHandler != false) { + size += 1 + 1; + } + if (UnexpectedKprobeHandler != false) { + size += 1 + 1; + } + if (UnexpectedKernelCodePages != false) { + size += 1 + 1; + } + if (UnexpectedSystemCallHandler != false) { + size += 1 + 1; + } + if (UnexpectedInterruptHandler != false) { + size += 1 + 1; + } + if (UnexpectedProcessesInRunqueue != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(KernelRootkit other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.UnexpectedCodeModification != false) { + UnexpectedCodeModification = other.UnexpectedCodeModification; + } + if (other.UnexpectedReadOnlyDataModification != false) { + UnexpectedReadOnlyDataModification = other.UnexpectedReadOnlyDataModification; + } + if (other.UnexpectedFtraceHandler != false) { + UnexpectedFtraceHandler = other.UnexpectedFtraceHandler; + } + if (other.UnexpectedKprobeHandler != false) { + UnexpectedKprobeHandler = other.UnexpectedKprobeHandler; + } + if (other.UnexpectedKernelCodePages != false) { + UnexpectedKernelCodePages = other.UnexpectedKernelCodePages; + } + if (other.UnexpectedSystemCallHandler != false) { + UnexpectedSystemCallHandler = other.UnexpectedSystemCallHandler; + } + if (other.UnexpectedInterruptHandler != false) { + UnexpectedInterruptHandler = other.UnexpectedInterruptHandler; + } + if (other.UnexpectedProcessesInRunqueue != false) { + UnexpectedProcessesInRunqueue = other.UnexpectedProcessesInRunqueue; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + UnexpectedCodeModification = input.ReadBool(); + break; + } + case 24: { + UnexpectedReadOnlyDataModification = input.ReadBool(); + break; + } + case 32: { + UnexpectedFtraceHandler = input.ReadBool(); + break; + } + case 40: { + UnexpectedKprobeHandler = input.ReadBool(); + break; + } + case 48: { + UnexpectedKernelCodePages = input.ReadBool(); + break; + } + case 56: { + UnexpectedSystemCallHandler = input.ReadBool(); + break; + } + case 64: { + UnexpectedInterruptHandler = input.ReadBool(); + break; + } + case 72: { + UnexpectedProcessesInRunqueue = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + UnexpectedCodeModification = input.ReadBool(); + break; + } + case 24: { + UnexpectedReadOnlyDataModification = input.ReadBool(); + break; + } + case 32: { + UnexpectedFtraceHandler = input.ReadBool(); + break; + } + case 40: { + UnexpectedKprobeHandler = input.ReadBool(); + break; + } + case 48: { + UnexpectedKernelCodePages = input.ReadBool(); + break; + } + case 56: { + UnexpectedSystemCallHandler = input.ReadBool(); + break; + } + case 64: { + UnexpectedInterruptHandler = input.ReadBool(); + break; + } + case 72: { + UnexpectedProcessesInRunqueue = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Kubernetes.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Kubernetes.g.cs new file mode 100755 index 000000000000..44c8dd3c7503 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Kubernetes.g.cs @@ -0,0 +1,2903 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/kubernetes.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/kubernetes.proto + public static partial class KubernetesReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/kubernetes.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static KubernetesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci9nb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEva3ViZXJuZXRlcy5w", + "cm90bxIeZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxGi5nb29nbGUv", + "Y2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvY29udGFpbmVyLnByb3RvGipnb29n", + "bGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvbGFiZWwucHJvdG8iggwKCkt1", + "YmVybmV0ZXMSPAoEcG9kcxgBIAMoCzIuLmdvb2dsZS5jbG91ZC5zZWN1cml0", + "eWNlbnRlci52MS5LdWJlcm5ldGVzLlBvZBI+CgVub2RlcxgCIAMoCzIvLmdv", + "b2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5LdWJlcm5ldGVzLk5vZGUS", + "RwoKbm9kZV9wb29scxgDIAMoCzIzLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNl", + "bnRlci52MS5LdWJlcm5ldGVzLk5vZGVQb29sEj4KBXJvbGVzGAQgAygLMi8u", + "Z29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkt1YmVybmV0ZXMuUm9s", + "ZRJECghiaW5kaW5ncxgFIAMoCzIyLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNl", + "bnRlci52MS5LdWJlcm5ldGVzLkJpbmRpbmcSTwoOYWNjZXNzX3Jldmlld3MY", + "BiADKAsyNy5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEuS3ViZXJu", + "ZXRlcy5BY2Nlc3NSZXZpZXcSQgoHb2JqZWN0cxgHIAMoCzIxLmdvb2dsZS5j", + "bG91ZC5zZWN1cml0eWNlbnRlci52MS5LdWJlcm5ldGVzLk9iamVjdBqVAQoD", + "UG9kEgoKAm5zGAEgASgJEgwKBG5hbWUYAiABKAkSNQoGbGFiZWxzGAMgAygL", + "MiUuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkxhYmVsEj0KCmNv", + "bnRhaW5lcnMYBCADKAsyKS5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIu", + "djEuQ29udGFpbmVyGhQKBE5vZGUSDAoEbmFtZRgBIAEoCRpYCghOb2RlUG9v", + "bBIMCgRuYW1lGAEgASgJEj4KBW5vZGVzGAIgAygLMi8uZ29vZ2xlLmNsb3Vk", + "LnNlY3VyaXR5Y2VudGVyLnYxLkt1YmVybmV0ZXMuTm9kZRqeAQoEUm9sZRJC", + "CgRraW5kGAEgASgOMjQuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYx", + "Lkt1YmVybmV0ZXMuUm9sZS5LaW5kEgoKAm5zGAIgASgJEgwKBG5hbWUYAyAB", + "KAkiOAoES2luZBIUChBLSU5EX1VOU1BFQ0lGSUVEEAASCAoEUk9MRRABEhAK", + "DENMVVNURVJfUk9MRRACGqgBCgdCaW5kaW5nEgoKAm5zGAEgASgJEgwKBG5h", + "bWUYAiABKAkSPQoEcm9sZRgDIAEoCzIvLmdvb2dsZS5jbG91ZC5zZWN1cml0", + "eWNlbnRlci52MS5LdWJlcm5ldGVzLlJvbGUSRAoIc3ViamVjdHMYBCADKAsy", + "Mi5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEuS3ViZXJuZXRlcy5T", + "dWJqZWN0Gr4BCgdTdWJqZWN0EkkKBGtpbmQYASABKA4yOy5nb29nbGUuY2xv", + "dWQuc2VjdXJpdHljZW50ZXIudjEuS3ViZXJuZXRlcy5TdWJqZWN0LkF1dGhU", + "eXBlEgoKAm5zGAIgASgJEgwKBG5hbWUYAyABKAkiTgoIQXV0aFR5cGUSGQoV", + "QVVUSF9UWVBFX1VOU1BFQ0lGSUVEEAASCAoEVVNFUhABEhIKDlNFUlZJQ0VB", + "Q0NPVU5UEAISCQoFR1JPVVAQAxp9CgxBY2Nlc3NSZXZpZXcSDQoFZ3JvdXAY", + "ASABKAkSCgoCbnMYAiABKAkSDAoEbmFtZRgDIAEoCRIQCghyZXNvdXJjZRgE", + "IAEoCRITCgtzdWJyZXNvdXJjZRgFIAEoCRIMCgR2ZXJiGAYgASgJEg8KB3Zl", + "cnNpb24YByABKAkafgoGT2JqZWN0Eg0KBWdyb3VwGAEgASgJEgwKBGtpbmQY", + "AiABKAkSCgoCbnMYAyABKAkSDAoEbmFtZRgEIAEoCRI9Cgpjb250YWluZXJz", + "GAUgAygLMikuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxLkNvbnRh", + "aW5lckLpAQoiY29tLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MUIP", + "S3ViZXJuZXRlc1Byb3RvUAFaSmNsb3VkLmdvb2dsZS5jb20vZ28vc2VjdXJp", + "dHljZW50ZXIvYXBpdjEvc2VjdXJpdHljZW50ZXJwYjtzZWN1cml0eWNlbnRl", + "cnBiqgIeR29vZ2xlLkNsb3VkLlNlY3VyaXR5Q2VudGVyLlYxygIeR29vZ2xl", + "XENsb3VkXFNlY3VyaXR5Q2VudGVyXFYx6gIhR29vZ2xlOjpDbG91ZDo6U2Vj", + "dXJpdHlDZW50ZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Cloud.SecurityCenter.V1.ContainerReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1.LabelReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Kubernetes), global::Google.Cloud.SecurityCenter.V1.Kubernetes.Parser, new[]{ "Pods", "Nodes", "NodePools", "Roles", "Bindings", "AccessReviews", "Objects" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Pod), global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Pod.Parser, new[]{ "Ns", "Name", "Labels", "Containers" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Node), global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Node.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.NodePool), global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.NodePool.Parser, new[]{ "Name", "Nodes" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role), global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Parser, new[]{ "Kind", "Ns", "Name" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Types.Kind) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Binding), global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Binding.Parser, new[]{ "Ns", "Name", "Role", "Subjects" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject), global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Parser, new[]{ "Kind", "Ns", "Name" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Types.AuthType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.AccessReview), global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.AccessReview.Parser, new[]{ "Group", "Ns", "Name", "Resource", "Subresource", "Verb", "Version" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Object), global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Object.Parser, new[]{ "Group", "Kind", "Ns", "Name", "Containers" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + /// + /// Kubernetes-related attributes. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Kubernetes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Kubernetes()); + 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.SecurityCenter.V1.KubernetesReflection.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 Kubernetes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Kubernetes(Kubernetes other) : this() { + pods_ = other.pods_.Clone(); + nodes_ = other.nodes_.Clone(); + nodePools_ = other.nodePools_.Clone(); + roles_ = other.roles_.Clone(); + bindings_ = other.bindings_.Clone(); + accessReviews_ = other.accessReviews_.Clone(); + objects_ = other.objects_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Kubernetes Clone() { + return new Kubernetes(this); + } + + /// Field number for the "pods" field. + public const int PodsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_pods_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Pod.Parser); + private readonly pbc::RepeatedField pods_ = new pbc::RepeatedField(); + /// + /// Kubernetes + /// [Pods](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) + /// associated with the finding. This field contains Pod records for each + /// container that is owned by a Pod. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Pods { + get { return pods_; } + } + + /// Field number for the "nodes" field. + public const int NodesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_nodes_codec + = pb::FieldCodec.ForMessage(18, global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Node.Parser); + private readonly pbc::RepeatedField nodes_ = new pbc::RepeatedField(); + /// + /// Provides Kubernetes + /// [node](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture#nodes) + /// information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Nodes { + get { return nodes_; } + } + + /// Field number for the "node_pools" field. + public const int NodePoolsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_nodePools_codec + = pb::FieldCodec.ForMessage(26, global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.NodePool.Parser); + private readonly pbc::RepeatedField nodePools_ = new pbc::RepeatedField(); + /// + /// GKE [node + /// pools](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pools) + /// associated with the finding. This field contains node pool information for + /// each node, when it is available. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NodePools { + get { return nodePools_; } + } + + /// Field number for the "roles" field. + public const int RolesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_roles_codec + = pb::FieldCodec.ForMessage(34, global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Parser); + private readonly pbc::RepeatedField roles_ = new pbc::RepeatedField(); + /// + /// Provides Kubernetes role information for findings that involve [Roles or + /// ClusterRoles](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Roles { + get { return roles_; } + } + + /// Field number for the "bindings" field. + public const int BindingsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_bindings_codec + = pb::FieldCodec.ForMessage(42, global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Binding.Parser); + private readonly pbc::RepeatedField bindings_ = new pbc::RepeatedField(); + /// + /// Provides Kubernetes role binding information for findings that involve + /// [RoleBindings or + /// ClusterRoleBindings](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Bindings { + get { return bindings_; } + } + + /// Field number for the "access_reviews" field. + public const int AccessReviewsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_accessReviews_codec + = pb::FieldCodec.ForMessage(50, global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.AccessReview.Parser); + private readonly pbc::RepeatedField accessReviews_ = new pbc::RepeatedField(); + /// + /// Provides information on any Kubernetes access reviews (privilege checks) + /// relevant to the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AccessReviews { + get { return accessReviews_; } + } + + /// Field number for the "objects" field. + public const int ObjectsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_objects_codec + = pb::FieldCodec.ForMessage(58, global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Object.Parser); + private readonly pbc::RepeatedField objects_ = new pbc::RepeatedField(); + /// + /// Kubernetes objects related to the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Objects { + get { return objects_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Kubernetes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Kubernetes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!pods_.Equals(other.pods_)) return false; + if(!nodes_.Equals(other.nodes_)) return false; + if(!nodePools_.Equals(other.nodePools_)) return false; + if(!roles_.Equals(other.roles_)) return false; + if(!bindings_.Equals(other.bindings_)) return false; + if(!accessReviews_.Equals(other.accessReviews_)) return false; + if(!objects_.Equals(other.objects_)) 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 ^= pods_.GetHashCode(); + hash ^= nodes_.GetHashCode(); + hash ^= nodePools_.GetHashCode(); + hash ^= roles_.GetHashCode(); + hash ^= bindings_.GetHashCode(); + hash ^= accessReviews_.GetHashCode(); + hash ^= objects_.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 + pods_.WriteTo(output, _repeated_pods_codec); + nodes_.WriteTo(output, _repeated_nodes_codec); + nodePools_.WriteTo(output, _repeated_nodePools_codec); + roles_.WriteTo(output, _repeated_roles_codec); + bindings_.WriteTo(output, _repeated_bindings_codec); + accessReviews_.WriteTo(output, _repeated_accessReviews_codec); + objects_.WriteTo(output, _repeated_objects_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) { + pods_.WriteTo(ref output, _repeated_pods_codec); + nodes_.WriteTo(ref output, _repeated_nodes_codec); + nodePools_.WriteTo(ref output, _repeated_nodePools_codec); + roles_.WriteTo(ref output, _repeated_roles_codec); + bindings_.WriteTo(ref output, _repeated_bindings_codec); + accessReviews_.WriteTo(ref output, _repeated_accessReviews_codec); + objects_.WriteTo(ref output, _repeated_objects_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 += pods_.CalculateSize(_repeated_pods_codec); + size += nodes_.CalculateSize(_repeated_nodes_codec); + size += nodePools_.CalculateSize(_repeated_nodePools_codec); + size += roles_.CalculateSize(_repeated_roles_codec); + size += bindings_.CalculateSize(_repeated_bindings_codec); + size += accessReviews_.CalculateSize(_repeated_accessReviews_codec); + size += objects_.CalculateSize(_repeated_objects_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Kubernetes other) { + if (other == null) { + return; + } + pods_.Add(other.pods_); + nodes_.Add(other.nodes_); + nodePools_.Add(other.nodePools_); + roles_.Add(other.roles_); + bindings_.Add(other.bindings_); + accessReviews_.Add(other.accessReviews_); + objects_.Add(other.objects_); + _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: { + pods_.AddEntriesFrom(input, _repeated_pods_codec); + break; + } + case 18: { + nodes_.AddEntriesFrom(input, _repeated_nodes_codec); + break; + } + case 26: { + nodePools_.AddEntriesFrom(input, _repeated_nodePools_codec); + break; + } + case 34: { + roles_.AddEntriesFrom(input, _repeated_roles_codec); + break; + } + case 42: { + bindings_.AddEntriesFrom(input, _repeated_bindings_codec); + break; + } + case 50: { + accessReviews_.AddEntriesFrom(input, _repeated_accessReviews_codec); + break; + } + case 58: { + objects_.AddEntriesFrom(input, _repeated_objects_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: { + pods_.AddEntriesFrom(ref input, _repeated_pods_codec); + break; + } + case 18: { + nodes_.AddEntriesFrom(ref input, _repeated_nodes_codec); + break; + } + case 26: { + nodePools_.AddEntriesFrom(ref input, _repeated_nodePools_codec); + break; + } + case 34: { + roles_.AddEntriesFrom(ref input, _repeated_roles_codec); + break; + } + case 42: { + bindings_.AddEntriesFrom(ref input, _repeated_bindings_codec); + break; + } + case 50: { + accessReviews_.AddEntriesFrom(ref input, _repeated_accessReviews_codec); + break; + } + case 58: { + objects_.AddEntriesFrom(ref input, _repeated_objects_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Kubernetes message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// A Kubernetes Pod. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Pod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Pod()); + 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.SecurityCenter.V1.Kubernetes.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 Pod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Pod(Pod other) : this() { + ns_ = other.ns_; + name_ = other.name_; + labels_ = other.labels_.Clone(); + containers_ = other.containers_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Pod Clone() { + return new Pod(this); + } + + /// Field number for the "ns" field. + public const int NsFieldNumber = 1; + private string ns_ = ""; + /// + /// Kubernetes Pod namespace. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ns { + get { return ns_; } + set { + ns_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Kubernetes Pod name. + /// + [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 "labels" field. + public const int LabelsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_labels_codec + = pb::FieldCodec.ForMessage(26, global::Google.Cloud.SecurityCenter.V1.Label.Parser); + private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); + /// + /// Pod labels. For Kubernetes containers, these are applied to the + /// container. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Labels { + get { return labels_; } + } + + /// Field number for the "containers" field. + public const int ContainersFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_containers_codec + = pb::FieldCodec.ForMessage(34, global::Google.Cloud.SecurityCenter.V1.Container.Parser); + private readonly pbc::RepeatedField containers_ = new pbc::RepeatedField(); + /// + /// Pod containers associated with this finding, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Containers { + get { return containers_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Pod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Pod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Ns != other.Ns) return false; + if (Name != other.Name) return false; + if(!labels_.Equals(other.labels_)) return false; + if(!containers_.Equals(other.containers_)) 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 (Ns.Length != 0) hash ^= Ns.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= labels_.GetHashCode(); + hash ^= containers_.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 (Ns.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Ns); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + labels_.WriteTo(output, _repeated_labels_codec); + containers_.WriteTo(output, _repeated_containers_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) { + if (Ns.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Ns); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + labels_.WriteTo(ref output, _repeated_labels_codec); + containers_.WriteTo(ref output, _repeated_containers_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; + if (Ns.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Ns); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += labels_.CalculateSize(_repeated_labels_codec); + size += containers_.CalculateSize(_repeated_containers_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Pod other) { + if (other == null) { + return; + } + if (other.Ns.Length != 0) { + Ns = other.Ns; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + labels_.Add(other.labels_); + containers_.Add(other.containers_); + _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: { + Ns = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + labels_.AddEntriesFrom(input, _repeated_labels_codec); + break; + } + case 34: { + containers_.AddEntriesFrom(input, _repeated_containers_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: { + Ns = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + labels_.AddEntriesFrom(ref input, _repeated_labels_codec); + break; + } + case 34: { + containers_.AddEntriesFrom(ref input, _repeated_containers_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Kubernetes nodes associated with the finding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Node : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Node()); + 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.SecurityCenter.V1.Kubernetes.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 Node() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Node(Node other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Node Clone() { + return new Node(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// [Full resource name](https://google.aip.dev/122#full-resource-names) of + /// the Compute Engine VM running the cluster node. + /// + [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 Node); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Node 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(Node 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 + + } + + /// + /// Provides GKE node pool information. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NodePool : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NodePool()); + 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.SecurityCenter.V1.Kubernetes.Descriptor.NestedTypes[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 NodePool() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NodePool(NodePool other) : this() { + name_ = other.name_; + nodes_ = other.nodes_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NodePool Clone() { + return new NodePool(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Kubernetes node pool name. + /// + [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 "nodes" field. + public const int NodesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_nodes_codec + = pb::FieldCodec.ForMessage(18, global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Node.Parser); + private readonly pbc::RepeatedField nodes_ = new pbc::RepeatedField(); + /// + /// Nodes associated with the finding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Nodes { + get { return nodes_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NodePool); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NodePool other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!nodes_.Equals(other.nodes_)) 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(); + hash ^= nodes_.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); + } + nodes_.WriteTo(output, _repeated_nodes_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) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + nodes_.WriteTo(ref output, _repeated_nodes_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; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += nodes_.CalculateSize(_repeated_nodes_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NodePool other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + nodes_.Add(other.nodes_); + _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: { + nodes_.AddEntriesFrom(input, _repeated_nodes_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: { + Name = input.ReadString(); + break; + } + case 18: { + nodes_.AddEntriesFrom(ref input, _repeated_nodes_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Kubernetes Role or ClusterRole. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Role : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Role()); + 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.SecurityCenter.V1.Kubernetes.Descriptor.NestedTypes[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 Role() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Role(Role other) : this() { + kind_ = other.kind_; + ns_ = other.ns_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Role Clone() { + return new Role(this); + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Types.Kind kind_ = global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Types.Kind.Unspecified; + /// + /// Role type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Types.Kind Kind { + get { return kind_; } + set { + kind_ = value; + } + } + + /// Field number for the "ns" field. + public const int NsFieldNumber = 2; + private string ns_ = ""; + /// + /// Role namespace. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ns { + get { return ns_; } + set { + ns_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + /// + /// Role name. + /// + [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 Role); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Role other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Kind != other.Kind) return false; + if (Ns != other.Ns) return false; + 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 (Kind != global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Types.Kind.Unspecified) hash ^= Kind.GetHashCode(); + if (Ns.Length != 0) hash ^= Ns.GetHashCode(); + 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 (Kind != global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Types.Kind.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Kind); + } + if (Ns.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Ns); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + 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 (Kind != global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Types.Kind.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Kind); + } + if (Ns.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Ns); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + 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 (Kind != global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Types.Kind.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); + } + if (Ns.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Ns); + } + 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(Role other) { + if (other == null) { + return; + } + if (other.Kind != global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Types.Kind.Unspecified) { + Kind = other.Kind; + } + if (other.Ns.Length != 0) { + Ns = other.Ns; + } + 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 8: { + Kind = (global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Types.Kind) input.ReadEnum(); + break; + } + case 18: { + Ns = input.ReadString(); + break; + } + case 26: { + 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 8: { + Kind = (global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role.Types.Kind) input.ReadEnum(); + break; + } + case 18: { + Ns = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Role message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Types of Kubernetes roles. + /// + public enum Kind { + /// + /// Role type is not specified. + /// + [pbr::OriginalName("KIND_UNSPECIFIED")] Unspecified = 0, + /// + /// Kubernetes Role. + /// + [pbr::OriginalName("ROLE")] Role = 1, + /// + /// Kubernetes ClusterRole. + /// + [pbr::OriginalName("CLUSTER_ROLE")] ClusterRole = 2, + } + + } + #endregion + + } + + /// + /// Represents a Kubernetes RoleBinding or ClusterRoleBinding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Binding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Binding()); + 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.SecurityCenter.V1.Kubernetes.Descriptor.NestedTypes[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 Binding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Binding(Binding other) : this() { + ns_ = other.ns_; + name_ = other.name_; + role_ = other.role_ != null ? other.role_.Clone() : null; + subjects_ = other.subjects_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Binding Clone() { + return new Binding(this); + } + + /// Field number for the "ns" field. + public const int NsFieldNumber = 1; + private string ns_ = ""; + /// + /// Namespace for the binding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ns { + get { return ns_; } + set { + ns_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Name for the binding. + /// + [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 "role" field. + public const int RoleFieldNumber = 3; + private global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role role_; + /// + /// The Role or ClusterRole referenced by the binding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role Role { + get { return role_; } + set { + role_ = value; + } + } + + /// Field number for the "subjects" field. + public const int SubjectsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_subjects_codec + = pb::FieldCodec.ForMessage(34, global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Parser); + private readonly pbc::RepeatedField subjects_ = new pbc::RepeatedField(); + /// + /// Represents one or more subjects that are bound to the role. Not always + /// available for PATCH requests. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Subjects { + get { return subjects_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Binding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Binding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Ns != other.Ns) return false; + if (Name != other.Name) return false; + if (!object.Equals(Role, other.Role)) return false; + if(!subjects_.Equals(other.subjects_)) 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 (Ns.Length != 0) hash ^= Ns.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (role_ != null) hash ^= Role.GetHashCode(); + hash ^= subjects_.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 (Ns.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Ns); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (role_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Role); + } + subjects_.WriteTo(output, _repeated_subjects_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) { + if (Ns.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Ns); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (role_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Role); + } + subjects_.WriteTo(ref output, _repeated_subjects_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; + if (Ns.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Ns); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (role_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Role); + } + size += subjects_.CalculateSize(_repeated_subjects_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Binding other) { + if (other == null) { + return; + } + if (other.Ns.Length != 0) { + Ns = other.Ns; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.role_ != null) { + if (role_ == null) { + Role = new global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role(); + } + Role.MergeFrom(other.Role); + } + subjects_.Add(other.subjects_); + _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: { + Ns = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (role_ == null) { + Role = new global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role(); + } + input.ReadMessage(Role); + break; + } + case 34: { + subjects_.AddEntriesFrom(input, _repeated_subjects_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: { + Ns = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (role_ == null) { + Role = new global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Role(); + } + input.ReadMessage(Role); + break; + } + case 34: { + subjects_.AddEntriesFrom(ref input, _repeated_subjects_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a Kubernetes subject. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Subject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Subject()); + 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.SecurityCenter.V1.Kubernetes.Descriptor.NestedTypes[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 Subject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Subject(Subject other) : this() { + kind_ = other.kind_; + ns_ = other.ns_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Subject Clone() { + return new Subject(this); + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 1; + private global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Types.AuthType kind_ = global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Types.AuthType.Unspecified; + /// + /// Authentication type for the subject. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Types.AuthType Kind { + get { return kind_; } + set { + kind_ = value; + } + } + + /// Field number for the "ns" field. + public const int NsFieldNumber = 2; + private string ns_ = ""; + /// + /// Namespace for the subject. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ns { + get { return ns_; } + set { + ns_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + /// + /// Name for the subject. + /// + [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 Subject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Subject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Kind != other.Kind) return false; + if (Ns != other.Ns) return false; + 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 (Kind != global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Types.AuthType.Unspecified) hash ^= Kind.GetHashCode(); + if (Ns.Length != 0) hash ^= Ns.GetHashCode(); + 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 (Kind != global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Types.AuthType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Kind); + } + if (Ns.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Ns); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + 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 (Kind != global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Types.AuthType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Kind); + } + if (Ns.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Ns); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + 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 (Kind != global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Types.AuthType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); + } + if (Ns.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Ns); + } + 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(Subject other) { + if (other == null) { + return; + } + if (other.Kind != global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Types.AuthType.Unspecified) { + Kind = other.Kind; + } + if (other.Ns.Length != 0) { + Ns = other.Ns; + } + 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 8: { + Kind = (global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Types.AuthType) input.ReadEnum(); + break; + } + case 18: { + Ns = input.ReadString(); + break; + } + case 26: { + 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 8: { + Kind = (global::Google.Cloud.SecurityCenter.V1.Kubernetes.Types.Subject.Types.AuthType) input.ReadEnum(); + break; + } + case 18: { + Ns = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Subject message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Auth types that can be used for the subject's kind field. + /// + public enum AuthType { + /// + /// Authentication is not specified. + /// + [pbr::OriginalName("AUTH_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// User with valid certificate. + /// + [pbr::OriginalName("USER")] User = 1, + /// + /// Users managed by Kubernetes API with credentials stored as secrets. + /// + [pbr::OriginalName("SERVICEACCOUNT")] Serviceaccount = 2, + /// + /// Collection of users. + /// + [pbr::OriginalName("GROUP")] Group = 3, + } + + } + #endregion + + } + + /// + /// Conveys information about a Kubernetes access review (such as one returned + /// by a [`kubectl auth + /// can-i`](https://kubernetes.io/docs/reference/access-authn-authz/authorization/#checking-api-access) + /// command) that was involved in a finding. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AccessReview : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessReview()); + 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.SecurityCenter.V1.Kubernetes.Descriptor.NestedTypes[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 AccessReview() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessReview(AccessReview other) : this() { + group_ = other.group_; + ns_ = other.ns_; + name_ = other.name_; + resource_ = other.resource_; + subresource_ = other.subresource_; + verb_ = other.verb_; + version_ = other.version_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessReview Clone() { + return new AccessReview(this); + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 1; + private string group_ = ""; + /// + /// The API group of the resource. "*" means all. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Group { + get { return group_; } + set { + group_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ns" field. + public const int NsFieldNumber = 2; + private string ns_ = ""; + /// + /// Namespace of the action being requested. Currently, there is no + /// distinction between no namespace and all namespaces. Both + /// are represented by "" (empty). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ns { + get { return ns_; } + set { + ns_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + /// + /// The name of the resource being requested. Empty means all. + /// + [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 "resource" field. + public const int ResourceFieldNumber = 4; + private string resource_ = ""; + /// + /// The optional resource type requested. "*" means all. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Resource { + get { return resource_; } + set { + resource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "subresource" field. + public const int SubresourceFieldNumber = 5; + private string subresource_ = ""; + /// + /// The optional subresource type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Subresource { + get { return subresource_; } + set { + subresource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "verb" field. + public const int VerbFieldNumber = 6; + private string verb_ = ""; + /// + /// A Kubernetes resource API verb, like get, list, watch, create, update, + /// delete, proxy. "*" means all. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Verb { + get { return verb_; } + set { + verb_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 7; + private string version_ = ""; + /// + /// The API version of the resource. "*" means all. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = 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 AccessReview); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AccessReview other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Group != other.Group) return false; + if (Ns != other.Ns) return false; + if (Name != other.Name) return false; + if (Resource != other.Resource) return false; + if (Subresource != other.Subresource) return false; + if (Verb != other.Verb) return false; + if (Version != other.Version) 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 (Group.Length != 0) hash ^= Group.GetHashCode(); + if (Ns.Length != 0) hash ^= Ns.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Resource.Length != 0) hash ^= Resource.GetHashCode(); + if (Subresource.Length != 0) hash ^= Subresource.GetHashCode(); + if (Verb.Length != 0) hash ^= Verb.GetHashCode(); + if (Version.Length != 0) hash ^= Version.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 (Group.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Group); + } + if (Ns.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Ns); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Resource.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Resource); + } + if (Subresource.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Subresource); + } + if (Verb.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Verb); + } + if (Version.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Version); + } + 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 (Group.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Group); + } + if (Ns.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Ns); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Resource.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Resource); + } + if (Subresource.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Subresource); + } + if (Verb.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Verb); + } + if (Version.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Version); + } + 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 (Group.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Group); + } + if (Ns.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Ns); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Resource.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Resource); + } + if (Subresource.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Subresource); + } + if (Verb.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Verb); + } + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AccessReview other) { + if (other == null) { + return; + } + if (other.Group.Length != 0) { + Group = other.Group; + } + if (other.Ns.Length != 0) { + Ns = other.Ns; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Resource.Length != 0) { + Resource = other.Resource; + } + if (other.Subresource.Length != 0) { + Subresource = other.Subresource; + } + if (other.Verb.Length != 0) { + Verb = other.Verb; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + _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: { + Group = input.ReadString(); + break; + } + case 18: { + Ns = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Resource = input.ReadString(); + break; + } + case 42: { + Subresource = input.ReadString(); + break; + } + case 50: { + Verb = input.ReadString(); + break; + } + case 58: { + Version = 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: { + Group = input.ReadString(); + break; + } + case 18: { + Ns = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Resource = input.ReadString(); + break; + } + case 42: { + Subresource = input.ReadString(); + break; + } + case 50: { + Verb = input.ReadString(); + break; + } + case 58: { + Version = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Kubernetes object related to the finding, uniquely identified by GKNN. + /// Used if the object Kind is not one of Pod, Node, NodePool, Binding, or + /// AccessReview. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Object : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Object()); + 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.SecurityCenter.V1.Kubernetes.Descriptor.NestedTypes[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 Object() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Object(Object other) : this() { + group_ = other.group_; + kind_ = other.kind_; + ns_ = other.ns_; + name_ = other.name_; + containers_ = other.containers_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Object Clone() { + return new Object(this); + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 1; + private string group_ = ""; + /// + /// Kubernetes object group, such as "policy.k8s.io/v1". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Group { + get { return group_; } + set { + group_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 2; + private string kind_ = ""; + /// + /// Kubernetes object kind, such as "Namespace". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Kind { + get { return kind_; } + set { + kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ns" field. + public const int NsFieldNumber = 3; + private string ns_ = ""; + /// + /// Kubernetes object namespace. Must be a valid DNS label. Named + /// "ns" to avoid collision with C++ namespace keyword. For details see + /// https://kubernetes.io/docs/tasks/administer-cluster/namespaces/. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ns { + get { return ns_; } + set { + ns_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; + /// + /// Kubernetes object name. For details see + /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/. + /// + [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 "containers" field. + public const int ContainersFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_containers_codec + = pb::FieldCodec.ForMessage(42, global::Google.Cloud.SecurityCenter.V1.Container.Parser); + private readonly pbc::RepeatedField containers_ = new pbc::RepeatedField(); + /// + /// Pod containers associated with this finding, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Containers { + get { return containers_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Object); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Object other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Group != other.Group) return false; + if (Kind != other.Kind) return false; + if (Ns != other.Ns) return false; + if (Name != other.Name) return false; + if(!containers_.Equals(other.containers_)) 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 (Group.Length != 0) hash ^= Group.GetHashCode(); + if (Kind.Length != 0) hash ^= Kind.GetHashCode(); + if (Ns.Length != 0) hash ^= Ns.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= containers_.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 (Group.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Group); + } + if (Kind.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Kind); + } + if (Ns.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Ns); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + containers_.WriteTo(output, _repeated_containers_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) { + if (Group.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Group); + } + if (Kind.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Kind); + } + if (Ns.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Ns); + } + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); + } + containers_.WriteTo(ref output, _repeated_containers_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; + if (Group.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Group); + } + if (Kind.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); + } + if (Ns.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Ns); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += containers_.CalculateSize(_repeated_containers_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Object other) { + if (other == null) { + return; + } + if (other.Group.Length != 0) { + Group = other.Group; + } + if (other.Kind.Length != 0) { + Kind = other.Kind; + } + if (other.Ns.Length != 0) { + Ns = other.Ns; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + containers_.Add(other.containers_); + _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: { + Group = input.ReadString(); + break; + } + case 18: { + Kind = input.ReadString(); + break; + } + case 26: { + Ns = input.ReadString(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + containers_.AddEntriesFrom(input, _repeated_containers_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: { + Group = input.ReadString(); + break; + } + case 18: { + Kind = input.ReadString(); + break; + } + case 26: { + Ns = input.ReadString(); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + containers_.AddEntriesFrom(ref input, _repeated_containers_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Label.g.cs b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Label.g.cs new file mode 100755 index 000000000000..92767be01ba2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/Label.g.cs @@ -0,0 +1,288 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/label.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.SecurityCenter.V1 { + + /// Holder for reflection information generated from google/cloud/securitycenter/v1/label.proto + public static partial class LabelReflection { + + #region Descriptor + /// File descriptor for google/cloud/securitycenter/v1/label.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LabelReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cipnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvbGFiZWwucHJvdG8S", + "Hmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MSIkCgVMYWJlbBIMCgRu", + "YW1lGAEgASgJEg0KBXZhbHVlGAIgASgJQuQBCiJjb20uZ29vZ2xlLmNsb3Vk", + "LnNlY3VyaXR5Y2VudGVyLnYxQgpMYWJlbFByb3RvUAFaSmNsb3VkLmdvb2ds", + "ZS5jb20vZ28vc2VjdXJpdHljZW50ZXIvYXBpdjEvc2VjdXJpdHljZW50ZXJw", + "YjtzZWN1cml0eWNlbnRlcnBiqgIeR29vZ2xlLkNsb3VkLlNlY3VyaXR5Q2Vu", + "dGVyLlYxygIeR29vZ2xlXENsb3VkXFNlY3VyaXR5Q2VudGVyXFYx6gIhR29v", + "Z2xlOjpDbG91ZDo6U2VjdXJpdHlDZW50ZXI6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Label), global::Google.Cloud.SecurityCenter.V1.Label.Parser, new[]{ "Name", "Value" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Represents a generic name-value label. A label has separate name and value + /// fields to support filtering with the `contains()` function. For more + /// information, see [Filtering on array-type + /// fields](https://cloud.google.com/security-command-center/docs/how-to-api-list-findings#array-contains-filtering). + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Label : pb::IMessage