/usr/lib/python2.6/site-packages/keystoneclient/v3/contrib
NameSizeModeActions
federation/-0755rm
oauth1/-0755rm
endpoint_filter.py36920644editdlrm
endpoint_filter.pyc37860644editdlrm
endpoint_policy.py63130644editdlrm
endpoint_policy.pyc70000644editdlrm
simple_cert.py13030644editdlrm
simple_cert.pyc15240644editdlrm
trusts.py36660644editdlrm
trusts.pyc39140644editdlrm
__init__.py150644editdlrm
__init__.pyc1860644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneclient/v3/contrib/endpoint_policy.pyc (7000B)
Ñò /policies/%(policy_id)s/%(ext_name)s/endpoints/%(endpoint_id)st policy_idtext_namet endpoint_idturl(t ValueErrorRRtgetidtOS_EP_POLICY_EXT(tselftpolicytendpointtactionRRR((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyt'_act_on_policy_association_for_endpoints  cCs|i|||iƒdS(s7Create an association between a policy and an endpoint.N(Rt_put(R R R((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyt&create_policy_association_for_endpoint(scCs|i|||iƒdS(s6Check an association between a policy and an endpoint.N(Rt_head(R R R((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyt%check_policy_association_for_endpoint-scCs|i|||iƒdS(s7Delete an association between a policy and an endpoint.N(Rt_delete(R R R((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyt&delete_policy_association_for_endpoint2scCsq|o|pttdƒƒ‚nti|ƒ}ti|ƒ}dh|d6|id6|d6}|d|ƒS(Nspolicy and service are requireds</policies/%(policy_id)s/%(ext_name)s/services/%(service_id)sRRt service_idR(R RRR R (R R tserviceRRRR((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyt&_act_on_policy_association_for_service7s  cCs|i|||iƒdS(s5Create an association between a policy and a service.N(RR(R R R((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyt%create_policy_association_for_serviceDscCs|i|||iƒdS(s4Check an association between a policy and a service.N(RR(R R R((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyt$check_policy_association_for_serviceIscCs|i|||iƒdS(s5Delete an association between a policy and a service.N(RR(R R R((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyt%delete_policy_association_for_serviceNsc CsŽ|o |o|pttdƒƒ‚nti|ƒ}ti|ƒ}ti|ƒ}dh|d6|id6|d6|d6}|d|ƒS(Ns'policy, region and service are requiredsR/policies/%(policy_id)s/%(ext_name)s/services/%(service_id)s/regions/%(region_id)sRRRt region_idR(R RRR R ( R R tregionRRRRRR((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyt1_act_on_policy_association_for_region_and_serviceSs  cCs|i||||iƒdS(sACreate an association between a policy and a service in a region.N(RR(R R RR((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyt0create_policy_association_for_region_and_servicecscCs|i||||iƒdS(s@Check an association between a policy and a service in a region.N(RR(R R RR((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyt/check_policy_association_for_region_and_serviceiscCs|i||||iƒdS(sADelete an association between a policy and a service in a region.N(RR(R R RR((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyt0delete_policy_association_for_region_and_serviceoscCs|pttdƒƒ‚nti|ƒ}dh|d6|id6}|ii|ƒ\}}ti||ti i dt ƒS(sGet the effective policy for an endpoint. :param endpoint: endpoint object or ID :returns: policies.Policy object sendpoint is requireds./endpoints/%(endpoint_id)s/%(ext_name)s/policyRRtloaded( R RRR R tclienttgetRtPolicyt PolicyManagertkeytTrue(R RRRt_resptbody((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pytget_policy_for_endpointuscCsi|pttdƒƒ‚nti|ƒ}dh|d6|id6}|i|tiidtii ƒS(s¹List endpoints with the effective association to a policy. :param policy: policy object or ID :returns: list of endpoints that are associated with the policy spolicy is requireds./policies/%(policy_id)s/%(ext_name)s/endpointsRRt obj_class( R RRR R t_listRtEndpointManagertcollection_keytresource_class(R R RR((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pytlist_endpoints_for_policy‰s (t__name__t __module__t__doc__R RRRRRRRRRR R!R"R,R2(((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyRs             N( tkeystoneclientRtkeystoneclient.i18nRtkeystoneclient.v3RRtManagerR(((sX/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v3/contrib/endpoint_policy.pyts