- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
branchRules.create creates a branch rule in a given repository.
HTTP request
POST https://securesourcemanager.googleapis.com/v1/{parent=projects/*/locations/*/repositories/*}/branchRules
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
|
Query parameters
Parameters | |
---|---|
branch |
|
Request body
The request body contains an instance of BranchRule
.
Response body
If successful, the response body contains a newly created 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 parent
resource:
securesourcemanager.branchRules.create
For more information, see the IAM documentation.