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.
↳ ssl_ca
string
SSL certificate to use for requests to GitLab Enterprise.
↳ server_version
string
Output only. Version of the GitLab Enterprise server running on thehost_uri.
getHostUri
The URI of the GitLab Enterprise host this connection is for.
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.
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.
[[["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."],[],[],null,["# Google Cloud Build V2 Client - Class GitLabConfig (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-build/latest/V2.GitLabConfig)\n- [1.0.3](/php/docs/reference/cloud-build/1.0.3/V2.GitLabConfig)\n- [0.16.3](/php/docs/reference/cloud-build/0.16.3/V2.GitLabConfig)\n- [0.15.0](/php/docs/reference/cloud-build/0.15.0/V2.GitLabConfig)\n- [0.14.0](/php/docs/reference/cloud-build/0.14.0/V2.GitLabConfig)\n- [0.13.2](/php/docs/reference/cloud-build/0.13.2/V2.GitLabConfig)\n- [0.12.0](/php/docs/reference/cloud-build/0.12.0/V2.GitLabConfig)\n- [0.11.0](/php/docs/reference/cloud-build/0.11.0/V2.GitLabConfig)\n- [0.10.0](/php/docs/reference/cloud-build/0.10.0/V2.GitLabConfig)\n- [0.9.0](/php/docs/reference/cloud-build/0.9.0/V2.GitLabConfig)\n- [0.8.0](/php/docs/reference/cloud-build/0.8.0/V2.GitLabConfig)\n- [0.7.3](/php/docs/reference/cloud-build/0.7.3/V2.GitLabConfig)\n- [0.6.1](/php/docs/reference/cloud-build/0.6.1/V2.GitLabConfig)\n- [0.5.1](/php/docs/reference/cloud-build/0.5.1/V2.GitLabConfig)\n- [0.4.0](/php/docs/reference/cloud-build/0.4.0/V2.GitLabConfig)\n- [0.3.8](/php/docs/reference/cloud-build/0.3.8/V2.GitLabConfig) \nReference documentation and code samples for the Google Cloud Build V2 Client class GitLabConfig.\n\nConfiguration for connections to gitlab.com or an instance of GitLab\nEnterprise.\n\nGenerated from protobuf message `google.devtools.cloudbuild.v2.GitLabConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Build \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHostUri\n\nThe URI of the GitLab Enterprise host this connection is for.\n\nIf not specified, the default value is \u003chttps://gitlab.com\u003e.\n\n### setHostUri\n\nThe URI of the GitLab Enterprise host this connection is for.\n\nIf not specified, the default value is \u003chttps://gitlab.com\u003e.\n\n### getWebhookSecretSecretVersion\n\nRequired. Immutable. SecretManager resource containing the webhook secret\nof a GitLab Enterprise project, formatted as\n`projects/*/secrets/*/versions/*`.\n\n### setWebhookSecretSecretVersion\n\nRequired. Immutable. SecretManager resource containing the webhook secret\nof a GitLab Enterprise project, formatted as\n`projects/*/secrets/*/versions/*`.\n\n### getReadAuthorizerCredential\n\nRequired. A GitLab personal access token with the minimum `read_api` scope\naccess.\n\n### hasReadAuthorizerCredential\n\n### clearReadAuthorizerCredential\n\n### setReadAuthorizerCredential\n\nRequired. A GitLab personal access token with the minimum `read_api` scope\naccess.\n\n### getAuthorizerCredential\n\nRequired. A GitLab personal access token with the `api` scope access.\n\n### hasAuthorizerCredential\n\n### clearAuthorizerCredential\n\n### setAuthorizerCredential\n\nRequired. A GitLab personal access token with the `api` scope access.\n\n### getServiceDirectoryConfig\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### hasServiceDirectoryConfig\n\n### clearServiceDirectoryConfig\n\n### setServiceDirectoryConfig\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### getSslCa\n\nSSL certificate to use for requests to GitLab Enterprise.\n\n### setSslCa\n\nSSL certificate to use for requests to GitLab Enterprise.\n\n### getServerVersion\n\nOutput only. Version of the GitLab Enterprise server running on the\n`host_uri`.\n\n### setServerVersion\n\nOutput only. Version of the GitLab Enterprise server running on the\n`host_uri`."]]