tacker.objects.heal_vnf_request module¶
- class tacker.objects.heal_vnf_request.HealVnfAdditionalParams(context=None, **kwargs)¶
Bases:
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.Zelement is reserved for stable branch backports. The.Zis ignored for the purposes of triggering a backport, which means anything changed under a.Zmust be additive and non-destructive such that a node that knows aboutX.Ycan considerX.Y.Zequivalent.
- property cause: Any¶
- fields: MutableMapping[str, Field[Any]] = {'cause': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'parameter': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}¶
The fields present in this object as
key:fieldpairs.For example:
fields = { 'foo': obj_fields.IntegerField(), 'bar': obj_fields.StringField(), }
- property parameter: Any¶
- class tacker.objects.heal_vnf_request.HealVnfRequest(context=None, **kwargs)¶
Bases:
TackerObject- VERSION: str = '1.2'¶
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.Zelement is reserved for stable branch backports. The.Zis ignored for the purposes of triggering a backport, which means anything changed under a.Zmust be additive and non-destructive such that a node that knows aboutX.Ycan considerX.Y.Zequivalent.
- property additional_params: Any¶
- property cause: Any¶
- fields: MutableMapping[str, Field[Any]] = {'additional_params': Dict(default={},nullable=True), 'cause': String(default=None,nullable=True), 'legacy_additional_params': List(default=[],nullable=False), 'stack_id': String(default=,nullable=True), 'vnfc_instance_id': List(default=[],nullable=True)}¶
The fields present in this object as
key:fieldpairs.For example:
fields = { 'foo': obj_fields.IntegerField(), 'bar': obj_fields.StringField(), }
- property legacy_additional_params: Any¶
- obj_make_compatible(primitive, target_version)¶
Make an object representation compatible with a target version.
This is responsible for taking the primitive representation of an object and making it suitable for the given target_version. This may mean converting the format of object attributes, removing attributes that have been added since the target version, etc. In general:
If a new version of an object adds a field, this routine should remove it for older versions.
If a new version changed or restricted the format of a field, this should convert it back to something a client knowing only of the older version will tolerate.
If an object that this object depends on is bumped, then this object should also take a version bump. Then, this routine should backlevel the dependent object (by calling its obj_make_compatible()) if the requested version of this object is older than the version where the new dependent object was added.
- Parameters:
primitive – The result of
obj_to_primitive()target_version – The version string requested by the recipient of the object
- Raises:
oslo_versionedobjects.exception.UnsupportedObjectErrorif conversion is not possible for some reason
- property stack_id: Any¶
- property vnfc_instance_id: Any¶