public sealed class GitHubEnterpriseSecrets : IMessage<GitHubEnterpriseSecrets>, IEquatable<GitHubEnterpriseSecrets>, IDeepCloneable<GitHubEnterpriseSecrets>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v1 API class GitHubEnterpriseSecrets.
GitHubEnterpriseSecrets represents the names of all necessary secrets in
Secret Manager for a GitHub Enterprise server.
Format is: projects/<project number>/secrets/<secret name>.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-19 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGitHubEnterpriseSecrets\u003c/code\u003e class represents the names of secrets for a GitHub Enterprise server in Secret Manager, with the format \u003ccode\u003eprojects/<project number>/secrets/<secret name>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the Cloud Build v1 API and is implemented in the \u003ccode\u003eGoogle.Cloud.CloudBuild.V1\u003c/code\u003e namespace, found within the \u003ccode\u003eGoogle.Cloud.CloudBuild.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGitHubEnterpriseSecrets\u003c/code\u003e class includes properties for managing different secret versions, such as \u003ccode\u003eOauthClientIdVersionName\u003c/code\u003e, \u003ccode\u003eOauthSecretVersionName\u003c/code\u003e, \u003ccode\u003ePrivateKeyVersionName\u003c/code\u003e, and \u003ccode\u003eWebhookSecretVersionName\u003c/code\u003e, all of which are strings that can also be viewed as \u003ccode\u003eSecretVersionName\u003c/code\u003e-typed resources.\u003c/p\u003e\n"],["\u003cp\u003eThe available versions of this class range from 1.0.0 to 2.15.0, with 2.15.0 being the latest release.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class GitHubEnterpriseSecrets (2.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.16.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets) \n\n public sealed class GitHubEnterpriseSecrets : IMessage\u003cGitHubEnterpriseSecrets\u003e, IEquatable\u003cGitHubEnterpriseSecrets\u003e, IDeepCloneable\u003cGitHubEnterpriseSecrets\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class GitHubEnterpriseSecrets.\n\nGitHubEnterpriseSecrets represents the names of all necessary secrets in\nSecret Manager for a GitHub Enterprise server.\nFormat is: projects/\\\u003cproject number\\\u003e/secrets/\\\u003csecret name\\\u003e. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GitHubEnterpriseSecrets \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GitHubEnterpriseSecrets](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitHubEnterpriseSecrets](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GitHubEnterpriseSecrets](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudBuild.V1](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V1.dll\n\nConstructors\n------------\n\n### GitHubEnterpriseSecrets()\n\n public GitHubEnterpriseSecrets()\n\n### GitHubEnterpriseSecrets(GitHubEnterpriseSecrets)\n\n public GitHubEnterpriseSecrets(GitHubEnterpriseSecrets other)\n\nProperties\n----------\n\n### OauthClientIdVersionName\n\n public string OauthClientIdVersionName { get; set; }\n\nThe resource name for the OAuth client ID secret version in Secret Manager.\n\n### OauthClientIdVersionNameAsSecretVersionName\n\n public SecretVersionName OauthClientIdVersionNameAsSecretVersionName { get; set; }\n\n[SecretVersionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.SecretVersionName)-typed view over the [OauthClientIdVersionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets#Google_Cloud_CloudBuild_V1_GitHubEnterpriseSecrets_OauthClientIdVersionName) resource name\nproperty.\n\n### OauthSecretVersionName\n\n public string OauthSecretVersionName { get; set; }\n\nThe resource name for the OAuth secret secret version in Secret Manager.\n\n### OauthSecretVersionNameAsSecretVersionName\n\n public SecretVersionName OauthSecretVersionNameAsSecretVersionName { get; set; }\n\n[SecretVersionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.SecretVersionName)-typed view over the [OauthSecretVersionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets#Google_Cloud_CloudBuild_V1_GitHubEnterpriseSecrets_OauthSecretVersionName) resource name\nproperty.\n\n### PrivateKeyVersionName\n\n public string PrivateKeyVersionName { get; set; }\n\nThe resource name for the private key secret version.\n\n### PrivateKeyVersionNameAsSecretVersionName\n\n public SecretVersionName PrivateKeyVersionNameAsSecretVersionName { get; set; }\n\n[SecretVersionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.SecretVersionName)-typed view over the [PrivateKeyVersionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets#Google_Cloud_CloudBuild_V1_GitHubEnterpriseSecrets_PrivateKeyVersionName) resource name\nproperty.\n\n### WebhookSecretVersionName\n\n public string WebhookSecretVersionName { get; set; }\n\nThe resource name for the webhook secret secret version in Secret Manager.\n\n### WebhookSecretVersionNameAsSecretVersionName\n\n public SecretVersionName WebhookSecretVersionNameAsSecretVersionName { get; set; }\n\n[SecretVersionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.SecretVersionName)-typed view over the [WebhookSecretVersionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseSecrets#Google_Cloud_CloudBuild_V1_GitHubEnterpriseSecrets_WebhookSecretVersionName) resource name\nproperty."]]