tacker.objects.vnf_artifact module¶
- class tacker.objects.vnf_artifact.VnfPackageArtifactInfo(context=None, **kwargs)¶
Bases:
TackerObject
,TackerPersistentObject
- ALL_ATTRIBUTES = {'additionalArtifacts': {'artifactPath': ('artifact_path', 'string', 'VnfPackageArtifactInfo'), 'checksum': {'algorithm': ('algorithm', 'string', 'VnfPackageArtifactInfo'), 'hash': ('hash', 'string', 'VnfPackageArtifactInfo')}, 'metadata': ('_metadata', 'dict', 'VnfPackageArtifactInfo')}}¶
- COMPLEX_ATTRIBUTES = ['additionalArtifacts', 'additionalArtifacts/metadata', 'additionalArtifacts/checksum']¶
- FLATTEN_ATTRIBUTES = {'additionalArtifacts/artifactPath': ('artifact_path', 'string', 'VnfPackageArtifactInfo'), 'additionalArtifacts/checksum/algorithm': ('algorithm', 'string', 'VnfPackageArtifactInfo'), 'additionalArtifacts/checksum/hash': ('hash', 'string', 'VnfPackageArtifactInfo'), 'additionalArtifacts/metadata': ('_metadata', 'dict', 'VnfPackageArtifactInfo')}¶
- SIMPLE_ATTRIBUTES = ['artifactPath']¶
- VERSION = '1.0'¶
- property algorithm¶
- property artifact_path¶
- create()¶
- property created_at¶
- property deleted¶
- property deleted_at¶
- fields = {'_metadata': Dict(default={},nullable=True), 'algorithm': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'artifact_path': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), '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), 'hash': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'id': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'package_uuid': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}¶
- classmethod get_by_id(context, id)¶
- property hash¶
- property id¶
- 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 package_uuid¶
- to_dict(include_fields=None)¶
- property updated_at¶