Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Release pti-o2imsdms 2.0.3 image
[pti/o2.git]
/
o2ims
/
domain
/
commands.py
diff --git
a/o2ims/domain/commands.py
b/o2ims/domain/commands.py
index
2b2aca6
..
0caca37
100644
(file)
--- a/
o2ims/domain/commands.py
+++ b/
o2ims/domain/commands.py
@@
-14,12
+14,13
@@
# pylint: disable=too-few-public-methods
# from datetime import date
# pylint: disable=too-few-public-methods
# from datetime import date
-# from typing import Optional
from dataclasses import dataclass
from dataclasses import dataclass
-# from
datetime import datetime
-# from o2ims.domain.resource_type import ResourceTypeEnum
+# from
typing import List
+
from o2ims.domain.stx_object import StxGenericModel
from o2ims.domain.stx_object import StxGenericModel
-from o2ims.domain.subscription_obj import Message2SMO
+from o2ims.domain.alarm_obj import AlarmEvent2SMO, FaultGenericModel
+from o2ims.domain.subscription_obj import Message2SMO, RegistrationMessage
+# from o2ims.domain.resource_type import ResourceTypeEnum
from o2common.domain.commands import Command
from o2common.domain.commands import Command
@@
-28,9
+29,25
@@
class UpdateStxObject(Command):
data: StxGenericModel
data: StxGenericModel
+@dataclass
+class UpdateFaultObject(Command):
+ data: FaultGenericModel
+
+
@dataclass
class PubMessage2SMO(Command):
data: Message2SMO
@dataclass
class PubMessage2SMO(Command):
data: Message2SMO
+ type: str
+
+
+@dataclass
+class PubAlarm2SMO(Command):
+ data: AlarmEvent2SMO
+
+
+@dataclass
+class Register2SMO(Command):
+ data: RegistrationMessage
@dataclass
@dataclass
@@
-58,6
+75,26
@@
class UpdateResource(UpdateStxObject):
parentid: str
parentid: str
+@dataclass
+class UpdateComputeAgg(UpdateResource):
+ pass
+
+
+@dataclass
+class UpdateNetworkAgg(UpdateResource):
+ pass
+
+
+@dataclass
+class UpdateStorageAgg(UpdateResource):
+ pass
+
+
+@dataclass
+class UpdateUndefinedAgg(UpdateResource):
+ pass
+
+
@dataclass
class UpdatePserver(UpdateResource):
pass
@dataclass
class UpdatePserver(UpdateResource):
pass
@@
-86,3
+123,18
@@
class UpdatePserverIf(UpdateResource):
@dataclass
class UpdatePserverIfPort(UpdateResource):
pass
@dataclass
class UpdatePserverIfPort(UpdateResource):
pass
+
+
+@dataclass
+class UpdatePserverDev(UpdateResource):
+ pass
+
+
+@dataclass
+class UpdatePserverAcc(UpdateResource):
+ pass
+
+
+@dataclass
+class UpdateAlarm(UpdateFaultObject):
+ parentid: str