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
|
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright 2022 Raritan Inc. All rights reserved.
#
# This is an auto-generated file.
#
# Section generated by IdlC from "Production.idl"
#
import raritan.rpc
from raritan.rpc import Interface, Structure, ValueObject, Enumeration, typecheck, DecodeException
# interface
class Production(Interface):
idlType = "production.Production:1.0.0"
class _enterFactoryConfigMode(Interface.Method):
name = 'enterFactoryConfigMode'
@staticmethod
def encode(password):
typecheck.is_string(password, AssertionError)
args = {}
args['password'] = password
return args
@staticmethod
def decode(rsp, agent):
_ret_ = rsp['_ret_']
typecheck.is_int(_ret_, DecodeException)
return _ret_
class _leaveFactoryConfigMode(Interface.Method):
name = 'leaveFactoryConfigMode'
@staticmethod
def encode():
args = {}
return args
@staticmethod
def decode(rsp, agent):
return None
class _isFactoryConfigModeEnabled(Interface.Method):
name = 'isFactoryConfigModeEnabled'
@staticmethod
def encode():
args = {}
return args
@staticmethod
def decode(rsp, agent):
_ret_ = rsp['_ret_']
typecheck.is_bool(_ret_, DecodeException)
return _ret_
def __init__(self, target, agent):
super(Production, self).__init__(target, agent)
self.enterFactoryConfigMode = Production._enterFactoryConfigMode(self)
self.leaveFactoryConfigMode = Production._leaveFactoryConfigMode(self)
self.isFactoryConfigModeEnabled = Production._isFactoryConfigModeEnabled(self)
|