The heat.api.openstack.v1.util ModuleΒΆ

heat.api.openstack.v1.util.get_allowed_params(params, whitelist)[source]

Extract from params all entries listed in whitelist

The returning dict will contain an entry for a key if, and only if, there’s an entry in whitelist for that key and at least one entry in params. If params 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
  • whitelist – an array of strings to whitelist
Returns:

a dict with {key: value} pairs

heat.api.openstack.v1.util.identified_stack(handler)[source]

Decorator for a handler method that passes a stack identifier in place of the various path components.

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.policy_enforce(handler)[source]

Decorator for a handler method that checks the path matches the request context and enforce policy defined in policy.json

Previous topic

The heat.api.openstack.v1.software_configs Module

Next topic

The heat.api.openstack.v1.actions Module

This Page