# Path: deckhand/policies/base.py
# POLICY_ROOT = 'deckhand:%s'
# RULE_ADMIN_API = 'rule:admin_api'
# def list_rules():


from oslo_policy import policy
from deckhand.policies import base
        base.RULE_ADMIN_API,
        "Show details for a revision tag.",
        [
            {
                'method': 'GET',
                'path': '/api/v1.0/revisions/{revision_id}/tags/{tag}'
            }
        ]),
    policy.DocumentedRuleDefault(
        base.POLICY_ROOT % 'list_tags',
        base.RULE_ADMIN_API,
        "List all tags for a revision.",
        [
            {
                'method': 'GET',
                'path': '/api/v1.0/revisions/{revision_id}/tags'
            }
        ]),
    policy.DocumentedRuleDefault(
        base.POLICY_ROOT % 'delete_tag',
        base.RULE_ADMIN_API,
        "Delete a revision tag.",
        [
            {
                'method': 'DELETE',
                'path': '/api/v1.0/revisions/{revision_id}/tags/{tag}'
            }
        ]),
    policy.DocumentedRuleDefault(
        base.POLICY_ROOT % 'delete_tags',

# Path: deckhand/policies/base.py
# POLICY_ROOT = 'deckhand:%s'
# RULE_ADMIN_API = 'rule:admin_api'
# def list_rules():


# Path: deckhand/policies/revision_tag.py
from oslo_policy import policy
from deckhand.policies import base

        base.RULE_ADMIN_API,
        "Show details for a revision tag.",
        [
            {
                'method': 'GET',
                'path': '/api/v1.0/revisions/{revision_id}/tags/{tag}'
            }
        ]),
    policy.DocumentedRuleDefault(
        base.POLICY_ROOT % 'list_tags',
        base.RULE_ADMIN_API,
        "List all tags for a revision.",
        [
            {
                'method': 'GET',
                'path': '/api/v1.0/revisions/{revision_id}/tags'
            }
        ]),
    policy.DocumentedRuleDefault(
        base.POLICY_ROOT % 'delete_tag',
        base.RULE_ADMIN_API,
        "Delete a revision tag.",
        [
            {
                'method': 'DELETE',
                'path': '/api/v1.0/revisions/{revision_id}/tags/{tag}'
            }
        ]),
    policy.DocumentedRuleDefault(
        base.POLICY_ROOT % 'delete_tags',

        base.RULE_ADMIN_API,