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 = [{‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’: ‘kernel 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’: {‘parent-key-desc’: ‘UUID of image’, ‘parent-col-name’: ‘image_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘val-col’: ‘tag’, ‘val-col-desc’: ‘List of image tags’, ‘translation-type’: ‘LIST’, ‘parent-key’: ‘id’, ‘table-name’: ‘tags’}, ‘fieldname’: ‘tags’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘images’}]
execute(action, action_args)

Overwrite ExecutionDriver.execute().

static get_datasource_info()
images_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’: ‘kernel 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’: {‘parent-key-desc’: ‘UUID of image’, ‘parent-col-name’: ‘image_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘val-col’: ‘tag’, ‘val-col-desc’: ‘List of image tags’, ‘translation-type’: ‘LIST’, ‘parent-key’: ‘id’, ‘table-name’: ‘tags’}, ‘fieldname’: ‘tags’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘images’}
initialize_update_methods()
value_trans = {‘translation-type’: ‘VALUE’}