v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1340127143.5 KB
projects

Creates a rule.

post/v1/{+parent}/rules

Path parameters

parentstring required

Required. The name of the parent resource where the rule will be created.

Query parameters

ruleIdstring

The rule id to use for this repository.

Request body

action'ACTION_UNSPECIFIED' | 'ALLOW' | 'DENY'

The action this rule takes.

operation'OPERATION_UNSPECIFIED' | 'DOWNLOAD'
packageIdstring

The package ID the rule applies to. If empty, this rule applies to all packages inside the repository.

namestring

The name of the rule, for example: projects/p1/locations/us-central1/repositories/repo1/rules/rule1.

Response

Successful response