Beispiel #1
0
    def __init__(self,
                 configuration=None,
                 header_name=None,
                 header_value=None,
                 cookie=None,
                 pool_threads=1):
        if configuration is None:
            configuration = Configuration()
        self.configuration = configuration
        self.pool_threads = pool_threads

        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 = 'SamsaraSDK/4.0.0 (2021.02.16; python) -p enumClassPrefix=true '
        self.client_side_validation = configuration.client_side_validation
    def __init__(self,
                 decorations=None,
                 time=None,
                 value=None,
                 local_vars_configuration=None):  # noqa: E501
        """VehicleStatsSyntheticEngineSeconds - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._decorations = None
        self._time = None
        self._value = None
        self.discriminator = None

        if decorations is not None:
            self.decorations = decorations
        self.time = time
        self.value = value
Beispiel #3
0
    def __init__(self,
                 accepted_time=None,
                 active_time=None,
                 driver=None,
                 first_seen_time=None,
                 id=None,
                 rejected_time=None,
                 shipping_docs=None,
                 trailers=None,
                 vehicle=None,
                 local_vars_configuration=None):  # noqa: E501
        """CarrierProposedAssignment - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._accepted_time = None
        self._active_time = None
        self._driver = None
        self._first_seen_time = None
        self._id = None
        self._rejected_time = None
        self._shipping_docs = None
        self._trailers = None
        self._vehicle = None
        self.discriminator = None

        if accepted_time is not None:
            self.accepted_time = accepted_time
        self.active_time = active_time
        if driver is not None:
            self.driver = driver
        if first_seen_time is not None:
            self.first_seen_time = first_seen_time
        self.id = id
        if rejected_time is not None:
            self.rejected_time = rejected_time
        if shipping_docs is not None:
            self.shipping_docs = shipping_docs
        if trailers is not None:
            self.trailers = trailers
        if vehicle is not None:
            self.vehicle = vehicle
    def __init__(self, engine_rpm=None, engine_seconds=None, engine_states=None, fuel_percent=None, gateway_engine_seconds=None, gateway_engine_state=None, gateway_j1939_engine_seconds=None, gps_odometer_meters=None, id=None, name=None, obd_engine_seconds=None, obd_engine_state=None, local_vars_configuration=None):  # noqa: E501
        """EquipmentStatsListResponseData - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._engine_rpm = None
        self._engine_seconds = None
        self._engine_states = None
        self._fuel_percent = None
        self._gateway_engine_seconds = None
        self._gateway_engine_state = None
        self._gateway_j1939_engine_seconds = None
        self._gps_odometer_meters = None
        self._id = None
        self._name = None
        self._obd_engine_seconds = None
        self._obd_engine_state = None
        self.discriminator = None

        if engine_rpm is not None:
            self.engine_rpm = engine_rpm
        if engine_seconds is not None:
            self.engine_seconds = engine_seconds
        if engine_states is not None:
            self.engine_states = engine_states
        if fuel_percent is not None:
            self.fuel_percent = fuel_percent
        if gateway_engine_seconds is not None:
            self.gateway_engine_seconds = gateway_engine_seconds
        if gateway_engine_state is not None:
            self.gateway_engine_state = gateway_engine_state
        if gateway_j1939_engine_seconds is not None:
            self.gateway_j1939_engine_seconds = gateway_j1939_engine_seconds
        if gps_odometer_meters is not None:
            self.gps_odometer_meters = gps_odometer_meters
        self.id = id
        self.name = name
        if obd_engine_seconds is not None:
            self.obd_engine_seconds = obd_engine_seconds
        if obd_engine_state is not None:
            self.obd_engine_state = obd_engine_state
    def __init__(self,
                 latitude=None,
                 longitude=None,
                 radius_meters=None,
                 local_vars_configuration=None):  # noqa: E501
        """AddressGeofenceCircle - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._latitude = None
        self._longitude = None
        self._radius_meters = None
        self.discriminator = None

        if latitude is not None:
            self.latitude = latitude
        if longitude is not None:
            self.longitude = longitude
        self.radius_meters = radius_meters
    def __init__(self, entity_id=None, external_ids=None, number_values=None, string_values=None, local_vars_configuration=None):  # noqa: E501
        """CreateAttributeRequestEntities - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._entity_id = None
        self._external_ids = None
        self._number_values = None
        self._string_values = None
        self.discriminator = None

        if entity_id is not None:
            self.entity_id = entity_id
        if external_ids is not None:
            self.external_ids = external_ids
        if number_values is not None:
            self.number_values = number_values
        if string_values is not None:
            self.string_values = string_values
Beispiel #7
0
    def __init__(self, card_number=None, created_at_time=None, id=None, url=None, local_vars_configuration=None):  # noqa: E501
        """TachographDriverFile - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._card_number = None
        self._created_at_time = None
        self._id = None
        self._url = None
        self.discriminator = None

        if card_number is not None:
            self.card_number = card_number
        if created_at_time is not None:
            self.created_at_time = created_at_time
        if id is not None:
            self.id = id
        if url is not None:
            self.url = url
    def __init__(self, email=None, first_name=None, last_name=None, phone=None, local_vars_configuration=None):  # noqa: E501
        """UpdateContactRequest - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._email = None
        self._first_name = None
        self._last_name = None
        self._phone = None
        self.discriminator = None

        if email is not None:
            self.email = email
        if first_name is not None:
            self.first_name = first_name
        if last_name is not None:
            self.last_name = last_name
        if phone is not None:
            self.phone = phone
Beispiel #9
0
    def __init__(self, heading=None, latitude=None, longitude=None, speed=None, time=None, local_vars_configuration=None):  # noqa: E501
        """EquipmentLocation - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._heading = None
        self._latitude = None
        self._longitude = None
        self._speed = None
        self._time = None
        self.discriminator = None

        if heading is not None:
            self.heading = heading
        self.latitude = latitude
        self.longitude = longitude
        if speed is not None:
            self.speed = speed
        self.time = time
