heat.api.openstack.v1.util module¶
- heat.api.openstack.v1.util.get_allowed_params(params, param_types)[source]¶
Extract from
params
all entries listed inparam_types
.The returning dict will contain an entry for a key if, and only if, there’s an entry in
param_types
for that key and at least one entry inparams
. Ifparams
contains multiple entries for the same key, it will yield an array of values:{key: [v1, v2,...]}
- Parameters
params – a NestedMultiDict from webob.Request.params
param_types – an dict of allowed parameters and their types
- Returns
a dict with {key: value} pairs
- heat.api.openstack.v1.util.make_link(req, identity, relationship='self')[source]¶
Return a link structure for the supplied identity dictionary.
- heat.api.openstack.v1.util.make_url(req, identity)[source]¶
Return the URL for the supplied identity dictionary.
- heat.api.openstack.v1.util.no_policy_enforce(handler)[source]¶
Decorator that does not enforce policies.
Checks the path matches the request context.
This is a handler method decorator.