gcloud alpha builds enterprise-config gitlab update

NAME
gcloud alpha builds enterprise-config gitlab update - update a GitLab Enterprise config for use by Cloud Build
SYNOPSIS
gcloud alpha builds enterprise-config gitlab update(CONFIG :--region=REGION)[--api-access-token-secret-version=API_ACCESS_TOKEN_SECRET_VERSION][--api-key-secret-version=API_KEY_SECRET_VERSION][--host-uri=HOST_URI][--read-access-token-secret-version=READ_ACCESS_TOKEN_SECRET_VERSION][--service-directory-service=SERVICE_DIRECTORY_SERVICE][--ssl-ca-file=PATH_TO_FILE][--user-name=USER_NAME][--webhook-secret-secret-version=WEBHOOK_SECRET_SECRET_VERSION][GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Update a GitLab Enterprise config for use by Cloud Build.
POSITIONAL ARGUMENTS
GitLabConfig resource - GitLab Enterprise config. The arguments in this groupcan be used to specify the attributes of this resource. (NOTE) Some attributesare not given arguments in this group but can be set in other ways.

To set theproject attribute:

  • provide the argumentCONFIG on the command line with a fullyspecified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.

This must be specified.

CONFIG
ID of the gitLabConfig or fully qualified identifier for the gitLabConfig.

To set theconfig attribute:

  • provide the argumentCONFIG on the command line.

This positional argument must be specified if any of the other arguments in thisgroup are specified.

--region=REGION
The Cloud location for the gitLabConfig.

To set theregion attribute:

  • provide the argumentCONFIG on the command line with a fullyspecified name;
  • provide the argument--region on the command line;
  • set the propertybuilds/region.
FLAGS
--api-access-token-secret-version=API_ACCESS_TOKEN_SECRET_VERSION
Secret Manager resource containing the API access token. The secret is specifiedin resource URL formatprojects/{secret_project}/secrets/{secret_name}/versions/{secret_version}.
--api-key-secret-version=API_KEY_SECRET_VERSION
Secret Manager resource containing the Cloud Build API key that should beassociated with this config. The secret is specified in resource URL formatprojects/{secret_project}/secrets/{secret_name}/versions/{secret_version}.
--host-uri=HOST_URI
The host uri of the GitLab Enterprise instance.
--read-access-token-secret-version=READ_ACCESS_TOKEN_SECRET_VERSION
Secret Manager resource containing the read access token. The secret isspecified in resource URL formatprojects/{secret_project}/secrets/{secret_name}/versions/{secret_version}.
--service-directory-service=SERVICE_DIRECTORY_SERVICE
Service Directory service that should be used when making calls to the GitLabEnterprise instance.

If not specified, calls will be made over the public internet.

--ssl-ca-file=PATH_TO_FILE
Path to a local file that contains SSL certificate to use for requests to GitLabEnterprise. The certificate should be in PEM format. Use a full or relative pathto a local file containing the value of ssl_ca_file.
--user-name=USER_NAME
The GitLab user name that should be associated with this config.
--webhook-secret-secret-version=WEBHOOK_SECRET_SECRET_VERSION
Secret Manager resource containing the webhook secret. The secret is specifiedin resource URL formatprojects/{secret_project}/secrets/{secret_name}/versions/{secret_version}.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

NOTES
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.