keystone.api.policy module

class keystone.api.policy.EndpointPolicyAssociations[source]

Bases: flask_restful.Resource

delete(policy_id, endpoint_id)[source]
get(policy_id, endpoint_id)[source]
methods: Optional[List[str]] = {'DELETE', 'GET', 'PUT'}

A list of methods this view can handle.

put(policy_id, endpoint_id)[source]
class keystone.api.policy.EndpointPolicyResource[source]

Bases: flask_restful.Resource

get(policy_id)[source]
methods: Optional[List[str]] = {'GET'}

A list of methods this view can handle.

class keystone.api.policy.PolicyAPI(blueprint_url_prefix='', api_url_prefix='', default_mediatype='application/json', decorators=None, errors=None)[source]

Bases: keystone.server.flask.common.

resource_mapping = [resource_map(resource=<class 'keystone.api.policy.EndpointPolicyResource'>, url='/policies/<string:policy_id>/OS-ENDPOINT-POLICY/endpoints', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/ext/OS-ENDPOINT-POLICY/1.0/rel/policy_endpoints', status='stable', path_vars={'policy_id': 'https://docs.openstack.org/api/openstack-identity/3/param/policy_id'})), resource_map(resource=<class 'keystone.api.policy.EndpointPolicyAssociations'>, url='/policies/<string:policy_id>/OS-ENDPOINT-POLICY/endpoints/<string:endpoint_id>', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/ext/OS-ENDPOINT-POLICY/1.0/rel/endpoint_policy_association', status='stable', path_vars={'policy_id': 'https://docs.openstack.org/api/openstack-identity/3/param/policy_id', 'endpoint_id': 'https://docs.openstack.org/api/openstack-identity/3/param/endpoint_id'})), resource_map(resource=<class 'keystone.api.policy.ServicePolicyAssociations'>, url='/policies/<string:policy_id>/OS-ENDPOINT-POLICY/services/<string:service_id>', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/ext/OS-ENDPOINT-POLICY/1.0/rel/service_policy_association', status='stable', path_vars={'policy_id': 'https://docs.openstack.org/api/openstack-identity/3/param/policy_id', 'service_id': 'https://docs.openstack.org/api/openstack-identity/3/param/service_id'})), resource_map(resource=<class 'keystone.api.policy.ServiceRegionPolicyAssociations'>, url='/policies/<string:policy_id>/OS-ENDPOINT-POLICY/services/<string:service_id>/regions/<string:region_id>', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/ext/OS-ENDPOINT-POLICY/1.0/rel/region_and_service_policy_association', status='stable', path_vars={'policy_id': 'https://docs.openstack.org/api/openstack-identity/3/param/policy_id', 'service_id': 'https://docs.openstack.org/api/openstack-identity/3/param/service_id', 'region_id': 'https://docs.openstack.org/api/openstack-identity/3/param/region_id'}))]
resources = [<class 'keystone.api.policy.PolicyResource'>]
class keystone.api.policy.PolicyResource[source]

Bases: keystone.server.flask.common.ResourceBase

collection_key = 'policies'
delete(policy_id)[source]
get(policy_id=None)[source]
member_key = 'policy'
methods: Optional[List[str]] = {'DELETE', 'GET', 'PATCH', 'POST'}

A list of methods this view can handle.

patch(policy_id)[source]
post()[source]
class keystone.api.policy.ServicePolicyAssociations[source]

Bases: flask_restful.Resource

delete(policy_id, service_id)[source]
get(policy_id, service_id)[source]
methods: Optional[List[str]] = {'DELETE', 'GET', 'PUT'}

A list of methods this view can handle.

put(policy_id, service_id)[source]
class keystone.api.policy.ServiceRegionPolicyAssociations[source]

Bases: flask_restful.Resource

delete(policy_id, service_id, region_id)[source]
get(policy_id, service_id, region_id)[source]
methods: Optional[List[str]] = {'DELETE', 'GET', 'PUT'}

A list of methods this view can handle.

put(policy_id, service_id, region_id)[source]