gcloud source repos update Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud source repos update - update the configuration of a Cloud Source Repository
- SYNOPSIS
gcloud source repos updateREPO((--add-topic=ADD_TOPIC|--remove-topic=REMOVE_TOPIC|--update-topic=UPDATE_TOPIC) :--message-format=MESSAGE_FORMAT--service-account=SERVICE_ACCOUNT--topic-project=TOPIC_PROJECT)[GCLOUD_WIDE_FLAG …]
- EXAMPLES
- To associate a Cloud Pub/Sub topic to receive repository update notifications,run:
gcloudsourcereposupdateREPO_NAME--add-topic=TOPIC_NAME--service-account=SERVICE_ACCOUNT_EMAIL--message-format=json - POSITIONAL ARGUMENTS
- Repo resource - Name of the Cloud Source repository to update. This represents aCloud resource. (NOTE) Some attributes are not given arguments in this group butcan be set in other ways.
To set the
projectattribute:- provide the argument
repoon the command line with a fullyspecified name; - set the property
core/project.
This must be specified.
REPO- ID of the repo or fully qualified identifier for the repo.
To set the
repoattribute:- provide the argument
repoon the command line.
- provide the argument
- provide the argument
- Repo resource - Name of the Cloud Source repository to update. This represents aCloud resource. (NOTE) Some attributes are not given arguments in this group butcan be set in other ways.
- REQUIRED FLAGS
- Manages Cloud Pub/Sub topics associated with the repository.
At least one of these must be specified:
--message-format=MESSAGE_FORMAT- The format of the message to publish to the topic.
MESSAGE_FORMATmust 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 repo. 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.
- Exactly one of these must be specified:
- Topic resource - The Cloud Pub/Sub topic to add to the repository. Thisrepresents a Cloud resource. (NOTE) Some attributes are not given arguments inthis group but can be set in other ways.
To set the
projectattribute:- provide the argument
--add-topicon the command line with a fullyspecified name; - provide the argument
--topic-projecton the command line; - set the property
core/project.
--add-topic=ADD_TOPIC- ID of the topic or fully qualified identifier for the topic.
To set the
topicattribute:- provide the argument
--add-topicon the command line.
- provide the argument
- provide the argument
- Topic resource - The Cloud Pub/Sub topic to remove from the repository. Thisrepresents a Cloud resource. (NOTE) Some attributes are not given arguments inthis group but can be set in other ways.
To set the
projectattribute:- provide the argument
--remove-topicon the command line with afully specified name; - provide the argument
--topic-projecton the command line; - set the property
core/project.
--remove-topic=REMOVE_TOPIC- ID of the topic or fully qualified identifier for the topic.
To set the
topicattribute:- provide the argument
--remove-topicon the command line.
- provide the argument
- provide the argument
- 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 the
projectattribute:- provide the argument
--update-topicon the command line with afully specified name; - provide the argument
--topic-projecton the command line; - set the property
core/project.
--update-topic=UPDATE_TOPIC- ID of the topic or fully qualified identifier for the topic.
To set the
topicattribute:- provide the argument
--update-topicon the command line.
- provide the argument
- provide the argument
- Topic resource - The Cloud Pub/Sub topic to add to the repository. Thisrepresents a Cloud resource. (NOTE) Some attributes are not given arguments inthis group but can be set in other ways.
- Manages Cloud Pub/Sub topics associated with the repository.
- 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 helpfor details. - NOTES
- These variants are also available:
gcloudalphasourcereposupdategcloudbetasourcereposupdate
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.