gcloud alpha source-manager branch-rules update

NAME
gcloud alpha source-manager branch-rules update - update a Secure Source Manager branch rule
SYNOPSIS
gcloud alpha source-manager branch-rules update (BRANCH_RULE : --region=REGION --repository=REPOSITORY) [--[no-]allow-stale-reviews] [--async] [--[no-]disabled] [--endpoint-mode=ENDPOINT_MODE] [--include-pattern=INCLUDE_PATTERN] [--minimum-approvals-count=MINIMUM_APPROVALS_COUNT] [--minimum-reviews-count=MINIMUM_REVIEWS_COUNT] [--[no-]require-code-owner-approval] [--[no-]require-comments-resolved] [--[no-]require-linear-history] [--[no-]require-pull-request] [GCLOUD_WIDE_FLAG …]
DESCRIPTION
(ALPHA) Update a Secure Source Manager branch rule.
EXAMPLES
To disable a branch rule called my-rule in repository my-repo and location us-central1, run the following command:
gcloud alpha source-manager branch-rules update my-rule --repository=my-repo --region=us-central1 --disabled
POSITIONAL ARGUMENTS
Branch rule resource - The Secure Source Manager branch rule to update. The arguments in this group can be used to specify the attributes of this resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.

To set the project attribute:

  • provide the argument branch_rule on the command line with a fully specified name;
  • provide the argument --project on the command line;
  • set the property core/project.

This must be specified.

BRANCH_RULE
ID of the branch_rule or fully qualified identifier for the branch_rule.

To set the branch_rule attribute:

  • provide the argument branch_rule on the command line.

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

--region=REGION
Secure Source Manager location.

To set the region attribute:

  • provide the argument branch_rule on the command line with a fully specified name;
  • provide the argument --region on the command line.
--repository=REPOSITORY
Secure Source Manager repository.

To set the repository attribute:

  • provide the argument branch_rule on the command line with a fully specified name;
  • provide the argument --repository on the command line.
FLAGS
--[no-]allow-stale-reviews
Allows stale reviews or approvals. Use --allow-stale-reviews to enable and --no-allow-stale-reviews to disable.
--async
Return immediately, without waiting for the operation in progress to complete.
--[no-]disabled
Determines if the branch rule is disabled. Use --disabled to enable and --no-disabled to disable.
--endpoint-mode=ENDPOINT_MODE
Specifies endpoint mode for a given command. Regional endpoints provide enhanced data residency and reliability by ensuring your request is handled entirely within the specified Google Cloud region. This differs from global endpoints, which may process parts of the request outside the target region. Overrides the default regional/endpoint_mode property value for this command invocation. ENDPOINT_MODE must be one of:
global
(Default) Use global rather than regional endpoints.
regional
Only use regional endpoints. An error will be raised if a regional endpoint is not available for a given command.
regional-preferred
Use regional endpoints when available, otherwise use global endpoints. Recommended for most users.
--include-pattern=INCLUDE_PATTERN
The pattern of the branch that can match to this branch rule.
--minimum-approvals-count=MINIMUM_APPROVALS_COUNT
The minimum number of approvals required.
--minimum-reviews-count=MINIMUM_REVIEWS_COUNT
The minimum number of reviews required.
--[no-]require-code-owner-approval
Determines if code owners must approve. Use --require-code-owner-approval to enable and --no-require-code-owner-approval to disable.
--[no-]require-comments-resolved
Determines if comments must be resolved. Use --require-comments-resolved to enable and --no-require-comments-resolved to disable.
--[no-]require-linear-history
Requires linear history. Use --require-linear-history to enable and --no-require-linear-history to disable.
--[no-]require-pull-request
Determines if a pull request is required. Use --require-pull-request to enable and --no-require-pull-request to disable.
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 this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist.