def __init__(self,
                 id=None,
                 ttl=None,
                 scopes=None,
                 created=None,
                 user_id=None,
                 _configuration=None):  # noqa: E501
        """AccessToken - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._id = None
        self._ttl = None
        self._scopes = None
        self._created = None
        self._user_id = None
        self.discriminator = None

        self.id = id
        if ttl is not None:
            self.ttl = ttl
        if scopes is not None:
            self.scopes = scopes
        if created is not None:
            self.created = created
        if user_id is not None:
            self.user_id = user_id
    def __init__(self,
                 timestamp=None,
                 created=None,
                 type=None,
                 value=None,
                 rssi=None,
                 meta=None,
                 related_id=None,
                 correlation_id=None,
                 id=None,
                 gateway_id=None,
                 device_id=None,
                 sensor_device_id=None,
                 datapoint_id=None,
                 _configuration=None):  # noqa: E501
        """SensorReading - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._timestamp = None
        self._created = None
        self._type = None
        self._value = None
        self._rssi = None
        self._meta = None
        self._related_id = None
        self._correlation_id = None
        self._id = None
        self._gateway_id = None
        self._device_id = None
        self._sensor_device_id = None
        self._datapoint_id = None
        self.discriminator = None

        self.timestamp = timestamp
        self.created = created
        self.type = type
        self.value = value
        if rssi is not None:
            self.rssi = rssi
        if meta is not None:
            self.meta = meta
        if related_id is not None:
            self.related_id = related_id
        if correlation_id is not None:
            self.correlation_id = correlation_id
        if id is not None:
            self.id = id
        if gateway_id is not None:
            self.gateway_id = gateway_id
        if device_id is not None:
            self.device_id = device_id
        if sensor_device_id is not None:
            self.sensor_device_id = sensor_device_id
        if datapoint_id is not None:
            self.datapoint_id = datapoint_id
    def __init__(self, username=None, password=None, _configuration=None):  # noqa: E501
        """Credentials - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._username = None
        self._password = None
        self.discriminator = None

        if username is not None:
            self.username = username
        if password is not None:
            self.password = password
Ejemplo n.º 4
0
    def __init__(self,
                 name=None,
                 type=None,
                 parameters=None,
                 mute_for=None,
                 last_triggered=None,
                 delivery=None,
                 user_list_id=None,
                 device_list_id=None,
                 id=None,
                 device_id=None,
                 user_id=None,
                 _configuration=None):  # noqa: E501
        """NotificationTrigger - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._name = None
        self._type = None
        self._parameters = None
        self._mute_for = None
        self._last_triggered = None
        self._delivery = None
        self._user_list_id = None
        self._device_list_id = None
        self._id = None
        self._device_id = None
        self._user_id = None
        self.discriminator = None

        self.name = name
        self.type = type
        if parameters is not None:
            self.parameters = parameters
        self.mute_for = mute_for
        if last_triggered is not None:
            self.last_triggered = last_triggered
        self.delivery = delivery
        if user_list_id is not None:
            self.user_list_id = user_list_id
        if device_list_id is not None:
            self.device_list_id = device_list_id
        if id is not None:
            self.id = id
        if device_id is not None:
            self.device_id = device_id
        if user_id is not None:
            self.user_id = user_id
