当前位置: 首页>>代码示例>>Python>>正文


Python typecheck.is_int函数代码示例

本文整理汇总了Python中raritan.rpc.typecheck.is_int函数的典型用法代码示例。如果您正苦于以下问题:Python is_int函数的具体用法?Python is_int怎么用?Python is_int使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了is_int函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: decode

 def decode(rsp, agent):
     _ret_ = rsp['_ret_']
     results = [x0 for x0 in rsp['results']]
     typecheck.is_int(_ret_, DecodeException)
     for x0 in results:
         typecheck.is_string(x0, DecodeException)
     return (_ret_, results)
开发者ID:gsquire1,项目名称:Python,代码行数:7,代码来源:__init__.py

示例2: encode

 def encode(startIndex, count):
     typecheck.is_int(startIndex, AssertionError)
     typecheck.is_int(count, AssertionError)
     args = {}
     args['startIndex'] = startIndex
     args['count'] = count
     return args
开发者ID:gsquire1,项目名称:Python,代码行数:7,代码来源:__init__.py

示例3: getBridgeSlaveCount

 def getBridgeSlaveCount(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getBridgeSlaveCount', args)
     _ret_ = rsp['_ret_']
     typecheck.is_int(_ret_, DecodeException)
     return _ret_
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:7,代码来源:__init__.py

示例4: getIdleTimeoutSettings

 def getIdleTimeoutSettings(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getIdleTimeoutSettings', args)
     _ret_ = rsp['_ret_']
     typecheck.is_int(_ret_, DecodeException)
     return _ret_
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:7,代码来源:__init__.py

示例5: encode

 def encode(reqInfo, days):
     typecheck.is_struct(reqInfo, raritan.rpc.cert.ServerSSLCert.ReqInfo, AssertionError)
     typecheck.is_int(days, AssertionError)
     args = {}
     args['reqInfo'] = raritan.rpc.cert.ServerSSLCert.ReqInfo.encode(reqInfo)
     args['days'] = days
     return args
开发者ID:gsquire1,项目名称:automation,代码行数:7,代码来源:__init__.py

示例6: acknowledgeAlertStatus

 def acknowledgeAlertStatus(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'acknowledgeAlertStatus', args)
     _ret_ = rsp['_ret_']
     typecheck.is_int(_ret_, DecodeException)
     return _ret_
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:7,代码来源:__init__.py

示例7: decode

 def decode(rsp, agent):
     _ret_ = rsp['_ret_']
     image = [raritan.rpc.webcam.StorageManager.StorageImage.decode(x0, agent) for x0 in rsp['image']]
     typecheck.is_int(_ret_, DecodeException)
     for x0 in image:
         typecheck.is_struct(x0, raritan.rpc.webcam.StorageManager.StorageImage, DecodeException)
     return (_ret_, image)
开发者ID:gsquire1,项目名称:automation,代码行数:7,代码来源:__init__.py

示例8: getRawValue

 def getRawValue(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getRawValue', args)
     _ret_ = rsp['_ret_']
     typecheck.is_int(_ret_, DecodeException)
     return _ret_
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:7,代码来源:__init__.py

示例9: installPendingKeyPair

 def installPendingKeyPair(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'installPendingKeyPair', args)
     _ret_ = rsp['_ret_']
     typecheck.is_int(_ret_, DecodeException)
     return _ret_
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:7,代码来源:__init__.py

示例10: encode

 def encode(sessionId, reason):
     typecheck.is_int(sessionId, AssertionError)
     typecheck.is_enum(reason, raritan.rpc.session.SessionManager.CloseReason, AssertionError)
     args = {}
     args['sessionId'] = sessionId
     args['reason'] = raritan.rpc.session.SessionManager.CloseReason.encode(reason)
     return args
开发者ID:gsquire1,项目名称:automation,代码行数:7,代码来源:__init__.py

示例11: getIndex

 def getIndex(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getIndex', args)
     idx = rsp['idx']
     typecheck.is_int(idx, DecodeException)
     return idx
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:7,代码来源:__init__.py

示例12: __init__

    def __init__(self, width, height, pixelFormat):
        typecheck.is_int(width, AssertionError)
        typecheck.is_int(height, AssertionError)
        typecheck.is_enum(pixelFormat, raritan.rpc.webcam.PixelFormat, AssertionError)

        self.width = width
        self.height = height
        self.pixelFormat = pixelFormat
开发者ID:gsquire1,项目名称:automation,代码行数:8,代码来源:__init__.py

示例13: __init__

    def __init__(self, creationTime, idFirst, idNext):
        typecheck.is_long(creationTime, AssertionError)
        typecheck.is_int(idFirst, AssertionError)
        typecheck.is_int(idNext, AssertionError)

        self.creationTime = creationTime
        self.idFirst = idFirst
        self.idNext = idNext
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:8,代码来源:__init__.py

示例14: __init__

        def __init__(self, id, name, info):
            typecheck.is_int(id, AssertionError)
            typecheck.is_string(name, AssertionError)
            typecheck.is_struct(info, raritan.rpc.usermgmt.Role.Info, AssertionError)

            self.id = id
            self.name = name
            self.info = info
开发者ID:gsquire1,项目名称:Python,代码行数:8,代码来源:__init__.py

示例15: __init__

        def __init__(self, id, name, hasDSTInfo):
            typecheck.is_int(id, AssertionError)
            typecheck.is_string(name, AssertionError)
            typecheck.is_bool(hasDSTInfo, AssertionError)

            self.id = id
            self.name = name
            self.hasDSTInfo = hasDSTInfo
开发者ID:gsquire1,项目名称:automation,代码行数:8,代码来源:__init__.py


注:本文中的raritan.rpc.typecheck.is_int函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。