Resource: GitLabConfig
GitLabConfig represents the configuration for a GitLab integration.
JSON representation |
---|
{ "name" : string , "username" : string , "secrets" : { object ( |
Fields | |
---|---|
name
|
The resource name for the config. |
username
|
Username of the GitLab.com or GitLab Enterprise account Cloud Build will use. |
secrets
|
Required. Secret Manager secrets needed by the config. |
createTime
|
Output only. Time when the config was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
webhookKey
|
Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config. |
connectedRepositories[]
|
Connected GitLab.com or GitLabEnterprise repositories for this config. |
enterpriseConfig
|
Optional. GitLabEnterprise config. |
GitLabSecrets
GitLabSecrets represents the secrets in Secret Manager for a GitLab integration.
JSON representation |
---|
{ "webhookSecretVersion" : string , "apiKeyVersion" : string , "apiAccessTokenVersion" : string , "readAccessTokenVersion" : string } |
Fields | |
---|---|
webhookSecretVersion
|
Required. Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig. |
apiKeyVersion
|
Required. Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build. |
apiAccessTokenVersion
|
Required. The resource name for the api access token’s secret version |
readAccessTokenVersion
|
Required. The resource name for the read access token’s secret version |
GitLabRepositoryId
GitLabRepositoryId identifies a specific repository hosted on GitLab.com or GitLabEnterprise
JSON representation |
---|
{ "id" : string , "webhookId" : integer } |
Fields | |
---|---|
id
|
Required. Identifier for the repository. example: "namespace/project-slug", namespace is usually the username or group ID |
webhookId
|
Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo. |
GitLabEnterpriseConfig
GitLabEnterpriseConfig represents the configuration for a GitLabEnterprise integration.
JSON representation |
---|
{
"hostUri"
:
string
,
"serviceDirectoryConfig"
:
{
object (
|
Fields | |
---|---|
hostUri
|
Immutable. The URI of the GitlabEnterprise host. |
serviceDirectoryConfig
|
The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance. |
sslCa
|
The SSL certificate to use in requests to GitLab Enterprise instances. |
ServiceDirectoryConfig
ServiceDirectoryConfig represents Service Directory configuration for a SCM host connection.
JSON representation |
---|
{ "service" : string } |
Fields | |
---|---|
service
|
The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. |
Methods |
|
---|---|
|
Creates a new GitLabConfig
. |
|
Delete a GitLabConfig
. |
|
Retrieves a GitLabConfig
. |
|
List all GitLabConfigs
for a given project. |
|
Updates an existing GitLabConfig
. |
|
Remove a GitLab repository from a given GitLabConfig's connected repositories. |