tacker.sol_refactored.objects.v2.vnf_lcm_op_occ module¶
- class tacker.sol_refactored.objects.v2.vnf_lcm_op_occ.OperationParam¶
Bases:
FieldType- static coerce(obj, attr, value)¶
This is called to coerce (if possible) a value on assignment.
This method should convert the value given into the designated type, or throw an exception if this is not possible.
- Parameters:
obj – The VersionedObject on which an attribute is being set
attr – The name of the attribute being set
value – The value being set
- Returns:
A properly-typed value
- to_primitive(obj, attr, value)¶
This is called to serialize a value.
This method should serialize a value to the form expected by from_primitive().
- Parameters:
obj – The VersionedObject on which the value is set
attr – The name of the attribute holding the value
value – The natural form of the value
- Returns:
The serialized form of the value
- class tacker.sol_refactored.objects.v2.vnf_lcm_op_occ.OperationParamsField(nullable: bool = False, default: T | type[UnspecifiedDefault] = <class 'oslo_versionedobjects.fields.UnspecifiedDefault'>, read_only: bool = False)¶
Bases:
AutoTypedField- AUTO_TYPE: FieldType[T] = <tacker.sol_refactored.objects.v2.vnf_lcm_op_occ.OperationParam object>¶
- class tacker.sol_refactored.objects.v2.vnf_lcm_op_occ.VnfLcmOpOccV2(context=None, **kwargs)¶
Bases:
TackerPersistentObject,TackerObjectDictCompat- 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 cancelMode: Any¶
- property changedExtConnectivity: Any¶
- property changedInfo: Any¶
- property error: Any¶
- fields: MutableMapping[str, Field[Any]] = {'_links': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'cancelMode': CancelModeType(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True,valid_values=('GRACEFUL', 'FORCEFUL')), 'changedExtConnectivity': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'changedInfo': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'error': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'grantId': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'isAutomaticInvocation': Boolean(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'isCancelPending': Boolean(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'modificationsTriggeredByVnfPkgChange': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'operation': LcmOperationType(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False,valid_values=('INSTANTIATE', 'SCALE', 'SCALE_TO_LEVEL', 'CHANGE_FLAVOUR', 'TERMINATE', 'HEAL', 'OPERATE', 'CHANGE_EXT_CONN', 'MODIFY_INFO', 'CREATE_SNAPSHOT', 'REVERT_TO_SNAPSHOT', 'CHANGE_VNFPKG')), 'operationParams': OperationParam(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'operationState': LcmOperationStateType(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False,valid_values=('STARTING', 'PROCESSING', 'COMPLETED', 'FAILED_TEMP', 'FAILED', 'ROLLING_BACK', 'ROLLED_BACK')), 'resourceChanges': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'startTime': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'stateEnteredTime': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'vnfInstanceId': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'vnfSnapshotInfoId': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}¶
The fields present in this object as
key:fieldpairs.For example:
fields = { 'foo': obj_fields.IntegerField(), 'bar': obj_fields.StringField(), }
- classmethod from_db_obj(db_obj)¶
- property grantId: Any¶
- property id: Any¶
- property isAutomaticInvocation: Any¶
- property isCancelPending: Any¶
- property modificationsTriggeredByVnfPkgChange: Any¶
- property operation: Any¶
- property operationParams: Any¶
- property operationState: Any¶
- property resourceChanges: Any¶
- property startTime: Any¶
- property stateEnteredTime: Any¶
- to_db_obj()¶
- property vnfInstanceId: Any¶
- property vnfSnapshotInfoId: Any¶
- class tacker.sol_refactored.objects.v2.vnf_lcm_op_occ.VnfLcmOpOccV2_Links(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 cancel: Any¶
- property fail: Any¶
- fields: MutableMapping[str, Field[Any]] = {'cancel': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'fail': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'grant': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'retry': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'rollback': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'self': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'vnfInstance': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'vnfSnapshot': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}¶
The fields present in this object as
key:fieldpairs.For example:
fields = { 'foo': obj_fields.IntegerField(), 'bar': obj_fields.StringField(), }
- property grant: Any¶
- property retry: Any¶
- property rollback: Any¶
- property self: Any¶
- property vnfInstance: Any¶
- property vnfSnapshot: Any¶
- class tacker.sol_refactored.objects.v2.vnf_lcm_op_occ.VnfLcmOpOccV2_ResourceChanges(context=None, **kwargs)¶
Bases:
TackerObject,TackerObjectDictCompat- 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 affectedExtLinkPorts: Any¶
- property affectedVirtualLinks: Any¶
- property affectedVirtualStorages: Any¶
- property affectedVnfcs: Any¶
- fields: MutableMapping[str, Field[Any]] = {'affectedExtLinkPorts': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'affectedVirtualLinks': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'affectedVirtualStorages': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'affectedVnfcs': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}¶
The fields present in this object as
key:fieldpairs.For example:
fields = { 'foo': obj_fields.IntegerField(), 'bar': obj_fields.StringField(), }