Example #1
0
 def check(self):
     super(TopoAddRequest, self).check()
     params = self.get_params()
     for param in params:
         CheckUtil.check_not_empty(param['productKey'],
                                   'subDeviceInfo.productKey')
         CheckUtil.check_not_empty(param['deviceKey'],
                                   'subDeviceInfo.deviceKey')
         CheckUtil.check_not_empty(param['clientId'],
                                   'subDeviceInfo.clientId')
         CheckUtil.check_not_empty(param['signMethod'],
                                   'subDeviceInfo.signMethod')
         CheckUtil.check_not_empty(param['sign'], 'subDeviceInfo.sign')
 def check(self):
     super(SubDeviceLoginBatchRequest, self).check()
     params = self.get_params()
     CheckUtil.check_not_empty(params['timestamp'], 'timestamp')
     CheckUtil.check_not_empty(params['subDevices'], 'subDevices')
     CheckUtil.check_not_empty(params['clientId'], 'clientId')
     CheckUtil.check_not_empty(params['signMethod'], 'signMethod')
 def __init__(self, product_key, device_key, asset_id, device_secret):
     CheckUtil.check_not_empty(product_key, 'product_key')
     CheckUtil.check_not_empty(device_key, 'device_key')
     CheckUtil.check_not_empty(asset_id, 'asset_id')
     self.product_key = product_key
     self.device_key = device_key
     self.assert_id = asset_id
     self.device_secret = device_secret
 def check(self):
     super(ServiceInvocationReply, self).check()
     CheckUtil.check_not_empty(self.__service_identifier,
                               'service.identifier')
 def __init__(self, product_key, device_key):
     CheckUtil.check_not_empty(device_key, 'device_key')
     self.product_key = product_key
     self.device_key = device_key
Example #6
0
 def check(self):
     CheckUtil.check_not_empty(self.get_product_key(), 'productKey')
     CheckUtil.check_not_empty(self.get_device_key(), 'deviceKey')
 def check(self):
     super(TagUpdateRequest, self).check()
     params = super(TagUpdateRequest, self).get_params()
     for param in params:
         CheckUtil.check_not_empty(param.get('tagKey'), 'tagKey')
         CheckUtil.check_not_empty(param.get('tagValue'), 'tagValue')
 def check(self):
     if self.get_message_size() > MAX_MESSAGE_SIZE:
         raise EnvisionException('message too large, max length is: %s' %
                                 MAX_MESSAGE_SIZE)
     CheckUtil.check_not_empty(self.get_product_key(), 'product key')
     CheckUtil.check_not_empty(self.get_device_key(), 'device key')
Example #9
0
 def check(self):
     super(EventPostRequest, self).check()
     CheckUtil.check_not_empty(self.__eventIdentifier, 'event.identifier')