|
@@ 6791-6840 (lines=50) @@
|
| 6788 |
|
__repr__ = __str__ |
| 6789 |
|
|
| 6790 |
|
|
| 6791 |
|
class BrowsePathResult(FrozenClass): |
| 6792 |
|
''' |
| 6793 |
|
The result of a translate opearation. |
| 6794 |
|
|
| 6795 |
|
:ivar StatusCode: |
| 6796 |
|
:vartype StatusCode: StatusCode |
| 6797 |
|
:ivar Targets: |
| 6798 |
|
:vartype Targets: BrowsePathTarget |
| 6799 |
|
''' |
| 6800 |
|
|
| 6801 |
|
ua_types = { |
| 6802 |
|
'StatusCode': 'StatusCode', |
| 6803 |
|
'Targets': 'BrowsePathTarget', |
| 6804 |
|
} |
| 6805 |
|
|
| 6806 |
|
def __init__(self, binary=None): |
| 6807 |
|
if binary is not None: |
| 6808 |
|
self._binary_init(binary) |
| 6809 |
|
self._freeze = True |
| 6810 |
|
return |
| 6811 |
|
self.StatusCode = StatusCode() |
| 6812 |
|
self.Targets = [] |
| 6813 |
|
self._freeze = True |
| 6814 |
|
|
| 6815 |
|
def to_binary(self): |
| 6816 |
|
packet = [] |
| 6817 |
|
packet.append(self.StatusCode.to_binary()) |
| 6818 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.Targets))) |
| 6819 |
|
for fieldname in self.Targets: |
| 6820 |
|
packet.append(fieldname.to_binary()) |
| 6821 |
|
return b''.join(packet) |
| 6822 |
|
|
| 6823 |
|
@staticmethod |
| 6824 |
|
def from_binary(data): |
| 6825 |
|
return BrowsePathResult(data) |
| 6826 |
|
|
| 6827 |
|
def _binary_init(self, data): |
| 6828 |
|
self.StatusCode = StatusCode.from_binary(data) |
| 6829 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 6830 |
|
array = [] |
| 6831 |
|
if length != -1: |
| 6832 |
|
for _ in range(0, length): |
| 6833 |
|
array.append(BrowsePathTarget.from_binary(data)) |
| 6834 |
|
self.Targets = array |
| 6835 |
|
|
| 6836 |
|
def __str__(self): |
| 6837 |
|
return 'BrowsePathResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \ |
| 6838 |
|
'Targets:' + str(self.Targets) + ')' |
| 6839 |
|
|
| 6840 |
|
__repr__ = __str__ |
| 6841 |
|
|
| 6842 |
|
|
| 6843 |
|
class TranslateBrowsePathsToNodeIdsParameters(FrozenClass): |
|
@@ 14515-14562 (lines=48) @@
|
| 14512 |
|
__repr__ = __str__ |
| 14513 |
|
|
| 14514 |
|
|
| 14515 |
|
class NetworkGroupDataType(FrozenClass): |
| 14516 |
|
''' |
| 14517 |
|
:ivar ServerUri: |
| 14518 |
|
:vartype ServerUri: String |
| 14519 |
|
:ivar NetworkPaths: |
| 14520 |
|
:vartype NetworkPaths: EndpointUrlListDataType |
| 14521 |
|
''' |
| 14522 |
|
|
| 14523 |
|
ua_types = { |
| 14524 |
|
'ServerUri': 'String', |
| 14525 |
|
'NetworkPaths': 'EndpointUrlListDataType', |
| 14526 |
|
} |
| 14527 |
|
|
| 14528 |
|
def __init__(self, binary=None): |
| 14529 |
|
if binary is not None: |
| 14530 |
|
self._binary_init(binary) |
| 14531 |
|
self._freeze = True |
| 14532 |
|
return |
| 14533 |
|
self.ServerUri = None |
| 14534 |
|
self.NetworkPaths = [] |
| 14535 |
|
self._freeze = True |
| 14536 |
|
|
| 14537 |
|
def to_binary(self): |
| 14538 |
|
packet = [] |
| 14539 |
|
packet.append(uabin.Primitives.String.pack(self.ServerUri)) |
| 14540 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.NetworkPaths))) |
| 14541 |
|
for fieldname in self.NetworkPaths: |
| 14542 |
|
packet.append(fieldname.to_binary()) |
| 14543 |
|
return b''.join(packet) |
| 14544 |
|
|
| 14545 |
|
@staticmethod |
| 14546 |
|
def from_binary(data): |
| 14547 |
|
return NetworkGroupDataType(data) |
| 14548 |
|
|
| 14549 |
|
def _binary_init(self, data): |
| 14550 |
|
self.ServerUri = uabin.Primitives.String.unpack(data) |
| 14551 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 14552 |
|
array = [] |
| 14553 |
|
if length != -1: |
| 14554 |
|
for _ in range(0, length): |
| 14555 |
|
array.append(EndpointUrlListDataType.from_binary(data)) |
| 14556 |
|
self.NetworkPaths = array |
| 14557 |
|
|
| 14558 |
|
def __str__(self): |
| 14559 |
|
return 'NetworkGroupDataType(' + 'ServerUri:' + str(self.ServerUri) + ', ' + \ |
| 14560 |
|
'NetworkPaths:' + str(self.NetworkPaths) + ')' |
| 14561 |
|
|
| 14562 |
|
__repr__ = __str__ |
| 14563 |
|
|
| 14564 |
|
|
| 14565 |
|
class SamplingIntervalDiagnosticsDataType(FrozenClass): |
|
@@ 13398-13445 (lines=48) @@
|
| 13395 |
|
__repr__ = __str__ |
| 13396 |
|
|
| 13397 |
|
|
| 13398 |
|
class EventFieldList(FrozenClass): |
| 13399 |
|
''' |
| 13400 |
|
:ivar ClientHandle: |
| 13401 |
|
:vartype ClientHandle: UInt32 |
| 13402 |
|
:ivar EventFields: |
| 13403 |
|
:vartype EventFields: Variant |
| 13404 |
|
''' |
| 13405 |
|
|
| 13406 |
|
ua_types = { |
| 13407 |
|
'ClientHandle': 'UInt32', |
| 13408 |
|
'EventFields': 'Variant', |
| 13409 |
|
} |
| 13410 |
|
|
| 13411 |
|
def __init__(self, binary=None): |
| 13412 |
|
if binary is not None: |
| 13413 |
|
self._binary_init(binary) |
| 13414 |
|
self._freeze = True |
| 13415 |
|
return |
| 13416 |
|
self.ClientHandle = 0 |
| 13417 |
|
self.EventFields = [] |
| 13418 |
|
self._freeze = True |
| 13419 |
|
|
| 13420 |
|
def to_binary(self): |
| 13421 |
|
packet = [] |
| 13422 |
|
packet.append(uabin.Primitives.UInt32.pack(self.ClientHandle)) |
| 13423 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.EventFields))) |
| 13424 |
|
for fieldname in self.EventFields: |
| 13425 |
|
packet.append(fieldname.to_binary()) |
| 13426 |
|
return b''.join(packet) |
| 13427 |
|
|
| 13428 |
|
@staticmethod |
| 13429 |
|
def from_binary(data): |
| 13430 |
|
return EventFieldList(data) |
| 13431 |
|
|
| 13432 |
|
def _binary_init(self, data): |
| 13433 |
|
self.ClientHandle = uabin.Primitives.UInt32.unpack(data) |
| 13434 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 13435 |
|
array = [] |
| 13436 |
|
if length != -1: |
| 13437 |
|
for _ in range(0, length): |
| 13438 |
|
array.append(Variant.from_binary(data)) |
| 13439 |
|
self.EventFields = array |
| 13440 |
|
|
| 13441 |
|
def __str__(self): |
| 13442 |
|
return 'EventFieldList(' + 'ClientHandle:' + str(self.ClientHandle) + ', ' + \ |
| 13443 |
|
'EventFields:' + str(self.EventFields) + ')' |
| 13444 |
|
|
| 13445 |
|
__repr__ = __str__ |
| 13446 |
|
|
| 13447 |
|
|
| 13448 |
|
class HistoryEventFieldList(FrozenClass): |
|
@@ 10945-10992 (lines=48) @@
|
| 10942 |
|
__repr__ = __str__ |
| 10943 |
|
|
| 10944 |
|
|
| 10945 |
|
class EventFilter(FrozenClass): |
| 10946 |
|
''' |
| 10947 |
|
:ivar SelectClauses: |
| 10948 |
|
:vartype SelectClauses: SimpleAttributeOperand |
| 10949 |
|
:ivar WhereClause: |
| 10950 |
|
:vartype WhereClause: ContentFilter |
| 10951 |
|
''' |
| 10952 |
|
|
| 10953 |
|
ua_types = { |
| 10954 |
|
'SelectClauses': 'SimpleAttributeOperand', |
| 10955 |
|
'WhereClause': 'ContentFilter', |
| 10956 |
|
} |
| 10957 |
|
|
| 10958 |
|
def __init__(self, binary=None): |
| 10959 |
|
if binary is not None: |
| 10960 |
|
self._binary_init(binary) |
| 10961 |
|
self._freeze = True |
| 10962 |
|
return |
| 10963 |
|
self.SelectClauses = [] |
| 10964 |
|
self.WhereClause = ContentFilter() |
| 10965 |
|
self._freeze = True |
| 10966 |
|
|
| 10967 |
|
def to_binary(self): |
| 10968 |
|
packet = [] |
| 10969 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.SelectClauses))) |
| 10970 |
|
for fieldname in self.SelectClauses: |
| 10971 |
|
packet.append(fieldname.to_binary()) |
| 10972 |
|
packet.append(self.WhereClause.to_binary()) |
| 10973 |
|
return b''.join(packet) |
| 10974 |
|
|
| 10975 |
|
@staticmethod |
| 10976 |
|
def from_binary(data): |
| 10977 |
|
return EventFilter(data) |
| 10978 |
|
|
| 10979 |
|
def _binary_init(self, data): |
| 10980 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 10981 |
|
array = [] |
| 10982 |
|
if length != -1: |
| 10983 |
|
for _ in range(0, length): |
| 10984 |
|
array.append(SimpleAttributeOperand.from_binary(data)) |
| 10985 |
|
self.SelectClauses = array |
| 10986 |
|
self.WhereClause = ContentFilter.from_binary(data) |
| 10987 |
|
|
| 10988 |
|
def __str__(self): |
| 10989 |
|
return 'EventFilter(' + 'SelectClauses:' + str(self.SelectClauses) + ', ' + \ |
| 10990 |
|
'WhereClause:' + str(self.WhereClause) + ')' |
| 10991 |
|
|
| 10992 |
|
__repr__ = __str__ |
| 10993 |
|
|
| 10994 |
|
|
| 10995 |
|
class AggregateConfiguration(FrozenClass): |
|
@@ 8667-8714 (lines=48) @@
|
| 8664 |
|
__repr__ = __str__ |
| 8665 |
|
|
| 8666 |
|
|
| 8667 |
|
class QueryNextResult(FrozenClass): |
| 8668 |
|
''' |
| 8669 |
|
:ivar QueryDataSets: |
| 8670 |
|
:vartype QueryDataSets: QueryDataSet |
| 8671 |
|
:ivar RevisedContinuationPoint: |
| 8672 |
|
:vartype RevisedContinuationPoint: ByteString |
| 8673 |
|
''' |
| 8674 |
|
|
| 8675 |
|
ua_types = { |
| 8676 |
|
'QueryDataSets': 'QueryDataSet', |
| 8677 |
|
'RevisedContinuationPoint': 'ByteString', |
| 8678 |
|
} |
| 8679 |
|
|
| 8680 |
|
def __init__(self, binary=None): |
| 8681 |
|
if binary is not None: |
| 8682 |
|
self._binary_init(binary) |
| 8683 |
|
self._freeze = True |
| 8684 |
|
return |
| 8685 |
|
self.QueryDataSets = [] |
| 8686 |
|
self.RevisedContinuationPoint = None |
| 8687 |
|
self._freeze = True |
| 8688 |
|
|
| 8689 |
|
def to_binary(self): |
| 8690 |
|
packet = [] |
| 8691 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.QueryDataSets))) |
| 8692 |
|
for fieldname in self.QueryDataSets: |
| 8693 |
|
packet.append(fieldname.to_binary()) |
| 8694 |
|
packet.append(uabin.Primitives.ByteString.pack(self.RevisedContinuationPoint)) |
| 8695 |
|
return b''.join(packet) |
| 8696 |
|
|
| 8697 |
|
@staticmethod |
| 8698 |
|
def from_binary(data): |
| 8699 |
|
return QueryNextResult(data) |
| 8700 |
|
|
| 8701 |
|
def _binary_init(self, data): |
| 8702 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 8703 |
|
array = [] |
| 8704 |
|
if length != -1: |
| 8705 |
|
for _ in range(0, length): |
| 8706 |
|
array.append(QueryDataSet.from_binary(data)) |
| 8707 |
|
self.QueryDataSets = array |
| 8708 |
|
self.RevisedContinuationPoint = uabin.Primitives.ByteString.unpack(data) |
| 8709 |
|
|
| 8710 |
|
def __str__(self): |
| 8711 |
|
return 'QueryNextResult(' + 'QueryDataSets:' + str(self.QueryDataSets) + ', ' + \ |
| 8712 |
|
'RevisedContinuationPoint:' + str(self.RevisedContinuationPoint) + ')' |
| 8713 |
|
|
| 8714 |
|
__repr__ = __str__ |
| 8715 |
|
|
| 8716 |
|
|
| 8717 |
|
class QueryNextResponse(FrozenClass): |
|
@@ 1759-1806 (lines=48) @@
|
| 1756 |
|
__repr__ = __str__ |
| 1757 |
|
|
| 1758 |
|
|
| 1759 |
|
class FindServersOnNetworkResult(FrozenClass): |
| 1760 |
|
''' |
| 1761 |
|
:ivar LastCounterResetTime: |
| 1762 |
|
:vartype LastCounterResetTime: DateTime |
| 1763 |
|
:ivar Servers: |
| 1764 |
|
:vartype Servers: ServerOnNetwork |
| 1765 |
|
''' |
| 1766 |
|
|
| 1767 |
|
ua_types = { |
| 1768 |
|
'LastCounterResetTime': 'DateTime', |
| 1769 |
|
'Servers': 'ServerOnNetwork', |
| 1770 |
|
} |
| 1771 |
|
|
| 1772 |
|
def __init__(self, binary=None): |
| 1773 |
|
if binary is not None: |
| 1774 |
|
self._binary_init(binary) |
| 1775 |
|
self._freeze = True |
| 1776 |
|
return |
| 1777 |
|
self.LastCounterResetTime = datetime.utcnow() |
| 1778 |
|
self.Servers = [] |
| 1779 |
|
self._freeze = True |
| 1780 |
|
|
| 1781 |
|
def to_binary(self): |
| 1782 |
|
packet = [] |
| 1783 |
|
packet.append(uabin.Primitives.DateTime.pack(self.LastCounterResetTime)) |
| 1784 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.Servers))) |
| 1785 |
|
for fieldname in self.Servers: |
| 1786 |
|
packet.append(fieldname.to_binary()) |
| 1787 |
|
return b''.join(packet) |
| 1788 |
|
|
| 1789 |
|
@staticmethod |
| 1790 |
|
def from_binary(data): |
| 1791 |
|
return FindServersOnNetworkResult(data) |
| 1792 |
|
|
| 1793 |
|
def _binary_init(self, data): |
| 1794 |
|
self.LastCounterResetTime = uabin.Primitives.DateTime.unpack(data) |
| 1795 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 1796 |
|
array = [] |
| 1797 |
|
if length != -1: |
| 1798 |
|
for _ in range(0, length): |
| 1799 |
|
array.append(ServerOnNetwork.from_binary(data)) |
| 1800 |
|
self.Servers = array |
| 1801 |
|
|
| 1802 |
|
def __str__(self): |
| 1803 |
|
return 'FindServersOnNetworkResult(' + 'LastCounterResetTime:' + str(self.LastCounterResetTime) + ', ' + \ |
| 1804 |
|
'Servers:' + str(self.Servers) + ')' |
| 1805 |
|
|
| 1806 |
|
__repr__ = __str__ |
| 1807 |
|
|
| 1808 |
|
|
| 1809 |
|
class FindServersOnNetworkResponse(FrozenClass): |