• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python typecheck.is_bool函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getHttpRedirSettings

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


示例2: __init__

    def __init__(self, defaultArgs, autoStart, autoRestart):
        typecheck.is_bool(autoStart, AssertionError)
        typecheck.is_bool(autoRestart, AssertionError)

        self.defaultArgs = defaultArgs
        self.autoStart = autoStart
        self.autoRestart = autoRestart
开发者ID:gsquire1,项目名称:automation,代码行数:7,代码来源:__init__.py


示例3: isAvailable

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


示例4: __init__

    def __init__(self, enabled, autocfg, ipaddr, netmask, gateway, hostname, dns_suffixes, override_dns, dns_ip_1, dns_ip_2, domain_name):
        typecheck.is_bool(enabled, AssertionError)
        typecheck.is_enum(autocfg, raritan.rpc.net.AutoConfigs, AssertionError)
        typecheck.is_string(ipaddr, AssertionError)
        typecheck.is_string(netmask, AssertionError)
        typecheck.is_string(gateway, AssertionError)
        typecheck.is_string(hostname, AssertionError)
        for x0 in dns_suffixes:
            typecheck.is_string(x0, AssertionError)
        typecheck.is_bool(override_dns, AssertionError)
        typecheck.is_string(dns_ip_1, AssertionError)
        typecheck.is_string(dns_ip_2, AssertionError)
        typecheck.is_string(domain_name, AssertionError)

        self.enabled = enabled
        self.autocfg = autocfg
        self.ipaddr = ipaddr
        self.netmask = netmask
        self.gateway = gateway
        self.hostname = hostname
        self.dns_suffixes = dns_suffixes
        self.override_dns = override_dns
        self.dns_ip_1 = dns_ip_1
        self.dns_ip_2 = dns_ip_2
        self.domain_name = domain_name
开发者ID:gsquire1,项目名称:Python,代码行数:25,代码来源:__init__.py


示例5: encode

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


示例6: isFactoryConfigModeEnabled

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


示例7: __init__

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

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


示例8: __init__

        def __init__(self, timestamp, available, value):
            typecheck.is_time(timestamp, AssertionError)
            typecheck.is_bool(available, AssertionError)
            typecheck.is_int(value, AssertionError)

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


示例9: isDaemonRunning

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


示例10: setMaximumCoolingRequest

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


示例11: getImageInfo

 def getImageInfo(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'getImageInfo', args)
     _ret_ = rsp['_ret_']
     info = raritan.rpc.firmware.ImageInfo.decode(rsp['info'], agent)
     typecheck.is_bool(_ret_, DecodeException)
     typecheck.is_struct(info, raritan.rpc.firmware.ImageInfo, DecodeException)
     return (_ret_, info)
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:9,代码来源:__init__.py


示例12: decode

 def decode(rsp, agent):
     zone = raritan.rpc.datetime.DateTime.ZoneInfo.decode(rsp['zone'], agent)
     dstEnabled = rsp['dstEnabled']
     utcOffset = rsp['utcOffset']
     currentTime = raritan.rpc.Time.decode(rsp['currentTime'])
     typecheck.is_struct(zone, raritan.rpc.datetime.DateTime.ZoneInfo, DecodeException)
     typecheck.is_bool(dstEnabled, DecodeException)
     typecheck.is_int(utcOffset, DecodeException)
     typecheck.is_time(currentTime, DecodeException)
     return (zone, dstEnabled, utcOffset, currentTime)
开发者ID:gsquire1,项目名称:automation,代码行数:10,代码来源:__init__.py


示例13: activate

 def activate(self, on, reason, timeout):
     agent = self.agent
     typecheck.is_bool(on, AssertionError)
     typecheck.is_string(reason, AssertionError)
     typecheck.is_int(timeout, AssertionError)
     args = {}
     args['on'] = on
     args['reason'] = reason
     args['timeout'] = timeout
     rsp = agent.json_rpc(self.target, 'activate', args)
开发者ID:QualiSystems,项目名称:Raritan-PDU-Shell,代码行数:10,代码来源:__init__.py


示例14: setRawValue

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


示例15: setSettings

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python typecheck.is_enum函数代码示例发布时间:2022-05-26
下一篇:
Python rpc.Interface类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap