public ServiceDirectoryConfig ServiceDirectoryConfig { get; set; }
Configuration for using Service Directory to privately connect to a GitLab
Enterprise server. This should only be set if the GitLab Enterprise server
is hosted on-premises and not reachable by public internet. If this field
is left empty, calls to the GitLab Enterprise server will be made over the
public internet.
public string WebhookSecretSecretVersion { get; set; }
Required. Immutable. SecretManager resource containing the webhook secret
of a GitLab Enterprise project, formatted as
projects/*/secrets/*/versions/*.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGitLabConfig\u003c/code\u003e class in the Google Cloud Build v2 API provides configuration options for connecting to either gitlab.com or a GitLab Enterprise instance.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports multiple versions, with the latest being 1.4.0, and includes documentation and code samples for all versions from 1.0.0 onward.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGitLabConfig\u003c/code\u003e implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the base .NET \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eAuthorizerCredential\u003c/code\u003e, \u003ccode\u003eReadAuthorizerCredential\u003c/code\u003e, \u003ccode\u003eHostUri\u003c/code\u003e, \u003ccode\u003eServiceDirectoryConfig\u003c/code\u003e, \u003ccode\u003eSslCa\u003c/code\u003e, \u003ccode\u003eWebhookSecretSecretVersion\u003c/code\u003e, and \u003ccode\u003eServerVersion\u003c/code\u003e, offering control over connection details and authentication.\u003c/p\u003e\n"],["\u003cp\u003eIt offers constructors for creating new instances, either empty or initialized with values from an existing \u003ccode\u003eGitLabConfig\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v2 API - Class GitLabConfig (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitLabConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.3.0/Google.Cloud.CloudBuild.V2.GitLabConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.2.0/Google.Cloud.CloudBuild.V2.GitLabConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.1.0/Google.Cloud.CloudBuild.V2.GitLabConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.0.0/Google.Cloud.CloudBuild.V2.GitLabConfig) \n\n public sealed class GitLabConfig : IMessage\u003cGitLabConfig\u003e, IEquatable\u003cGitLabConfig\u003e, IDeepCloneable\u003cGitLabConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v2 API class GitLabConfig.\n\nConfiguration for connections to gitlab.com or an instance of GitLab\nEnterprise. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GitLabConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GitLabConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitLabConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitLabConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitLabConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GitLabConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitLabConfig), [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.V2](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V2.dll\n\nConstructors\n------------\n\n### GitLabConfig()\n\n public GitLabConfig()\n\n### GitLabConfig(GitLabConfig)\n\n public GitLabConfig(GitLabConfig other)\n\nProperties\n----------\n\n### AuthorizerCredential\n\n public UserCredential AuthorizerCredential { get; set; }\n\nRequired. A GitLab personal access token with the `api` scope access.\n\n### HostUri\n\n public string HostUri { get; set; }\n\nThe URI of the GitLab Enterprise host this connection is for.\nIf not specified, the default value is \u003chttps://gitlab.com\u003e.\n\n### ReadAuthorizerCredential\n\n public UserCredential ReadAuthorizerCredential { get; set; }\n\nRequired. A GitLab personal access token with the minimum `read_api` scope\naccess.\n\n### ServerVersion\n\n public string ServerVersion { get; set; }\n\nOutput only. Version of the GitLab Enterprise server running on the\n`host_uri`.\n\n### ServiceDirectoryConfig\n\n public ServiceDirectoryConfig ServiceDirectoryConfig { get; set; }\n\nConfiguration for using Service Directory to privately connect to a GitLab\nEnterprise server. This should only be set if the GitLab Enterprise server\nis hosted on-premises and not reachable by public internet. If this field\nis left empty, calls to the GitLab Enterprise server will be made over the\npublic internet.\n\n### SslCa\n\n public string SslCa { get; set; }\n\nSSL certificate to use for requests to GitLab Enterprise.\n\n### WebhookSecretSecretVersion\n\n public string WebhookSecretSecretVersion { get; set; }\n\nRequired. Immutable. SecretManager resource containing the webhook secret\nof a GitLab Enterprise project, formatted as\n`projects/*/secrets/*/versions/*`.\n\n### WebhookSecretSecretVersionAsSecretVersionName\n\n public SecretVersionName WebhookSecretSecretVersionAsSecretVersionName { get; set; }\n\n[SecretVersionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.SecretVersionName)-typed view over the [WebhookSecretSecretVersion](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitLabConfig#Google_Cloud_CloudBuild_V2_GitLabConfig_WebhookSecretSecretVersion) resource name\nproperty."]]