openstack.orchestration.v1.resource¶
The Resource Class¶
The Resource
class inherits from Resource
.
- class openstack.orchestration.v1.resource.Resource(_synchronized=False, connection=None, **attrs)¶
The base resource
- Parameters:
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connection
in Resource code should protect itself with a check for None.
- resource_key = 'resource'¶
Singular form of key for resource.
- resources_key = 'resources'¶
Plural form of key for resource.
- base_path = '/stacks/%(stack_name)s/%(stack_id)s/resources'¶
The base part of the URI for this resource.
- allow_create = False¶
Allow create operation for this resource.
- allow_list = True¶
Allow list operation for this resource.
- allow_delete = False¶
Allow delete operation for this resource.
- allow_commit = False¶
Allow update operation for this resource.
- links¶
A list of dictionaries containing links relevant to the resource.
- logical_resource_id¶
ID of the logical resource, usually the literal name of the resource as it appears in the stack template.
- name¶
Name of the resource.
- physical_resource_id¶
ID of the physical resource (if any) that backs up the resource. For example, it contains a nova server ID if the resource is a nova server.
- required_by¶
A list of resource names that depend on this resource. This property facilitates the deduction of resource dependencies. Type: list
- resource_type¶
A string representation of the resource type.
- status¶
A string representing the status the resource is currently in.
- status_reason¶
A string that explains why the resource is in its current status.
- updated_at¶
Timestamp of the last update made to the resource.