Ejemplo n.º 5
0
    def __init__(self, outline=None, center=None, radius=None, type=None, name=None, was_inside=False, last_checked=None, modified=False, meta=None, id=None, device_id=None, config_id=None, user_id=None, _configuration=None):  # noqa: E501
        """Geofence - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._outline = None
        self._center = None
        self._radius = None
        self._type = None
        self._name = None
        self._was_inside = None
        self._last_checked = None
        self._modified = None
        self._meta = None
        self._id = None
        self._device_id = None
        self._config_id = None
        self._user_id = None
        self.discriminator = None

        if outline is not None:
            self.outline = outline
        if center is not None:
            self.center = center
        if radius is not None:
            self.radius = radius
        if type is not None:
            self.type = type
        if name is not None:
            self.name = name
        if was_inside is not None:
            self.was_inside = was_inside
        if last_checked is not None:
            self.last_checked = last_checked
        if modified is not None:
            self.modified = modified
        if meta is not None:
            self.meta = meta
        if id is not None:
            self.id = id
        if device_id is not None:
            self.device_id = device_id
        if config_id is not None:
            self.config_id = config_id
        if user_id is not None:
            self.user_id = user_id
Ejemplo n.º 6
0
    def __init__(self,
                 configuration=None,
                 header_name=None,
                 header_value=None,
                 cookie=None):
        if configuration is None:
            configuration = Configuration()
        self.configuration = configuration

        # Use the pool property to lazily initialize the ThreadPool.
        self._pool = None
        self.rest_client = rest.RESTClientObject(configuration)
        self.default_headers = {}
        if header_name is not None:
            self.default_headers[header_name] = header_value
        self.cookie = cookie
        # Set default User-Agent.
        self.user_agent = 'Swagger-Codegen/1.0.0/python'
        self.client_side_validation = configuration.client_side_validation
    def __init__(self,
                 config=None,
                 message=None,
                 mobile_terminated=True,
                 created=None,
                 sent=None,
                 id=None,
                 device_id=None,
                 user_id=None,
                 _configuration=None):  # noqa: E501
        """DeviceMessage - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._config = None
        self._message = None
        self._mobile_terminated = None
        self._created = None
        self._sent = None
        self._id = None
        self._device_id = None
        self._user_id = None
        self.discriminator = None

        if config is not None:
            self.config = config
        if message is not None:
            self.message = message
        if mobile_terminated is not None:
            self.mobile_terminated = mobile_terminated
        self.created = created
        if sent is not None:
            self.sent = sent
        if id is not None:
            self.id = id
        if device_id is not None:
            self.device_id = device_id
        if user_id is not None:
            self.user_id = user_id
Ejemplo n.º 8
0
    def __init__(self,
                 type=None,
                 duration=None,
                 triggered_at=None,
                 end=None,
                 sent=None,
                 sms=False,
                 id=None,
                 device_id=None,
                 _configuration=None):  # noqa: E501
        """DeviceTransient - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._type = None
        self._duration = None
        self._triggered_at = None
        self._end = None
        self._sent = None
        self._sms = None
        self._id = None
        self._device_id = None
        self.discriminator = None

        self.type = type
        self.duration = duration
        self.triggered_at = triggered_at
        if end is not None:
            self.end = end
        if sent is not None:
            self.sent = sent
        if sms is not None:
            self.sms = sms
        if id is not None:
            self.id = id
        if device_id is not None:
            self.device_id = device_id
Ejemplo n.º 9
0
    def __init__(self, imei=None, iccid=None, lora_id=None, imsi=None, bt_mac=None, bt_mac_address=None, uwb_id=None, serial=None, type=None, expires=None, last_connection=None, first_seen=None, mode='default', name=None, battery_voltage=None, battery_pct=None, battery_type='LIO', tags=None, current_mode=None, color='fc7c3d', save_to_web=False, active=False, deep_sleep=False, simstate='active', stripe_subscription=None, subscription_type=None, meta=None, reseller_id=None, reseller_plan_id=None, bt_passkey=None, id=None, owner_id=None, secure_phone_id=None, _configuration=None):  # noqa: E501
        """Device - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._imei = None
        self._iccid = None
        self._lora_id = None
        self._imsi = None
        self._bt_mac = None
        self._bt_mac_address = None
        self._uwb_id = None
        self._serial = None
        self._type = None
        self._expires = None
        self._last_connection = None
        self._first_seen = None
        self._mode = None
        self._name = None
        self._battery_voltage = None
        self._battery_pct = None
        self._battery_type = None
        self._tags = None
        self._current_mode = None
        self._color = None
        self._save_to_web = None
        self._active = None
        self._deep_sleep = None
        self._simstate = None
        self._stripe_subscription = None
        self._subscription_type = None
        self._meta = None
        self._reseller_id = None
        self._reseller_plan_id = None
        self._bt_passkey = None
        self._id = None
        self._owner_id = None
        self._secure_phone_id = None
        self.discriminator = None

        if imei is not None:
            self.imei = imei
        if iccid is not None:
            self.iccid = iccid
        if lora_id is not None:
            self.lora_id = lora_id
        if imsi is not None:
            self.imsi = imsi
        if bt_mac is not None:
            self.bt_mac = bt_mac
        if bt_mac_address is not None:
            self.bt_mac_address = bt_mac_address
        if uwb_id is not None:
            self.uwb_id = uwb_id
        if serial is not None:
            self.serial = serial
        if type is not None:
            self.type = type
        if expires is not None:
            self.expires = expires
        if last_connection is not None:
            self.last_connection = last_connection
        self.first_seen = first_seen
        if mode is not None:
            self.mode = mode
        if name is not None:
            self.name = name
        if battery_voltage is not None:
            self.battery_voltage = battery_voltage
        if battery_pct is not None:
            self.battery_pct = battery_pct
        if battery_type is not None:
            self.battery_type = battery_type
        if tags is not None:
            self.tags = tags
        if current_mode is not None:
            self.current_mode = current_mode
        if color is not None:
            self.color = color
        if save_to_web is not None:
            self.save_to_web = save_to_web
        if active is not None:
            self.active = active
        if deep_sleep is not None:
            self.deep_sleep = deep_sleep
        if simstate is not None:
            self.simstate = simstate
        if stripe_subscription is not None:
            self.stripe_subscription = stripe_subscription
        if subscription_type is not None:
            self.subscription_type = subscription_type
        if meta is not None:
            self.meta = meta
        if reseller_id is not None:
            self.reseller_id = reseller_id
        if reseller_plan_id is not None:
            self.reseller_plan_id = reseller_plan_id
        if bt_passkey is not None:
            self.bt_passkey = bt_passkey
        if id is not None:
            self.id = id
        if owner_id is not None:
            self.owner_id = owner_id
        if secure_phone_id is not None:
            self.secure_phone_id = secure_phone_id
