gcloud source project-configs update

NAME
gcloud source project-configs update - update the Cloud Source Repositories configuration of the current project
SYNOPSIS
gcloud source project-configs update(--disable-pushblock    |--enable-pushblock    |--message-format=MESSAGE_FORMAT--service-account=SERVICE_ACCOUNT--topic-project=TOPIC_PROJECT--add-topic=ADD_TOPIC    |--remove-topic=REMOVE_TOPIC    |--update-topic=UPDATE_TOPIC)[GCLOUD_WIDE_FLAG]
EXAMPLES
To enable PushBlock for all repositories under current project, run:
gcloudsourceproject-configsupdate--enable-pushblock

To associate a Cloud Pub/Sub topic to receive repository update notifications,run:

gcloudsourceproject-configsupdate--add-topic=TOPIC_NAME--service-account=SERVICE_ACCOUNT_EMAIL--message-format=json
REQUIRED FLAGS
Exactly one of these must be specified:
--disable-pushblock
Disable PushBlock for all repositories under current project. PushBlock allowsrepository owners to block git push transactions containing private key data.
--enable-pushblock
Enable PushBlock for all repositories under current project. PushBlock allowsrepository owners to block git push transactions containing private key data.
Manage Cloud Pub/Sub topics associated with the Cloud project.
--message-format=MESSAGE_FORMAT
The format of the message to publish to the topic.MESSAGE_FORMAT must be one of:json,protobuf.
--service-account=SERVICE_ACCOUNT
Email address of the service account used for publishing Cloud Pub/Sub messages.This service account needs to be in the same project as the project. When added,the caller needs to have iam.serviceAccounts.actAs permission on this serviceaccount. If unspecified, it defaults to the Compute Engine default serviceaccount.
--topic-project=TOPIC_PROJECT
Cloud project for the topic. If not set, the currently set project will be used.
At most one of these can be specified:
Topic resource - The Cloud Pub/Sub topic to add to the project. This representsa Cloud resource. (NOTE) Some attributes are not given arguments in this groupbut can be set in other ways.

To set theproject attribute:

  • provide the argument--add-topic on the command line with a fullyspecified name;
  • provide the argument--topic-project on the command line;
  • set the propertycore/project.
--add-topic=ADD_TOPIC
ID of the topic or fully qualified identifier for the topic.

To set thetopic attribute:

  • provide the argument--add-topic on the command line.
Topic resource - The Cloud Pub/Sub topic to remove from the project. Thisrepresents a Cloud resource. (NOTE) Some attributes are not given arguments inthis group but can be set in other ways.

To set theproject attribute:

  • provide the argument--remove-topic on the command line with afully specified name;
  • provide the argument--topic-project on the command line;
  • set the propertycore/project.
--remove-topic=REMOVE_TOPIC
ID of the topic or fully qualified identifier for the topic.

To set thetopic attribute:

  • provide the argument--remove-topic on the command line.
Topic resource - The Cloud Pub/Sub topic to update in the project. Thisrepresents a Cloud resource. (NOTE) Some attributes are not given arguments inthis group but can be set in other ways.

To set theproject attribute:

  • provide the argument--update-topic on the command line with afully specified name;
  • provide the argument--topic-project on the command line;
  • set the propertycore/project.
--update-topic=UPDATE_TOPIC
ID of the topic or fully qualified identifier for the topic.

To set thetopic attribute:

  • provide the argument--update-topic on the command line.
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
These variants are also available:
gcloudalphasourceproject-configsupdate
gcloudbetasourceproject-configsupdate

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.