Add description to policies in simple_tenant_usage.py
The 'discoverable' policy is not documented as it will be removed in a future change. blueprint policy-docs Change-Id: I9373f5af135c7cea9369a0d157aaf5bf9491be57
This commit is contained in:
parent
2a41eb8786
commit
a36253b24c
|
@ -22,12 +22,26 @@ POLICY_ROOT = 'os_compute_api:os-simple-tenant-usage:%s'
|
|||
|
||||
|
||||
simple_tenant_usage_policies = [
|
||||
policy.RuleDefault(
|
||||
name=POLICY_ROOT % 'show',
|
||||
check_str=base.RULE_ADMIN_OR_OWNER),
|
||||
policy.RuleDefault(
|
||||
name=POLICY_ROOT % 'list',
|
||||
check_str=base.RULE_ADMIN_API),
|
||||
base.create_rule_default(
|
||||
POLICY_ROOT % 'show',
|
||||
base.RULE_ADMIN_OR_OWNER,
|
||||
"Show usage statistics for a specific tenant.",
|
||||
[
|
||||
{
|
||||
'method': 'GET',
|
||||
'path': '/os-simple-tenant-usage/{tenant_id}'
|
||||
}
|
||||
]),
|
||||
base.create_rule_default(
|
||||
POLICY_ROOT % 'list',
|
||||
base.RULE_ADMIN_API,
|
||||
"List per tenant usage statistics for all tenants.",
|
||||
[
|
||||
{
|
||||
'method': 'GET',
|
||||
'path': '/os-simple-tenant-usage'
|
||||
}
|
||||
]),
|
||||
policy.RuleDefault(
|
||||
name=POLICY_ROOT % 'discoverable',
|
||||
check_str=base.RULE_ANY),
|
||||
|
|
Loading…
Reference in New Issue