Beispiel #10
0
    def __init__(self, is_resolved=None, mechanic_notes=None, resolved_at_time=None, resolved_by=None, local_vars_configuration=None):  # noqa: E501
        """DefectPatch - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._is_resolved = None
        self._mechanic_notes = None
        self._resolved_at_time = None
        self._resolved_by = None
        self.discriminator = None

        if is_resolved is not None:
            self.is_resolved = is_resolved
        if mechanic_notes is not None:
            self.mechanic_notes = mechanic_notes
        if resolved_at_time is not None:
            self.resolved_at_time = resolved_at_time
        if resolved_by is not None:
            self.resolved_by = resolved_by
    def __init__(self,
                 dtc_description=None,
                 dtc_id=None,
                 dtc_short_code=None,
                 local_vars_configuration=None):  # noqa: E501
        """VehicleStatsListResponseObdiiConfirmedDtcs - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._dtc_description = None
        self._dtc_id = None
        self._dtc_short_code = None
        self.discriminator = None

        if dtc_description is not None:
            self.dtc_description = dtc_description
        self.dtc_id = dtc_id
        if dtc_short_code is not None:
            self.dtc_short_code = dtc_short_code
Beispiel #12
0
    def __init__(self,
                 amber_lamp_status=None,
                 fmi=None,
                 mil_status=None,
                 occurance_count=None,
                 protect_lamp_status=None,
                 red_lamp_status=None,
                 spn=None,
                 tx_id=None,
                 local_vars_configuration=None):  # noqa: E501
        """J1939D1StatusDataPointValue - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._amber_lamp_status = None
        self._fmi = None
        self._mil_status = None
        self._occurance_count = None
        self._protect_lamp_status = None
        self._red_lamp_status = None
        self._spn = None
        self._tx_id = None
        self.discriminator = None

        if amber_lamp_status is not None:
            self.amber_lamp_status = amber_lamp_status
        if fmi is not None:
            self.fmi = fmi
        if mil_status is not None:
            self.mil_status = mil_status
        if occurance_count is not None:
            self.occurance_count = occurance_count
        if protect_lamp_status is not None:
            self.protect_lamp_status = protect_lamp_status
        if red_lamp_status is not None:
            self.red_lamp_status = red_lamp_status
        if spn is not None:
            self.spn = spn
        if tx_id is not None:
            self.tx_id = tx_id
Beispiel #13
0
    def __init__(self,
                 custom_metadata=None,
                 location=None,
                 location_data_input_id=None,
                 location_type=None,
                 name=None,
                 parent_id=None,
                 running_status_data_input_id=None,
                 tag_ids=None,
                 local_vars_configuration=None):  # noqa: E501
        """AssetPatch - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._custom_metadata = None
        self._location = None
        self._location_data_input_id = None
        self._location_type = None
        self._name = None
        self._parent_id = None
        self._running_status_data_input_id = None
        self._tag_ids = None
        self.discriminator = None

        if custom_metadata is not None:
            self.custom_metadata = custom_metadata
        if location is not None:
            self.location = location
        if location_data_input_id is not None:
            self.location_data_input_id = location_data_input_id
        if location_type is not None:
            self.location_type = location_type
        if name is not None:
            self.name = name
        if parent_id is not None:
            self.parent_id = parent_id
        if running_status_data_input_id is not None:
            self.running_status_data_input_id = running_status_data_input_id
        if tag_ids is not None:
            self.tag_ids = tag_ids
