File: __init__.py

package info (click to toggle)
raritan-json-rpc-sdk 4.0.20%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 57,236 kB
  • sloc: cs: 223,121; perl: 117,786; python: 26,872; javascript: 6,544; makefile: 27
file content (599 lines) | stat: -rw-r--r-- 22,381 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright 2022 Raritan Inc. All rights reserved.
#
# This is an auto-generated file.

#
# Section generated by IdlC from "DsamPort.idl"
#

import raritan.rpc
from raritan.rpc import Interface, Structure, ValueObject, Enumeration, typecheck, DecodeException
import raritan.rpc.dsam

import raritan.rpc.event


# interface
class DsamPort(Interface):
    idlType = "dsam.DsamPort:1.0.0"

    SUCCESS = 0

    SETTINGS_INVALID = 1

    SSH_DPA_PORT_INVALID = 2

    SSH_DPA_PORT_IN_USE = 3

    # enumeration
    class DeviceInterfaceType(Enumeration):
        idlType = "dsam.DsamPort.DeviceInterfaceType:1.0.0"
        values = ["DEV_IFTYPE_AUTO", "DEV_IFTYPE_DTE", "DEV_IFTYPE_DCE"]

    DeviceInterfaceType.DEV_IFTYPE_AUTO = DeviceInterfaceType(0)
    DeviceInterfaceType.DEV_IFTYPE_DTE = DeviceInterfaceType(1)
    DeviceInterfaceType.DEV_IFTYPE_DCE = DeviceInterfaceType(2)

    # enumeration
    class Parity(Enumeration):
        idlType = "dsam.DsamPort.Parity:1.0.0"
        values = ["PARITY_NONE", "PARITY_ODD", "PARITY_EVEN"]

    Parity.PARITY_NONE = Parity(0)
    Parity.PARITY_ODD = Parity(1)
    Parity.PARITY_EVEN = Parity(2)

    # enumeration
    class FlowControl(Enumeration):
        idlType = "dsam.DsamPort.FlowControl:1.0.0"
        values = ["FLOW_CTRL_NONE", "FLOW_CTRL_HARDWARE", "FLOW_CTRL_SOFTWARE"]

    FlowControl.FLOW_CTRL_NONE = FlowControl(0)
    FlowControl.FLOW_CTRL_HARDWARE = FlowControl(1)
    FlowControl.FLOW_CTRL_SOFTWARE = FlowControl(2)

    # enumeration
    class State(Enumeration):
        idlType = "dsam.DsamPort.State:1.0.0"
        values = ["STATE_AVAILABLE", "STATE_OCCUPIED", "STATE_BUSY"]

    State.STATE_AVAILABLE = State(0)
    State.STATE_OCCUPIED = State(1)
    State.STATE_BUSY = State(2)

    # structure
    class Info(Structure):
        idlType = "dsam.DsamPort.Info:1.0.0"
        elements = ["dsamNumber", "portNumber", "connected", "devIfType", "state"]

        def __init__(self, dsamNumber, portNumber, connected, devIfType, state):
            typecheck.is_int(dsamNumber, AssertionError)
            typecheck.is_int(portNumber, AssertionError)
            typecheck.is_bool(connected, AssertionError)
            typecheck.is_enum(devIfType, raritan.rpc.dsam.DsamPort.DeviceInterfaceType, AssertionError)
            typecheck.is_enum(state, raritan.rpc.dsam.DsamPort.State, AssertionError)

            self.dsamNumber = dsamNumber
            self.portNumber = portNumber
            self.connected = connected
            self.devIfType = devIfType
            self.state = state

        @classmethod
        def decode(cls, json, agent):
            obj = cls(
                dsamNumber = json['dsamNumber'],
                portNumber = json['portNumber'],
                connected = json['connected'],
                devIfType = raritan.rpc.dsam.DsamPort.DeviceInterfaceType.decode(json['devIfType']),
                state = raritan.rpc.dsam.DsamPort.State.decode(json['state']),
            )
            return obj

        def encode(self):
            json = {}
            json['dsamNumber'] = self.dsamNumber
            json['portNumber'] = self.portNumber
            json['connected'] = self.connected
            json['devIfType'] = raritan.rpc.dsam.DsamPort.DeviceInterfaceType.encode(self.devIfType)
            json['state'] = raritan.rpc.dsam.DsamPort.State.encode(self.state)
            return json

    # structure
    class Settings(Structure):
        idlType = "dsam.DsamPort.Settings:1.0.0"
        elements = ["name", "devIfType", "baudRate", "parity", "stopBits", "flowCtrl", "breakDurationMs", "sshDpaPortEnabled", "sshDpaPort", "allowSharedAccess"]

        def __init__(self, name, devIfType, baudRate, parity, stopBits, flowCtrl, breakDurationMs, sshDpaPortEnabled, sshDpaPort, allowSharedAccess):
            typecheck.is_string(name, AssertionError)
            typecheck.is_enum(devIfType, raritan.rpc.dsam.DsamPort.DeviceInterfaceType, AssertionError)
            typecheck.is_int(baudRate, AssertionError)
            typecheck.is_enum(parity, raritan.rpc.dsam.DsamPort.Parity, AssertionError)
            typecheck.is_int(stopBits, AssertionError)
            typecheck.is_enum(flowCtrl, raritan.rpc.dsam.DsamPort.FlowControl, AssertionError)
            typecheck.is_int(breakDurationMs, AssertionError)
            typecheck.is_bool(sshDpaPortEnabled, AssertionError)
            typecheck.is_int(sshDpaPort, AssertionError)
            typecheck.is_bool(allowSharedAccess, AssertionError)

            self.name = name
            self.devIfType = devIfType
            self.baudRate = baudRate
            self.parity = parity
            self.stopBits = stopBits
            self.flowCtrl = flowCtrl
            self.breakDurationMs = breakDurationMs
            self.sshDpaPortEnabled = sshDpaPortEnabled
            self.sshDpaPort = sshDpaPort
            self.allowSharedAccess = allowSharedAccess

        @classmethod
        def decode(cls, json, agent):
            obj = cls(
                name = json['name'],
                devIfType = raritan.rpc.dsam.DsamPort.DeviceInterfaceType.decode(json['devIfType']),
                baudRate = json['baudRate'],
                parity = raritan.rpc.dsam.DsamPort.Parity.decode(json['parity']),
                stopBits = json['stopBits'],
                flowCtrl = raritan.rpc.dsam.DsamPort.FlowControl.decode(json['flowCtrl']),
                breakDurationMs = json['breakDurationMs'],
                sshDpaPortEnabled = json['sshDpaPortEnabled'],
                sshDpaPort = json['sshDpaPort'],
                allowSharedAccess = json['allowSharedAccess'],
            )
            return obj

        def encode(self):
            json = {}
            json['name'] = self.name
            json['devIfType'] = raritan.rpc.dsam.DsamPort.DeviceInterfaceType.encode(self.devIfType)
            json['baudRate'] = self.baudRate
            json['parity'] = raritan.rpc.dsam.DsamPort.Parity.encode(self.parity)
            json['stopBits'] = self.stopBits
            json['flowCtrl'] = raritan.rpc.dsam.DsamPort.FlowControl.encode(self.flowCtrl)
            json['breakDurationMs'] = self.breakDurationMs
            json['sshDpaPortEnabled'] = self.sshDpaPortEnabled
            json['sshDpaPort'] = self.sshDpaPort
            json['allowSharedAccess'] = self.allowSharedAccess
            return json

    # value object
    class InfoChangedEvent(raritan.rpc.event.UserEvent):
        idlType = "dsam.DsamPort.InfoChangedEvent:1.0.0"

        def __init__(self, oldInfo, newInfo, portName, actUserName, actIpAddr, source):
            super(raritan.rpc.dsam.DsamPort.InfoChangedEvent, self).__init__(actUserName, actIpAddr, source)
            typecheck.is_struct(oldInfo, raritan.rpc.dsam.DsamPort.Info, AssertionError)
            typecheck.is_struct(newInfo, raritan.rpc.dsam.DsamPort.Info, AssertionError)
            typecheck.is_string(portName, AssertionError)

            self.oldInfo = oldInfo
            self.newInfo = newInfo
            self.portName = portName

        def encode(self):
            json = super(raritan.rpc.dsam.DsamPort.InfoChangedEvent, self).encode()
            json['oldInfo'] = raritan.rpc.dsam.DsamPort.Info.encode(self.oldInfo)
            json['newInfo'] = raritan.rpc.dsam.DsamPort.Info.encode(self.newInfo)
            json['portName'] = self.portName
            return json

        @classmethod
        def decode(cls, json, agent):
            obj = cls(
                oldInfo = raritan.rpc.dsam.DsamPort.Info.decode(json['oldInfo'], agent),
                newInfo = raritan.rpc.dsam.DsamPort.Info.decode(json['newInfo'], agent),
                portName = json['portName'],
                # for event.UserEvent
                actUserName = json['actUserName'],
                actIpAddr = json['actIpAddr'],
                # for idl.Event
                source = Interface.decode(json['source'], agent),
            )
            return obj

        def listElements(self):
            elements = ["oldInfo", "newInfo", "portName"]
            elements = elements + super(raritan.rpc.dsam.DsamPort.InfoChangedEvent, self).listElements()
            return elements

    # value object
    class SettingsChangedEvent(raritan.rpc.event.UserEvent):
        idlType = "dsam.DsamPort.SettingsChangedEvent:1.0.0"

        def __init__(self, dsamNumber, portNumber, oldSettings, newSettings, actUserName, actIpAddr, source):
            super(raritan.rpc.dsam.DsamPort.SettingsChangedEvent, self).__init__(actUserName, actIpAddr, source)
            typecheck.is_int(dsamNumber, AssertionError)
            typecheck.is_int(portNumber, AssertionError)
            typecheck.is_struct(oldSettings, raritan.rpc.dsam.DsamPort.Settings, AssertionError)
            typecheck.is_struct(newSettings, raritan.rpc.dsam.DsamPort.Settings, AssertionError)

            self.dsamNumber = dsamNumber
            self.portNumber = portNumber
            self.oldSettings = oldSettings
            self.newSettings = newSettings

        def encode(self):
            json = super(raritan.rpc.dsam.DsamPort.SettingsChangedEvent, self).encode()
            json['dsamNumber'] = self.dsamNumber
            json['portNumber'] = self.portNumber
            json['oldSettings'] = raritan.rpc.dsam.DsamPort.Settings.encode(self.oldSettings)
            json['newSettings'] = raritan.rpc.dsam.DsamPort.Settings.encode(self.newSettings)
            return json

        @classmethod
        def decode(cls, json, agent):
            obj = cls(
                dsamNumber = json['dsamNumber'],
                portNumber = json['portNumber'],
                oldSettings = raritan.rpc.dsam.DsamPort.Settings.decode(json['oldSettings'], agent),
                newSettings = raritan.rpc.dsam.DsamPort.Settings.decode(json['newSettings'], agent),
                # for event.UserEvent
                actUserName = json['actUserName'],
                actIpAddr = json['actIpAddr'],
                # for idl.Event
                source = Interface.decode(json['source'], agent),
            )
            return obj

        def listElements(self):
            elements = ["dsamNumber", "portNumber", "oldSettings", "newSettings"]
            elements = elements + super(raritan.rpc.dsam.DsamPort.SettingsChangedEvent, self).listElements()
            return elements

    class _getInfo(Interface.Method):
        name = 'getInfo'

        @staticmethod
        def encode():
            args = {}
            return args

        @staticmethod
        def decode(rsp, agent):
            _ret_ = raritan.rpc.dsam.DsamPort.Info.decode(rsp['_ret_'], agent)
            typecheck.is_struct(_ret_, raritan.rpc.dsam.DsamPort.Info, DecodeException)
            return _ret_

    class _getSettings(Interface.Method):
        name = 'getSettings'

        @staticmethod
        def encode():
            args = {}
            return args

        @staticmethod
        def decode(rsp, agent):
            _ret_ = raritan.rpc.dsam.DsamPort.Settings.decode(rsp['_ret_'], agent)
            typecheck.is_struct(_ret_, raritan.rpc.dsam.DsamPort.Settings, DecodeException)
            return _ret_

    class _setSettings(Interface.Method):
        name = 'setSettings'

        @staticmethod
        def encode(settings):
            typecheck.is_struct(settings, raritan.rpc.dsam.DsamPort.Settings, AssertionError)
            args = {}
            args['settings'] = raritan.rpc.dsam.DsamPort.Settings.encode(settings)
            return args

        @staticmethod
        def decode(rsp, agent):
            _ret_ = rsp['_ret_']
            typecheck.is_int(_ret_, DecodeException)
            return _ret_

    class _getTtyUsbNumber(Interface.Method):
        name = 'getTtyUsbNumber'

        @staticmethod
        def encode():
            args = {}
            return args

        @staticmethod
        def decode(rsp, agent):
            _ret_ = rsp['_ret_']
            typecheck.is_int(_ret_, DecodeException)
            return _ret_

    class _setState(Interface.Method):
        name = 'setState'

        @staticmethod
        def encode(state):
            typecheck.is_enum(state, raritan.rpc.dsam.DsamPort.State, AssertionError)
            args = {}
            args['state'] = raritan.rpc.dsam.DsamPort.State.encode(state)
            return args

        @staticmethod
        def decode(rsp, agent):
            return None
    def __init__(self, target, agent):
        super(DsamPort, self).__init__(target, agent)
        self.getInfo = DsamPort._getInfo(self)
        self.getSettings = DsamPort._getSettings(self)
        self.setSettings = DsamPort._setSettings(self)
        self.getTtyUsbNumber = DsamPort._getTtyUsbNumber(self)
        self.setState = DsamPort._setState(self)

