Add description to policies in cloudpipe.py

Change-Id: Ic7597bb60bdf6f926c1a3070616edfa1534f77f5
blueprint: policy-docs
This commit is contained in:
Sujitha 2017-03-21 20:24:47 +00:00
parent 390c7e420f
commit 799e1e2626

View File

@ -23,9 +23,28 @@ POLICY_ROOT = 'os_compute_api:os-cloudpipe:%s'
cloudpipe_policies = [
policy.RuleDefault(
name=BASE_POLICY_NAME,
check_str=base.RULE_ADMIN_API),
base.create_rule_default(
BASE_POLICY_NAME,
base.RULE_ADMIN_API,
"""List, create and update cloud pipes.
os-cloudpipe API is deprecated as this works only with nova-network which \
itself is deprecated.
""",
[
{
'method': 'GET',
'path': '/os-cloudpipe'
},
{
'method': 'POST',
'path': '/os-cloudpipe'
},
{
'method': 'PUT',
'path': '/os-cloudpipe/configure-project'
}
]),
policy.RuleDefault(
name=POLICY_ROOT % 'discoverable',
check_str=base.RULE_ANY),