|
@@ 2162-2209 (lines=48) @@
|
| 2159 |
|
__repr__ = __str__ |
| 2160 |
|
|
| 2161 |
|
|
| 2162 |
|
class GetEndpointsParameters(FrozenClass): |
| 2163 |
|
''' |
| 2164 |
|
:ivar EndpointUrl: |
| 2165 |
|
:vartype EndpointUrl: String |
| 2166 |
|
:ivar LocaleIds: |
| 2167 |
|
:vartype LocaleIds: String |
| 2168 |
|
:ivar ProfileUris: |
| 2169 |
|
:vartype ProfileUris: String |
| 2170 |
|
''' |
| 2171 |
|
|
| 2172 |
|
ua_types = [ |
| 2173 |
|
|
| 2174 |
|
('EndpointUrl', 'String'), |
| 2175 |
|
('LocaleIds', 'ListOfString'), |
| 2176 |
|
('ProfileUris', 'ListOfString'), |
| 2177 |
|
] |
| 2178 |
|
|
| 2179 |
|
def __init__(self): |
| 2180 |
|
self.EndpointUrl = None |
| 2181 |
|
self.LocaleIds = [] |
| 2182 |
|
self.ProfileUris = [] |
| 2183 |
|
self._freeze = True |
| 2184 |
|
|
| 2185 |
|
def to_binary(self): |
| 2186 |
|
packet = [] |
| 2187 |
|
packet.append(uabin.Primitives.String.pack(self.EndpointUrl)) |
| 2188 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.LocaleIds))) |
| 2189 |
|
for fieldname in self.LocaleIds: |
| 2190 |
|
packet.append(uabin.Primitives.String.pack(fieldname)) |
| 2191 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.ProfileUris))) |
| 2192 |
|
for fieldname in self.ProfileUris: |
| 2193 |
|
packet.append(uabin.Primitives.String.pack(fieldname)) |
| 2194 |
|
return b''.join(packet) |
| 2195 |
|
|
| 2196 |
|
@staticmethod |
| 2197 |
|
def from_binary(data): |
| 2198 |
|
obj = GetEndpointsParameters() |
| 2199 |
|
self.EndpointUrl = uabin.Primitives.String.unpack(data) |
| 2200 |
|
obj.LocaleIds = uabin.Primitives.String.unpack_array(data) |
| 2201 |
|
obj.ProfileUris = uabin.Primitives.String.unpack_array(data) |
| 2202 |
|
return obj |
| 2203 |
|
|
| 2204 |
|
def __str__(self): |
| 2205 |
|
return 'GetEndpointsParameters(' + 'EndpointUrl:' + str(self.EndpointUrl) + ', ' + \ |
| 2206 |
|
'LocaleIds:' + str(self.LocaleIds) + ', ' + \ |
| 2207 |
|
'ProfileUris:' + str(self.ProfileUris) + ')' |
| 2208 |
|
|
| 2209 |
|
__repr__ = __str__ |
| 2210 |
|
|
| 2211 |
|
|
| 2212 |
|
class GetEndpointsRequest(FrozenClass): |
|
@@ 1616-1663 (lines=48) @@
|
| 1613 |
|
__repr__ = __str__ |
| 1614 |
|
|
| 1615 |
|
|
| 1616 |
|
class FindServersParameters(FrozenClass): |
| 1617 |
|
''' |
| 1618 |
|
:ivar EndpointUrl: |
| 1619 |
|
:vartype EndpointUrl: String |
| 1620 |
|
:ivar LocaleIds: |
| 1621 |
|
:vartype LocaleIds: String |
| 1622 |
|
:ivar ServerUris: |
| 1623 |
|
:vartype ServerUris: String |
| 1624 |
|
''' |
| 1625 |
|
|
| 1626 |
|
ua_types = [ |
| 1627 |
|
|
| 1628 |
|
('EndpointUrl', 'String'), |
| 1629 |
|
('LocaleIds', 'ListOfString'), |
| 1630 |
|
('ServerUris', 'ListOfString'), |
| 1631 |
|
] |
| 1632 |
|
|
| 1633 |
|
def __init__(self): |
| 1634 |
|
self.EndpointUrl = None |
| 1635 |
|
self.LocaleIds = [] |
| 1636 |
|
self.ServerUris = [] |
| 1637 |
|
self._freeze = True |
| 1638 |
|
|
| 1639 |
|
def to_binary(self): |
| 1640 |
|
packet = [] |
| 1641 |
|
packet.append(uabin.Primitives.String.pack(self.EndpointUrl)) |
| 1642 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.LocaleIds))) |
| 1643 |
|
for fieldname in self.LocaleIds: |
| 1644 |
|
packet.append(uabin.Primitives.String.pack(fieldname)) |
| 1645 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.ServerUris))) |
| 1646 |
|
for fieldname in self.ServerUris: |
| 1647 |
|
packet.append(uabin.Primitives.String.pack(fieldname)) |
| 1648 |
|
return b''.join(packet) |
| 1649 |
|
|
| 1650 |
|
@staticmethod |
| 1651 |
|
def from_binary(data): |
| 1652 |
|
obj = FindServersParameters() |
| 1653 |
|
self.EndpointUrl = uabin.Primitives.String.unpack(data) |
| 1654 |
|
obj.LocaleIds = uabin.Primitives.String.unpack_array(data) |
| 1655 |
|
obj.ServerUris = uabin.Primitives.String.unpack_array(data) |
| 1656 |
|
return obj |
| 1657 |
|
|
| 1658 |
|
def __str__(self): |
| 1659 |
|
return 'FindServersParameters(' + 'EndpointUrl:' + str(self.EndpointUrl) + ', ' + \ |
| 1660 |
|
'LocaleIds:' + str(self.LocaleIds) + ', ' + \ |
| 1661 |
|
'ServerUris:' + str(self.ServerUris) + ')' |
| 1662 |
|
|
| 1663 |
|
__repr__ = __str__ |
| 1664 |
|
|
| 1665 |
|
|
| 1666 |
|
class FindServersRequest(FrozenClass): |
|
@@ 11338-11383 (lines=46) @@
|
| 11335 |
|
__repr__ = __str__ |
| 11336 |
|
|
| 11337 |
|
|
| 11338 |
|
class SetMonitoringModeParameters(FrozenClass): |
| 11339 |
|
''' |
| 11340 |
|
:ivar SubscriptionId: |
| 11341 |
|
:vartype SubscriptionId: UInt32 |
| 11342 |
|
:ivar MonitoringMode: |
| 11343 |
|
:vartype MonitoringMode: MonitoringMode |
| 11344 |
|
:ivar MonitoredItemIds: |
| 11345 |
|
:vartype MonitoredItemIds: UInt32 |
| 11346 |
|
''' |
| 11347 |
|
|
| 11348 |
|
ua_types = [ |
| 11349 |
|
|
| 11350 |
|
('SubscriptionId', 'UInt32'), |
| 11351 |
|
('MonitoringMode', 'MonitoringMode'), |
| 11352 |
|
('MonitoredItemIds', 'ListOfUInt32'), |
| 11353 |
|
] |
| 11354 |
|
|
| 11355 |
|
def __init__(self): |
| 11356 |
|
self.SubscriptionId = 0 |
| 11357 |
|
self.MonitoringMode = MonitoringMode(0) |
| 11358 |
|
self.MonitoredItemIds = [] |
| 11359 |
|
self._freeze = True |
| 11360 |
|
|
| 11361 |
|
def to_binary(self): |
| 11362 |
|
packet = [] |
| 11363 |
|
packet.append(uabin.Primitives.UInt32.pack(self.SubscriptionId)) |
| 11364 |
|
packet.append(uabin.Primitives.UInt32.pack(self.MonitoringMode.value)) |
| 11365 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.MonitoredItemIds))) |
| 11366 |
|
for fieldname in self.MonitoredItemIds: |
| 11367 |
|
packet.append(uabin.Primitives.UInt32.pack(fieldname)) |
| 11368 |
|
return b''.join(packet) |
| 11369 |
|
|
| 11370 |
|
@staticmethod |
| 11371 |
|
def from_binary(data): |
| 11372 |
|
obj = SetMonitoringModeParameters() |
| 11373 |
|
self.SubscriptionId = uabin.Primitives.UInt32.unpack(data) |
| 11374 |
|
self.MonitoringMode = MonitoringMode(uabin.Primitives.UInt32.unpack(data)) |
| 11375 |
|
obj.MonitoredItemIds = uabin.Primitives.UInt32.unpack_array(data) |
| 11376 |
|
return obj |
| 11377 |
|
|
| 11378 |
|
def __str__(self): |
| 11379 |
|
return 'SetMonitoringModeParameters(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \ |
| 11380 |
|
'MonitoringMode:' + str(self.MonitoringMode) + ', ' + \ |
| 11381 |
|
'MonitoredItemIds:' + str(self.MonitoredItemIds) + ')' |
| 11382 |
|
|
| 11383 |
|
__repr__ = __str__ |
| 11384 |
|
|
| 11385 |
|
|
| 11386 |
|
class SetMonitoringModeRequest(FrozenClass): |
|
@@ 1824-1869 (lines=46) @@
|
| 1821 |
|
__repr__ = __str__ |
| 1822 |
|
|
| 1823 |
|
|
| 1824 |
|
class FindServersOnNetworkParameters(FrozenClass): |
| 1825 |
|
''' |
| 1826 |
|
:ivar StartingRecordId: |
| 1827 |
|
:vartype StartingRecordId: UInt32 |
| 1828 |
|
:ivar MaxRecordsToReturn: |
| 1829 |
|
:vartype MaxRecordsToReturn: UInt32 |
| 1830 |
|
:ivar ServerCapabilityFilter: |
| 1831 |
|
:vartype ServerCapabilityFilter: String |
| 1832 |
|
''' |
| 1833 |
|
|
| 1834 |
|
ua_types = [ |
| 1835 |
|
|
| 1836 |
|
('StartingRecordId', 'UInt32'), |
| 1837 |
|
('MaxRecordsToReturn', 'UInt32'), |
| 1838 |
|
('ServerCapabilityFilter', 'ListOfString'), |
| 1839 |
|
] |
| 1840 |
|
|
| 1841 |
|
def __init__(self): |
| 1842 |
|
self.StartingRecordId = 0 |
| 1843 |
|
self.MaxRecordsToReturn = 0 |
| 1844 |
|
self.ServerCapabilityFilter = [] |
| 1845 |
|
self._freeze = True |
| 1846 |
|
|
| 1847 |
|
def to_binary(self): |
| 1848 |
|
packet = [] |
| 1849 |
|
packet.append(uabin.Primitives.UInt32.pack(self.StartingRecordId)) |
| 1850 |
|
packet.append(uabin.Primitives.UInt32.pack(self.MaxRecordsToReturn)) |
| 1851 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.ServerCapabilityFilter))) |
| 1852 |
|
for fieldname in self.ServerCapabilityFilter: |
| 1853 |
|
packet.append(uabin.Primitives.String.pack(fieldname)) |
| 1854 |
|
return b''.join(packet) |
| 1855 |
|
|
| 1856 |
|
@staticmethod |
| 1857 |
|
def from_binary(data): |
| 1858 |
|
obj = FindServersOnNetworkParameters() |
| 1859 |
|
self.StartingRecordId = uabin.Primitives.UInt32.unpack(data) |
| 1860 |
|
self.MaxRecordsToReturn = uabin.Primitives.UInt32.unpack(data) |
| 1861 |
|
obj.ServerCapabilityFilter = uabin.Primitives.String.unpack_array(data) |
| 1862 |
|
return obj |
| 1863 |
|
|
| 1864 |
|
def __str__(self): |
| 1865 |
|
return 'FindServersOnNetworkParameters(' + 'StartingRecordId:' + str(self.StartingRecordId) + ', ' + \ |
| 1866 |
|
'MaxRecordsToReturn:' + str(self.MaxRecordsToReturn) + ', ' + \ |
| 1867 |
|
'ServerCapabilityFilter:' + str(self.ServerCapabilityFilter) + ')' |
| 1868 |
|
|
| 1869 |
|
__repr__ = __str__ |
| 1870 |
|
|
| 1871 |
|
|
| 1872 |
|
class FindServersOnNetworkRequest(FrozenClass): |