@@ 2410-2454 (lines=45) @@ | ||
2407 | __repr__ = __str__ |
|
2408 | ||
2409 | ||
2410 | class MdnsDiscoveryConfiguration(FrozenClass): |
|
2411 | ''' |
|
2412 | The discovery information needed for mDNS registration. |
|
2413 | ||
2414 | :ivar MdnsServerName: |
|
2415 | :vartype MdnsServerName: String |
|
2416 | :ivar ServerCapabilities: |
|
2417 | :vartype ServerCapabilities: String |
|
2418 | ''' |
|
2419 | ||
2420 | ua_types = { |
|
2421 | 'MdnsServerName': 'String', |
|
2422 | 'ServerCapabilities': 'String', |
|
2423 | } |
|
2424 | ||
2425 | def __init__(self, binary=None): |
|
2426 | if binary is not None: |
|
2427 | self._binary_init(binary) |
|
2428 | self._freeze = True |
|
2429 | return |
|
2430 | self.MdnsServerName = None |
|
2431 | self.ServerCapabilities = [] |
|
2432 | self._freeze = True |
|
2433 | ||
2434 | def to_binary(self): |
|
2435 | packet = [] |
|
2436 | packet.append(uabin.Primitives.String.pack(self.MdnsServerName)) |
|
2437 | packet.append(uabin.Primitives.Int32.pack(len(self.ServerCapabilities))) |
|
2438 | for fieldname in self.ServerCapabilities: |
|
2439 | packet.append(uabin.Primitives.String.pack(fieldname)) |
|
2440 | return b''.join(packet) |
|
2441 | ||
2442 | @staticmethod |
|
2443 | def from_binary(data): |
|
2444 | return MdnsDiscoveryConfiguration(data) |
|
2445 | ||
2446 | def _binary_init(self, data): |
|
2447 | self.MdnsServerName = uabin.Primitives.String.unpack(data) |
|
2448 | self.ServerCapabilities = uabin.Primitives.String.unpack_array(data) |
|
2449 | ||
2450 | def __str__(self): |
|
2451 | return 'MdnsDiscoveryConfiguration(' + 'MdnsServerName:' + str(self.MdnsServerName) + ', ' + \ |
|
2452 | 'ServerCapabilities:' + str(self.ServerCapabilities) + ')' |
|
2453 | ||
2454 | __repr__ = __str__ |
|
2455 | ||
2456 | ||
2457 | class RegisterServer2Parameters(FrozenClass): |
|
@@ 13995-14037 (lines=43) @@ | ||
13992 | __repr__ = __str__ |
|
13993 | ||
13994 | ||
13995 | class TransferSubscriptionsParameters(FrozenClass): |
|
13996 | ''' |
|
13997 | :ivar SubscriptionIds: |
|
13998 | :vartype SubscriptionIds: UInt32 |
|
13999 | :ivar SendInitialValues: |
|
14000 | :vartype SendInitialValues: Boolean |
|
14001 | ''' |
|
14002 | ||
14003 | ua_types = { |
|
14004 | 'SubscriptionIds': 'UInt32', |
|
14005 | 'SendInitialValues': 'Boolean', |
|
14006 | } |
|
14007 | ||
14008 | def __init__(self, binary=None): |
|
14009 | if binary is not None: |
|
14010 | self._binary_init(binary) |
|
14011 | self._freeze = True |
|
14012 | return |
|
14013 | self.SubscriptionIds = [] |
|
14014 | self.SendInitialValues = True |
|
14015 | self._freeze = True |
|
14016 | ||
14017 | def to_binary(self): |
|
14018 | packet = [] |
|
14019 | packet.append(uabin.Primitives.Int32.pack(len(self.SubscriptionIds))) |
|
14020 | for fieldname in self.SubscriptionIds: |
|
14021 | packet.append(uabin.Primitives.UInt32.pack(fieldname)) |
|
14022 | packet.append(uabin.Primitives.Boolean.pack(self.SendInitialValues)) |
|
14023 | return b''.join(packet) |
|
14024 | ||
14025 | @staticmethod |
|
14026 | def from_binary(data): |
|
14027 | return TransferSubscriptionsParameters(data) |
|
14028 | ||
14029 | def _binary_init(self, data): |
|
14030 | self.SubscriptionIds = uabin.Primitives.UInt32.unpack_array(data) |
|
14031 | self.SendInitialValues = uabin.Primitives.Boolean.unpack(data) |
|
14032 | ||
14033 | def __str__(self): |
|
14034 | return 'TransferSubscriptionsParameters(' + 'SubscriptionIds:' + str(self.SubscriptionIds) + ', ' + \ |
|
14035 | 'SendInitialValues:' + str(self.SendInitialValues) + ')' |
|
14036 | ||
14037 | __repr__ = __str__ |
|
14038 | ||
14039 | ||
14040 | class TransferSubscriptionsRequest(FrozenClass): |
|
@@ 12965-13007 (lines=43) @@ | ||
12962 | __repr__ = __str__ |
|
12963 | ||
12964 | ||
12965 | class SetPublishingModeParameters(FrozenClass): |
|
12966 | ''' |
|
12967 | :ivar PublishingEnabled: |
|
12968 | :vartype PublishingEnabled: Boolean |
|
12969 | :ivar SubscriptionIds: |
|
12970 | :vartype SubscriptionIds: UInt32 |
|
12971 | ''' |
|
12972 | ||
12973 | ua_types = { |
|
12974 | 'PublishingEnabled': 'Boolean', |
|
12975 | 'SubscriptionIds': 'UInt32', |
|
12976 | } |
|
12977 | ||
12978 | def __init__(self, binary=None): |
|
12979 | if binary is not None: |
|
12980 | self._binary_init(binary) |
|
12981 | self._freeze = True |
|
12982 | return |
|
12983 | self.PublishingEnabled = True |
|
12984 | self.SubscriptionIds = [] |
|
12985 | self._freeze = True |
|
12986 | ||
12987 | def to_binary(self): |
|
12988 | packet = [] |
|
12989 | packet.append(uabin.Primitives.Boolean.pack(self.PublishingEnabled)) |
|
12990 | packet.append(uabin.Primitives.Int32.pack(len(self.SubscriptionIds))) |
|
12991 | for fieldname in self.SubscriptionIds: |
|
12992 | packet.append(uabin.Primitives.UInt32.pack(fieldname)) |
|
12993 | return b''.join(packet) |
|
12994 | ||
12995 | @staticmethod |
|
12996 | def from_binary(data): |
|
12997 | return SetPublishingModeParameters(data) |
|
12998 | ||
12999 | def _binary_init(self, data): |
|
13000 | self.PublishingEnabled = uabin.Primitives.Boolean.unpack(data) |
|
13001 | self.SubscriptionIds = uabin.Primitives.UInt32.unpack_array(data) |
|
13002 | ||
13003 | def __str__(self): |
|
13004 | return 'SetPublishingModeParameters(' + 'PublishingEnabled:' + str(self.PublishingEnabled) + ', ' + \ |
|
13005 | 'SubscriptionIds:' + str(self.SubscriptionIds) + ')' |
|
13006 | ||
13007 | __repr__ = __str__ |
|
13008 | ||
13009 | ||
13010 | class SetPublishingModeRequest(FrozenClass): |
|
@@ 12350-12392 (lines=43) @@ | ||
12347 | __repr__ = __str__ |
|
12348 | ||
12349 | ||
12350 | class DeleteMonitoredItemsParameters(FrozenClass): |
|
12351 | ''' |
|
12352 | :ivar SubscriptionId: |
|
12353 | :vartype SubscriptionId: UInt32 |
|
12354 | :ivar MonitoredItemIds: |
|
12355 | :vartype MonitoredItemIds: UInt32 |
|
12356 | ''' |
|
12357 | ||
12358 | ua_types = { |
|
12359 | 'SubscriptionId': 'UInt32', |
|
12360 | 'MonitoredItemIds': 'UInt32', |
|
12361 | } |
|
12362 | ||
12363 | def __init__(self, binary=None): |
|
12364 | if binary is not None: |
|
12365 | self._binary_init(binary) |
|
12366 | self._freeze = True |
|
12367 | return |
|
12368 | self.SubscriptionId = 0 |
|
12369 | self.MonitoredItemIds = [] |
|
12370 | self._freeze = True |
|
12371 | ||
12372 | def to_binary(self): |
|
12373 | packet = [] |
|
12374 | packet.append(uabin.Primitives.UInt32.pack(self.SubscriptionId)) |
|
12375 | packet.append(uabin.Primitives.Int32.pack(len(self.MonitoredItemIds))) |
|
12376 | for fieldname in self.MonitoredItemIds: |
|
12377 | packet.append(uabin.Primitives.UInt32.pack(fieldname)) |
|
12378 | return b''.join(packet) |
|
12379 | ||
12380 | @staticmethod |
|
12381 | def from_binary(data): |
|
12382 | return DeleteMonitoredItemsParameters(data) |
|
12383 | ||
12384 | def _binary_init(self, data): |
|
12385 | self.SubscriptionId = uabin.Primitives.UInt32.unpack(data) |
|
12386 | self.MonitoredItemIds = uabin.Primitives.UInt32.unpack_array(data) |
|
12387 | ||
12388 | def __str__(self): |
|
12389 | return 'DeleteMonitoredItemsParameters(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \ |
|
12390 | 'MonitoredItemIds:' + str(self.MonitoredItemIds) + ')' |
|
12391 | ||
12392 | __repr__ = __str__ |
|
12393 | ||
12394 | ||
12395 | class DeleteMonitoredItemsRequest(FrozenClass): |
|
@@ 10292-10334 (lines=43) @@ | ||
10289 | __repr__ = __str__ |
|
10290 | ||
10291 | ||
10292 | class DeleteEventDetails(FrozenClass): |
|
10293 | ''' |
|
10294 | :ivar NodeId: |
|
10295 | :vartype NodeId: NodeId |
|
10296 | :ivar EventIds: |
|
10297 | :vartype EventIds: ByteString |
|
10298 | ''' |
|
10299 | ||
10300 | ua_types = { |
|
10301 | 'NodeId': 'NodeId', |
|
10302 | 'EventIds': 'ByteString', |
|
10303 | } |
|
10304 | ||
10305 | def __init__(self, binary=None): |
|
10306 | if binary is not None: |
|
10307 | self._binary_init(binary) |
|
10308 | self._freeze = True |
|
10309 | return |
|
10310 | self.NodeId = NodeId() |
|
10311 | self.EventIds = [] |
|
10312 | self._freeze = True |
|
10313 | ||
10314 | def to_binary(self): |
|
10315 | packet = [] |
|
10316 | packet.append(self.NodeId.to_binary()) |
|
10317 | packet.append(uabin.Primitives.Int32.pack(len(self.EventIds))) |
|
10318 | for fieldname in self.EventIds: |
|
10319 | packet.append(uabin.Primitives.ByteString.pack(fieldname)) |
|
10320 | return b''.join(packet) |
|
10321 | ||
10322 | @staticmethod |
|
10323 | def from_binary(data): |
|
10324 | return DeleteEventDetails(data) |
|
10325 | ||
10326 | def _binary_init(self, data): |
|
10327 | self.NodeId = NodeId.from_binary(data) |
|
10328 | self.EventIds = uabin.Primitives.ByteString.unpack_array(data) |
|
10329 | ||
10330 | def __str__(self): |
|
10331 | return 'DeleteEventDetails(' + 'NodeId:' + str(self.NodeId) + ', ' + \ |
|
10332 | 'EventIds:' + str(self.EventIds) + ')' |
|
10333 | ||
10334 | __repr__ = __str__ |
|
10335 | ||
10336 | ||
10337 | class HistoryUpdateResult(FrozenClass): |
|
@@ 9332-9374 (lines=43) @@ | ||
9329 | __repr__ = __str__ |
|
9330 | ||
9331 | ||
9332 | class ReadAtTimeDetails(FrozenClass): |
|
9333 | ''' |
|
9334 | :ivar ReqTimes: |
|
9335 | :vartype ReqTimes: DateTime |
|
9336 | :ivar UseSimpleBounds: |
|
9337 | :vartype UseSimpleBounds: Boolean |
|
9338 | ''' |
|
9339 | ||
9340 | ua_types = { |
|
9341 | 'ReqTimes': 'DateTime', |
|
9342 | 'UseSimpleBounds': 'Boolean', |
|
9343 | } |
|
9344 | ||
9345 | def __init__(self, binary=None): |
|
9346 | if binary is not None: |
|
9347 | self._binary_init(binary) |
|
9348 | self._freeze = True |
|
9349 | return |
|
9350 | self.ReqTimes = [] |
|
9351 | self.UseSimpleBounds = True |
|
9352 | self._freeze = True |
|
9353 | ||
9354 | def to_binary(self): |
|
9355 | packet = [] |
|
9356 | packet.append(uabin.Primitives.Int32.pack(len(self.ReqTimes))) |
|
9357 | for fieldname in self.ReqTimes: |
|
9358 | packet.append(uabin.Primitives.DateTime.pack(fieldname)) |
|
9359 | packet.append(uabin.Primitives.Boolean.pack(self.UseSimpleBounds)) |
|
9360 | return b''.join(packet) |
|
9361 | ||
9362 | @staticmethod |
|
9363 | def from_binary(data): |
|
9364 | return ReadAtTimeDetails(data) |
|
9365 | ||
9366 | def _binary_init(self, data): |
|
9367 | self.ReqTimes = uabin.Primitives.DateTime.unpack_array(data) |
|
9368 | self.UseSimpleBounds = uabin.Primitives.Boolean.unpack(data) |
|
9369 | ||
9370 | def __str__(self): |
|
9371 | return 'ReadAtTimeDetails(' + 'ReqTimes:' + str(self.ReqTimes) + ', ' + \ |
|
9372 | 'UseSimpleBounds:' + str(self.UseSimpleBounds) + ')' |
|
9373 | ||
9374 | __repr__ = __str__ |
|
9375 | ||
9376 | ||
9377 | class HistoryData(FrozenClass): |
|
@@ 6746-6788 (lines=43) @@ | ||
6743 | __repr__ = __str__ |
|
6744 | ||
6745 | ||
6746 | class BrowsePathTarget(FrozenClass): |
|
6747 | ''' |
|
6748 | The target of the translated path. |
|
6749 | ||
6750 | :ivar TargetId: |
|
6751 | :vartype TargetId: ExpandedNodeId |
|
6752 | :ivar RemainingPathIndex: |
|
6753 | :vartype RemainingPathIndex: UInt32 |
|
6754 | ''' |
|
6755 | ||
6756 | ua_types = { |
|
6757 | 'TargetId': 'ExpandedNodeId', |
|
6758 | 'RemainingPathIndex': 'UInt32', |
|
6759 | } |
|
6760 | ||
6761 | def __init__(self, binary=None): |
|
6762 | if binary is not None: |
|
6763 | self._binary_init(binary) |
|
6764 | self._freeze = True |
|
6765 | return |
|
6766 | self.TargetId = ExpandedNodeId() |
|
6767 | self.RemainingPathIndex = 0 |
|
6768 | self._freeze = True |
|
6769 | ||
6770 | def to_binary(self): |
|
6771 | packet = [] |
|
6772 | packet.append(self.TargetId.to_binary()) |
|
6773 | packet.append(uabin.Primitives.UInt32.pack(self.RemainingPathIndex)) |
|
6774 | return b''.join(packet) |
|
6775 | ||
6776 | @staticmethod |
|
6777 | def from_binary(data): |
|
6778 | return BrowsePathTarget(data) |
|
6779 | ||
6780 | def _binary_init(self, data): |
|
6781 | self.TargetId = ExpandedNodeId.from_binary(data) |
|
6782 | self.RemainingPathIndex = uabin.Primitives.UInt32.unpack(data) |
|
6783 | ||
6784 | def __str__(self): |
|
6785 | return 'BrowsePathTarget(' + 'TargetId:' + str(self.TargetId) + ', ' + \ |
|
6786 | 'RemainingPathIndex:' + str(self.RemainingPathIndex) + ')' |
|
6787 | ||
6788 | __repr__ = __str__ |
|
6789 | ||
6790 | ||
6791 | class BrowsePathResult(FrozenClass): |
|
@@ 6391-6433 (lines=43) @@ | ||
6388 | __repr__ = __str__ |
|
6389 | ||
6390 | ||
6391 | class BrowseNextParameters(FrozenClass): |
|
6392 | ''' |
|
6393 | :ivar ReleaseContinuationPoints: |
|
6394 | :vartype ReleaseContinuationPoints: Boolean |
|
6395 | :ivar ContinuationPoints: |
|
6396 | :vartype ContinuationPoints: ByteString |
|
6397 | ''' |
|
6398 | ||
6399 | ua_types = { |
|
6400 | 'ReleaseContinuationPoints': 'Boolean', |
|
6401 | 'ContinuationPoints': 'ByteString', |
|
6402 | } |
|
6403 | ||
6404 | def __init__(self, binary=None): |
|
6405 | if binary is not None: |
|
6406 | self._binary_init(binary) |
|
6407 | self._freeze = True |
|
6408 | return |
|
6409 | self.ReleaseContinuationPoints = True |
|
6410 | self.ContinuationPoints = [] |
|
6411 | self._freeze = True |
|
6412 | ||
6413 | def to_binary(self): |
|
6414 | packet = [] |
|
6415 | packet.append(uabin.Primitives.Boolean.pack(self.ReleaseContinuationPoints)) |
|
6416 | packet.append(uabin.Primitives.Int32.pack(len(self.ContinuationPoints))) |
|
6417 | for fieldname in self.ContinuationPoints: |
|
6418 | packet.append(uabin.Primitives.ByteString.pack(fieldname)) |
|
6419 | return b''.join(packet) |
|
6420 | ||
6421 | @staticmethod |
|
6422 | def from_binary(data): |
|
6423 | return BrowseNextParameters(data) |
|
6424 | ||
6425 | def _binary_init(self, data): |
|
6426 | self.ReleaseContinuationPoints = uabin.Primitives.Boolean.unpack(data) |
|
6427 | self.ContinuationPoints = uabin.Primitives.ByteString.unpack_array(data) |
|
6428 | ||
6429 | def __str__(self): |
|
6430 | return 'BrowseNextParameters(' + 'ReleaseContinuationPoints:' + str(self.ReleaseContinuationPoints) + ', ' + \ |
|
6431 | 'ContinuationPoints:' + str(self.ContinuationPoints) + ')' |
|
6432 | ||
6433 | __repr__ = __str__ |
|
6434 | ||
6435 | ||
6436 | class BrowseNextRequest(FrozenClass): |
|
@@ 5462-5504 (lines=43) @@ | ||
5459 | __repr__ = __str__ |
|
5460 | ||
5461 | ||
5462 | class DeleteNodesItem(FrozenClass): |
|
5463 | ''' |
|
5464 | A request to delete a node to the server address space. |
|
5465 | ||
5466 | :ivar NodeId: |
|
5467 | :vartype NodeId: NodeId |
|
5468 | :ivar DeleteTargetReferences: |
|
5469 | :vartype DeleteTargetReferences: Boolean |
|
5470 | ''' |
|
5471 | ||
5472 | ua_types = { |
|
5473 | 'NodeId': 'NodeId', |
|
5474 | 'DeleteTargetReferences': 'Boolean', |
|
5475 | } |
|
5476 | ||
5477 | def __init__(self, binary=None): |
|
5478 | if binary is not None: |
|
5479 | self._binary_init(binary) |
|
5480 | self._freeze = True |
|
5481 | return |
|
5482 | self.NodeId = NodeId() |
|
5483 | self.DeleteTargetReferences = True |
|
5484 | self._freeze = True |
|
5485 | ||
5486 | def to_binary(self): |
|
5487 | packet = [] |
|
5488 | packet.append(self.NodeId.to_binary()) |
|
5489 | packet.append(uabin.Primitives.Boolean.pack(self.DeleteTargetReferences)) |
|
5490 | return b''.join(packet) |
|
5491 | ||
5492 | @staticmethod |
|
5493 | def from_binary(data): |
|
5494 | return DeleteNodesItem(data) |
|
5495 | ||
5496 | def _binary_init(self, data): |
|
5497 | self.NodeId = NodeId.from_binary(data) |
|
5498 | self.DeleteTargetReferences = uabin.Primitives.Boolean.unpack(data) |
|
5499 | ||
5500 | def __str__(self): |
|
5501 | return 'DeleteNodesItem(' + 'NodeId:' + str(self.NodeId) + ', ' + \ |
|
5502 | 'DeleteTargetReferences:' + str(self.DeleteTargetReferences) + ')' |
|
5503 | ||
5504 | __repr__ = __str__ |
|
5505 | ||
5506 | ||
5507 | class DeleteNodesParameters(FrozenClass): |
|
@@ 3515-3557 (lines=43) @@ | ||
3512 | __repr__ = __str__ |
|
3513 | ||
3514 | ||
3515 | class X509IdentityToken(FrozenClass): |
|
3516 | ''' |
|
3517 | A token representing a user identified by an X509 certificate. |
|
3518 | ||
3519 | :ivar PolicyId: |
|
3520 | :vartype PolicyId: String |
|
3521 | :ivar CertificateData: |
|
3522 | :vartype CertificateData: ByteString |
|
3523 | ''' |
|
3524 | ||
3525 | ua_types = { |
|
3526 | 'PolicyId': 'String', |
|
3527 | 'CertificateData': 'ByteString', |
|
3528 | } |
|
3529 | ||
3530 | def __init__(self, binary=None): |
|
3531 | if binary is not None: |
|
3532 | self._binary_init(binary) |
|
3533 | self._freeze = True |
|
3534 | return |
|
3535 | self.PolicyId = None |
|
3536 | self.CertificateData = None |
|
3537 | self._freeze = True |
|
3538 | ||
3539 | def to_binary(self): |
|
3540 | packet = [] |
|
3541 | packet.append(uabin.Primitives.String.pack(self.PolicyId)) |
|
3542 | packet.append(uabin.Primitives.ByteString.pack(self.CertificateData)) |
|
3543 | return b''.join(packet) |
|
3544 | ||
3545 | @staticmethod |
|
3546 | def from_binary(data): |
|
3547 | return X509IdentityToken(data) |
|
3548 | ||
3549 | def _binary_init(self, data): |
|
3550 | self.PolicyId = uabin.Primitives.String.unpack(data) |
|
3551 | self.CertificateData = uabin.Primitives.ByteString.unpack(data) |
|
3552 | ||
3553 | def __str__(self): |
|
3554 | return 'X509IdentityToken(' + 'PolicyId:' + str(self.PolicyId) + ', ' + \ |
|
3555 | 'CertificateData:' + str(self.CertificateData) + ')' |
|
3556 | ||
3557 | __repr__ = __str__ |
|
3558 | ||
3559 | ||
3560 | class KerberosIdentityToken(FrozenClass): |
|
@@ 3040-3082 (lines=43) @@ | ||
3037 | __repr__ = __str__ |
|
3038 | ||
3039 | ||
3040 | class SignatureData(FrozenClass): |
|
3041 | ''' |
|
3042 | A digital signature. |
|
3043 | ||
3044 | :ivar Algorithm: |
|
3045 | :vartype Algorithm: String |
|
3046 | :ivar Signature: |
|
3047 | :vartype Signature: ByteString |
|
3048 | ''' |
|
3049 | ||
3050 | ua_types = { |
|
3051 | 'Algorithm': 'String', |
|
3052 | 'Signature': 'ByteString', |
|
3053 | } |
|
3054 | ||
3055 | def __init__(self, binary=None): |
|
3056 | if binary is not None: |
|
3057 | self._binary_init(binary) |
|
3058 | self._freeze = True |
|
3059 | return |
|
3060 | self.Algorithm = None |
|
3061 | self.Signature = None |
|
3062 | self._freeze = True |
|
3063 | ||
3064 | def to_binary(self): |
|
3065 | packet = [] |
|
3066 | packet.append(uabin.Primitives.String.pack(self.Algorithm)) |
|
3067 | packet.append(uabin.Primitives.ByteString.pack(self.Signature)) |
|
3068 | return b''.join(packet) |
|
3069 | ||
3070 | @staticmethod |
|
3071 | def from_binary(data): |
|
3072 | return SignatureData(data) |
|
3073 | ||
3074 | def _binary_init(self, data): |
|
3075 | self.Algorithm = uabin.Primitives.String.unpack(data) |
|
3076 | self.Signature = uabin.Primitives.ByteString.unpack(data) |
|
3077 | ||
3078 | def __str__(self): |
|
3079 | return 'SignatureData(' + 'Algorithm:' + str(self.Algorithm) + ', ' + \ |
|
3080 | 'Signature:' + str(self.Signature) + ')' |
|
3081 | ||
3082 | __repr__ = __str__ |
|
3083 | ||
3084 | ||
3085 | class CreateSessionParameters(FrozenClass): |
|
@@ 2995-3037 (lines=43) @@ | ||
2992 | __repr__ = __str__ |
|
2993 | ||
2994 | ||
2995 | class SignedSoftwareCertificate(FrozenClass): |
|
2996 | ''' |
|
2997 | A software certificate with a digital signature. |
|
2998 | ||
2999 | :ivar CertificateData: |
|
3000 | :vartype CertificateData: ByteString |
|
3001 | :ivar Signature: |
|
3002 | :vartype Signature: ByteString |
|
3003 | ''' |
|
3004 | ||
3005 | ua_types = { |
|
3006 | 'CertificateData': 'ByteString', |
|
3007 | 'Signature': 'ByteString', |
|
3008 | } |
|
3009 | ||
3010 | def __init__(self, binary=None): |
|
3011 | if binary is not None: |
|
3012 | self._binary_init(binary) |
|
3013 | self._freeze = True |
|
3014 | return |
|
3015 | self.CertificateData = None |
|
3016 | self.Signature = None |
|
3017 | self._freeze = True |
|
3018 | ||
3019 | def to_binary(self): |
|
3020 | packet = [] |
|
3021 | packet.append(uabin.Primitives.ByteString.pack(self.CertificateData)) |
|
3022 | packet.append(uabin.Primitives.ByteString.pack(self.Signature)) |
|
3023 | return b''.join(packet) |
|
3024 | ||
3025 | @staticmethod |
|
3026 | def from_binary(data): |
|
3027 | return SignedSoftwareCertificate(data) |
|
3028 | ||
3029 | def _binary_init(self, data): |
|
3030 | self.CertificateData = uabin.Primitives.ByteString.unpack(data) |
|
3031 | self.Signature = uabin.Primitives.ByteString.unpack(data) |
|
3032 | ||
3033 | def __str__(self): |
|
3034 | return 'SignedSoftwareCertificate(' + 'CertificateData:' + str(self.CertificateData) + ', ' + \ |
|
3035 | 'Signature:' + str(self.Signature) + ')' |
|
3036 | ||
3037 | __repr__ = __str__ |
|
3038 | ||
3039 | ||
3040 | class SignatureData(FrozenClass): |
|
@@ 1030-1072 (lines=43) @@ | ||
1027 | __repr__ = __str__ |
|
1028 | ||
1029 | ||
1030 | class OptionSet(FrozenClass): |
|
1031 | ''' |
|
1032 | This abstract Structured DataType is the base DataType for all DataTypes representing a bit mask. |
|
1033 | ||
1034 | :ivar Value: |
|
1035 | :vartype Value: ByteString |
|
1036 | :ivar ValidBits: |
|
1037 | :vartype ValidBits: ByteString |
|
1038 | ''' |
|
1039 | ||
1040 | ua_types = { |
|
1041 | 'Value': 'ByteString', |
|
1042 | 'ValidBits': 'ByteString', |
|
1043 | } |
|
1044 | ||
1045 | def __init__(self, binary=None): |
|
1046 | if binary is not None: |
|
1047 | self._binary_init(binary) |
|
1048 | self._freeze = True |
|
1049 | return |
|
1050 | self.Value = None |
|
1051 | self.ValidBits = None |
|
1052 | self._freeze = True |
|
1053 | ||
1054 | def to_binary(self): |
|
1055 | packet = [] |
|
1056 | packet.append(uabin.Primitives.ByteString.pack(self.Value)) |
|
1057 | packet.append(uabin.Primitives.ByteString.pack(self.ValidBits)) |
|
1058 | return b''.join(packet) |
|
1059 | ||
1060 | @staticmethod |
|
1061 | def from_binary(data): |
|
1062 | return OptionSet(data) |
|
1063 | ||
1064 | def _binary_init(self, data): |
|
1065 | self.Value = uabin.Primitives.ByteString.unpack(data) |
|
1066 | self.ValidBits = uabin.Primitives.ByteString.unpack(data) |
|
1067 | ||
1068 | def __str__(self): |
|
1069 | return 'OptionSet(' + 'Value:' + str(self.Value) + ', ' + \ |
|
1070 | 'ValidBits:' + str(self.ValidBits) + ')' |
|
1071 | ||
1072 | __repr__ = __str__ |
|
1073 | ||
1074 | ||
1075 | class Union(FrozenClass): |
|
@@ 15909-15949 (lines=41) @@ | ||
15906 | __repr__ = __str__ |
|
15907 | ||
15908 | ||
15909 | class XVType(FrozenClass): |
|
15910 | ''' |
|
15911 | :ivar X: |
|
15912 | :vartype X: Double |
|
15913 | :ivar Value: |
|
15914 | :vartype Value: Float |
|
15915 | ''' |
|
15916 | ||
15917 | ua_types = { |
|
15918 | 'X': 'Double', |
|
15919 | 'Value': 'Float', |
|
15920 | } |
|
15921 | ||
15922 | def __init__(self, binary=None): |
|
15923 | if binary is not None: |
|
15924 | self._binary_init(binary) |
|
15925 | self._freeze = True |
|
15926 | return |
|
15927 | self.X = 0 |
|
15928 | self.Value = 0 |
|
15929 | self._freeze = True |
|
15930 | ||
15931 | def to_binary(self): |
|
15932 | packet = [] |
|
15933 | packet.append(uabin.Primitives.Double.pack(self.X)) |
|
15934 | packet.append(uabin.Primitives.Float.pack(self.Value)) |
|
15935 | return b''.join(packet) |
|
15936 | ||
15937 | @staticmethod |
|
15938 | def from_binary(data): |
|
15939 | return XVType(data) |
|
15940 | ||
15941 | def _binary_init(self, data): |
|
15942 | self.X = uabin.Primitives.Double.unpack(data) |
|
15943 | self.Value = uabin.Primitives.Float.unpack(data) |
|
15944 | ||
15945 | def __str__(self): |
|
15946 | return 'XVType(' + 'X:' + str(self.X) + ', ' + \ |
|
15947 | 'Value:' + str(self.Value) + ')' |
|
15948 | ||
15949 | __repr__ = __str__ |
|
15950 | ||
15951 | ||
15952 | class ProgramDiagnosticDataType(FrozenClass): |
|
@@ 15800-15840 (lines=41) @@ | ||
15797 | __repr__ = __str__ |
|
15798 | ||
15799 | ||
15800 | class DoubleComplexNumberType(FrozenClass): |
|
15801 | ''' |
|
15802 | :ivar Real: |
|
15803 | :vartype Real: Double |
|
15804 | :ivar Imaginary: |
|
15805 | :vartype Imaginary: Double |
|
15806 | ''' |
|
15807 | ||
15808 | ua_types = { |
|
15809 | 'Real': 'Double', |
|
15810 | 'Imaginary': 'Double', |
|
15811 | } |
|
15812 | ||
15813 | def __init__(self, binary=None): |
|
15814 | if binary is not None: |
|
15815 | self._binary_init(binary) |
|
15816 | self._freeze = True |
|
15817 | return |
|
15818 | self.Real = 0 |
|
15819 | self.Imaginary = 0 |
|
15820 | self._freeze = True |
|
15821 | ||
15822 | def to_binary(self): |
|
15823 | packet = [] |
|
15824 | packet.append(uabin.Primitives.Double.pack(self.Real)) |
|
15825 | packet.append(uabin.Primitives.Double.pack(self.Imaginary)) |
|
15826 | return b''.join(packet) |
|
15827 | ||
15828 | @staticmethod |
|
15829 | def from_binary(data): |
|
15830 | return DoubleComplexNumberType(data) |
|
15831 | ||
15832 | def _binary_init(self, data): |
|
15833 | self.Real = uabin.Primitives.Double.unpack(data) |
|
15834 | self.Imaginary = uabin.Primitives.Double.unpack(data) |
|
15835 | ||
15836 | def __str__(self): |
|
15837 | return 'DoubleComplexNumberType(' + 'Real:' + str(self.Real) + ', ' + \ |
|
15838 | 'Imaginary:' + str(self.Imaginary) + ')' |
|
15839 | ||
15840 | __repr__ = __str__ |
|
15841 | ||
15842 | ||
15843 | class AxisInformation(FrozenClass): |
|
@@ 15757-15797 (lines=41) @@ | ||
15754 | __repr__ = __str__ |
|
15755 | ||
15756 | ||
15757 | class ComplexNumberType(FrozenClass): |
|
15758 | ''' |
|
15759 | :ivar Real: |
|
15760 | :vartype Real: Float |
|
15761 | :ivar Imaginary: |
|
15762 | :vartype Imaginary: Float |
|
15763 | ''' |
|
15764 | ||
15765 | ua_types = { |
|
15766 | 'Real': 'Float', |
|
15767 | 'Imaginary': 'Float', |
|
15768 | } |
|
15769 | ||
15770 | def __init__(self, binary=None): |
|
15771 | if binary is not None: |
|
15772 | self._binary_init(binary) |
|
15773 | self._freeze = True |
|
15774 | return |
|
15775 | self.Real = 0 |
|
15776 | self.Imaginary = 0 |
|
15777 | self._freeze = True |
|
15778 | ||
15779 | def to_binary(self): |
|
15780 | packet = [] |
|
15781 | packet.append(uabin.Primitives.Float.pack(self.Real)) |
|
15782 | packet.append(uabin.Primitives.Float.pack(self.Imaginary)) |
|
15783 | return b''.join(packet) |
|
15784 | ||
15785 | @staticmethod |
|
15786 | def from_binary(data): |
|
15787 | return ComplexNumberType(data) |
|
15788 | ||
15789 | def _binary_init(self, data): |
|
15790 | self.Real = uabin.Primitives.Float.unpack(data) |
|
15791 | self.Imaginary = uabin.Primitives.Float.unpack(data) |
|
15792 | ||
15793 | def __str__(self): |
|
15794 | return 'ComplexNumberType(' + 'Real:' + str(self.Real) + ', ' + \ |
|
15795 | 'Imaginary:' + str(self.Imaginary) + ')' |
|
15796 | ||
15797 | __repr__ = __str__ |
|
15798 | ||
15799 | ||
15800 | class DoubleComplexNumberType(FrozenClass): |
|
@@ 15657-15697 (lines=41) @@ | ||
15654 | __repr__ = __str__ |
|
15655 | ||
15656 | ||
15657 | class Range(FrozenClass): |
|
15658 | ''' |
|
15659 | :ivar Low: |
|
15660 | :vartype Low: Double |
|
15661 | :ivar High: |
|
15662 | :vartype High: Double |
|
15663 | ''' |
|
15664 | ||
15665 | ua_types = { |
|
15666 | 'Low': 'Double', |
|
15667 | 'High': 'Double', |
|
15668 | } |
|
15669 | ||
15670 | def __init__(self, binary=None): |
|
15671 | if binary is not None: |
|
15672 | self._binary_init(binary) |
|
15673 | self._freeze = True |
|
15674 | return |
|
15675 | self.Low = 0 |
|
15676 | self.High = 0 |
|
15677 | self._freeze = True |
|
15678 | ||
15679 | def to_binary(self): |
|
15680 | packet = [] |
|
15681 | packet.append(uabin.Primitives.Double.pack(self.Low)) |
|
15682 | packet.append(uabin.Primitives.Double.pack(self.High)) |
|
15683 | return b''.join(packet) |
|
15684 | ||
15685 | @staticmethod |
|
15686 | def from_binary(data): |
|
15687 | return Range(data) |
|
15688 | ||
15689 | def _binary_init(self, data): |
|
15690 | self.Low = uabin.Primitives.Double.unpack(data) |
|
15691 | self.High = uabin.Primitives.Double.unpack(data) |
|
15692 | ||
15693 | def __str__(self): |
|
15694 | return 'Range(' + 'Low:' + str(self.Low) + ', ' + \ |
|
15695 | 'High:' + str(self.High) + ')' |
|
15696 | ||
15697 | __repr__ = __str__ |
|
15698 | ||
15699 | ||
15700 | class EUInformation(FrozenClass): |
|
@@ 15232-15272 (lines=41) @@ | ||
15229 | __repr__ = __str__ |
|
15230 | ||
15231 | ||
15232 | class ServiceCounterDataType(FrozenClass): |
|
15233 | ''' |
|
15234 | :ivar TotalCount: |
|
15235 | :vartype TotalCount: UInt32 |
|
15236 | :ivar ErrorCount: |
|
15237 | :vartype ErrorCount: UInt32 |
|
15238 | ''' |
|
15239 | ||
15240 | ua_types = { |
|
15241 | 'TotalCount': 'UInt32', |
|
15242 | 'ErrorCount': 'UInt32', |
|
15243 | } |
|
15244 | ||
15245 | def __init__(self, binary=None): |
|
15246 | if binary is not None: |
|
15247 | self._binary_init(binary) |
|
15248 | self._freeze = True |
|
15249 | return |
|
15250 | self.TotalCount = 0 |
|
15251 | self.ErrorCount = 0 |
|
15252 | self._freeze = True |
|
15253 | ||
15254 | def to_binary(self): |
|
15255 | packet = [] |
|
15256 | packet.append(uabin.Primitives.UInt32.pack(self.TotalCount)) |
|
15257 | packet.append(uabin.Primitives.UInt32.pack(self.ErrorCount)) |
|
15258 | return b''.join(packet) |
|
15259 | ||
15260 | @staticmethod |
|
15261 | def from_binary(data): |
|
15262 | return ServiceCounterDataType(data) |
|
15263 | ||
15264 | def _binary_init(self, data): |
|
15265 | self.TotalCount = uabin.Primitives.UInt32.unpack(data) |
|
15266 | self.ErrorCount = uabin.Primitives.UInt32.unpack(data) |
|
15267 | ||
15268 | def __str__(self): |
|
15269 | return 'ServiceCounterDataType(' + 'TotalCount:' + str(self.TotalCount) + ', ' + \ |
|
15270 | 'ErrorCount:' + str(self.ErrorCount) + ')' |
|
15271 | ||
15272 | __repr__ = __str__ |
|
15273 | ||
15274 | ||
15275 | class StatusResult(FrozenClass): |
|
@@ 13807-13847 (lines=41) @@ | ||
13804 | __repr__ = __str__ |
|
13805 | ||
13806 | ||
13807 | class RepublishParameters(FrozenClass): |
|
13808 | ''' |
|
13809 | :ivar SubscriptionId: |
|
13810 | :vartype SubscriptionId: UInt32 |
|
13811 | :ivar RetransmitSequenceNumber: |
|
13812 | :vartype RetransmitSequenceNumber: UInt32 |
|
13813 | ''' |
|
13814 | ||
13815 | ua_types = { |
|
13816 | 'SubscriptionId': 'UInt32', |
|
13817 | 'RetransmitSequenceNumber': 'UInt32', |
|
13818 | } |
|
13819 | ||
13820 | def __init__(self, binary=None): |
|
13821 | if binary is not None: |
|
13822 | self._binary_init(binary) |
|
13823 | self._freeze = True |
|
13824 | return |
|
13825 | self.SubscriptionId = 0 |
|
13826 | self.RetransmitSequenceNumber = 0 |
|
13827 | self._freeze = True |
|
13828 | ||
13829 | def to_binary(self): |
|
13830 | packet = [] |
|
13831 | packet.append(uabin.Primitives.UInt32.pack(self.SubscriptionId)) |
|
13832 | packet.append(uabin.Primitives.UInt32.pack(self.RetransmitSequenceNumber)) |
|
13833 | return b''.join(packet) |
|
13834 | ||
13835 | @staticmethod |
|
13836 | def from_binary(data): |
|
13837 | return RepublishParameters(data) |
|
13838 | ||
13839 | def _binary_init(self, data): |
|
13840 | self.SubscriptionId = uabin.Primitives.UInt32.unpack(data) |
|
13841 | self.RetransmitSequenceNumber = uabin.Primitives.UInt32.unpack(data) |
|
13842 | ||
13843 | def __str__(self): |
|
13844 | return 'RepublishParameters(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \ |
|
13845 | 'RetransmitSequenceNumber:' + str(self.RetransmitSequenceNumber) + ')' |
|
13846 | ||
13847 | __repr__ = __str__ |
|
13848 | ||
13849 | ||
13850 | class RepublishRequest(FrozenClass): |
|
@@ 13534-13574 (lines=41) @@ | ||
13531 | __repr__ = __str__ |
|
13532 | ||
13533 | ||
13534 | class SubscriptionAcknowledgement(FrozenClass): |
|
13535 | ''' |
|
13536 | :ivar SubscriptionId: |
|
13537 | :vartype SubscriptionId: UInt32 |
|
13538 | :ivar SequenceNumber: |
|
13539 | :vartype SequenceNumber: UInt32 |
|
13540 | ''' |
|
13541 | ||
13542 | ua_types = { |
|
13543 | 'SubscriptionId': 'UInt32', |
|
13544 | 'SequenceNumber': 'UInt32', |
|
13545 | } |
|
13546 | ||
13547 | def __init__(self, binary=None): |
|
13548 | if binary is not None: |
|
13549 | self._binary_init(binary) |
|
13550 | self._freeze = True |
|
13551 | return |
|
13552 | self.SubscriptionId = 0 |
|
13553 | self.SequenceNumber = 0 |
|
13554 | self._freeze = True |
|
13555 | ||
13556 | def to_binary(self): |
|
13557 | packet = [] |
|
13558 | packet.append(uabin.Primitives.UInt32.pack(self.SubscriptionId)) |
|
13559 | packet.append(uabin.Primitives.UInt32.pack(self.SequenceNumber)) |
|
13560 | return b''.join(packet) |
|
13561 | ||
13562 | @staticmethod |
|
13563 | def from_binary(data): |
|
13564 | return SubscriptionAcknowledgement(data) |
|
13565 | ||
13566 | def _binary_init(self, data): |
|
13567 | self.SubscriptionId = uabin.Primitives.UInt32.unpack(data) |
|
13568 | self.SequenceNumber = uabin.Primitives.UInt32.unpack(data) |
|
13569 | ||
13570 | def __str__(self): |
|
13571 | return 'SubscriptionAcknowledgement(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \ |
|
13572 | 'SequenceNumber:' + str(self.SequenceNumber) + ')' |
|
13573 | ||
13574 | __repr__ = __str__ |
|
13575 | ||
13576 | ||
13577 | class PublishParameters(FrozenClass): |
|
@@ 13312-13352 (lines=41) @@ | ||
13309 | __repr__ = __str__ |
|
13310 | ||
13311 | ||
13312 | class MonitoredItemNotification(FrozenClass): |
|
13313 | ''' |
|
13314 | :ivar ClientHandle: |
|
13315 | :vartype ClientHandle: UInt32 |
|
13316 | :ivar Value: |
|
13317 | :vartype Value: DataValue |
|
13318 | ''' |
|
13319 | ||
13320 | ua_types = { |
|
13321 | 'ClientHandle': 'UInt32', |
|
13322 | 'Value': 'DataValue', |
|
13323 | } |
|
13324 | ||
13325 | def __init__(self, binary=None): |
|
13326 | if binary is not None: |
|
13327 | self._binary_init(binary) |
|
13328 | self._freeze = True |
|
13329 | return |
|
13330 | self.ClientHandle = 0 |
|
13331 | self.Value = DataValue() |
|
13332 | self._freeze = True |
|
13333 | ||
13334 | def to_binary(self): |
|
13335 | packet = [] |
|
13336 | packet.append(uabin.Primitives.UInt32.pack(self.ClientHandle)) |
|
13337 | packet.append(self.Value.to_binary()) |
|
13338 | return b''.join(packet) |
|
13339 | ||
13340 | @staticmethod |
|
13341 | def from_binary(data): |
|
13342 | return MonitoredItemNotification(data) |
|
13343 | ||
13344 | def _binary_init(self, data): |
|
13345 | self.ClientHandle = uabin.Primitives.UInt32.unpack(data) |
|
13346 | self.Value = DataValue.from_binary(data) |
|
13347 | ||
13348 | def __str__(self): |
|
13349 | return 'MonitoredItemNotification(' + 'ClientHandle:' + str(self.ClientHandle) + ', ' + \ |
|
13350 | 'Value:' + str(self.Value) + ')' |
|
13351 | ||
13352 | __repr__ = __str__ |
|
13353 | ||
13354 | ||
13355 | class EventNotificationList(FrozenClass): |
|
@@ 11617-11657 (lines=41) @@ | ||
11614 | __repr__ = __str__ |
|
11615 | ||
11616 | ||
11617 | class MonitoredItemModifyRequest(FrozenClass): |
|
11618 | ''' |
|
11619 | :ivar MonitoredItemId: |
|
11620 | :vartype MonitoredItemId: UInt32 |
|
11621 | :ivar RequestedParameters: |
|
11622 | :vartype RequestedParameters: MonitoringParameters |
|
11623 | ''' |
|
11624 | ||
11625 | ua_types = { |
|
11626 | 'MonitoredItemId': 'UInt32', |
|
11627 | 'RequestedParameters': 'MonitoringParameters', |
|
11628 | } |
|
11629 | ||
11630 | def __init__(self, binary=None): |
|
11631 | if binary is not None: |
|
11632 | self._binary_init(binary) |
|
11633 | self._freeze = True |
|
11634 | return |
|
11635 | self.MonitoredItemId = 0 |
|
11636 | self.RequestedParameters = MonitoringParameters() |
|
11637 | self._freeze = True |
|
11638 | ||
11639 | def to_binary(self): |
|
11640 | packet = [] |
|
11641 | packet.append(uabin.Primitives.UInt32.pack(self.MonitoredItemId)) |
|
11642 | packet.append(self.RequestedParameters.to_binary()) |
|
11643 | return b''.join(packet) |
|
11644 | ||
11645 | @staticmethod |
|
11646 | def from_binary(data): |
|
11647 | return MonitoredItemModifyRequest(data) |
|
11648 | ||
11649 | def _binary_init(self, data): |
|
11650 | self.MonitoredItemId = uabin.Primitives.UInt32.unpack(data) |
|
11651 | self.RequestedParameters = MonitoringParameters.from_binary(data) |
|
11652 | ||
11653 | def __str__(self): |
|
11654 | return 'MonitoredItemModifyRequest(' + 'MonitoredItemId:' + str(self.MonitoredItemId) + ', ' + \ |
|
11655 | 'RequestedParameters:' + str(self.RequestedParameters) + ')' |
|
11656 | ||
11657 | __repr__ = __str__ |
|
11658 | ||
11659 | ||
11660 | class MonitoredItemModifyResult(FrozenClass): |
|
@@ 8574-8614 (lines=41) @@ | ||
8571 | __repr__ = __str__ |
|
8572 | ||
8573 | ||
8574 | class QueryNextParameters(FrozenClass): |
|
8575 | ''' |
|
8576 | :ivar ReleaseContinuationPoint: |
|
8577 | :vartype ReleaseContinuationPoint: Boolean |
|
8578 | :ivar ContinuationPoint: |
|
8579 | :vartype ContinuationPoint: ByteString |
|
8580 | ''' |
|
8581 | ||
8582 | ua_types = { |
|
8583 | 'ReleaseContinuationPoint': 'Boolean', |
|
8584 | 'ContinuationPoint': 'ByteString', |
|
8585 | } |
|
8586 | ||
8587 | def __init__(self, binary=None): |
|
8588 | if binary is not None: |
|
8589 | self._binary_init(binary) |
|
8590 | self._freeze = True |
|
8591 | return |
|
8592 | self.ReleaseContinuationPoint = True |
|
8593 | self.ContinuationPoint = None |
|
8594 | self._freeze = True |
|
8595 | ||
8596 | def to_binary(self): |
|
8597 | packet = [] |
|
8598 | packet.append(uabin.Primitives.Boolean.pack(self.ReleaseContinuationPoint)) |
|
8599 | packet.append(uabin.Primitives.ByteString.pack(self.ContinuationPoint)) |
|
8600 | return b''.join(packet) |
|
8601 | ||
8602 | @staticmethod |
|
8603 | def from_binary(data): |
|
8604 | return QueryNextParameters(data) |
|
8605 | ||
8606 | def _binary_init(self, data): |
|
8607 | self.ReleaseContinuationPoint = uabin.Primitives.Boolean.unpack(data) |
|
8608 | self.ContinuationPoint = uabin.Primitives.ByteString.unpack(data) |
|
8609 | ||
8610 | def __str__(self): |
|
8611 | return 'QueryNextParameters(' + 'ReleaseContinuationPoint:' + str(self.ReleaseContinuationPoint) + ', ' + \ |
|
8612 | 'ContinuationPoint:' + str(self.ContinuationPoint) + ')' |
|
8613 | ||
8614 | __repr__ = __str__ |
|
8615 | ||
8616 | ||
8617 | class QueryNextRequest(FrozenClass): |
|
@@ 3560-3600 (lines=41) @@ | ||
3557 | __repr__ = __str__ |
|
3558 | ||
3559 | ||
3560 | class KerberosIdentityToken(FrozenClass): |
|
3561 | ''' |
|
3562 | :ivar PolicyId: |
|
3563 | :vartype PolicyId: String |
|
3564 | :ivar TicketData: |
|
3565 | :vartype TicketData: ByteString |
|
3566 | ''' |
|
3567 | ||
3568 | ua_types = { |
|
3569 | 'PolicyId': 'String', |
|
3570 | 'TicketData': 'ByteString', |
|
3571 | } |
|
3572 | ||
3573 | def __init__(self, binary=None): |
|
3574 | if binary is not None: |
|
3575 | self._binary_init(binary) |
|
3576 | self._freeze = True |
|
3577 | return |
|
3578 | self.PolicyId = None |
|
3579 | self.TicketData = None |
|
3580 | self._freeze = True |
|
3581 | ||
3582 | def to_binary(self): |
|
3583 | packet = [] |
|
3584 | packet.append(uabin.Primitives.String.pack(self.PolicyId)) |
|
3585 | packet.append(uabin.Primitives.ByteString.pack(self.TicketData)) |
|
3586 | return b''.join(packet) |
|
3587 | ||
3588 | @staticmethod |
|
3589 | def from_binary(data): |
|
3590 | return KerberosIdentityToken(data) |
|
3591 | ||
3592 | def _binary_init(self, data): |
|
3593 | self.PolicyId = uabin.Primitives.String.unpack(data) |
|
3594 | self.TicketData = uabin.Primitives.ByteString.unpack(data) |
|
3595 | ||
3596 | def __str__(self): |
|
3597 | return 'KerberosIdentityToken(' + 'PolicyId:' + str(self.PolicyId) + ', ' + \ |
|
3598 | 'TicketData:' + str(self.TicketData) + ')' |
|
3599 | ||
3600 | __repr__ = __str__ |
|
3601 | ||
3602 | ||
3603 | class IssuedIdentityToken(FrozenClass): |
|
@@ 1108-1148 (lines=41) @@ | ||
1105 | __repr__ = __str__ |
|
1106 | ||
1107 | ||
1108 | class TimeZoneDataType(FrozenClass): |
|
1109 | ''' |
|
1110 | :ivar Offset: |
|
1111 | :vartype Offset: Int16 |
|
1112 | :ivar DaylightSavingInOffset: |
|
1113 | :vartype DaylightSavingInOffset: Boolean |
|
1114 | ''' |
|
1115 | ||
1116 | ua_types = { |
|
1117 | 'Offset': 'Int16', |
|
1118 | 'DaylightSavingInOffset': 'Boolean', |
|
1119 | } |
|
1120 | ||
1121 | def __init__(self, binary=None): |
|
1122 | if binary is not None: |
|
1123 | self._binary_init(binary) |
|
1124 | self._freeze = True |
|
1125 | return |
|
1126 | self.Offset = 0 |
|
1127 | self.DaylightSavingInOffset = True |
|
1128 | self._freeze = True |
|
1129 | ||
1130 | def to_binary(self): |
|
1131 | packet = [] |
|
1132 | packet.append(uabin.Primitives.Int16.pack(self.Offset)) |
|
1133 | packet.append(uabin.Primitives.Boolean.pack(self.DaylightSavingInOffset)) |
|
1134 | return b''.join(packet) |
|
1135 | ||
1136 | @staticmethod |
|
1137 | def from_binary(data): |
|
1138 | return TimeZoneDataType(data) |
|
1139 | ||
1140 | def _binary_init(self, data): |
|
1141 | self.Offset = uabin.Primitives.Int16.unpack(data) |
|
1142 | self.DaylightSavingInOffset = uabin.Primitives.Boolean.unpack(data) |
|
1143 | ||
1144 | def __str__(self): |
|
1145 | return 'TimeZoneDataType(' + 'Offset:' + str(self.Offset) + ', ' + \ |
|
1146 | 'DaylightSavingInOffset:' + str(self.DaylightSavingInOffset) + ')' |
|
1147 | ||
1148 | __repr__ = __str__ |
|
1149 | ||
1150 | ||
1151 | class ApplicationDescription(FrozenClass): |