Reworked glance salt formulas

image_import and image_absent are added
image_download added to be used with
barbican's sign_image

Change-Id: I9d885aa9b139b440dcbc08263341bc7ff1f38f05
Related-Issue: PROD-19310
diff --git a/_modules/glancev2/task.py b/_modules/glancev2/task.py
new file mode 100644
index 0000000..11fe499
--- /dev/null
+++ b/_modules/glancev2/task.py
@@ -0,0 +1,27 @@
+try:
+    from urllib.parse import urlencode
+except ImportError:
+    from urllib import urlencode
+from glancev2.common import send
+
+
+@send('post')
+def task_create(task_type, task_input, **kwargs):
+    url = '/v2/tasks'
+    json = {
+        'type': task_type,
+        'input': task_input
+    }
+    return url, {'json': json}
+
+
+@send('get')
+def task_list(**kwargs):
+    url = '/v2/tasks?{}'.format(urlencode(kwargs))
+    return url, {}
+
+
+@send('get')
+def task_show(task_id, **kwargs):
+    url = '/v2/tasks/{}'.format(task_id)
+    return url, {}