- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
branchRules.patch updates a branch rule.
HTTP request
PATCH https://securesourcemanager.googleapis.com/v1/{branchRule.name=projects/*/locations/*/repositories/*/branchRules/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
branch |
Optional. A unique identifier for a BranchRule. The name should be of the format: |
Query parameters
Parameters | |
---|---|
validate |
Optional. If set, validate the request and preview the review, but do not actually post it. (https://google.aip.dev/163, for declarative friendly) |
update |
Required. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the updateMask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement. This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body contains an instance of BranchRule
.
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name
resource:
securesourcemanager.branchRules.update
For more information, see the IAM documentation.