glance.api.v2.tasks module

class glance.api.v2.tasks.RequestDeserializer(schema=None, policy_engine=None)[source]

Bases: glance.common.wsgi.JSONRequestDeserializer

create(request)[source]
index(request)[source]
class glance.api.v2.tasks.ResponseSerializer(task_schema=None, partial_task_schema=None)[source]

Bases: glance.common.wsgi.JSONResponseSerializer

create(response, task)[source]
get(response, task)[source]
index(response, result)[source]
class glance.api.v2.tasks.TasksController(db_api=None, policy_enforcer=None, notifier=None, store_api=None)[source]

Bases: object

Manages operations on tasks.

create(req, task)[source]
delete(req, task_id)[source]
get(req, task_id)[source]
index(req, marker=None, limit=None, sort_key='created_at', sort_dir='desc', filters=None)[source]
glance.api.v2.tasks.create_resource()[source]

Task resource factory method

glance.api.v2.tasks.get_collection_schema()[source]
glance.api.v2.tasks.get_task_schema()[source]