Reference documentation and code samples for the Google Cloud Build V2 Client class GitLabConfig.
Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
Generated from protobuf message google.devtools.cloudbuild.v2.GitLabConfig
Namespace
Google \ Cloud \ Build \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ host_uri
string
The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com .
↳ webhook_secret_secret_version
string
Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as projects/*/secrets/*/versions/*
.
↳ read_authorizer_credential
↳ authorizer_credential
↳ service_directory_config
ServiceDirectoryConfig
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 the host_uri
.
getHostUri
The URI of the GitLab Enterprise host this connection is for.
If not specified, the default value is https://gitlab.com .
string
setHostUri
The URI of the GitLab Enterprise host this connection is for.
If not specified, the default value is https://gitlab.com .
var
string
$this
getWebhookSecretSecretVersion
Required. Immutable. SecretManager resource containing the webhook secret
of a GitLab Enterprise project, formatted as projects/*/secrets/*/versions/*
.
string
setWebhookSecretSecretVersion
Required. Immutable. SecretManager resource containing the webhook secret
of a GitLab Enterprise project, formatted as projects/*/secrets/*/versions/*
.
var
string
$this
getReadAuthorizerCredential
Required. A GitLab personal access token with the minimum read_api
scope
access.
hasReadAuthorizerCredential
clearReadAuthorizerCredential
setReadAuthorizerCredential
Required. A GitLab personal access token with the minimum read_api
scope
access.
$this
getAuthorizerCredential
Required. A GitLab personal access token with the api
scope access.
hasAuthorizerCredential
clearAuthorizerCredential
setAuthorizerCredential
Required. A GitLab personal access token with the api
scope access.
$this
getServiceDirectoryConfig
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.
hasServiceDirectoryConfig
clearServiceDirectoryConfig
setServiceDirectoryConfig
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.
$this
getSslCa
SSL certificate to use for requests to GitLab Enterprise.
string
setSslCa
SSL certificate to use for requests to GitLab Enterprise.
var
string
$this
getServerVersion
Output only. Version of the GitLab Enterprise server running on the host_uri
.
string
setServerVersion
Output only. Version of the GitLab Enterprise server running on the host_uri
.
var
string
$this