The congress.datasources.glancev2_driver
Module¶
-
class
congress.datasources.glancev2_driver.
GlanceV2Driver
(name='', args=None)¶ Bases:
congress.datasources.datasource_driver.PollingDataSourceDriver
,congress.datasources.datasource_driver.ExecutionDriver
-
IMAGES
= 'images'¶
-
TAGS
= 'tags'¶
-
TRANSLATORS
= [{'selector-type': 'DICT_SELECTOR', 'table-name': 'images', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'UUID of image', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The image status', 'fieldname': 'status', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Image Name', 'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The container format of image', 'fieldname': 'container_format', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The date and time when the resource was created', 'fieldname': 'created_at', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The date and time when the resource was updated.', 'fieldname': 'updated_at', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The disk format of the image.', 'fieldname': 'disk_format', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The ID of the owner or tenant of the image', 'fieldname': 'owner', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Indicates whether the image can be deleted.', 'fieldname': 'protected', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'minimum amount of RAM in MB required to boot the image', 'fieldname': 'min_ram', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'minimum disk size in GB required to boot the image', 'fieldname': 'min_disk', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Hash of the image data used', 'fieldname': 'checksum', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The size of the image data, in bytes.', 'fieldname': 'size', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'URL for the virtual machine image file', 'fieldname': 'file', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'kernal id', 'fieldname': 'kernel_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'ramdisk id', 'fieldname': 'ramdisk_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'URL for schema of the virtual machine image', 'fieldname': 'schema', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The image visibility', 'fieldname': 'visibility', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'tags', 'translator': {'val-col-desc': 'List of image tags', 'val-col': 'tag', 'translator': {'translation-type': 'VALUE'}, 'translation-type': 'LIST', 'parent-key-desc': 'UUID of image', 'parent-col-name': 'image_id', 'table-name': 'tags', 'parent-key': 'id'}})}]¶
-
execute
(action, action_args)¶ Overwrite ExecutionDriver.execute().
-
static
get_datasource_info
()¶
-
images_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'images', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'UUID of image', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The image status', 'fieldname': 'status', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Image Name', 'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The container format of image', 'fieldname': 'container_format', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The date and time when the resource was created', 'fieldname': 'created_at', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The date and time when the resource was updated.', 'fieldname': 'updated_at', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The disk format of the image.', 'fieldname': 'disk_format', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The ID of the owner or tenant of the image', 'fieldname': 'owner', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Indicates whether the image can be deleted.', 'fieldname': 'protected', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'minimum amount of RAM in MB required to boot the image', 'fieldname': 'min_ram', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'minimum disk size in GB required to boot the image', 'fieldname': 'min_disk', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Hash of the image data used', 'fieldname': 'checksum', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The size of the image data, in bytes.', 'fieldname': 'size', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'URL for the virtual machine image file', 'fieldname': 'file', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'kernal id', 'fieldname': 'kernel_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'ramdisk id', 'fieldname': 'ramdisk_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'URL for schema of the virtual machine image', 'fieldname': 'schema', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The image visibility', 'fieldname': 'visibility', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'tags', 'translator': {'val-col-desc': 'List of image tags', 'val-col': 'tag', 'translator': {'translation-type': 'VALUE'}, 'translation-type': 'LIST', 'parent-key-desc': 'UUID of image', 'parent-col-name': 'image_id', 'table-name': 'tags', 'parent-key': 'id'}})}¶
-
initialize_update_methods
()¶
-
value_trans
= {'translation-type': 'VALUE'}¶
-