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