openstack.image.v2.task¶
The Task Class¶
The Task
class inherits from Resource
.
- class openstack.image.v2.task.Task(_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.
- resources_key = 'tasks'¶
Plural form of key for resource.
- base_path = '/tasks'¶
The base part of the URI for this resource.
- allow_create = True¶
Allow create operation for this resource.
- allow_fetch = True¶
Allow get operation for this resource.
- allow_list = True¶
Allow list operation for this resource.
- created_at¶
The date and time when the task was created.
- expires_at¶
The date and time when the task is subject to removal.
- input¶
A JSON object specifying the input parameters to the task.
- message¶
Human-readable text, possibly an empty string, usually displayed in an error situation to provide more information about what has occurred.
- owner_id¶
The ID of the owner, or project, of the task.
- result¶
A JSON object specifying the outcome of the task.
- schema¶
The URL for schema of the task.
- status¶
The status of the task.
- type¶
The type of task represented by this content.
- updated_at¶
The date and time when the task was updated.