|
@@ 13803-13853 (lines=51) @@
|
| 13800 |
|
self.TranslateBrowsePathsToNodeIdsCount = ServiceCounterDataType() |
| 13801 |
|
self.QueryFirstCount = ServiceCounterDataType() |
| 13802 |
|
self.QueryNextCount = ServiceCounterDataType() |
| 13803 |
|
self.RegisterNodesCount = ServiceCounterDataType() |
| 13804 |
|
self.UnregisterNodesCount = ServiceCounterDataType() |
| 13805 |
|
self._freeze = True |
| 13806 |
|
|
| 13807 |
|
def to_binary(self): |
| 13808 |
|
packet = [] |
| 13809 |
|
packet.append(self.SessionId.to_binary()) |
| 13810 |
|
packet.append(uabin.Primitives.String.pack(self.SessionName)) |
| 13811 |
|
packet.append(self.ClientDescription.to_binary()) |
| 13812 |
|
packet.append(uabin.Primitives.String.pack(self.ServerUri)) |
| 13813 |
|
packet.append(uabin.Primitives.String.pack(self.EndpointUrl)) |
| 13814 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.LocaleIds))) |
| 13815 |
|
for fieldname in self.LocaleIds: |
| 13816 |
|
packet.append(uabin.Primitives.String.pack(fieldname)) |
| 13817 |
|
packet.append(uabin.Primitives.Double.pack(self.ActualSessionTimeout)) |
| 13818 |
|
packet.append(uabin.Primitives.UInt32.pack(self.MaxResponseMessageSize)) |
| 13819 |
|
packet.append(uabin.Primitives.DateTime.pack(self.ClientConnectionTime)) |
| 13820 |
|
packet.append(uabin.Primitives.DateTime.pack(self.ClientLastContactTime)) |
| 13821 |
|
packet.append(uabin.Primitives.UInt32.pack(self.CurrentSubscriptionsCount)) |
| 13822 |
|
packet.append(uabin.Primitives.UInt32.pack(self.CurrentMonitoredItemsCount)) |
| 13823 |
|
packet.append(uabin.Primitives.UInt32.pack(self.CurrentPublishRequestsInQueue)) |
| 13824 |
|
packet.append(self.TotalRequestCount.to_binary()) |
| 13825 |
|
packet.append(uabin.Primitives.UInt32.pack(self.UnauthorizedRequestCount)) |
| 13826 |
|
packet.append(self.ReadCount.to_binary()) |
| 13827 |
|
packet.append(self.HistoryReadCount.to_binary()) |
| 13828 |
|
packet.append(self.WriteCount.to_binary()) |
| 13829 |
|
packet.append(self.HistoryUpdateCount.to_binary()) |
| 13830 |
|
packet.append(self.CallCount.to_binary()) |
| 13831 |
|
packet.append(self.CreateMonitoredItemsCount.to_binary()) |
| 13832 |
|
packet.append(self.ModifyMonitoredItemsCount.to_binary()) |
| 13833 |
|
packet.append(self.SetMonitoringModeCount.to_binary()) |
| 13834 |
|
packet.append(self.SetTriggeringCount.to_binary()) |
| 13835 |
|
packet.append(self.DeleteMonitoredItemsCount.to_binary()) |
| 13836 |
|
packet.append(self.CreateSubscriptionCount.to_binary()) |
| 13837 |
|
packet.append(self.ModifySubscriptionCount.to_binary()) |
| 13838 |
|
packet.append(self.SetPublishingModeCount.to_binary()) |
| 13839 |
|
packet.append(self.PublishCount.to_binary()) |
| 13840 |
|
packet.append(self.RepublishCount.to_binary()) |
| 13841 |
|
packet.append(self.TransferSubscriptionsCount.to_binary()) |
| 13842 |
|
packet.append(self.DeleteSubscriptionsCount.to_binary()) |
| 13843 |
|
packet.append(self.AddNodesCount.to_binary()) |
| 13844 |
|
packet.append(self.AddReferencesCount.to_binary()) |
| 13845 |
|
packet.append(self.DeleteNodesCount.to_binary()) |
| 13846 |
|
packet.append(self.DeleteReferencesCount.to_binary()) |
| 13847 |
|
packet.append(self.BrowseCount.to_binary()) |
| 13848 |
|
packet.append(self.BrowseNextCount.to_binary()) |
| 13849 |
|
packet.append(self.TranslateBrowsePathsToNodeIdsCount.to_binary()) |
| 13850 |
|
packet.append(self.QueryFirstCount.to_binary()) |
| 13851 |
|
packet.append(self.QueryNextCount.to_binary()) |
| 13852 |
|
packet.append(self.RegisterNodesCount.to_binary()) |
| 13853 |
|
packet.append(self.UnregisterNodesCount.to_binary()) |
| 13854 |
|
return b''.join(packet) |
| 13855 |
|
|
| 13856 |
|
@staticmethod |
|
@@ 12028-12078 (lines=51) @@
|
| 12025 |
|
packet.append(self.RequestHeader.to_binary()) |
| 12026 |
|
packet.append(self.Parameters.to_binary()) |
| 12027 |
|
return b''.join(packet) |
| 12028 |
|
|
| 12029 |
|
@staticmethod |
| 12030 |
|
def from_binary(data): |
| 12031 |
|
obj = SetPublishingModeRequest() |
| 12032 |
|
obj.TypeId = NodeId.from_binary(data) |
| 12033 |
|
obj.RequestHeader = RequestHeader.from_binary(data) |
| 12034 |
|
obj.Parameters = SetPublishingModeParameters.from_binary(data) |
| 12035 |
|
return obj |
| 12036 |
|
|
| 12037 |
|
def __str__(self): |
| 12038 |
|
return 'SetPublishingModeRequest(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
| 12039 |
|
'RequestHeader:' + str(self.RequestHeader) + ', ' + \ |
| 12040 |
|
'Parameters:' + str(self.Parameters) + ')' |
| 12041 |
|
|
| 12042 |
|
__repr__ = __str__ |
| 12043 |
|
|
| 12044 |
|
|
| 12045 |
|
class SetPublishingModeResult(FrozenClass): |
| 12046 |
|
''' |
| 12047 |
|
:ivar Results: |
| 12048 |
|
:vartype Results: StatusCode |
| 12049 |
|
:ivar DiagnosticInfos: |
| 12050 |
|
:vartype DiagnosticInfos: DiagnosticInfo |
| 12051 |
|
''' |
| 12052 |
|
|
| 12053 |
|
ua_types = [ |
| 12054 |
|
('Results', 'ListOfStatusCode'), |
| 12055 |
|
('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
| 12056 |
|
] |
| 12057 |
|
|
| 12058 |
|
def __init__(self): |
| 12059 |
|
self.Results = [] |
| 12060 |
|
self.DiagnosticInfos = [] |
| 12061 |
|
self._freeze = True |
| 12062 |
|
|
| 12063 |
|
def to_binary(self): |
| 12064 |
|
packet = [] |
| 12065 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
| 12066 |
|
for fieldname in self.Results: |
| 12067 |
|
packet.append(fieldname.to_binary()) |
| 12068 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
| 12069 |
|
for fieldname in self.DiagnosticInfos: |
| 12070 |
|
packet.append(fieldname.to_binary()) |
| 12071 |
|
return b''.join(packet) |
| 12072 |
|
|
| 12073 |
|
@staticmethod |
| 12074 |
|
def from_binary(data): |
| 12075 |
|
obj = SetPublishingModeResult() |
| 12076 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 12077 |
|
array = [] |
| 12078 |
|
if length != -1: |
| 12079 |
|
for _ in range(0, length): |
| 12080 |
|
array.append(StatusCode.from_binary(data)) |
| 12081 |
|
obj.Results = array |