tacker.objects.vnf_software_image module¶
- class tacker.objects.vnf_software_image.VnfSoftwareImage(context=None, **kwargs)¶
Bases:
TackerObject
,TackerPersistentObject
- ALL_ATTRIBUTES = {'softwareImages': {'checksum': {'algorithm': ('algorithm', 'string', 'VnfSoftwareImage'), 'hash': ('hash', 'string', 'VnfSoftwareImage')}, 'containerFormat': ('container_format', 'string', 'VnfSoftwareImage'), 'createdAt': ('created_at', 'datetime', 'VnfSoftwareImage'), 'diskFormat': ('disk_format', 'string', 'VnfSoftwareImage'), 'id': ('software_image_id', 'uuid', 'VnfSoftwareImage'), 'imagePath': ('image_path', 'string', 'VnfSoftwareImage'), 'minDisk': ('min_disk', 'number', 'VnfSoftwareImage'), 'minRam': ('min_ram', 'number', 'VnfSoftwareImage'), 'name': ('name', 'string', 'VnfSoftwareImage'), 'provider': ('provider', 'string', 'VnfSoftwareImage'), 'size': ('size', 'number', 'VnfSoftwareImage'), 'userMetadata/*': ('metadata', 'key_value_pair', {'key_column': 'key', 'model': 'VnfSoftwareImageMetadata', 'value_column': 'value'}), 'version': ('version', 'string', 'VnfSoftwareImage')}}¶
- COMPLEX_ATTRIBUTES = ['softwareImages', 'softwareImages/userMetadata', 'softwareImages/checksum']¶
- FLATTEN_ATTRIBUTES = {'softwareImages/checksum/algorithm': ('algorithm', 'string', 'VnfSoftwareImage'), 'softwareImages/checksum/hash': ('hash', 'string', 'VnfSoftwareImage'), 'softwareImages/containerFormat': ('container_format', 'string', 'VnfSoftwareImage'), 'softwareImages/createdAt': ('created_at', 'datetime', 'VnfSoftwareImage'), 'softwareImages/diskFormat': ('disk_format', 'string', 'VnfSoftwareImage'), 'softwareImages/id': ('software_image_id', 'uuid', 'VnfSoftwareImage'), 'softwareImages/imagePath': ('image_path', 'string', 'VnfSoftwareImage'), 'softwareImages/minDisk': ('min_disk', 'number', 'VnfSoftwareImage'), 'softwareImages/minRam': ('min_ram', 'number', 'VnfSoftwareImage'), 'softwareImages/name': ('name', 'string', 'VnfSoftwareImage'), 'softwareImages/provider': ('provider', 'string', 'VnfSoftwareImage'), 'softwareImages/size': ('size', 'number', 'VnfSoftwareImage'), 'softwareImages/userMetadata/*': ('metadata', 'key_value_pair', {'key_column': 'key', 'model': 'VnfSoftwareImageMetadata', 'value_column': 'value'}), 'softwareImages/version': ('version', 'string', 'VnfSoftwareImage')}¶
- SIMPLE_ATTRIBUTES = ['id', 'imagePath', 'diskFormat', 'size', 'createdAt', 'name', 'minDisk', 'version', 'provider', 'minRam', 'containerFormat']¶
- VERSION = '1.0'¶
- property algorithm¶
- property container_format¶
- create()¶
- property created_at¶
- property deleted¶
- property deleted_at¶
- property disk_format¶
- fields = {'algorithm': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'container_format': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'deleted': Integer(default=0,nullable=True), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'disk_format': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'flavour_uuid': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'hash': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'image_path': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'metadata': Dict(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'min_disk': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'min_ram': Integer(default=0,nullable=False), 'name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'provider': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'size': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'software_image_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'version': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}¶
- property flavour_uuid¶
- classmethod get_by_id(context, id, expected_attrs=None)¶
- property hash¶
- property id¶
- property image_path¶
- property metadata¶
- property min_disk¶
- property min_ram¶
- property name¶
- obj_load_attr(attrname)¶
Load an additional attribute from the real object.
This should load self.$attrname and cache any data that might be useful for future load operations.
- property provider¶
- property size¶
- property software_image_id¶
- to_dict(include_fields=None)¶
- property updated_at¶
- property version¶
- class tacker.objects.vnf_software_image.VnfSoftwareImagesList(*args, **kwargs)¶
Bases:
ObjectListBase
,TackerObject
- VERSION = '1.0'¶
- fields = {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}¶
- property objects¶