Beispiel #14
0
    def __init__(self,
                 addresses=None,
                 assets=None,
                 drivers=None,
                 machines=None,
                 name=None,
                 parent_tag_id=None,
                 sensors=None,
                 vehicles=None,
                 local_vars_configuration=None):  # noqa: E501
        """ReplaceTagRequest - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._addresses = None
        self._assets = None
        self._drivers = None
        self._machines = None
        self._name = None
        self._parent_tag_id = None
        self._sensors = None
        self._vehicles = None
        self.discriminator = None

        if addresses is not None:
            self.addresses = addresses
        if assets is not None:
            self.assets = assets
        if drivers is not None:
            self.drivers = drivers
        if machines is not None:
            self.machines = machines
        if name is not None:
            self.name = name
        if parent_tag_id is not None:
            self.parent_tag_id = parent_tag_id
        if sensors is not None:
            self.sensors = sensors
        if vehicles is not None:
            self.vehicles = vehicles
    def __init__(self,
                 first_name=None,
                 id=None,
                 last_name=None,
                 local_vars_configuration=None):  # noqa: E501
        """ContactTinyResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._first_name = None
        self._id = None
        self._last_name = None
        self.discriminator = None

        if first_name is not None:
            self.first_name = first_name
        if id is not None:
            self.id = id
        if last_name is not None:
            self.last_name = last_name
    def __init__(self,
                 can_bus_type=None,
                 j1939=None,
                 obdii=None,
                 local_vars_configuration=None):  # noqa: E501
        """VehicleStatsFaultCodesValue - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._can_bus_type = None
        self._j1939 = None
        self._obdii = None
        self.discriminator = None

        if can_bus_type is not None:
            self.can_bus_type = can_bus_type
        if j1939 is not None:
            self.j1939 = j1939
        if obdii is not None:
            self.obdii = obdii
    def __init__(self,
                 auth_type=None,
                 name=None,
                 roles=None,
                 local_vars_configuration=None):  # noqa: E501
        """UpdateUserRequest - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._auth_type = None
        self._name = None
        self._roles = None
        self.discriminator = None

        if auth_type is not None:
            self.auth_type = auth_type
        if name is not None:
            self.name = name
        if roles is not None:
            self.roles = roles
Beispiel #18
0
    def __init__(self,
                 carrier_settings=None,
                 id=None,
                 name=None,
                 local_vars_configuration=None):  # noqa: E501
        """OrganizationInfo - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._carrier_settings = None
        self._id = None
        self._name = None
        self.discriminator = None

        if carrier_settings is not None:
            self.carrier_settings = carrier_settings
        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
Beispiel #19
0
    def __init__(self,
                 signatory_user=None,
                 signed_at_time=None,
                 type='driver',
                 local_vars_configuration=None):  # noqa: E501
        """DvirSignature - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._signatory_user = None
        self._signed_at_time = None
        self._type = None
        self.discriminator = None

        if signatory_user is not None:
            self.signatory_user = signatory_user
        if signed_at_time is not None:
            self.signed_at_time = signed_at_time
        if type is not None:
            self.type = type
