congress.datasources.glancev2_driver module

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

Overwrite ExecutionDriver.execute().

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

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.