Ejemplo n.º 10
0
    def __init__(self,
                 location=None,
                 timestamp=None,
                 speed=None,
                 altitude=None,
                 course=None,
                 num_value=None,
                 string_value=None,
                 send_reason=None,
                 sats=None,
                 hdop=None,
                 accuracy=None,
                 location_type='gps',
                 battery_voltage=None,
                 average_charge=None,
                 created=None,
                 address=None,
                 alert_type=None,
                 current_used=None,
                 gsm_signal=None,
                 correlation_id=None,
                 id=None,
                 device_id=None,
                 _configuration=None):  # noqa: E501
        """Datapoint - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._location = None
        self._timestamp = None
        self._speed = None
        self._altitude = None
        self._course = None
        self._num_value = None
        self._string_value = None
        self._send_reason = None
        self._sats = None
        self._hdop = None
        self._accuracy = None
        self._location_type = None
        self._battery_voltage = None
        self._average_charge = None
        self._created = None
        self._address = None
        self._alert_type = None
        self._current_used = None
        self._gsm_signal = None
        self._correlation_id = None
        self._id = None
        self._device_id = None
        self.discriminator = None

        if location is not None:
            self.location = location
        self.timestamp = timestamp
        if speed is not None:
            self.speed = speed
        if altitude is not None:
            self.altitude = altitude
        if course is not None:
            self.course = course
        if num_value is not None:
            self.num_value = num_value
        if string_value is not None:
            self.string_value = string_value
        if send_reason is not None:
            self.send_reason = send_reason
        if sats is not None:
            self.sats = sats
        if hdop is not None:
            self.hdop = hdop
        if accuracy is not None:
            self.accuracy = accuracy
        self.location_type = location_type
        if battery_voltage is not None:
            self.battery_voltage = battery_voltage
        if average_charge is not None:
            self.average_charge = average_charge
        self.created = created
        if address is not None:
            self.address = address
        if alert_type is not None:
            self.alert_type = alert_type
        if current_used is not None:
            self.current_used = current_used
        if gsm_signal is not None:
            self.gsm_signal = gsm_signal
        if correlation_id is not None:
            self.correlation_id = correlation_id
        if id is not None:
            self.id = id
        if device_id is not None:
            self.device_id = device_id
Ejemplo n.º 11
0
    def __init__(self, current_fw=None, ota_fw=None, interval=None, sleep_interval=None, check_in_interval=None, packing=None, movement_sensitivity=None, debounce=None, movement_sensitivity2=None, behavior=None, mode_control=None, mode_control2=None, gps_timeout=None, transmit_timeout=None, gps_stabilize=None, gps_check_interval=None, stop_timeout=None, tolerance_percentage=None, reasons_to_wake=None, modified=None, force_fw=False, received_at=None, reset=None, flash_try_count=None, home_wifi_network=None, home_wifi_password=None, wake_action='normal', on_demand_time=None, alert_action='nothing', id=None, device_id=None, safe_zone_id=None, _configuration=None):  # noqa: E501
        """DeviceConfig - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._current_fw = None
        self._ota_fw = None
        self._interval = None
        self._sleep_interval = None
        self._check_in_interval = None
        self._packing = None
        self._movement_sensitivity = None
        self._debounce = None
        self._movement_sensitivity2 = None
        self._behavior = None
        self._mode_control = None
        self._mode_control2 = None
        self._gps_timeout = None
        self._transmit_timeout = None
        self._gps_stabilize = None
        self._gps_check_interval = None
        self._stop_timeout = None
        self._tolerance_percentage = None
        self._reasons_to_wake = None
        self._modified = None
        self._force_fw = None
        self._received_at = None
        self._reset = None
        self._flash_try_count = None
        self._home_wifi_network = None
        self._home_wifi_password = None
        self._wake_action = None
        self._on_demand_time = None
        self._alert_action = None
        self._id = None
        self._device_id = None
        self._safe_zone_id = None
        self.discriminator = None

        if current_fw is not None:
            self.current_fw = current_fw
        if ota_fw is not None:
            self.ota_fw = ota_fw
        self.interval = interval
        self.sleep_interval = sleep_interval
        if check_in_interval is not None:
            self.check_in_interval = check_in_interval
        self.packing = packing
        if movement_sensitivity is not None:
            self.movement_sensitivity = movement_sensitivity
        if debounce is not None:
            self.debounce = debounce
        if movement_sensitivity2 is not None:
            self.movement_sensitivity2 = movement_sensitivity2
        if behavior is not None:
            self.behavior = behavior
        if mode_control is not None:
            self.mode_control = mode_control
        if mode_control2 is not None:
            self.mode_control2 = mode_control2
        if gps_timeout is not None:
            self.gps_timeout = gps_timeout
        if transmit_timeout is not None:
            self.transmit_timeout = transmit_timeout
        if gps_stabilize is not None:
            self.gps_stabilize = gps_stabilize
        if gps_check_interval is not None:
            self.gps_check_interval = gps_check_interval
        if stop_timeout is not None:
            self.stop_timeout = stop_timeout
        if tolerance_percentage is not None:
            self.tolerance_percentage = tolerance_percentage
        if reasons_to_wake is not None:
            self.reasons_to_wake = reasons_to_wake
        if modified is not None:
            self.modified = modified
        if force_fw is not None:
            self.force_fw = force_fw
        if received_at is not None:
            self.received_at = received_at
        if reset is not None:
            self.reset = reset
        if flash_try_count is not None:
            self.flash_try_count = flash_try_count
        if home_wifi_network is not None:
            self.home_wifi_network = home_wifi_network
        if home_wifi_password is not None:
            self.home_wifi_password = home_wifi_password
        self.wake_action = wake_action
        self.on_demand_time = on_demand_time
        self.alert_action = alert_action
        if id is not None:
            self.id = id
        if device_id is not None:
            self.device_id = device_id
        if safe_zone_id is not None:
            self.safe_zone_id = safe_zone_id