"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cloudkitty/common/policies/v2/scope.py" between
cloudkitty-16.0.0.tar.gz and cloudkitty-17.0.0.tar.gz

About: OpenStack CloudKitty provides Rating-as-a-Service for OpenStack.
The "Zed" series (latest release).

scope.py  (cloudkitty-16.0.0):scope.py  (cloudkitty-17.0.0)
skipping to change at line 38 skipping to change at line 38
check_str=base.ROLE_ADMIN, check_str=base.ROLE_ADMIN,
description='Reset the state of one or several scopes', description='Reset the state of one or several scopes',
operations=[{'path': '/v2/scope', operations=[{'path': '/v2/scope',
'method': 'PUT'}]), 'method': 'PUT'}]),
policy.DocumentedRuleDefault( policy.DocumentedRuleDefault(
name='scope:patch_state', name='scope:patch_state',
check_str=base.ROLE_ADMIN, check_str=base.ROLE_ADMIN,
description='Enables operators to patch a storage scope', description='Enables operators to patch a storage scope',
operations=[{'path': '/v2/scope', operations=[{'path': '/v2/scope',
'method': 'PATCH'}]), 'method': 'PATCH'}]),
policy.DocumentedRuleDefault(
name='scope:post_state',
check_str=base.ROLE_ADMIN,
description='Enables operators to create a storage scope',
operations=[{'path': '/v2/scope',
'method': 'POST'}]),
] ]
def list_rules(): def list_rules():
return scope_policies return scope_policies
 End of changes. 1 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)