Beispiel #20
0
    def __init__(self,
                 auth_type=None,
                 email=None,
                 name=None,
                 roles=None,
                 local_vars_configuration=None):  # noqa: E501
        """CreateUserRequest - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._auth_type = None
        self._email = None
        self._name = None
        self._roles = None
        self.discriminator = None

        self.auth_type = auth_type
        self.email = email
        self.name = name
        self.roles = roles
Beispiel #21
0
    def __init__(self,
                 emissions_is_on=None,
                 protect_is_on=None,
                 stop_is_on=None,
                 warning_is_on=None,
                 local_vars_configuration=None):  # noqa: E501
        """VehicleStatsListResponseJ1939CheckEngineLights - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._emissions_is_on = None
        self._protect_is_on = None
        self._stop_is_on = None
        self._warning_is_on = None
        self.discriminator = None

        self.emissions_is_on = emissions_is_on
        self.protect_is_on = protect_is_on
        self.stop_is_on = stop_is_on
        self.warning_is_on = warning_is_on
    def __init__(self,
                 carrier_name=None,
                 dot_number=None,
                 main_office_address=None,
                 local_vars_configuration=None):  # noqa: E501
        """CreateDriverRequestCarrierSettings - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._carrier_name = None
        self._dot_number = None
        self._main_office_address = None
        self.discriminator = None

        if carrier_name is not None:
            self.carrier_name = carrier_name
        if dot_number is not None:
            self.dot_number = dot_number
        if main_office_address is not None:
            self.main_office_address = main_office_address
Beispiel #23
0
    def __init__(self,
                 formatted_address=None,
                 latitude=None,
                 longitude=None,
                 local_vars_configuration=None):  # noqa: E501
        """AssetLocation - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._formatted_address = None
        self._latitude = None
        self._longitude = None
        self.discriminator = None

        if formatted_address is not None:
            self.formatted_address = formatted_address
        if latitude is not None:
            self.latitude = latitude
        if longitude is not None:
            self.longitude = longitude
Beispiel #24
0
    def __init__(self,
                 name=None,
                 time=None,
                 value=None,
                 local_vars_configuration=None):  # noqa: E501
        """VehicleStatsAuxInput - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._name = None
        self._time = None
        self._value = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if time is not None:
            self.time = time
        if value is not None:
            self.value = value
    def __init__(self, heading_degrees=None, latitude=None, longitude=None, reverse_geo=None, speed_miles_per_hour=None, local_vars_configuration=None):  # noqa: E501
        """VehicleLocationWithUnits - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._heading_degrees = None
        self._latitude = None
        self._longitude = None
        self._reverse_geo = None
        self._speed_miles_per_hour = None
        self.discriminator = None

        if heading_degrees is not None:
            self.heading_degrees = heading_degrees
        self.latitude = latitude
        self.longitude = longitude
        if reverse_geo is not None:
            self.reverse_geo = reverse_geo
        if speed_miles_per_hour is not None:
            self.speed_miles_per_hour = speed_miles_per_hour
Beispiel #26
0
    def __init__(self,
                 cycle_remaining_duration_ms=None,
                 cycle_started_at_time=None,
                 cycle_tomorrow_duration_ms=None,
                 local_vars_configuration=None):  # noqa: E501
        """HosCycle - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._cycle_remaining_duration_ms = None
        self._cycle_started_at_time = None
        self._cycle_tomorrow_duration_ms = None
        self.discriminator = None

        if cycle_remaining_duration_ms is not None:
            self.cycle_remaining_duration_ms = cycle_remaining_duration_ms
        if cycle_started_at_time is not None:
            self.cycle_started_at_time = cycle_started_at_time
        if cycle_tomorrow_duration_ms is not None:
            self.cycle_tomorrow_duration_ms = cycle_tomorrow_duration_ms
    def __init__(self,
                 decorations=None,
                 time=None,
                 value=None,
                 local_vars_configuration=None):  # noqa: E501
        """VehicleStatsTirePressureWithDecoration - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._decorations = None
        self._time = None
        self._value = None
        self.discriminator = None

        if decorations is not None:
            self.decorations = decorations
        if time is not None:
            self.time = time
        if value is not None:
            self.value = value
Beispiel #28
0
    def __init__(self,
                 id=None,
                 name=None,
                 type=None,
                 local_vars_configuration=None):  # noqa: E501
        """DefectResolvedBy - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._name = None
        self._type = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if type is not None:
            self.type = type
Beispiel #29
0
    def __init__(self,
                 id=None,
                 name=None,
                 parent_tag_id=None,
                 local_vars_configuration=None):  # noqa: E501
        """TinyTag - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._name = None
        self._parent_tag_id = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if parent_tag_id is not None:
            self.parent_tag_id = parent_tag_id
Beispiel #30
0
    def __init__(self,
                 driver_summaries=None,
                 summary_end_time=None,
                 summary_start_time=None,
                 local_vars_configuration=None):  # noqa: E501
        """DriverEfficienciesResponseData - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._driver_summaries = None
        self._summary_end_time = None
        self._summary_start_time = None
        self.discriminator = None

        if driver_summaries is not None:
            self.driver_summaries = driver_summaries
        if summary_end_time is not None:
            self.summary_end_time = summary_end_time
        if summary_start_time is not None:
            self.summary_start_time = summary_start_time