heat.common.identifier module¶
- class heat.common.identifier.EventIdentifier(tenant, stack_name, stack_id, path, event_id=None)[source]¶
Bases:
HeatIdentifier
An identifier for an event.
- EVENT_ID = 'event_id'¶
- RESOURCE_NAME = 'resource_name'¶
- class heat.common.identifier.HeatIdentifier(tenant, stack_name, stack_id, path='')[source]¶
Bases:
Mapping
- FIELDS = ('tenant', 'stack_name', 'stack_id', 'path')¶
- PATH = 'path'¶
- STACK_ID = 'stack_id'¶
- STACK_NAME = 'stack_name'¶
- TENANT = 'tenant'¶
- arn()[source]¶
Return as an ARN.
- Returned in the form:
arn:openstack:heat::<tenant>:stacks/<stack_name>/<stack_id><path>
- classmethod from_arn_url(url)[source]¶
Generate a new HeatIdentifier by parsing the supplied URL.
The URL is expected to contain a valid arn as part of the path.
- path_re = re.compile('stacks/([^/]+)/([^/]+)(.*)')¶