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: str = '1.0'

Object version field

Each service has its set of objects, each with a version attached. When a client attempts to call an object method, the server checks to see if the version of that object matches (in a compatible way) its object implementation. If so, cool, and if not, fail.

This version is allowed to have three parts, X.Y.Z, where the .Z element is reserved for stable branch backports. The .Z is ignored for the purposes of triggering a backport, which means anything changed under a .Z must be additive and non-destructive such that a node that knows about X.Y can consider X.Y.Z equivalent.

property algorithm: Any
property artifact_path: Any
create()
property created_at: Any
property deleted: Any
property deleted_at: Any
fields: MutableMapping[str, Field[Any]] = {'_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)}

The fields present in this object as key:field pairs.

For example:

fields = {
    'foo': obj_fields.IntegerField(),
    'bar': obj_fields.StringField(),
}
classmethod get_by_id(context, id)
property hash: Any
property id: Any
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: Any
to_dict(include_fields=None)
property updated_at: Any
class tacker.objects.vnf_artifact.VnfPackageArtifactInfoList(*args: Any, **kwargs: Any)

Bases: ObjectListBase, TackerObject

VERSION: str = '1.0'

Object version field

Each service has its set of objects, each with a version attached. When a client attempts to call an object method, the server checks to see if the version of that object matches (in a compatible way) its object implementation. If so, cool, and if not, fail.

This version is allowed to have three parts, X.Y.Z, where the .Z element is reserved for stable branch backports. The .Z is ignored for the purposes of triggering a backport, which means anything changed under a .Z must be additive and non-destructive such that a node that knows about X.Y can consider X.Y.Z equivalent.

fields: MutableMapping[str, Field[Any]] = {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}

The fields present in this object as key:field pairs.

For example:

fields = {
    'foo': obj_fields.IntegerField(),
    'bar': obj_fields.StringField(),
}
property objects: Any
to_dict(include_fields=None)