#
# Section generated by IdlC from "DsamDevice.idl"
#

import raritan.rpc
from raritan.rpc import Interface, Structure, ValueObject, Enumeration, typecheck, DecodeException
import raritan.rpc.dsam


# interface
class DsamDevice(Interface):
    idlType = "dsam.DsamDevice:1.0.0"

    SUCCESS = 0

    # structure
    class FirmwareVersion(Structure):
        idlType = "dsam.DsamDevice.FirmwareVersion:1.0.0"
        elements = ["major", "minor"]

        def __init__(self, major, minor):
            typecheck.is_int(major, AssertionError)
            typecheck.is_int(minor, AssertionError)

            self.major = major
            self.minor = minor

        @classmethod
        def decode(cls, json, agent):
            obj = cls(
                major = json['major'],
                minor = json['minor'],
            )
            return obj

        def encode(self):
            json = {}
            json['major'] = self.major
            json['minor'] = self.minor
            return json

    # structure
    class Info(Structure):
        idlType = "dsam.DsamDevice.Info:1.0.0"
        elements = ["dsamNumber", "serialNumber", "portCount", "hardwareVersion", "firmwareVersion"]

        def __init__(self, dsamNumber, serialNumber, portCount, hardwareVersion, firmwareVersion):
            typecheck.is_int(dsamNumber, AssertionError)
            typecheck.is_string(serialNumber, AssertionError)
            typecheck.is_int(portCount, AssertionError)
            typecheck.is_int(hardwareVersion, AssertionError)
            typecheck.is_struct(firmwareVersion, raritan.rpc.dsam.DsamDevice.FirmwareVersion, AssertionError)

            self.dsamNumber = dsamNumber
            self.serialNumber = serialNumber
            self.portCount = portCount
            self.hardwareVersion = hardwareVersion
            self.firmwareVersion = firmwareVersion

        @classmethod
        def decode(cls, json, agent):
            obj = cls(
                dsamNumber = json['dsamNumber'],
                serialNumber = json['serialNumber'],
                portCount = json['portCount'],
                hardwareVersion = json['hardwareVersion'],
                firmwareVersion = raritan.rpc.dsam.DsamDevice.FirmwareVersion.decode(json['firmwareVersion'], agent),
            )
            return obj

        def encode(self):
            json = {}
            json['dsamNumber'] = self.dsamNumber
            json['serialNumber'] = self.serialNumber
            json['portCount'] = self.portCount
            json['hardwareVersion'] = self.hardwareVersion
            json['firmwareVersion'] = raritan.rpc.dsam.DsamDevice.FirmwareVersion.encode(self.firmwareVersion)
            return json

    class _getInfo(Interface.Method):
        name = 'getInfo'

        @staticmethod
        def encode():
            args = {}
            return args

        @staticmethod
        def decode(rsp, agent):
            _ret_ = raritan.rpc.dsam.DsamDevice.Info.decode(rsp['_ret_'], agent)
            typecheck.is_struct(_ret_, raritan.rpc.dsam.DsamDevice.Info, DecodeException)
            return _ret_

    class _getPorts(Interface.Method):
        name = 'getPorts'

        @staticmethod
        def encode():
            args = {}
            return args

        @staticmethod
        def decode(rsp, agent):
            _ret_ = dict([(
                elem['key'],
                Interface.decode(elem['value'], agent))
                for elem in rsp['_ret_']])
            return _ret_

    class _startFirmwareUpdate(Interface.Method):
        name = 'startFirmwareUpdate'

        @staticmethod
        def encode():
            args = {}
            return args

        @staticmethod
        def decode(rsp, agent):
            _ret_ = rsp['_ret_']
            typecheck.is_int(_ret_, DecodeException)
            return _ret_
    def __init__(self, target, agent):
        super(DsamDevice, self).__init__(target, agent)
        self.getInfo = DsamDevice._getInfo(self)
        self.getPorts = DsamDevice._getPorts(self)
        self.startFirmwareUpdate = DsamDevice._startFirmwareUpdate(self)

