Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class GitLabConfig.
Configuration for connections to gitlab.com.
Generated from protobuf messagegoogle.cloud.developerconnect.v1.GitLabConfig
Namespace
Google \ Cloud \ DeveloperConnect \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ webhook_secret_secret_version
string
Required. Immutable. SecretManager resource containing the webhook secret of a GitLab project, formatted asprojects/*/secrets/*/versions/*. This is used to validate webhooks.
Required. A GitLab personal access token with the minimumread_apiscope access and a minimum role ofreporter. The GitLab Projects visible to this Personal Access Token will control which Projects Developer Connect has access to.
Required. A GitLab personal access token with the minimumapiscope access and a minimum role ofmaintainer. The GitLab Projects visible to this Personal Access Token will control which Projects Developer Connect has access to.
getWebhookSecretSecretVersion
Required. Immutable. SecretManager resource containing the webhook secret
of a GitLab project, formatted asprojects/*/secrets/*/versions/*. This
is used to validate webhooks.
Returns
Type
Description
string
setWebhookSecretSecretVersion
Required. Immutable. SecretManager resource containing the webhook secret
of a GitLab project, formatted asprojects/*/secrets/*/versions/*. This
is used to validate webhooks.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getReadAuthorizerCredential
Required. A GitLab personal access token with the minimumread_apiscope
access and a minimum role ofreporter. The GitLab Projects visible to
this Personal Access Token will control which Projects Developer Connect
has access to.
Required. A GitLab personal access token with the minimumread_apiscope
access and a minimum role ofreporter. The GitLab Projects visible to
this Personal Access Token will control which Projects Developer Connect
has access to.
Required. A GitLab personal access token with the minimumapiscope
access and a minimum role ofmaintainer. The GitLab Projects visible to
this Personal Access Token will control which Projects Developer Connect
has access to.
Required. A GitLab personal access token with the minimumapiscope
access and a minimum role ofmaintainer. The GitLab Projects visible to
this Personal Access Token will control which Projects Developer Connect
has access to.
[[["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 Developer Connect V1 Client - Class GitLabConfig (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/cloud-developerconnect/latest/V1.GitLabConfig)\n- [0.4.0](/php/docs/reference/cloud-developerconnect/0.4.0/V1.GitLabConfig)\n- [0.3.0](/php/docs/reference/cloud-developerconnect/0.3.0/V1.GitLabConfig)\n- [0.2.2](/php/docs/reference/cloud-developerconnect/0.2.2/V1.GitLabConfig)\n- [0.1.2](/php/docs/reference/cloud-developerconnect/0.1.2/V1.GitLabConfig) \nReference documentation and code samples for the Google Cloud Developer Connect V1 Client class GitLabConfig.\n\nConfiguration for connections to gitlab.com.\n\nGenerated from protobuf message `google.cloud.developerconnect.v1.GitLabConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DeveloperConnect \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getWebhookSecretSecretVersion\n\nRequired. Immutable. SecretManager resource containing the webhook secret\nof a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This\nis used to validate webhooks.\n\n### setWebhookSecretSecretVersion\n\nRequired. Immutable. SecretManager resource containing the webhook secret\nof a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This\nis used to validate webhooks.\n\n### getReadAuthorizerCredential\n\nRequired. A GitLab personal access token with the minimum `read_api` scope\naccess and a minimum role of `reporter`. The GitLab Projects visible to\nthis Personal Access Token will control which Projects Developer Connect\nhas access to.\n\n### hasReadAuthorizerCredential\n\n### clearReadAuthorizerCredential\n\n### setReadAuthorizerCredential\n\nRequired. A GitLab personal access token with the minimum `read_api` scope\naccess and a minimum role of `reporter`. The GitLab Projects visible to\nthis Personal Access Token will control which Projects Developer Connect\nhas access to.\n\n### getAuthorizerCredential\n\nRequired. A GitLab personal access token with the minimum `api` scope\naccess and a minimum role of `maintainer`. The GitLab Projects visible to\nthis Personal Access Token will control which Projects Developer Connect\nhas access to.\n\n### hasAuthorizerCredential\n\n### clearAuthorizerCredential\n\n### setAuthorizerCredential\n\nRequired. A GitLab personal access token with the minimum `api` scope\naccess and a minimum role of `maintainer`. The GitLab Projects visible to\nthis Personal Access Token will control which Projects Developer Connect\nhas access to."]]