#
# Section generated by IdlC from "DsamManager.idl"
#

import raritan.rpc
from raritan.rpc import Interface, Structure, ValueObject, Enumeration, typecheck, DecodeException
import raritan.rpc.dsam

import raritan.rpc.idl


# interface
class DsamManager(Interface):
    idlType = "dsam.DsamManager:1.0.0"

    # value object
    class DsamAttachedEvent(raritan.rpc.idl.Event):
        idlType = "dsam.DsamManager.DsamAttachedEvent:1.0.0"

        def __init__(self, info, device, source):
            super(raritan.rpc.dsam.DsamManager.DsamAttachedEvent, self).__init__(source)
            typecheck.is_struct(info, raritan.rpc.dsam.DsamDevice.Info, AssertionError)
            typecheck.is_interface(device, raritan.rpc.dsam.DsamDevice, AssertionError)

            self.info = info
            self.device = device

        def encode(self):
            json = super(raritan.rpc.dsam.DsamManager.DsamAttachedEvent, self).encode()
            json['info'] = raritan.rpc.dsam.DsamDevice.Info.encode(self.info)
            json['device'] = Interface.encode(self.device)
            return json

        @classmethod
        def decode(cls, json, agent):
            obj = cls(
                info = raritan.rpc.dsam.DsamDevice.Info.decode(json['info'], agent),
                device = Interface.decode(json['device'], agent),
                # for idl.Event
                source = Interface.decode(json['source'], agent),
            )
            return obj

        def listElements(self):
            elements = ["info", "device"]
            elements = elements + super(raritan.rpc.dsam.DsamManager.DsamAttachedEvent, self).listElements()
            return elements

    # value object
    class DsamDetachedEvent(raritan.rpc.idl.Event):
        idlType = "dsam.DsamManager.DsamDetachedEvent:1.0.0"

        def __init__(self, info, source):
            super(raritan.rpc.dsam.DsamManager.DsamDetachedEvent, self).__init__(source)
            typecheck.is_struct(info, raritan.rpc.dsam.DsamDevice.Info, AssertionError)

            self.info = info

        def encode(self):
            json = super(raritan.rpc.dsam.DsamManager.DsamDetachedEvent, self).encode()
            json['info'] = raritan.rpc.dsam.DsamDevice.Info.encode(self.info)
            return json

        @classmethod
        def decode(cls, json, agent):
            obj = cls(
                info = raritan.rpc.dsam.DsamDevice.Info.decode(json['info'], agent),
                # for idl.Event
                source = Interface.decode(json['source'], agent),
            )
            return obj

        def listElements(self):
            elements = ["info"]
            elements = elements + super(raritan.rpc.dsam.DsamManager.DsamDetachedEvent, self).listElements()
            return elements

    # value object
    class DsamControllerChangedEvent(raritan.rpc.idl.Event):
        idlType = "dsam.DsamManager.DsamControllerChangedEvent:1.0.0"

        def __init__(self, dsamNumber, reset, resetReason, source):
            super(raritan.rpc.dsam.DsamManager.DsamControllerChangedEvent, self).__init__(source)
            typecheck.is_int(dsamNumber, AssertionError)
            typecheck.is_bool(reset, AssertionError)
            typecheck.is_string(resetReason, AssertionError)

            self.dsamNumber = dsamNumber
            self.reset = reset
            self.resetReason = resetReason

        def encode(self):
            json = super(raritan.rpc.dsam.DsamManager.DsamControllerChangedEvent, self).encode()
            json['dsamNumber'] = self.dsamNumber
            json['reset'] = self.reset
            json['resetReason'] = self.resetReason
            return json

        @classmethod
        def decode(cls, json, agent):
            obj = cls(
                dsamNumber = json['dsamNumber'],
                reset = json['reset'],
                resetReason = json['resetReason'],
                # for idl.Event
                source = Interface.decode(json['source'], agent),
            )
            return obj

        def listElements(self):
            elements = ["dsamNumber", "reset", "resetReason"]
            elements = elements + super(raritan.rpc.dsam.DsamManager.DsamControllerChangedEvent, self).listElements()
            return elements

    class _getDsamDevices(Interface.Method):
        name = 'getDsamDevices'

        @staticmethod
        def encode():
            args = {}
            return args

        @staticmethod
        def decode(rsp, agent):
            _ret_ = dict([(
                elem['key'],
                Interface.decode(elem['value'], agent))
                for elem in rsp['_ret_']])
            return _ret_

    class _getFirmwareUpdateFileVersion(Interface.Method):
        name = 'getFirmwareUpdateFileVersion'

        @staticmethod
        def encode():
            args = {}
            return args

        @staticmethod
        def decode(rsp, agent):
            _ret_ = raritan.rpc.dsam.DsamDevice.FirmwareVersion.decode(rsp['_ret_'], agent)
            typecheck.is_struct(_ret_, raritan.rpc.dsam.DsamDevice.FirmwareVersion, DecodeException)
            return _ret_
    def __init__(self, target, agent):
        super(DsamManager, self).__init__(target, agent)
        self.getDsamDevices = DsamManager._getDsamDevices(self)
        self.getFirmwareUpdateFileVersion = DsamManager._getFirmwareUpdateFileVersion(self)