tb-rest-client 3.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tb_rest_client/__init__.py +16 -0
- tb_rest_client/api/__init__.py +14 -0
- tb_rest_client/api/api_ce/__init__.py +66 -0
- tb_rest_client/api/api_ce/admin_controller_api.py +2250 -0
- tb_rest_client/api/api_ce/alarm_comment_controller_api.py +376 -0
- tb_rest_client/api/api_ce/alarm_controller_api.py +1639 -0
- tb_rest_client/api/api_ce/asset_controller_api.py +2040 -0
- tb_rest_client/api/api_ce/asset_profile_controller_api.py +934 -0
- tb_rest_client/api/api_ce/audit_log_controller_api.py +587 -0
- tb_rest_client/api/api_ce/auth_controller_api.py +882 -0
- tb_rest_client/api/api_ce/component_descriptor_controller_api.py +340 -0
- tb_rest_client/api/api_ce/customer_controller_api.py +731 -0
- tb_rest_client/api/api_ce/dashboard_controller_api.py +2364 -0
- tb_rest_client/api/api_ce/device_api_controller_api.py +1212 -0
- tb_rest_client/api/api_ce/device_connectivity_controller_api.py +332 -0
- tb_rest_client/api/api_ce/device_controller_api.py +2737 -0
- tb_rest_client/api/api_ce/device_profile_controller_api.py +1120 -0
- tb_rest_client/api/api_ce/domain_controller_api.py +563 -0
- tb_rest_client/api/api_ce/edge_controller_api.py +2475 -0
- tb_rest_client/api/api_ce/edge_event_controller_api.py +178 -0
- tb_rest_client/api/api_ce/entities_version_control_controller_api.py +1327 -0
- tb_rest_client/api/api_ce/entity_query_controller_api.py +542 -0
- tb_rest_client/api/api_ce/entity_relation_controller_api.py +1355 -0
- tb_rest_client/api/api_ce/entity_view_controller_api.py +1828 -0
- tb_rest_client/api/api_ce/event_controller_api.py +623 -0
- tb_rest_client/api/api_ce/image_controller_api.py +1295 -0
- tb_rest_client/api/api_ce/login_endpoint_api.py +142 -0
- tb_rest_client/api/api_ce/lwm_2m_controller_api.py +142 -0
- tb_rest_client/api/api_ce/mail_config_template_controller_api.py +134 -0
- tb_rest_client/api/api_ce/mobile_app_bundle_controller_api.py +562 -0
- tb_rest_client/api/api_ce/mobile_app_controller_api.py +563 -0
- tb_rest_client/api/api_ce/mobile_application_controller_api.py +508 -0
- tb_rest_client/api/api_ce/notification_controller_api.py +1480 -0
- tb_rest_client/api/api_ce/notification_rule_controller_api.py +447 -0
- tb_rest_client/api/api_ce/notification_target_controller_api.py +776 -0
- tb_rest_client/api/api_ce/notification_template_controller_api.py +550 -0
- tb_rest_client/api/api_ce/o_auth_2_config_template_controller_api.py +324 -0
- tb_rest_client/api/api_ce/o_auth_2_controller_api.py +915 -0
- tb_rest_client/api/api_ce/ota_package_controller_api.py +879 -0
- tb_rest_client/api/api_ce/qr_code_settings_controller_api.py +508 -0
- tb_rest_client/api/api_ce/queue_controller_api.py +558 -0
- tb_rest_client/api/api_ce/queue_stats_controller_api.py +352 -0
- tb_rest_client/api/api_ce/rpc_v_1_controller_api.py +253 -0
- tb_rest_client/api/api_ce/rpc_v_2_controller_api.py +570 -0
- tb_rest_client/api/api_ce/rule_chain_controller_api.py +2201 -0
- tb_rest_client/api/api_ce/rule_engine_controller_api.py +515 -0
- tb_rest_client/api/api_ce/tb_resource_controller_api.py +1379 -0
- tb_rest_client/api/api_ce/telemetry_controller_api.py +1808 -0
- tb_rest_client/api/api_ce/tenant_controller_api.py +657 -0
- tb_rest_client/api/api_ce/tenant_profile_controller_api.py +932 -0
- tb_rest_client/api/api_ce/two_factor_auth_config_controller_api.py +890 -0
- tb_rest_client/api/api_ce/two_factor_auth_controller_api.py +332 -0
- tb_rest_client/api/api_ce/ui_settings_controller_api.py +134 -0
- tb_rest_client/api/api_ce/usage_info_controller_api.py +132 -0
- tb_rest_client/api/api_ce/user_controller_api.py +2645 -0
- tb_rest_client/api/api_ce/widget_type_controller_api.py +1505 -0
- tb_rest_client/api/api_ce/widgets_bundle_controller_api.py +752 -0
- tb_rest_client/api/api_pe/__init__.py +67 -0
- tb_rest_client/api/api_pe/admin_controller_api.py +2310 -0
- tb_rest_client/api/api_pe/alarm_comment_controller_api.py +372 -0
- tb_rest_client/api/api_pe/alarm_controller_api.py +1629 -0
- tb_rest_client/api/api_pe/asset_controller_api.py +1648 -0
- tb_rest_client/api/api_pe/asset_profile_controller_api.py +1029 -0
- tb_rest_client/api/api_pe/audit_log_controller_api.py +587 -0
- tb_rest_client/api/api_pe/auth_controller_api.py +882 -0
- tb_rest_client/api/api_pe/billing_endpoint_controller_api.py +868 -0
- tb_rest_client/api/api_pe/blob_entity_controller_api.py +554 -0
- tb_rest_client/api/api_pe/chirp_stack_integration_controller_api.py +838 -0
- tb_rest_client/api/api_pe/cloud_endpoint_controller_api.py +298 -0
- tb_rest_client/api/api_pe/component_descriptor_controller_api.py +340 -0
- tb_rest_client/api/api_pe/converter_controller_api.py +851 -0
- tb_rest_client/api/api_pe/converter_library_controller_api.py +915 -0
- tb_rest_client/api/api_pe/custom_menu_controller_api.py +1090 -0
- tb_rest_client/api/api_pe/custom_translation_controller_api.py +757 -0
- tb_rest_client/api/api_pe/customer_controller_api.py +1413 -0
- tb_rest_client/api/api_pe/dashboard_controller_api.py +2194 -0
- tb_rest_client/api/api_pe/device_api_controller_api.py +1212 -0
- tb_rest_client/api/api_pe/device_connectivity_controller_api.py +332 -0
- tb_rest_client/api/api_pe/device_controller_api.py +2468 -0
- tb_rest_client/api/api_pe/device_group_ota_package_controller_api.py +334 -0
- tb_rest_client/api/api_pe/device_profile_controller_api.py +1215 -0
- tb_rest_client/api/api_pe/domain_controller_api.py +549 -0
- tb_rest_client/api/api_pe/edge_controller_api.py +2638 -0
- tb_rest_client/api/api_pe/edge_event_controller_api.py +178 -0
- tb_rest_client/api/api_pe/entities_version_control_controller_api.py +1335 -0
- tb_rest_client/api/api_pe/entity_group_controller_api.py +3936 -0
- tb_rest_client/api/api_pe/entity_query_controller_api.py +542 -0
- tb_rest_client/api/api_pe/entity_relation_controller_api.py +1355 -0
- tb_rest_client/api/api_pe/entity_view_controller_api.py +1549 -0
- tb_rest_client/api/api_pe/event_controller_api.py +623 -0
- tb_rest_client/api/api_pe/group_permission_controller_api.py +720 -0
- tb_rest_client/api/api_pe/http_integration_controller_api.py +358 -0
- tb_rest_client/api/api_pe/image_controller_api.py +1505 -0
- tb_rest_client/api/api_pe/integration_controller_api.py +1592 -0
- tb_rest_client/api/api_pe/login_endpoint_api.py +142 -0
- tb_rest_client/api/api_pe/lwm_2m_controller_api.py +142 -0
- tb_rest_client/api/api_pe/mail_config_template_controller_api.py +134 -0
- tb_rest_client/api/api_pe/mobile_app_bundle_controller_api.py +562 -0
- tb_rest_client/api/api_pe/mobile_app_controller_api.py +549 -0
- tb_rest_client/api/api_pe/mobile_application_controller_api.py +581 -0
- tb_rest_client/api/api_pe/notification_controller_api.py +1476 -0
- tb_rest_client/api/api_pe/notification_rule_controller_api.py +447 -0
- tb_rest_client/api/api_pe/notification_target_controller_api.py +776 -0
- tb_rest_client/api/api_pe/notification_template_controller_api.py +550 -0
- tb_rest_client/api/api_pe/o_auth_2_config_template_controller_api.py +324 -0
- tb_rest_client/api/api_pe/o_auth_2_controller_api.py +816 -0
- tb_rest_client/api/api_pe/ota_package_controller_api.py +1010 -0
- tb_rest_client/api/api_pe/owner_controller_api.py +285 -0
- tb_rest_client/api/api_pe/qr_code_settings_controller_api.py +595 -0
- tb_rest_client/api/api_pe/queue_controller_api.py +558 -0
- tb_rest_client/api/api_pe/queue_stats_controller_api.py +339 -0
- tb_rest_client/api/api_pe/report_controller_api.py +245 -0
- tb_rest_client/api/api_pe/role_controller_api.py +546 -0
- tb_rest_client/api/api_pe/rpc_controller_api.py +257 -0
- tb_rest_client/api/api_pe/rpc_v_1_controller_api.py +253 -0
- tb_rest_client/api/api_pe/rpc_v_2_controller_api.py +570 -0
- tb_rest_client/api/api_pe/rule_chain_controller_api.py +2201 -0
- tb_rest_client/api/api_pe/rule_engine_controller_api.py +499 -0
- tb_rest_client/api/api_pe/scheduler_event_controller_api.py +1140 -0
- tb_rest_client/api/api_pe/self_registration_controller_api.py +587 -0
- tb_rest_client/api/api_pe/sig_fox_integration_controller_api.py +838 -0
- tb_rest_client/api/api_pe/sign_up_controller_api.py +882 -0
- tb_rest_client/api/api_pe/solution_controller_api.py +514 -0
- tb_rest_client/api/api_pe/subscription_controller_api.py +310 -0
- tb_rest_client/api/api_pe/t_mobile_iot_cdp_integration_controller_api.py +838 -0
- tb_rest_client/api/api_pe/tb_resource_controller_api.py +1379 -0
- tb_rest_client/api/api_pe/telemetry_controller_api.py +1808 -0
- tb_rest_client/api/api_pe/tenant_controller_api.py +750 -0
- tb_rest_client/api/api_pe/tenant_profile_controller_api.py +932 -0
- tb_rest_client/api/api_pe/thing_park_integration_controller_api.py +1741 -0
- tb_rest_client/api/api_pe/translation_controller_api.py +690 -0
- tb_rest_client/api/api_pe/two_factor_auth_config_controller_api.py +890 -0
- tb_rest_client/api/api_pe/two_factor_auth_controller_api.py +332 -0
- tb_rest_client/api/api_pe/ui_settings_controller_api.py +134 -0
- tb_rest_client/api/api_pe/usage_info_controller_api.py +132 -0
- tb_rest_client/api/api_pe/user_controller_api.py +3328 -0
- tb_rest_client/api/api_pe/user_permissions_controller_api.py +134 -0
- tb_rest_client/api/api_pe/white_labeling_controller_api.py +1056 -0
- tb_rest_client/api/api_pe/widget_type_controller_api.py +1410 -0
- tb_rest_client/api/api_pe/widgets_bundle_controller_api.py +847 -0
- tb_rest_client/api_client.py +705 -0
- tb_rest_client/configuration.py +234 -0
- tb_rest_client/models/__init__.py +14 -0
- tb_rest_client/models/models_ce/__init__.py +493 -0
- tb_rest_client/models/models_ce/account_configverification_code_body.py +98 -0
- tb_rest_client/models/models_ce/account_two_fa_settings.py +124 -0
- tb_rest_client/models/models_ce/activate_user_request.py +154 -0
- tb_rest_client/models/models_ce/admin_settings.py +232 -0
- tb_rest_client/models/models_ce/admin_settings_id.py +127 -0
- tb_rest_client/models/models_ce/affected_tenant_administrators_filter.py +104 -0
- tb_rest_client/models/models_ce/affected_user_filter.py +104 -0
- tb_rest_client/models/models_ce/alarm.py +707 -0
- tb_rest_client/models/models_ce/alarm_assignee.py +202 -0
- tb_rest_client/models/models_ce/alarm_assignment_notification_rule_trigger_config.py +216 -0
- tb_rest_client/models/models_ce/alarm_comment.py +292 -0
- tb_rest_client/models/models_ce/alarm_comment_id.py +127 -0
- tb_rest_client/models/models_ce/alarm_comment_info.py +376 -0
- tb_rest_client/models/models_ce/alarm_comment_notification_rule_trigger_config.py +248 -0
- tb_rest_client/models/models_ce/alarm_condition.py +154 -0
- tb_rest_client/models/models_ce/alarm_condition_filter.py +214 -0
- tb_rest_client/models/models_ce/alarm_condition_filter_key.py +160 -0
- tb_rest_client/models/models_ce/alarm_condition_spec.py +135 -0
- tb_rest_client/models/models_ce/alarm_count_query.py +372 -0
- tb_rest_client/models/models_ce/alarm_data.py +855 -0
- tb_rest_client/models/models_ce/alarm_data_page_link.py +450 -0
- tb_rest_client/models/models_ce/alarm_data_query.py +254 -0
- tb_rest_client/models/models_ce/alarm_id.py +162 -0
- tb_rest_client/models/models_ce/alarm_info.py +803 -0
- tb_rest_client/models/models_ce/alarm_notification_rule_trigger_config.py +223 -0
- tb_rest_client/models/models_ce/alarm_rule.py +206 -0
- tb_rest_client/models/models_ce/alarm_schedule.py +166 -0
- tb_rest_client/models/models_ce/all_users_filter.py +104 -0
- tb_rest_client/models/models_ce/allow_create_new_devices_device_profile_provision_configuration.py +104 -0
- tb_rest_client/models/models_ce/android_config.py +202 -0
- tb_rest_client/models/models_ce/any_time_schedule.py +104 -0
- tb_rest_client/models/models_ce/api_image_body.py +177 -0
- tb_rest_client/models/models_ce/api_usage_limit_notification_rule_trigger_config.py +170 -0
- tb_rest_client/models/models_ce/api_usage_state_filter.py +130 -0
- tb_rest_client/models/models_ce/asset.py +367 -0
- tb_rest_client/models/models_ce/asset_id.py +162 -0
- tb_rest_client/models/models_ce/asset_info.py +451 -0
- tb_rest_client/models/models_ce/asset_profile.py +422 -0
- tb_rest_client/models/models_ce/asset_profile_id.py +162 -0
- tb_rest_client/models/models_ce/asset_profile_info.py +232 -0
- tb_rest_client/models/models_ce/asset_search_query.py +180 -0
- tb_rest_client/models/models_ce/asset_search_query_filter.py +266 -0
- tb_rest_client/models/models_ce/asset_type_filter.py +182 -0
- tb_rest_client/models/models_ce/atomic_integer.py +228 -0
- tb_rest_client/models/models_ce/attribute_export_data.py +280 -0
- tb_rest_client/models/models_ce/attributes_entity_view.py +185 -0
- tb_rest_client/models/models_ce/audit_log.py +434 -0
- tb_rest_client/models/models_ce/audit_log_id.py +127 -0
- tb_rest_client/models/models_ce/auto_commit_settings.py +103 -0
- tb_rest_client/models/models_ce/auto_version_create_config.py +202 -0
- tb_rest_client/models/models_ce/aws_sns_sms_provider_configuration.py +188 -0
- tb_rest_client/models/models_ce/backup_code_two_fa_account_config.py +157 -0
- tb_rest_client/models/models_ce/backup_code_two_fa_provider_config.py +130 -0
- tb_rest_client/models/models_ce/boolean_filter_predicate.py +162 -0
- tb_rest_client/models/models_ce/branch_info.py +150 -0
- tb_rest_client/models/models_ce/bulk_import_request.py +150 -0
- tb_rest_client/models/models_ce/bulk_import_result_asset.py +202 -0
- tb_rest_client/models/models_ce/bulk_import_result_asset_created.py +254 -0
- tb_rest_client/models/models_ce/bulk_import_result_device.py +202 -0
- tb_rest_client/models/models_ce/bulk_import_result_edge.py +202 -0
- tb_rest_client/models/models_ce/button.py +286 -0
- tb_rest_client/models/models_ce/byte_array_resource.py +332 -0
- tb_rest_client/models/models_ce/byte_buffer.py +306 -0
- tb_rest_client/models/models_ce/change_password_request.py +154 -0
- tb_rest_client/models/models_ce/check_pre_provisioned_devices_device_profile_provision_configuration.py +104 -0
- tb_rest_client/models/models_ce/claim_request.py +124 -0
- tb_rest_client/models/models_ce/clear_rule.py +131 -0
- tb_rest_client/models/models_ce/client_attributes_querying_snmp_communication_config.py +156 -0
- tb_rest_client/models/models_ce/coap_device_profile_transport_configuration.py +156 -0
- tb_rest_client/models/models_ce/coap_device_transport_configuration.py +214 -0
- tb_rest_client/models/models_ce/coap_device_type_configuration.py +134 -0
- tb_rest_client/models/models_ce/column_mapping.py +156 -0
- tb_rest_client/models/models_ce/comparison_ts_value.py +150 -0
- tb_rest_client/models/models_ce/complex_filter_predicate.py +162 -0
- tb_rest_client/models/models_ce/complex_version_create_request.py +162 -0
- tb_rest_client/models/models_ce/component_descriptor.py +420 -0
- tb_rest_client/models/models_ce/component_descriptor_id.py +127 -0
- tb_rest_client/models/models_ce/config_submit_body.py +98 -0
- tb_rest_client/models/models_ce/custom_mobile_page.py +98 -0
- tb_rest_client/models/models_ce/custom_time_schedule.py +156 -0
- tb_rest_client/models/models_ce/custom_time_schedule_item.py +202 -0
- tb_rest_client/models/models_ce/customer.py +510 -0
- tb_rest_client/models/models_ce/customer_id.py +162 -0
- tb_rest_client/models/models_ce/customer_users_filter.py +131 -0
- tb_rest_client/models/models_ce/dashboard.py +399 -0
- tb_rest_client/models/models_ce/dashboard_id.py +162 -0
- tb_rest_client/models/models_ce/dashboard_info.py +373 -0
- tb_rest_client/models/models_ce/dashboard_page.py +98 -0
- tb_rest_client/models/models_ce/debug_converter_event_filter.py +351 -0
- tb_rest_client/models/models_ce/debug_integration_event_filter.py +325 -0
- tb_rest_client/models/models_ce/debug_rule_chain_event_filter.py +429 -0
- tb_rest_client/models/models_ce/debug_settings.py +182 -0
- tb_rest_client/models/models_ce/default_coap_device_type_configuration.py +130 -0
- tb_rest_client/models/models_ce/default_device_configuration.py +104 -0
- tb_rest_client/models/models_ce/default_device_profile_configuration.py +104 -0
- tb_rest_client/models/models_ce/default_device_profile_transport_configuration.py +104 -0
- tb_rest_client/models/models_ce/default_device_transport_configuration.py +104 -0
- tb_rest_client/models/models_ce/default_mobile_page.py +98 -0
- tb_rest_client/models/models_ce/default_rule_chain_create_request.py +127 -0
- tb_rest_client/models/models_ce/default_tenant_profile_configuration.py +1638 -0
- tb_rest_client/models/models_ce/deferred_result_entity_data_diff.py +150 -0
- tb_rest_client/models/models_ce/deferred_result_entity_data_info.py +150 -0
- tb_rest_client/models/models_ce/deferred_result_list_branch_info.py +150 -0
- tb_rest_client/models/models_ce/deferred_result_list_versioned_entity_info.py +150 -0
- tb_rest_client/models/models_ce/deferred_result_page_data_entity_version.py +150 -0
- tb_rest_client/models/models_ce/deferred_result_repository_settings.py +150 -0
- tb_rest_client/models/models_ce/deferred_result_response_entity.py +150 -0
- tb_rest_client/models/models_ce/deferred_result_void.py +150 -0
- tb_rest_client/models/models_ce/deferred_resultuuid.py +150 -0
- tb_rest_client/models/models_ce/delivery_method_notification_template.py +191 -0
- tb_rest_client/models/models_ce/device.py +446 -0
- tb_rest_client/models/models_ce/device_activity_notification_rule_trigger_config.py +190 -0
- tb_rest_client/models/models_ce/device_configuration.py +133 -0
- tb_rest_client/models/models_ce/device_credentials.py +293 -0
- tb_rest_client/models/models_ce/device_credentials_id.py +127 -0
- tb_rest_client/models/models_ce/device_data.py +154 -0
- tb_rest_client/models/models_ce/device_export_data.py +156 -0
- tb_rest_client/models/models_ce/device_id.py +162 -0
- tb_rest_client/models/models_ce/device_info.py +558 -0
- tb_rest_client/models/models_ce/device_profile.py +630 -0
- tb_rest_client/models/models_ce/device_profile_alarm.py +320 -0
- tb_rest_client/models/models_ce/device_profile_configuration.py +133 -0
- tb_rest_client/models/models_ce/device_profile_data.py +210 -0
- tb_rest_client/models/models_ce/device_profile_id.py +162 -0
- tb_rest_client/models/models_ce/device_profile_info.py +300 -0
- tb_rest_client/models/models_ce/device_profile_provision_configuration.py +162 -0
- tb_rest_client/models/models_ce/device_profile_transport_configuration.py +137 -0
- tb_rest_client/models/models_ce/device_search_query.py +180 -0
- tb_rest_client/models/models_ce/device_search_query_filter.py +266 -0
- tb_rest_client/models/models_ce/device_transport_configuration.py +137 -0
- tb_rest_client/models/models_ce/device_type_filter.py +182 -0
- tb_rest_client/models/models_ce/disabled_device_profile_provision_configuration.py +104 -0
- tb_rest_client/models/models_ce/domain.py +247 -0
- tb_rest_client/models/models_ce/domain_id.py +146 -0
- tb_rest_client/models/models_ce/domain_info.py +275 -0
- tb_rest_client/models/models_ce/duration_alarm_condition_spec.py +162 -0
- tb_rest_client/models/models_ce/dynamic_value_boolean.py +182 -0
- tb_rest_client/models/models_ce/dynamic_value_double.py +182 -0
- tb_rest_client/models/models_ce/dynamic_value_integer.py +182 -0
- tb_rest_client/models/models_ce/dynamic_value_long.py +182 -0
- tb_rest_client/models/models_ce/dynamic_value_string.py +182 -0
- tb_rest_client/models/models_ce/edge.py +426 -0
- tb_rest_client/models/models_ce/edge_communication_failure_notification_rule_trigger_config.py +130 -0
- tb_rest_client/models/models_ce/edge_connection_notification_rule_trigger_config.py +163 -0
- tb_rest_client/models/models_ce/edge_event.py +370 -0
- tb_rest_client/models/models_ce/edge_event_id.py +127 -0
- tb_rest_client/models/models_ce/edge_id.py +162 -0
- tb_rest_client/models/models_ce/edge_info.py +478 -0
- tb_rest_client/models/models_ce/edge_install_instructions.py +126 -0
- tb_rest_client/models/models_ce/edge_instructions.py +126 -0
- tb_rest_client/models/models_ce/edge_search_query.py +180 -0
- tb_rest_client/models/models_ce/edge_search_query_filter.py +266 -0
- tb_rest_client/models/models_ce/edge_type_filter.py +182 -0
- tb_rest_client/models/models_ce/efento_coap_device_type_configuration.py +104 -0
- tb_rest_client/models/models_ce/email_delivery_method_notification_template.py +131 -0
- tb_rest_client/models/models_ce/email_two_fa_account_config.py +131 -0
- tb_rest_client/models/models_ce/email_two_fa_provider_config.py +130 -0
- tb_rest_client/models/models_ce/entities_limit_notification_rule_trigger_config.py +163 -0
- tb_rest_client/models/models_ce/entity_action_notification_rule_trigger_config.py +215 -0
- tb_rest_client/models/models_ce/entity_count_query.py +150 -0
- tb_rest_client/models/models_ce/entity_data.py +202 -0
- tb_rest_client/models/models_ce/entity_data_diff.py +150 -0
- tb_rest_client/models/models_ce/entity_data_info.py +176 -0
- tb_rest_client/models/models_ce/entity_data_page_link.py +228 -0
- tb_rest_client/models/models_ce/entity_data_query.py +228 -0
- tb_rest_client/models/models_ce/entity_data_sort_order.py +156 -0
- tb_rest_client/models/models_ce/entity_export_data_object.py +219 -0
- tb_rest_client/models/models_ce/entity_filter.py +134 -0
- tb_rest_client/models/models_ce/entity_id.py +160 -0
- tb_rest_client/models/models_ce/entity_id_clearstart_timeend_time_body.py +98 -0
- tb_rest_client/models/models_ce/entity_info.py +152 -0
- tb_rest_client/models/models_ce/entity_key.py +156 -0
- tb_rest_client/models/models_ce/entity_list_filter.py +162 -0
- tb_rest_client/models/models_ce/entity_load_error.py +202 -0
- tb_rest_client/models/models_ce/entity_name_filter.py +162 -0
- tb_rest_client/models/models_ce/entity_relation.py +264 -0
- tb_rest_client/models/models_ce/entity_relation_info.py +320 -0
- tb_rest_client/models/models_ce/entity_relations_query.py +152 -0
- tb_rest_client/models/models_ce/entity_subtype.py +182 -0
- tb_rest_client/models/models_ce/entity_type_entity_idtenant_idpage_sizepagetext_searchsort_propertysort_orderstart_timeend_time_body.py +98 -0
- tb_rest_client/models/models_ce/entity_type_filter.py +136 -0
- tb_rest_client/models/models_ce/entity_type_load_result.py +208 -0
- tb_rest_client/models/models_ce/entity_type_version_create_config.py +260 -0
- tb_rest_client/models/models_ce/entity_type_version_load_config.py +228 -0
- tb_rest_client/models/models_ce/entity_type_version_load_request.py +156 -0
- tb_rest_client/models/models_ce/entity_version.py +202 -0
- tb_rest_client/models/models_ce/entity_view.py +423 -0
- tb_rest_client/models/models_ce/entity_view_id.py +162 -0
- tb_rest_client/models/models_ce/entity_view_info.py +479 -0
- tb_rest_client/models/models_ce/entity_view_search_query.py +180 -0
- tb_rest_client/models/models_ce/entity_view_search_query_filter.py +266 -0
- tb_rest_client/models/models_ce/entity_view_type_filter.py +182 -0
- tb_rest_client/models/models_ce/error_event_filter.py +188 -0
- tb_rest_client/models/models_ce/escalated_notification_rule_recipients_config.py +131 -0
- tb_rest_client/models/models_ce/event.py +286 -0
- tb_rest_client/models/models_ce/event_filter.py +171 -0
- tb_rest_client/models/models_ce/event_id.py +127 -0
- tb_rest_client/models/models_ce/event_info.py +286 -0
- tb_rest_client/models/models_ce/features_info.py +228 -0
- tb_rest_client/models/models_ce/file.py +488 -0
- tb_rest_client/models/models_ce/filter_predicate_value_boolean.py +176 -0
- tb_rest_client/models/models_ce/filter_predicate_value_double.py +176 -0
- tb_rest_client/models/models_ce/filter_predicate_value_integer.py +176 -0
- tb_rest_client/models/models_ce/filter_predicate_value_long.py +176 -0
- tb_rest_client/models/models_ce/filter_predicate_value_string.py +176 -0
- tb_rest_client/models/models_ce/has_id_object.py +124 -0
- tb_rest_client/models/models_ce/home_dashboard.py +427 -0
- tb_rest_client/models/models_ce/home_dashboard_info.py +152 -0
- tb_rest_client/models/models_ce/image_export_data.py +332 -0
- tb_rest_client/models/models_ce/inline_response200.py +99 -0
- tb_rest_client/models/models_ce/input_stream.py +98 -0
- tb_rest_client/models/models_ce/ios_config.py +176 -0
- tb_rest_client/models/models_ce/json_node.py +98 -0
- tb_rest_client/models/models_ce/json_transport_payload_configuration.py +104 -0
- tb_rest_client/models/models_ce/jwt_pair.py +186 -0
- tb_rest_client/models/models_ce/jwt_settings.py +210 -0
- tb_rest_client/models/models_ce/key_filter.py +182 -0
- tb_rest_client/models/models_ce/key_filter_predicate.py +136 -0
- tb_rest_client/models/models_ce/last_visited_dashboard_info.py +210 -0
- tb_rest_client/models/models_ce/life_cycle_event_filter.py +222 -0
- tb_rest_client/models/models_ce/login_mobile_info.py +176 -0
- tb_rest_client/models/models_ce/login_request.py +156 -0
- tb_rest_client/models/models_ce/login_response.py +156 -0
- tb_rest_client/models/models_ce/lw_m2_m_bootstrap_server_credential.py +136 -0
- tb_rest_client/models/models_ce/lw_m2_m_server_security_config_default.py +490 -0
- tb_rest_client/models/models_ce/lw_m2m_instance.py +154 -0
- tb_rest_client/models/models_ce/lw_m2m_object.py +266 -0
- tb_rest_client/models/models_ce/lw_m2m_resource_observe.py +266 -0
- tb_rest_client/models/models_ce/lw_m2m_version.py +124 -0
- tb_rest_client/models/models_ce/lwm2m_device_profile_transport_configuration.py +208 -0
- tb_rest_client/models/models_ce/lwm2m_device_transport_configuration.py +214 -0
- tb_rest_client/models/models_ce/mapping.py +202 -0
- tb_rest_client/models/models_ce/microsoft_teams_delivery_method_notification_template.py +182 -0
- tb_rest_client/models/models_ce/microsoft_teams_notification_target_config.py +314 -0
- tb_rest_client/models/models_ce/mobile_app.py +290 -0
- tb_rest_client/models/models_ce/mobile_app_bundle.py +375 -0
- tb_rest_client/models/models_ce/mobile_app_bundle_id.py +154 -0
- tb_rest_client/models/models_ce/mobile_app_bundle_info.py +487 -0
- tb_rest_client/models/models_ce/mobile_app_delivery_method_notification_template.py +157 -0
- tb_rest_client/models/models_ce/mobile_app_id.py +160 -0
- tb_rest_client/models/models_ce/mobile_app_info.py +318 -0
- tb_rest_client/models/models_ce/mobile_app_notification_delivery_method_config.py +157 -0
- tb_rest_client/models/models_ce/mobile_app_settings.py +352 -0
- tb_rest_client/models/models_ce/mobile_app_settings_id.py +127 -0
- tb_rest_client/models/models_ce/mobile_app_version_info.py +210 -0
- tb_rest_client/models/models_ce/mobile_layout_config.py +126 -0
- tb_rest_client/models/models_ce/mobile_page.py +158 -0
- tb_rest_client/models/models_ce/mobile_session_info.py +124 -0
- tb_rest_client/models/models_ce/mqtt_device_profile_transport_configuration.py +286 -0
- tb_rest_client/models/models_ce/mqtt_device_transport_configuration.py +104 -0
- tb_rest_client/models/models_ce/new_platform_version_notification_rule_trigger_config.py +104 -0
- tb_rest_client/models/models_ce/no_sec_lw_m2_m_bootstrap_server_credential.py +440 -0
- tb_rest_client/models/models_ce/node_connection_info.py +185 -0
- tb_rest_client/models/models_ce/notification.py +402 -0
- tb_rest_client/models/models_ce/notification_delivery_method_config.py +134 -0
- tb_rest_client/models/models_ce/notification_id.py +162 -0
- tb_rest_client/models/models_ce/notification_info.py +185 -0
- tb_rest_client/models/models_ce/notification_pref.py +151 -0
- tb_rest_client/models/models_ce/notification_request.py +417 -0
- tb_rest_client/models/models_ce/notification_request_config.py +124 -0
- tb_rest_client/models/models_ce/notification_request_id.py +162 -0
- tb_rest_client/models/models_ce/notification_request_info.py +476 -0
- tb_rest_client/models/models_ce/notification_request_preview.py +202 -0
- tb_rest_client/models/models_ce/notification_request_stats.py +202 -0
- tb_rest_client/models/models_ce/notification_rule.py +369 -0
- tb_rest_client/models/models_ce/notification_rule_config.py +124 -0
- tb_rest_client/models/models_ce/notification_rule_id.py +162 -0
- tb_rest_client/models/models_ce/notification_rule_info.py +428 -0
- tb_rest_client/models/models_ce/notification_rule_recipients_config.py +139 -0
- tb_rest_client/models/models_ce/notification_rule_trigger_config.py +178 -0
- tb_rest_client/models/models_ce/notification_settings.py +125 -0
- tb_rest_client/models/models_ce/notification_target.py +230 -0
- tb_rest_client/models/models_ce/notification_target_config.py +148 -0
- tb_rest_client/models/models_ce/notification_target_id.py +162 -0
- tb_rest_client/models/models_ce/notification_template.py +263 -0
- tb_rest_client/models/models_ce/notification_template_config.py +125 -0
- tb_rest_client/models/models_ce/notification_template_id.py +162 -0
- tb_rest_client/models/models_ce/numeric_filter_predicate.py +162 -0
- tb_rest_client/models/models_ce/o_auth2_basic_mapper_config.py +329 -0
- tb_rest_client/models/models_ce/o_auth2_client.py +636 -0
- tb_rest_client/models/models_ce/o_auth2_client_id.py +160 -0
- tb_rest_client/models/models_ce/o_auth2_client_info.py +267 -0
- tb_rest_client/models/models_ce/o_auth2_client_login_info.py +182 -0
- tb_rest_client/models/models_ce/o_auth2_client_registration_template.py +565 -0
- tb_rest_client/models/models_ce/o_auth2_client_registration_template_id.py +127 -0
- tb_rest_client/models/models_ce/o_auth2_custom_mapper_config.py +202 -0
- tb_rest_client/models/models_ce/o_auth2_domain_info.py +162 -0
- tb_rest_client/models/models_ce/o_auth2_info.py +183 -0
- tb_rest_client/models/models_ce/o_auth2_mapper_config.py +241 -0
- tb_rest_client/models/models_ce/o_auth2_mobile_info.py +156 -0
- tb_rest_client/models/models_ce/o_auth2_params_info.py +185 -0
- tb_rest_client/models/models_ce/o_auth2_registration_info.py +502 -0
- tb_rest_client/models/models_ce/object_attributes.py +410 -0
- tb_rest_client/models/models_ce/object_node.py +98 -0
- tb_rest_client/models/models_ce/one_of_alarm_condition_filter_predicate.py +98 -0
- tb_rest_client/models/models_ce/one_of_alarm_condition_spec.py +98 -0
- tb_rest_client/models/models_ce/one_of_alarm_count_query_entity_filter.py +98 -0
- tb_rest_client/models/models_ce/one_of_alarm_data_query_entity_filter.py +98 -0
- tb_rest_client/models/models_ce/one_of_alarm_rule_schedule.py +98 -0
- tb_rest_client/models/models_ce/one_of_device_data_configuration.py +98 -0
- tb_rest_client/models/models_ce/one_of_device_data_transport_configuration.py +98 -0
- tb_rest_client/models/models_ce/one_of_device_profile_data_configuration.py +98 -0
- tb_rest_client/models/models_ce/one_of_device_profile_data_provision_configuration.py +98 -0
- tb_rest_client/models/models_ce/one_of_device_profile_data_transport_configuration.py +98 -0
- tb_rest_client/models/models_ce/one_of_entity_count_query_entity_filter.py +98 -0
- tb_rest_client/models/models_ce/one_of_entity_data_diff_current_version.py +98 -0
- tb_rest_client/models/models_ce/one_of_entity_data_diff_other_version.py +98 -0
- tb_rest_client/models/models_ce/one_of_entity_data_query_entity_filter.py +98 -0
- tb_rest_client/models/models_ce/one_of_key_filter_predicate.py +98 -0
- tb_rest_client/models/models_ce/one_of_notification_rule_info_recipients_config.py +98 -0
- tb_rest_client/models/models_ce/one_of_notification_rule_info_trigger_config.py +98 -0
- tb_rest_client/models/models_ce/one_of_notification_rule_recipients_config.py +98 -0
- tb_rest_client/models/models_ce/one_of_notification_rule_trigger_config.py +98 -0
- tb_rest_client/models/models_ce/one_of_notification_target_configuration.py +98 -0
- tb_rest_client/models/models_ce/one_of_platform_two_fa_settings_providers_items.py +98 -0
- tb_rest_client/models/models_ce/one_of_tenant_profile_data_configuration.py +98 -0
- tb_rest_client/models/models_ce/one_of_test_sms_request_provider_configuration.py +98 -0
- tb_rest_client/models/models_ce/originator_entity_owner_users_filter.py +104 -0
- tb_rest_client/models/models_ce/ota_package.py +576 -0
- tb_rest_client/models/models_ce/ota_package_data.py +306 -0
- tb_rest_client/models/models_ce/ota_package_id.py +162 -0
- tb_rest_client/models/models_ce/ota_package_info.py +550 -0
- tb_rest_client/models/models_ce/ota_package_ota_package_idchecksumchecksum_algorithm_body.py +127 -0
- tb_rest_client/models/models_ce/other_configuration.py +364 -0
- tb_rest_client/models/models_ce/page_data_alarm_comment_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_alarm_data.py +210 -0
- tb_rest_client/models/models_ce/page_data_alarm_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_asset.py +210 -0
- tb_rest_client/models/models_ce/page_data_asset_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_asset_profile.py +210 -0
- tb_rest_client/models/models_ce/page_data_asset_profile_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_audit_log.py +210 -0
- tb_rest_client/models/models_ce/page_data_customer.py +210 -0
- tb_rest_client/models/models_ce/page_data_dashboard_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_device.py +210 -0
- tb_rest_client/models/models_ce/page_data_device_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_device_profile.py +210 -0
- tb_rest_client/models/models_ce/page_data_device_profile_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_domain_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_edge.py +210 -0
- tb_rest_client/models/models_ce/page_data_edge_event.py +210 -0
- tb_rest_client/models/models_ce/page_data_edge_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_entity_data.py +210 -0
- tb_rest_client/models/models_ce/page_data_entity_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_entity_subtype.py +210 -0
- tb_rest_client/models/models_ce/page_data_entity_version.py +210 -0
- tb_rest_client/models/models_ce/page_data_entity_view.py +210 -0
- tb_rest_client/models/models_ce/page_data_entity_view_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_event.py +210 -0
- tb_rest_client/models/models_ce/page_data_event_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_mobile_app.py +210 -0
- tb_rest_client/models/models_ce/page_data_mobile_app_bundle_info.py +196 -0
- tb_rest_client/models/models_ce/page_data_mobile_app_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_notification.py +210 -0
- tb_rest_client/models/models_ce/page_data_notification_request_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_notification_rule_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_notification_target.py +210 -0
- tb_rest_client/models/models_ce/page_data_notification_template.py +210 -0
- tb_rest_client/models/models_ce/page_data_o_auth2_client_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_ota_package_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_queue.py +210 -0
- tb_rest_client/models/models_ce/page_data_queue_stats.py +210 -0
- tb_rest_client/models/models_ce/page_data_rpc.py +202 -0
- tb_rest_client/models/models_ce/page_data_rule_chain.py +210 -0
- tb_rest_client/models/models_ce/page_data_tb_resource_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_tenant.py +210 -0
- tb_rest_client/models/models_ce/page_data_tenant_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_tenant_profile.py +210 -0
- tb_rest_client/models/models_ce/page_data_user.py +210 -0
- tb_rest_client/models/models_ce/page_data_user_email_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_widget_type_info.py +210 -0
- tb_rest_client/models/models_ce/page_data_widgets_bundle.py +210 -0
- tb_rest_client/models/models_ce/platform_two_fa_settings.py +231 -0
- tb_rest_client/models/models_ce/platform_users_notification_target_config.py +131 -0
- tb_rest_client/models/models_ce/power_saving_configuration.py +208 -0
- tb_rest_client/models/models_ce/processing_strategy.py +234 -0
- tb_rest_client/models/models_ce/proto_transport_payload_configuration.py +260 -0
- tb_rest_client/models/models_ce/psklw_m2_m_bootstrap_server_credential.py +440 -0
- tb_rest_client/models/models_ce/qr_code_config.py +234 -0
- tb_rest_client/models/models_ce/qr_code_settings.py +399 -0
- tb_rest_client/models/models_ce/qr_code_settings_id.py +127 -0
- tb_rest_client/models/models_ce/queue.py +410 -0
- tb_rest_client/models/models_ce/queue_id.py +162 -0
- tb_rest_client/models/models_ce/queue_stats.py +228 -0
- tb_rest_client/models/models_ce/queue_stats_id.py +162 -0
- tb_rest_client/models/models_ce/rate_limits_notification_rule_trigger_config.py +137 -0
- tb_rest_client/models/models_ce/relation_entity_type_filter.py +189 -0
- tb_rest_client/models/models_ce/relations_query_filter.py +350 -0
- tb_rest_client/models/models_ce/relations_search_parameters.py +284 -0
- tb_rest_client/models/models_ce/repeating_alarm_condition_spec.py +130 -0
- tb_rest_client/models/models_ce/repository_settings.py +390 -0
- tb_rest_client/models/models_ce/repository_settings_info.py +150 -0
- tb_rest_client/models/models_ce/reset_password_email_request.py +126 -0
- tb_rest_client/models/models_ce/reset_password_request.py +154 -0
- tb_rest_client/models/models_ce/resource.py +306 -0
- tb_rest_client/models/models_ce/resource_export_data.py +384 -0
- tb_rest_client/models/models_ce/response_entity.py +182 -0
- tb_rest_client/models/models_ce/rpc.py +344 -0
- tb_rest_client/models/models_ce/rpc_id.py +162 -0
- tb_rest_client/models/models_ce/rpklw_m2_m_bootstrap_server_credential.py +440 -0
- tb_rest_client/models/models_ce/rule_chain.py +402 -0
- tb_rest_client/models/models_ce/rule_chain_connection_info.py +210 -0
- tb_rest_client/models/models_ce/rule_chain_data.py +156 -0
- tb_rest_client/models/models_ce/rule_chain_debug_event_filter.py +240 -0
- tb_rest_client/models/models_ce/rule_chain_export_data.py +156 -0
- tb_rest_client/models/models_ce/rule_chain_id.py +162 -0
- tb_rest_client/models/models_ce/rule_chain_import_result.py +202 -0
- tb_rest_client/models/models_ce/rule_chain_meta_data.py +269 -0
- tb_rest_client/models/models_ce/rule_chain_output_labels_usage.py +239 -0
- tb_rest_client/models/models_ce/rule_engine_component_lifecycle_event_notification_rule_trigger_config.py +274 -0
- tb_rest_client/models/models_ce/rule_node.py +424 -0
- tb_rest_client/models/models_ce/rule_node_debug_event_filter.py +448 -0
- tb_rest_client/models/models_ce/rule_node_id.py +162 -0
- tb_rest_client/models/models_ce/save_device_with_credentials_request.py +152 -0
- tb_rest_client/models/models_ce/save_ota_package_info_request.py +578 -0
- tb_rest_client/models/models_ce/security_settings.py +266 -0
- tb_rest_client/models/models_ce/server_security_config.py +332 -0
- tb_rest_client/models/models_ce/shared_attributes_setting_snmp_communication_config.py +130 -0
- tb_rest_client/models/models_ce/short_customer_info.py +204 -0
- tb_rest_client/models/models_ce/sign_up_request.py +294 -0
- tb_rest_client/models/models_ce/simple_alarm_condition_spec.py +104 -0
- tb_rest_client/models/models_ce/single_entity_filter.py +130 -0
- tb_rest_client/models/models_ce/single_entity_version_create_request.py +156 -0
- tb_rest_client/models/models_ce/single_entity_version_load_request.py +156 -0
- tb_rest_client/models/models_ce/slack_conversation.py +263 -0
- tb_rest_client/models/models_ce/slack_delivery_method_notification_template.py +104 -0
- tb_rest_client/models/models_ce/slack_notification_delivery_method_config.py +131 -0
- tb_rest_client/models/models_ce/slack_notification_target_config.py +163 -0
- tb_rest_client/models/models_ce/smpp_sms_provider_configuration.py +541 -0
- tb_rest_client/models/models_ce/sms_delivery_method_notification_template.py +104 -0
- tb_rest_client/models/models_ce/sms_provider_configuration.py +135 -0
- tb_rest_client/models/models_ce/sms_two_fa_account_config.py +131 -0
- tb_rest_client/models/models_ce/sms_two_fa_provider_config.py +157 -0
- tb_rest_client/models/models_ce/snmp_communication_config.py +142 -0
- tb_rest_client/models/models_ce/snmp_device_profile_transport_configuration.py +182 -0
- tb_rest_client/models/models_ce/snmp_device_transport_configuration.py +434 -0
- tb_rest_client/models/models_ce/snmp_mapping.py +182 -0
- tb_rest_client/models/models_ce/specific_time_schedule.py +208 -0
- tb_rest_client/models/models_ce/starred_dashboard_info.py +182 -0
- tb_rest_client/models/models_ce/statistics_event_filter.py +244 -0
- tb_rest_client/models/models_ce/store_info.py +176 -0
- tb_rest_client/models/models_ce/string_filter_predicate.py +188 -0
- tb_rest_client/models/models_ce/submit_strategy.py +156 -0
- tb_rest_client/models/models_ce/system_administrators_filter.py +104 -0
- tb_rest_client/models/models_ce/system_info.py +152 -0
- tb_rest_client/models/models_ce/system_info_data.py +322 -0
- tb_rest_client/models/models_ce/task_processing_failure_notification_rule_trigger_config.py +104 -0
- tb_rest_client/models/models_ce/tb_image_delete_result.py +150 -0
- tb_rest_client/models/models_ce/tb_resource.py +568 -0
- tb_rest_client/models/models_ce/tb_resource_id.py +162 -0
- tb_rest_client/models/models_ce/tb_resource_info.py +514 -0
- tb_rest_client/models/models_ce/telemetry_entity_view.py +154 -0
- tb_rest_client/models/models_ce/telemetry_mapping_configuration.py +228 -0
- tb_rest_client/models/models_ce/telemetry_querying_snmp_communication_config.py +156 -0
- tb_rest_client/models/models_ce/tenant.py +539 -0
- tb_rest_client/models/models_ce/tenant_administrators_filter.py +156 -0
- tb_rest_client/models/models_ce/tenant_id.py +162 -0
- tb_rest_client/models/models_ce/tenant_info.py +567 -0
- tb_rest_client/models/models_ce/tenant_profile.py +288 -0
- tb_rest_client/models/models_ce/tenant_profile_configuration.py +133 -0
- tb_rest_client/models/models_ce/tenant_profile_data.py +154 -0
- tb_rest_client/models/models_ce/tenant_profile_id.py +162 -0
- tb_rest_client/models/models_ce/tenant_profile_queue_configuration.py +332 -0
- tb_rest_client/models/models_ce/test_sms_request.py +182 -0
- tb_rest_client/models/models_ce/thingsboard_credentials_expired_response.py +238 -0
- tb_rest_client/models/models_ce/thingsboard_error_response.py +210 -0
- tb_rest_client/models/models_ce/to_device_rpc_request_snmp_communication_config.py +130 -0
- tb_rest_client/models/models_ce/to_server_rpc_request_snmp_communication_config.py +130 -0
- tb_rest_client/models/models_ce/totp_two_fa_account_config.py +131 -0
- tb_rest_client/models/models_ce/totp_two_fa_provider_config.py +131 -0
- tb_rest_client/models/models_ce/transport_payload_type_configuration.py +134 -0
- tb_rest_client/models/models_ce/ts_value.py +176 -0
- tb_rest_client/models/models_ce/twilio_sms_provider_configuration.py +188 -0
- tb_rest_client/models/models_ce/two_fa_account_config.py +162 -0
- tb_rest_client/models/models_ce/two_fa_account_config_update_request.py +124 -0
- tb_rest_client/models/models_ce/two_fa_provider_config.py +136 -0
- tb_rest_client/models/models_ce/two_fa_provider_info.py +234 -0
- tb_rest_client/models/models_ce/type_key_body.py +125 -0
- tb_rest_client/models/models_ce/update_message.py +266 -0
- tb_rest_client/models/models_ce/usage_info.py +696 -0
- tb_rest_client/models/models_ce/user.py +432 -0
- tb_rest_client/models/models_ce/user_activation_link.py +150 -0
- tb_rest_client/models/models_ce/user_dashboards_info.py +154 -0
- tb_rest_client/models/models_ce/user_email_info.py +208 -0
- tb_rest_client/models/models_ce/user_id.py +162 -0
- tb_rest_client/models/models_ce/user_list_filter.py +131 -0
- tb_rest_client/models/models_ce/user_mobile_info.py +228 -0
- tb_rest_client/models/models_ce/user_notification_settings.py +125 -0
- tb_rest_client/models/models_ce/user_password_policy.py +378 -0
- tb_rest_client/models/models_ce/users_filter.py +140 -0
- tb_rest_client/models/models_ce/vc_entity_body.py +98 -0
- tb_rest_client/models/models_ce/vc_version_body.py +98 -0
- tb_rest_client/models/models_ce/version.py +98 -0
- tb_rest_client/models/models_ce/version_create_config.py +176 -0
- tb_rest_client/models/models_ce/version_create_request.py +191 -0
- tb_rest_client/models/models_ce/version_creation_result.py +254 -0
- tb_rest_client/models/models_ce/version_load_config.py +176 -0
- tb_rest_client/models/models_ce/version_load_request.py +165 -0
- tb_rest_client/models/models_ce/version_load_result.py +176 -0
- tb_rest_client/models/models_ce/versioned_entity_info.py +124 -0
- tb_rest_client/models/models_ce/web_delivery_method_notification_template.py +157 -0
- tb_rest_client/models/models_ce/web_view_page.py +98 -0
- tb_rest_client/models/models_ce/widget_type.py +342 -0
- tb_rest_client/models/models_ce/widget_type_details.py +426 -0
- tb_rest_client/models/models_ce/widget_type_export_data.py +130 -0
- tb_rest_client/models/models_ce/widget_type_id.py +162 -0
- tb_rest_client/models/models_ce/widget_type_info.py +428 -0
- tb_rest_client/models/models_ce/widgets_bundle.py +400 -0
- tb_rest_client/models/models_ce/widgets_bundle_export_data.py +182 -0
- tb_rest_client/models/models_ce/widgets_bundle_id.py +162 -0
- tb_rest_client/models/models_ce/x509_certificate_chain_provision_configuration.py +156 -0
- tb_rest_client/models/models_ce/x509_lw_m2_m_bootstrap_server_credential.py +440 -0
- tb_rest_client/models/models_pe/__init__.py +413 -0
- tb_rest_client/models/models_pe/account_two_fa_settings.py +124 -0
- tb_rest_client/models/models_pe/activate_user_request.py +154 -0
- tb_rest_client/models/models_pe/admin_settings.py +232 -0
- tb_rest_client/models/models_pe/admin_settings_id.py +127 -0
- tb_rest_client/models/models_pe/affected_tenant_administrators_filter.py +104 -0
- tb_rest_client/models/models_pe/affected_user_filter.py +104 -0
- tb_rest_client/models/models_pe/alarm.py +749 -0
- tb_rest_client/models/models_pe/alarm_assignee.py +202 -0
- tb_rest_client/models/models_pe/alarm_assignment_notification_rule_trigger_config.py +230 -0
- tb_rest_client/models/models_pe/alarm_comment.py +292 -0
- tb_rest_client/models/models_pe/alarm_comment_id.py +127 -0
- tb_rest_client/models/models_pe/alarm_comment_info.py +376 -0
- tb_rest_client/models/models_pe/alarm_comment_notification_rule_trigger_config.py +248 -0
- tb_rest_client/models/models_pe/alarm_condition.py +154 -0
- tb_rest_client/models/models_pe/alarm_condition_filter.py +214 -0
- tb_rest_client/models/models_pe/alarm_condition_filter_key.py +160 -0
- tb_rest_client/models/models_pe/alarm_condition_spec.py +135 -0
- tb_rest_client/models/models_pe/alarm_count_query.py +372 -0
- tb_rest_client/models/models_pe/alarm_data.py +883 -0
- tb_rest_client/models/models_pe/alarm_data_page_link.py +450 -0
- tb_rest_client/models/models_pe/alarm_data_query.py +254 -0
- tb_rest_client/models/models_pe/alarm_id.py +162 -0
- tb_rest_client/models/models_pe/alarm_info.py +831 -0
- tb_rest_client/models/models_pe/alarm_notification_rule_trigger_config.py +223 -0
- tb_rest_client/models/models_pe/alarm_rule.py +206 -0
- tb_rest_client/models/models_pe/alarm_schedule.py +152 -0
- tb_rest_client/models/models_pe/all_users_filter.py +104 -0
- tb_rest_client/models/models_pe/allow_create_new_devices_device_profile_provision_configuration.py +104 -0
- tb_rest_client/models/models_pe/allowed_permissions_info.py +318 -0
- tb_rest_client/models/models_pe/any_time_schedule.py +104 -0
- tb_rest_client/models/models_pe/api_usage_limit_notification_rule_trigger_config.py +170 -0
- tb_rest_client/models/models_pe/api_usage_state_filter.py +130 -0
- tb_rest_client/models/models_pe/array_node.py +98 -0
- tb_rest_client/models/models_pe/asset.py +393 -0
- tb_rest_client/models/models_pe/asset_id.py +162 -0
- tb_rest_client/models/models_pe/asset_info.py +449 -0
- tb_rest_client/models/models_pe/asset_profile_id.py +162 -0
- tb_rest_client/models/models_pe/asset_search_query.py +180 -0
- tb_rest_client/models/models_pe/asset_search_query_filter.py +266 -0
- tb_rest_client/models/models_pe/asset_type_filter.py +182 -0
- tb_rest_client/models/models_pe/atomic_integer.py +228 -0
- tb_rest_client/models/models_pe/attribute_export_data.py +280 -0
- tb_rest_client/models/models_pe/attributes_entity_view.py +185 -0
- tb_rest_client/models/models_pe/audit_log.py +434 -0
- tb_rest_client/models/models_pe/audit_log_id.py +127 -0
- tb_rest_client/models/models_pe/auto_version_create_config.py +254 -0
- tb_rest_client/models/models_pe/aws_sns_sms_provider_configuration.py +188 -0
- tb_rest_client/models/models_pe/backup_code_two_fa_account_config.py +157 -0
- tb_rest_client/models/models_pe/backup_code_two_fa_provider_config.py +130 -0
- tb_rest_client/models/models_pe/blob_entity_id.py +162 -0
- tb_rest_client/models/models_pe/blob_entity_info.py +346 -0
- tb_rest_client/models/models_pe/blob_entity_with_customer_info.py +402 -0
- tb_rest_client/models/models_pe/boolean_filter_predicate.py +162 -0
- tb_rest_client/models/models_pe/branch_info.py +150 -0
- tb_rest_client/models/models_pe/bulk_import_request.py +202 -0
- tb_rest_client/models/models_pe/bulk_import_result_asset.py +202 -0
- tb_rest_client/models/models_pe/bulk_import_result_device.py +202 -0
- tb_rest_client/models/models_pe/bulk_import_result_edge.py +202 -0
- tb_rest_client/models/models_pe/byte_buffer.py +306 -0
- tb_rest_client/models/models_pe/captcha_params.py +132 -0
- tb_rest_client/models/models_pe/change_password_request.py +154 -0
- tb_rest_client/models/models_pe/check_pre_provisioned_devices_device_profile_provision_configuration.py +104 -0
- tb_rest_client/models/models_pe/claim_request.py +124 -0
- tb_rest_client/models/models_pe/clear_rule.py +131 -0
- tb_rest_client/models/models_pe/client_attributes_querying_snmp_communication_config.py +156 -0
- tb_rest_client/models/models_pe/coap_device_profile_transport_configuration.py +156 -0
- tb_rest_client/models/models_pe/coap_device_transport_configuration.py +214 -0
- tb_rest_client/models/models_pe/coap_device_type_configuration.py +134 -0
- tb_rest_client/models/models_pe/column_mapping.py +156 -0
- tb_rest_client/models/models_pe/comparison_ts_value.py +150 -0
- tb_rest_client/models/models_pe/complex_filter_predicate.py +162 -0
- tb_rest_client/models/models_pe/complex_version_create_request.py +162 -0
- tb_rest_client/models/models_pe/component_descriptor.py +420 -0
- tb_rest_client/models/models_pe/component_descriptor_id.py +127 -0
- tb_rest_client/models/models_pe/contact_based_object.py +410 -0
- tb_rest_client/models/models_pe/converter.py +376 -0
- tb_rest_client/models/models_pe/converter_id.py +162 -0
- tb_rest_client/models/models_pe/converters_info.py +136 -0
- tb_rest_client/models/models_pe/custom_menu.py +327 -0
- tb_rest_client/models/models_pe/custom_menu_config.py +113 -0
- tb_rest_client/models/models_pe/custom_menu_delete_result.py +168 -0
- tb_rest_client/models/models_pe/custom_menu_id.py +113 -0
- tb_rest_client/models/models_pe/custom_menu_info.py +287 -0
- tb_rest_client/models/models_pe/custom_menu_item.py +398 -0
- tb_rest_client/models/models_pe/custom_time_schedule.py +156 -0
- tb_rest_client/models/models_pe/custom_time_schedule_item.py +202 -0
- tb_rest_client/models/models_pe/custom_translation.py +127 -0
- tb_rest_client/models/models_pe/customer_id.py +162 -0
- tb_rest_client/models/models_pe/customer_info.py +672 -0
- tb_rest_client/models/models_pe/customer_users_filter.py +131 -0
- tb_rest_client/models/models_pe/dashboard_id.py +162 -0
- tb_rest_client/models/models_pe/dashboard_info.py +506 -0
- tb_rest_client/models/models_pe/debug_converter_event_filter.py +316 -0
- tb_rest_client/models/models_pe/debug_integration_event_filter.py +290 -0
- tb_rest_client/models/models_pe/default_coap_device_type_configuration.py +130 -0
- tb_rest_client/models/models_pe/default_dashboard_params.py +154 -0
- tb_rest_client/models/models_pe/default_device_configuration.py +104 -0
- tb_rest_client/models/models_pe/default_device_profile_configuration.py +104 -0
- tb_rest_client/models/models_pe/default_device_profile_transport_configuration.py +104 -0
- tb_rest_client/models/models_pe/default_device_transport_configuration.py +104 -0
- tb_rest_client/models/models_pe/default_menu_item.py +230 -0
- tb_rest_client/models/models_pe/default_rule_chain_create_request.py +127 -0
- tb_rest_client/models/models_pe/default_tenant_profile_configuration.py +1794 -0
- tb_rest_client/models/models_pe/deferred_result_entity_data_diff.py +150 -0
- tb_rest_client/models/models_pe/deferred_result_entity_data_info.py +150 -0
- tb_rest_client/models/models_pe/deferred_result_list_branch_info.py +150 -0
- tb_rest_client/models/models_pe/deferred_result_list_versioned_entity_info.py +150 -0
- tb_rest_client/models/models_pe/deferred_result_page_data_entity_version.py +150 -0
- tb_rest_client/models/models_pe/deferred_result_repository_settings.py +150 -0
- tb_rest_client/models/models_pe/deferred_result_void.py +150 -0
- tb_rest_client/models/models_pe/deferred_resultuuid.py +150 -0
- tb_rest_client/models/models_pe/delivery_method_notification_template.py +191 -0
- tb_rest_client/models/models_pe/device.py +471 -0
- tb_rest_client/models/models_pe/device_activity_notification_rule_trigger_config.py +190 -0
- tb_rest_client/models/models_pe/device_configuration.py +133 -0
- tb_rest_client/models/models_pe/device_credentials_id.py +127 -0
- tb_rest_client/models/models_pe/device_data.py +154 -0
- tb_rest_client/models/models_pe/device_export_data.py +156 -0
- tb_rest_client/models/models_pe/device_group_ota_package.py +234 -0
- tb_rest_client/models/models_pe/device_id.py +162 -0
- tb_rest_client/models/models_pe/device_info.py +555 -0
- tb_rest_client/models/models_pe/device_profile_alarm.py +348 -0
- tb_rest_client/models/models_pe/device_profile_configuration.py +133 -0
- tb_rest_client/models/models_pe/device_profile_data.py +210 -0
- tb_rest_client/models/models_pe/device_profile_id.py +162 -0
- tb_rest_client/models/models_pe/device_profile_provision_configuration.py +162 -0
- tb_rest_client/models/models_pe/device_profile_transport_configuration.py +137 -0
- tb_rest_client/models/models_pe/device_search_query.py +180 -0
- tb_rest_client/models/models_pe/device_search_query_filter.py +266 -0
- tb_rest_client/models/models_pe/device_transport_configuration.py +137 -0
- tb_rest_client/models/models_pe/device_type_filter.py +182 -0
- tb_rest_client/models/models_pe/disabled_device_profile_provision_configuration.py +104 -0
- tb_rest_client/models/models_pe/duration_alarm_condition_spec.py +162 -0
- tb_rest_client/models/models_pe/edge.py +510 -0
- tb_rest_client/models/models_pe/edge_communication_failure_notification_rule_trigger_config.py +130 -0
- tb_rest_client/models/models_pe/edge_connection_notification_rule_trigger_config.py +163 -0
- tb_rest_client/models/models_pe/edge_event.py +396 -0
- tb_rest_client/models/models_pe/edge_event_id.py +127 -0
- tb_rest_client/models/models_pe/edge_id.py +162 -0
- tb_rest_client/models/models_pe/edge_info.py +566 -0
- tb_rest_client/models/models_pe/edge_instructions.py +126 -0
- tb_rest_client/models/models_pe/edge_search_query.py +180 -0
- tb_rest_client/models/models_pe/edge_search_query_filter.py +266 -0
- tb_rest_client/models/models_pe/edge_type_filter.py +168 -0
- tb_rest_client/models/models_pe/efento_coap_device_type_configuration.py +104 -0
- tb_rest_client/models/models_pe/email_delivery_method_notification_template.py +131 -0
- tb_rest_client/models/models_pe/email_two_fa_account_config.py +131 -0
- tb_rest_client/models/models_pe/email_two_fa_provider_config.py +130 -0
- tb_rest_client/models/models_pe/enterprise_captcha_params.py +98 -0
- tb_rest_client/models/models_pe/entities_by_group_name_filter.py +188 -0
- tb_rest_client/models/models_pe/entities_limit_notification_rule_trigger_config.py +163 -0
- tb_rest_client/models/models_pe/entity_action_notification_rule_trigger_config.py +215 -0
- tb_rest_client/models/models_pe/entity_count_query.py +150 -0
- tb_rest_client/models/models_pe/entity_data.py +254 -0
- tb_rest_client/models/models_pe/entity_data_diff.py +150 -0
- tb_rest_client/models/models_pe/entity_data_info.py +228 -0
- tb_rest_client/models/models_pe/entity_data_page_link.py +228 -0
- tb_rest_client/models/models_pe/entity_data_query.py +228 -0
- tb_rest_client/models/models_pe/entity_data_sort_order.py +156 -0
- tb_rest_client/models/models_pe/entity_export_data_object.py +210 -0
- tb_rest_client/models/models_pe/entity_filter.py +152 -0
- tb_rest_client/models/models_pe/entity_group.py +400 -0
- tb_rest_client/models/models_pe/entity_group_export_data.py +182 -0
- tb_rest_client/models/models_pe/entity_group_filter.py +162 -0
- tb_rest_client/models/models_pe/entity_group_id.py +162 -0
- tb_rest_client/models/models_pe/entity_group_info.py +429 -0
- tb_rest_client/models/models_pe/entity_group_list_filter.py +162 -0
- tb_rest_client/models/models_pe/entity_group_name_filter.py +162 -0
- tb_rest_client/models/models_pe/entity_id.py +160 -0
- tb_rest_client/models/models_pe/entity_key.py +156 -0
- tb_rest_client/models/models_pe/entity_list_filter.py +162 -0
- tb_rest_client/models/models_pe/entity_load_error.py +202 -0
- tb_rest_client/models/models_pe/entity_name_filter.py +162 -0
- tb_rest_client/models/models_pe/entity_relation_info.py +320 -0
- tb_rest_client/models/models_pe/entity_relations_query.py +152 -0
- tb_rest_client/models/models_pe/entity_subtype.py +182 -0
- tb_rest_client/models/models_pe/entity_type_filter.py +136 -0
- tb_rest_client/models/models_pe/entity_type_load_result.py +286 -0
- tb_rest_client/models/models_pe/entity_type_version_create_config.py +312 -0
- tb_rest_client/models/models_pe/entity_type_version_load_config.py +306 -0
- tb_rest_client/models/models_pe/entity_type_version_load_request.py +156 -0
- tb_rest_client/models/models_pe/entity_version.py +202 -0
- tb_rest_client/models/models_pe/entity_view.py +449 -0
- tb_rest_client/models/models_pe/entity_view_id.py +162 -0
- tb_rest_client/models/models_pe/entity_view_info.py +505 -0
- tb_rest_client/models/models_pe/entity_view_search_query.py +180 -0
- tb_rest_client/models/models_pe/entity_view_search_query_filter.py +266 -0
- tb_rest_client/models/models_pe/entity_view_type_filter.py +182 -0
- tb_rest_client/models/models_pe/error_event_filter.py +188 -0
- tb_rest_client/models/models_pe/escalated_notification_rule_recipients_config.py +131 -0
- tb_rest_client/models/models_pe/event_filter.py +174 -0
- tb_rest_client/models/models_pe/event_id.py +127 -0
- tb_rest_client/models/models_pe/event_info.py +286 -0
- tb_rest_client/models/models_pe/exportable_entity_entity_id.py +150 -0
- tb_rest_client/models/models_pe/favicon.py +124 -0
- tb_rest_client/models/models_pe/features_info.py +254 -0
- tb_rest_client/models/models_pe/group_entity_export_data.py +130 -0
- tb_rest_client/models/models_pe/group_permission.py +370 -0
- tb_rest_client/models/models_pe/group_permission_id.py +162 -0
- tb_rest_client/models/models_pe/group_permission_info.py +560 -0
- tb_rest_client/models/models_pe/home_dashboard.py +478 -0
- tb_rest_client/models/models_pe/home_menu_item.py +320 -0
- tb_rest_client/models/models_pe/input_stream.py +98 -0
- tb_rest_client/models/models_pe/integration.py +571 -0
- tb_rest_client/models/models_pe/integration_converters_info.py +136 -0
- tb_rest_client/models/models_pe/integration_id.py +162 -0
- tb_rest_client/models/models_pe/integration_info.py +460 -0
- tb_rest_client/models/models_pe/integration_lifecycle_event_notification_rule_trigger_config.py +222 -0
- tb_rest_client/models/models_pe/json_node.py +98 -0
- tb_rest_client/models/models_pe/json_transport_payload_configuration.py +104 -0
- tb_rest_client/models/models_pe/key_filter.py +182 -0
- tb_rest_client/models/models_pe/key_filter_predicate.py +136 -0
- tb_rest_client/models/models_pe/last_visited_dashboard_info.py +210 -0
- tb_rest_client/models/models_pe/license_usage_info.py +332 -0
- tb_rest_client/models/models_pe/life_cycle_event_filter.py +222 -0
- tb_rest_client/models/models_pe/locale_code_upload_body.py +125 -0
- tb_rest_client/models/models_pe/login_request.py +156 -0
- tb_rest_client/models/models_pe/login_response.py +156 -0
- tb_rest_client/models/models_pe/login_white_labeling_params.py +682 -0
- tb_rest_client/models/models_pe/lw_m2_m_bootstrap_server_credential.py +136 -0
- tb_rest_client/models/models_pe/lw_m2_m_server_security_config_default.py +490 -0
- tb_rest_client/models/models_pe/lw_m2m_instance.py +154 -0
- tb_rest_client/models/models_pe/lw_m2m_object.py +266 -0
- tb_rest_client/models/models_pe/lw_m2m_resource_observe.py +266 -0
- tb_rest_client/models/models_pe/lwm2m_device_profile_transport_configuration.py +208 -0
- tb_rest_client/models/models_pe/lwm2m_device_transport_configuration.py +214 -0
- tb_rest_client/models/models_pe/mapping.py +202 -0
- tb_rest_client/models/models_pe/menu_item.py +152 -0
- tb_rest_client/models/models_pe/merged_group_permission_info.py +163 -0
- tb_rest_client/models/models_pe/merged_group_type_permission_info.py +154 -0
- tb_rest_client/models/models_pe/merged_user_permissions.py +273 -0
- tb_rest_client/models/models_pe/mobile_app_delivery_method_notification_template.py +157 -0
- tb_rest_client/models/models_pe/mobile_app_notification_delivery_method_config.py +182 -0
- tb_rest_client/models/models_pe/mobile_app_settings_id.py +113 -0
- tb_rest_client/models/models_pe/mobile_redirect_params.py +154 -0
- tb_rest_client/models/models_pe/mobile_self_registration_params.py +98 -0
- tb_rest_client/models/models_pe/mobile_session_info.py +124 -0
- tb_rest_client/models/models_pe/model.py +162 -0
- tb_rest_client/models/models_pe/mqtt_device_profile_transport_configuration.py +286 -0
- tb_rest_client/models/models_pe/mqtt_device_transport_configuration.py +104 -0
- tb_rest_client/models/models_pe/new_platform_version_notification_rule_trigger_config.py +104 -0
- tb_rest_client/models/models_pe/no_sec_lw_m2_m_bootstrap_server_credential.py +440 -0
- tb_rest_client/models/models_pe/node_connection_info.py +185 -0
- tb_rest_client/models/models_pe/notification.py +402 -0
- tb_rest_client/models/models_pe/notification_delivery_method_config.py +134 -0
- tb_rest_client/models/models_pe/notification_id.py +162 -0
- tb_rest_client/models/models_pe/notification_info.py +185 -0
- tb_rest_client/models/models_pe/notification_request.py +417 -0
- tb_rest_client/models/models_pe/notification_request_config.py +124 -0
- tb_rest_client/models/models_pe/notification_request_id.py +162 -0
- tb_rest_client/models/models_pe/notification_request_preview.py +202 -0
- tb_rest_client/models/models_pe/notification_request_stats.py +202 -0
- tb_rest_client/models/models_pe/notification_rule_config.py +124 -0
- tb_rest_client/models/models_pe/notification_rule_id.py +162 -0
- tb_rest_client/models/models_pe/notification_rule_recipients_config.py +139 -0
- tb_rest_client/models/models_pe/notification_rule_trigger_config.py +135 -0
- tb_rest_client/models/models_pe/notification_template_config.py +125 -0
- tb_rest_client/models/models_pe/notification_template_id.py +162 -0
- tb_rest_client/models/models_pe/numeric_filter_predicate.py +162 -0
- tb_rest_client/models/models_pe/o_auth2_basic_mapper_config.py +381 -0
- tb_rest_client/models/models_pe/o_auth2_client_info.py +267 -0
- tb_rest_client/models/models_pe/o_auth2_client_registration_template.py +565 -0
- tb_rest_client/models/models_pe/o_auth2_client_registration_template_id.py +127 -0
- tb_rest_client/models/models_pe/o_auth2_custom_mapper_config.py +202 -0
- tb_rest_client/models/models_pe/o_auth2_domain_info.py +162 -0
- tb_rest_client/models/models_pe/o_auth2_info.py +183 -0
- tb_rest_client/models/models_pe/o_auth2_mapper_config.py +241 -0
- tb_rest_client/models/models_pe/o_auth2_mobile_info.py +156 -0
- tb_rest_client/models/models_pe/o_auth2_params_info.py +185 -0
- tb_rest_client/models/models_pe/o_auth2_registration_info.py +502 -0
- tb_rest_client/models/models_pe/object_attributes.py +410 -0
- tb_rest_client/models/models_pe/object_node.py +98 -0
- tb_rest_client/models/models_pe/originator_entity_owner_users_filter.py +104 -0
- tb_rest_client/models/models_pe/ota_package.py +576 -0
- tb_rest_client/models/models_pe/ota_package_id.py +162 -0
- tb_rest_client/models/models_pe/ota_package_info.py +550 -0
- tb_rest_client/models/models_pe/ota_package_ota_package_id_body.py +184 -0
- tb_rest_client/models/models_pe/other_configuration.py +364 -0
- tb_rest_client/models/models_pe/page_data_blob_entity_with_customer_info.py +210 -0
- tb_rest_client/models/models_pe/page_data_contact_basedobject.py +210 -0
- tb_rest_client/models/models_pe/page_data_converter.py +210 -0
- tb_rest_client/models/models_pe/page_data_customer_info.py +210 -0
- tb_rest_client/models/models_pe/page_data_edge.py +210 -0
- tb_rest_client/models/models_pe/page_data_edge_event.py +210 -0
- tb_rest_client/models/models_pe/page_data_edge_info.py +210 -0
- tb_rest_client/models/models_pe/page_data_entity_group_info.py +210 -0
- tb_rest_client/models/models_pe/page_data_entity_version.py +210 -0
- tb_rest_client/models/models_pe/page_data_entity_view_info.py +210 -0
- tb_rest_client/models/models_pe/page_data_event_info.py +210 -0
- tb_rest_client/models/models_pe/page_data_integration.py +210 -0
- tb_rest_client/models/models_pe/page_data_integration_info.py +210 -0
- tb_rest_client/models/models_pe/page_data_ota_package_info.py +210 -0
- tb_rest_client/models/models_pe/page_data_queue.py +210 -0
- tb_rest_client/models/models_pe/page_data_role.py +210 -0
- tb_rest_client/models/models_pe/page_data_rule_chain.py +210 -0
- tb_rest_client/models/models_pe/page_data_scheduler_event_info.py +210 -0
- tb_rest_client/models/models_pe/page_data_short_entity_view.py +210 -0
- tb_rest_client/models/models_pe/page_data_user_email_info.py +210 -0
- tb_rest_client/models/models_pe/page_data_user_info.py +210 -0
- tb_rest_client/models/models_pe/palette.py +183 -0
- tb_rest_client/models/models_pe/palette_settings.py +152 -0
- tb_rest_client/models/models_pe/platform_two_fa_settings.py +257 -0
- tb_rest_client/models/models_pe/platform_users_notification_target_config.py +131 -0
- tb_rest_client/models/models_pe/power_saving_configuration.py +208 -0
- tb_rest_client/models/models_pe/processing_strategy.py +234 -0
- tb_rest_client/models/models_pe/proto_transport_payload_configuration.py +260 -0
- tb_rest_client/models/models_pe/psklw_m2_m_bootstrap_server_credential.py +440 -0
- tb_rest_client/models/models_pe/queue.py +410 -0
- tb_rest_client/models/models_pe/raw_data_event_filter.py +216 -0
- tb_rest_client/models/models_pe/relation_entity_type_filter.py +189 -0
- tb_rest_client/models/models_pe/relations_query_filter.py +350 -0
- tb_rest_client/models/models_pe/relations_search_parameters.py +284 -0
- tb_rest_client/models/models_pe/repeating_alarm_condition_spec.py +130 -0
- tb_rest_client/models/models_pe/report_config.py +381 -0
- tb_rest_client/models/models_pe/repository_settings.py +390 -0
- tb_rest_client/models/models_pe/repository_settings_info.py +150 -0
- tb_rest_client/models/models_pe/reset_password_email_request.py +126 -0
- tb_rest_client/models/models_pe/reset_password_request.py +154 -0
- tb_rest_client/models/models_pe/resource.py +306 -0
- tb_rest_client/models/models_pe/response_entity.py +182 -0
- tb_rest_client/models/models_pe/role.py +371 -0
- tb_rest_client/models/models_pe/role_id.py +162 -0
- tb_rest_client/models/models_pe/rpc.py +344 -0
- tb_rest_client/models/models_pe/rpc_id.py +162 -0
- tb_rest_client/models/models_pe/rpklw_m2_m_bootstrap_server_credential.py +440 -0
- tb_rest_client/models/models_pe/rule_chain.py +402 -0
- tb_rest_client/models/models_pe/rule_chain_connection_info.py +210 -0
- tb_rest_client/models/models_pe/rule_chain_data.py +156 -0
- tb_rest_client/models/models_pe/rule_chain_debug_event_filter.py +240 -0
- tb_rest_client/models/models_pe/rule_chain_export_data.py +156 -0
- tb_rest_client/models/models_pe/rule_chain_id.py +162 -0
- tb_rest_client/models/models_pe/rule_chain_import_result.py +202 -0
- tb_rest_client/models/models_pe/rule_chain_meta_data.py +269 -0
- tb_rest_client/models/models_pe/rule_chain_output_labels_usage.py +239 -0
- tb_rest_client/models/models_pe/rule_engine_component_lifecycle_event_notification_rule_trigger_config.py +274 -0
- tb_rest_client/models/models_pe/rule_node.py +424 -0
- tb_rest_client/models/models_pe/rule_node_debug_event_filter.py +448 -0
- tb_rest_client/models/models_pe/rule_node_id.py +162 -0
- tb_rest_client/models/models_pe/save_device_with_credentials_request.py +152 -0
- tb_rest_client/models/models_pe/save_ota_package_info_request.py +578 -0
- tb_rest_client/models/models_pe/scheduler_event.py +444 -0
- tb_rest_client/models/models_pe/scheduler_event_filter.py +156 -0
- tb_rest_client/models/models_pe/scheduler_event_id.py +162 -0
- tb_rest_client/models/models_pe/scheduler_event_info.py +418 -0
- tb_rest_client/models/models_pe/scheduler_event_with_customer_info.py +474 -0
- tb_rest_client/models/models_pe/security_settings.py +266 -0
- tb_rest_client/models/models_pe/self_registration_params.py +630 -0
- tb_rest_client/models/models_pe/share_group_request.py +235 -0
- tb_rest_client/models/models_pe/shared_attributes_setting_snmp_communication_config.py +130 -0
- tb_rest_client/models/models_pe/short_customer_info.py +204 -0
- tb_rest_client/models/models_pe/short_entity_view.py +154 -0
- tb_rest_client/models/models_pe/sign_up_field.py +184 -0
- tb_rest_client/models/models_pe/sign_up_request.py +294 -0
- tb_rest_client/models/models_pe/sign_up_self_registration_params.py +266 -0
- tb_rest_client/models/models_pe/simple_alarm_condition_spec.py +104 -0
- tb_rest_client/models/models_pe/single_entity_filter.py +130 -0
- tb_rest_client/models/models_pe/single_entity_version_create_request.py +156 -0
- tb_rest_client/models/models_pe/single_entity_version_load_request.py +182 -0
- tb_rest_client/models/models_pe/slack_conversation.py +263 -0
- tb_rest_client/models/models_pe/slack_delivery_method_notification_template.py +104 -0
- tb_rest_client/models/models_pe/slack_notification_delivery_method_config.py +131 -0
- tb_rest_client/models/models_pe/slack_notification_target_config.py +163 -0
- tb_rest_client/models/models_pe/smpp_sms_provider_configuration.py +541 -0
- tb_rest_client/models/models_pe/sms_delivery_method_notification_template.py +104 -0
- tb_rest_client/models/models_pe/sms_provider_configuration.py +135 -0
- tb_rest_client/models/models_pe/sms_two_fa_account_config.py +131 -0
- tb_rest_client/models/models_pe/sms_two_fa_provider_config.py +157 -0
- tb_rest_client/models/models_pe/snmp_communication_config.py +142 -0
- tb_rest_client/models/models_pe/snmp_device_profile_transport_configuration.py +182 -0
- tb_rest_client/models/models_pe/snmp_device_transport_configuration.py +434 -0
- tb_rest_client/models/models_pe/snmp_mapping.py +182 -0
- tb_rest_client/models/models_pe/solution_install_response.py +260 -0
- tb_rest_client/models/models_pe/specific_time_schedule.py +208 -0
- tb_rest_client/models/models_pe/starred_dashboard_info.py +182 -0
- tb_rest_client/models/models_pe/state_entity_owner_filter.py +130 -0
- tb_rest_client/models/models_pe/statistics_event_filter.py +244 -0
- tb_rest_client/models/models_pe/string_filter_predicate.py +188 -0
- tb_rest_client/models/models_pe/submit_strategy.py +156 -0
- tb_rest_client/models/models_pe/subscription_usage.py +540 -0
- tb_rest_client/models/models_pe/system_administrators_filter.py +104 -0
- tb_rest_client/models/models_pe/system_info.py +152 -0
- tb_rest_client/models/models_pe/system_info_data.py +322 -0
- tb_rest_client/models/models_pe/task_processing_failure_notification_rule_trigger_config.py +98 -0
- tb_rest_client/models/models_pe/tb_image_delete_result.py +176 -0
- tb_rest_client/models/models_pe/tb_resource.py +594 -0
- tb_rest_client/models/models_pe/tb_resource_id.py +162 -0
- tb_rest_client/models/models_pe/tb_resource_info.py +540 -0
- tb_rest_client/models/models_pe/telemetry_entity_view.py +154 -0
- tb_rest_client/models/models_pe/telemetry_mapping_configuration.py +228 -0
- tb_rest_client/models/models_pe/telemetry_querying_snmp_communication_config.py +156 -0
- tb_rest_client/models/models_pe/tenant_administrators_filter.py +156 -0
- tb_rest_client/models/models_pe/tenant_profile_configuration.py +133 -0
- tb_rest_client/models/models_pe/tenant_profile_data.py +154 -0
- tb_rest_client/models/models_pe/tenant_profile_id.py +162 -0
- tb_rest_client/models/models_pe/tenant_profile_queue_configuration.py +332 -0
- tb_rest_client/models/models_pe/tenant_solution_template_details.py +376 -0
- tb_rest_client/models/models_pe/tenant_solution_template_info.py +440 -0
- tb_rest_client/models/models_pe/tenant_solution_template_instructions.py +232 -0
- tb_rest_client/models/models_pe/test_sms_request.py +182 -0
- tb_rest_client/models/models_pe/thingsboard_credentials_expired_response.py +238 -0
- tb_rest_client/models/models_pe/thingsboard_error_response.py +210 -0
- tb_rest_client/models/models_pe/to_device_rpc_request_snmp_communication_config.py +130 -0
- tb_rest_client/models/models_pe/totp_two_fa_account_config.py +131 -0
- tb_rest_client/models/models_pe/totp_two_fa_provider_config.py +131 -0
- tb_rest_client/models/models_pe/translation_info.py +238 -0
- tb_rest_client/models/models_pe/transport_payload_type_configuration.py +134 -0
- tb_rest_client/models/models_pe/ts_value.py +176 -0
- tb_rest_client/models/models_pe/twilio_sms_provider_configuration.py +188 -0
- tb_rest_client/models/models_pe/two_fa_account_config.py +162 -0
- tb_rest_client/models/models_pe/two_fa_account_config_update_request.py +124 -0
- tb_rest_client/models/models_pe/two_fa_provider_config.py +136 -0
- tb_rest_client/models/models_pe/two_fa_provider_info.py +234 -0
- tb_rest_client/models/models_pe/update_message.py +266 -0
- tb_rest_client/models/models_pe/user.py +484 -0
- tb_rest_client/models/models_pe/user_dashboards_info.py +154 -0
- tb_rest_client/models/models_pe/user_email_info.py +208 -0
- tb_rest_client/models/models_pe/user_group_list_filter.py +131 -0
- tb_rest_client/models/models_pe/user_id.py +162 -0
- tb_rest_client/models/models_pe/user_info.py +540 -0
- tb_rest_client/models/models_pe/user_list_filter.py +131 -0
- tb_rest_client/models/models_pe/user_password_policy.py +378 -0
- tb_rest_client/models/models_pe/user_role_filter.py +131 -0
- tb_rest_client/models/models_pe/users_filter.py +142 -0
- tb_rest_client/models/models_pe/v2_captcha_params.py +98 -0
- tb_rest_client/models/models_pe/v3_captcha_params.py +98 -0
- tb_rest_client/models/models_pe/vendor.py +150 -0
- tb_rest_client/models/models_pe/version_create_config.py +228 -0
- tb_rest_client/models/models_pe/version_create_request.py +191 -0
- tb_rest_client/models/models_pe/version_creation_result.py +254 -0
- tb_rest_client/models/models_pe/version_load_config.py +254 -0
- tb_rest_client/models/models_pe/version_load_request.py +165 -0
- tb_rest_client/models/models_pe/version_load_result.py +176 -0
- tb_rest_client/models/models_pe/versioned_entity_info.py +150 -0
- tb_rest_client/models/models_pe/web_delivery_method_notification_template.py +157 -0
- tb_rest_client/models/models_pe/web_self_registration_params.py +98 -0
- tb_rest_client/models/models_pe/white_labeling.py +234 -0
- tb_rest_client/models/models_pe/white_labeling_params.py +486 -0
- tb_rest_client/models/models_pe/widget_type.py +342 -0
- tb_rest_client/models/models_pe/widget_type_details.py +426 -0
- tb_rest_client/models/models_pe/widget_type_export_data.py +130 -0
- tb_rest_client/models/models_pe/widget_type_id.py +162 -0
- tb_rest_client/models/models_pe/widget_type_info.py +428 -0
- tb_rest_client/models/models_pe/widgets_bundle_export_data.py +182 -0
- tb_rest_client/models/models_pe/widgets_bundle_id.py +162 -0
- tb_rest_client/models/models_pe/x509_certificate_chain_provision_configuration.py +156 -0
- tb_rest_client/models/models_pe/x509_lw_m2_m_bootstrap_server_credential.py +440 -0
- tb_rest_client/rest.py +342 -0
- tb_rest_client/rest_client_base.py +2193 -0
- tb_rest_client/rest_client_ce.py +1284 -0
- tb_rest_client/rest_client_pe.py +1910 -0
- tb_rest_client-3.9.0.dist-info/LICENSE +201 -0
- tb_rest_client-3.9.0.dist-info/METADATA +80 -0
- tb_rest_client-3.9.0.dist-info/RECORD +1111 -0
- tb_rest_client-3.9.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,1215 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ThingsBoard REST API
|
|
5
|
+
|
|
6
|
+
ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 3.9.0PE
|
|
9
|
+
Contact: info@thingsboard.io
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
# Copyright 2025. ThingsBoard
|
|
14
|
+
#
|
|
15
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
16
|
+
# you may not use this file except in compliance with the License.
|
|
17
|
+
# You may obtain a copy of the License at
|
|
18
|
+
#
|
|
19
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
+
#
|
|
21
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
22
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
23
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24
|
+
# See the License for the specific language governing permissions and
|
|
25
|
+
# limitations under the License.
|
|
26
|
+
|
|
27
|
+
from __future__ import absolute_import
|
|
28
|
+
|
|
29
|
+
import re # noqa: F401
|
|
30
|
+
|
|
31
|
+
# python 2 and python 3 compatibility library
|
|
32
|
+
import six
|
|
33
|
+
|
|
34
|
+
from tb_rest_client.api_client import ApiClient
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class DeviceProfileControllerApi(object):
|
|
38
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
39
|
+
|
|
40
|
+
Do not edit the class manually.
|
|
41
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
def __init__(self, api_client=None):
|
|
45
|
+
if api_client is None:
|
|
46
|
+
api_client = ApiClient()
|
|
47
|
+
self.api_client = api_client
|
|
48
|
+
|
|
49
|
+
def delete_device_profile_using_delete(self, device_profile_id, **kwargs): # noqa: E501
|
|
50
|
+
"""Delete device profile (deleteDeviceProfile) # noqa: E501
|
|
51
|
+
|
|
52
|
+
Deletes the device profile. Referencing non-existing device profile Id will cause an error. Can't delete the device profile if it is referenced by existing devices. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
53
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
54
|
+
asynchronous HTTP request, please pass async_req=True
|
|
55
|
+
>>> thread = api.delete_device_profile_using_delete(device_profile_id, async_req=True)
|
|
56
|
+
>>> result = thread.get()
|
|
57
|
+
|
|
58
|
+
:param async_req bool
|
|
59
|
+
:param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
60
|
+
:return: None
|
|
61
|
+
If the method is called asynchronously,
|
|
62
|
+
returns the request thread.
|
|
63
|
+
"""
|
|
64
|
+
kwargs['_return_http_data_only'] = True
|
|
65
|
+
if kwargs.get('async_req'):
|
|
66
|
+
return self.delete_device_profile_using_delete_with_http_info(device_profile_id, **kwargs) # noqa: E501
|
|
67
|
+
else:
|
|
68
|
+
(data) = self.delete_device_profile_using_delete_with_http_info(device_profile_id, **kwargs) # noqa: E501
|
|
69
|
+
return data
|
|
70
|
+
|
|
71
|
+
def delete_device_profile_using_delete_with_http_info(self, device_profile_id, **kwargs): # noqa: E501
|
|
72
|
+
"""Delete device profile (deleteDeviceProfile) # noqa: E501
|
|
73
|
+
|
|
74
|
+
Deletes the device profile. Referencing non-existing device profile Id will cause an error. Can't delete the device profile if it is referenced by existing devices. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
75
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
76
|
+
asynchronous HTTP request, please pass async_req=True
|
|
77
|
+
>>> thread = api.delete_device_profile_using_delete_with_http_info(device_profile_id, async_req=True)
|
|
78
|
+
>>> result = thread.get()
|
|
79
|
+
|
|
80
|
+
:param async_req bool
|
|
81
|
+
:param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
82
|
+
:return: None
|
|
83
|
+
If the method is called asynchronously,
|
|
84
|
+
returns the request thread.
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
all_params = ['device_profile_id'] # noqa: E501
|
|
88
|
+
all_params.append('async_req')
|
|
89
|
+
all_params.append('_return_http_data_only')
|
|
90
|
+
all_params.append('_preload_content')
|
|
91
|
+
all_params.append('_request_timeout')
|
|
92
|
+
|
|
93
|
+
params = locals()
|
|
94
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
95
|
+
if key not in all_params:
|
|
96
|
+
raise TypeError(
|
|
97
|
+
"Got an unexpected keyword argument '%s'"
|
|
98
|
+
" to method delete_device_profile_using_delete" % key
|
|
99
|
+
)
|
|
100
|
+
params[key] = val
|
|
101
|
+
del params['kwargs']
|
|
102
|
+
# verify the required parameter 'device_profile_id' is set
|
|
103
|
+
if ('device_profile_id' not in params or
|
|
104
|
+
params['device_profile_id'] is None):
|
|
105
|
+
raise ValueError("Missing the required parameter `device_profile_id` when calling `delete_device_profile_using_delete`") # noqa: E501
|
|
106
|
+
|
|
107
|
+
collection_formats = {}
|
|
108
|
+
|
|
109
|
+
path_params = {}
|
|
110
|
+
if 'device_profile_id' in params:
|
|
111
|
+
path_params['deviceProfileId'] = params['device_profile_id'] # noqa: E501
|
|
112
|
+
|
|
113
|
+
query_params = []
|
|
114
|
+
|
|
115
|
+
header_params = {}
|
|
116
|
+
|
|
117
|
+
form_params = []
|
|
118
|
+
local_var_files = {}
|
|
119
|
+
|
|
120
|
+
body_params = None
|
|
121
|
+
# HTTP header `Accept`
|
|
122
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
123
|
+
['application/json']) # noqa: E501
|
|
124
|
+
|
|
125
|
+
# Authentication setting
|
|
126
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
127
|
+
|
|
128
|
+
return self.api_client.call_api(
|
|
129
|
+
'/api/deviceProfile/{deviceProfileId}', 'DELETE',
|
|
130
|
+
path_params,
|
|
131
|
+
query_params,
|
|
132
|
+
header_params,
|
|
133
|
+
body=body_params,
|
|
134
|
+
post_params=form_params,
|
|
135
|
+
files=local_var_files,
|
|
136
|
+
response_type=None, # noqa: E501
|
|
137
|
+
auth_settings=auth_settings,
|
|
138
|
+
async_req=params.get('async_req'),
|
|
139
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
140
|
+
_preload_content=params.get('_preload_content', True),
|
|
141
|
+
_request_timeout=params.get('_request_timeout'),
|
|
142
|
+
collection_formats=collection_formats)
|
|
143
|
+
|
|
144
|
+
def get_attributes_keys_using_get(self, **kwargs): # noqa: E501
|
|
145
|
+
"""Get attribute keys (getAttributesKeys) # noqa: E501
|
|
146
|
+
|
|
147
|
+
Get a set of unique attribute keys used by devices that belong to specified profile. If profile is not set returns a list of unique keys among all profiles. The call is used for auto-complete in the UI forms. The implementation limits the number of devices that participate in search to 100 as a trade of between accurate results and time-consuming queries. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
148
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
149
|
+
asynchronous HTTP request, please pass async_req=True
|
|
150
|
+
>>> thread = api.get_attributes_keys_using_get(async_req=True)
|
|
151
|
+
>>> result = thread.get()
|
|
152
|
+
|
|
153
|
+
:param async_req bool
|
|
154
|
+
:param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
|
|
155
|
+
:return: list[str]
|
|
156
|
+
If the method is called asynchronously,
|
|
157
|
+
returns the request thread.
|
|
158
|
+
"""
|
|
159
|
+
kwargs['_return_http_data_only'] = True
|
|
160
|
+
if kwargs.get('async_req'):
|
|
161
|
+
return self.get_attributes_keys_using_get_with_http_info(**kwargs) # noqa: E501
|
|
162
|
+
else:
|
|
163
|
+
(data) = self.get_attributes_keys_using_get_with_http_info(**kwargs) # noqa: E501
|
|
164
|
+
return data
|
|
165
|
+
|
|
166
|
+
def get_attributes_keys_using_get_with_http_info(self, **kwargs): # noqa: E501
|
|
167
|
+
"""Get attribute keys (getAttributesKeys) # noqa: E501
|
|
168
|
+
|
|
169
|
+
Get a set of unique attribute keys used by devices that belong to specified profile. If profile is not set returns a list of unique keys among all profiles. The call is used for auto-complete in the UI forms. The implementation limits the number of devices that participate in search to 100 as a trade of between accurate results and time-consuming queries. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
170
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
171
|
+
asynchronous HTTP request, please pass async_req=True
|
|
172
|
+
>>> thread = api.get_attributes_keys_using_get_with_http_info(async_req=True)
|
|
173
|
+
>>> result = thread.get()
|
|
174
|
+
|
|
175
|
+
:param async_req bool
|
|
176
|
+
:param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
|
|
177
|
+
:return: list[str]
|
|
178
|
+
If the method is called asynchronously,
|
|
179
|
+
returns the request thread.
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
all_params = ['device_profile_id'] # noqa: E501
|
|
183
|
+
all_params.append('async_req')
|
|
184
|
+
all_params.append('_return_http_data_only')
|
|
185
|
+
all_params.append('_preload_content')
|
|
186
|
+
all_params.append('_request_timeout')
|
|
187
|
+
|
|
188
|
+
params = locals()
|
|
189
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
190
|
+
if key not in all_params:
|
|
191
|
+
raise TypeError(
|
|
192
|
+
"Got an unexpected keyword argument '%s'"
|
|
193
|
+
" to method get_attributes_keys_using_get" % key
|
|
194
|
+
)
|
|
195
|
+
params[key] = val
|
|
196
|
+
del params['kwargs']
|
|
197
|
+
|
|
198
|
+
collection_formats = {}
|
|
199
|
+
|
|
200
|
+
path_params = {}
|
|
201
|
+
|
|
202
|
+
query_params = []
|
|
203
|
+
if 'device_profile_id' in params:
|
|
204
|
+
query_params.append(('deviceProfileId', params['device_profile_id'])) # noqa: E501
|
|
205
|
+
|
|
206
|
+
header_params = {}
|
|
207
|
+
|
|
208
|
+
form_params = []
|
|
209
|
+
local_var_files = {}
|
|
210
|
+
|
|
211
|
+
body_params = None
|
|
212
|
+
# HTTP header `Accept`
|
|
213
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
214
|
+
['application/json']) # noqa: E501
|
|
215
|
+
|
|
216
|
+
# Authentication setting
|
|
217
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
218
|
+
|
|
219
|
+
return self.api_client.call_api(
|
|
220
|
+
'/api/deviceProfile/devices/keys/attributes{?deviceProfileId}', 'GET',
|
|
221
|
+
path_params,
|
|
222
|
+
query_params,
|
|
223
|
+
header_params,
|
|
224
|
+
body=body_params,
|
|
225
|
+
post_params=form_params,
|
|
226
|
+
files=local_var_files,
|
|
227
|
+
response_type='list[str]', # noqa: E501
|
|
228
|
+
auth_settings=auth_settings,
|
|
229
|
+
async_req=params.get('async_req'),
|
|
230
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
231
|
+
_preload_content=params.get('_preload_content', True),
|
|
232
|
+
_request_timeout=params.get('_request_timeout'),
|
|
233
|
+
collection_formats=collection_formats)
|
|
234
|
+
|
|
235
|
+
def get_default_device_profile_info_using_get(self, **kwargs): # noqa: E501
|
|
236
|
+
"""Get Default Device Profile (getDefaultDeviceProfileInfo) # noqa: E501
|
|
237
|
+
|
|
238
|
+
Fetch the Default Device Profile Info object. Device Profile Info is a lightweight object that includes main information about Device Profile excluding the heavyweight configuration object. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
239
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
240
|
+
asynchronous HTTP request, please pass async_req=True
|
|
241
|
+
>>> thread = api.get_default_device_profile_info_using_get(async_req=True)
|
|
242
|
+
>>> result = thread.get()
|
|
243
|
+
|
|
244
|
+
:param async_req bool
|
|
245
|
+
:return: DeviceProfileInfo
|
|
246
|
+
If the method is called asynchronously,
|
|
247
|
+
returns the request thread.
|
|
248
|
+
"""
|
|
249
|
+
kwargs['_return_http_data_only'] = True
|
|
250
|
+
if kwargs.get('async_req'):
|
|
251
|
+
return self.get_default_device_profile_info_using_get_with_http_info(**kwargs) # noqa: E501
|
|
252
|
+
else:
|
|
253
|
+
(data) = self.get_default_device_profile_info_using_get_with_http_info(**kwargs) # noqa: E501
|
|
254
|
+
return data
|
|
255
|
+
|
|
256
|
+
def get_default_device_profile_info_using_get_with_http_info(self, **kwargs): # noqa: E501
|
|
257
|
+
"""Get Default Device Profile (getDefaultDeviceProfileInfo) # noqa: E501
|
|
258
|
+
|
|
259
|
+
Fetch the Default Device Profile Info object. Device Profile Info is a lightweight object that includes main information about Device Profile excluding the heavyweight configuration object. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
260
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
261
|
+
asynchronous HTTP request, please pass async_req=True
|
|
262
|
+
>>> thread = api.get_default_device_profile_info_using_get_with_http_info(async_req=True)
|
|
263
|
+
>>> result = thread.get()
|
|
264
|
+
|
|
265
|
+
:param async_req bool
|
|
266
|
+
:return: DeviceProfileInfo
|
|
267
|
+
If the method is called asynchronously,
|
|
268
|
+
returns the request thread.
|
|
269
|
+
"""
|
|
270
|
+
|
|
271
|
+
all_params = [] # noqa: E501
|
|
272
|
+
all_params.append('async_req')
|
|
273
|
+
all_params.append('_return_http_data_only')
|
|
274
|
+
all_params.append('_preload_content')
|
|
275
|
+
all_params.append('_request_timeout')
|
|
276
|
+
|
|
277
|
+
params = locals()
|
|
278
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
279
|
+
if key not in all_params:
|
|
280
|
+
raise TypeError(
|
|
281
|
+
"Got an unexpected keyword argument '%s'"
|
|
282
|
+
" to method get_default_device_profile_info_using_get" % key
|
|
283
|
+
)
|
|
284
|
+
params[key] = val
|
|
285
|
+
del params['kwargs']
|
|
286
|
+
|
|
287
|
+
collection_formats = {}
|
|
288
|
+
|
|
289
|
+
path_params = {}
|
|
290
|
+
|
|
291
|
+
query_params = []
|
|
292
|
+
|
|
293
|
+
header_params = {}
|
|
294
|
+
|
|
295
|
+
form_params = []
|
|
296
|
+
local_var_files = {}
|
|
297
|
+
|
|
298
|
+
body_params = None
|
|
299
|
+
# HTTP header `Accept`
|
|
300
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
301
|
+
['application/json']) # noqa: E501
|
|
302
|
+
|
|
303
|
+
# Authentication setting
|
|
304
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
305
|
+
|
|
306
|
+
return self.api_client.call_api(
|
|
307
|
+
'/api/deviceProfileInfo/default', 'GET',
|
|
308
|
+
path_params,
|
|
309
|
+
query_params,
|
|
310
|
+
header_params,
|
|
311
|
+
body=body_params,
|
|
312
|
+
post_params=form_params,
|
|
313
|
+
files=local_var_files,
|
|
314
|
+
response_type='DeviceProfileInfo', # noqa: E501
|
|
315
|
+
auth_settings=auth_settings,
|
|
316
|
+
async_req=params.get('async_req'),
|
|
317
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
318
|
+
_preload_content=params.get('_preload_content', True),
|
|
319
|
+
_request_timeout=params.get('_request_timeout'),
|
|
320
|
+
collection_formats=collection_formats)
|
|
321
|
+
|
|
322
|
+
def get_device_profile_by_id_using_get(self, device_profile_id, **kwargs): # noqa: E501
|
|
323
|
+
"""Get Device Profile (getDeviceProfileById) # noqa: E501
|
|
324
|
+
|
|
325
|
+
Fetch the Device Profile object based on the provided Device Profile Id. The server checks that the device profile is owned by the same tenant. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
326
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
327
|
+
asynchronous HTTP request, please pass async_req=True
|
|
328
|
+
>>> thread = api.get_device_profile_by_id_using_get(device_profile_id, async_req=True)
|
|
329
|
+
>>> result = thread.get()
|
|
330
|
+
|
|
331
|
+
:param async_req bool
|
|
332
|
+
:param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
333
|
+
:param bool inline_images: Inline images as a data URL (Base64)
|
|
334
|
+
:return: DeviceProfile
|
|
335
|
+
If the method is called asynchronously,
|
|
336
|
+
returns the request thread.
|
|
337
|
+
"""
|
|
338
|
+
kwargs['_return_http_data_only'] = True
|
|
339
|
+
if kwargs.get('async_req'):
|
|
340
|
+
return self.get_device_profile_by_id_using_get_with_http_info(device_profile_id, **kwargs) # noqa: E501
|
|
341
|
+
else:
|
|
342
|
+
(data) = self.get_device_profile_by_id_using_get_with_http_info(device_profile_id, **kwargs) # noqa: E501
|
|
343
|
+
return data
|
|
344
|
+
|
|
345
|
+
def get_device_profile_by_id_using_get_with_http_info(self, device_profile_id, **kwargs): # noqa: E501
|
|
346
|
+
"""Get Device Profile (getDeviceProfileById) # noqa: E501
|
|
347
|
+
|
|
348
|
+
Fetch the Device Profile object based on the provided Device Profile Id. The server checks that the device profile is owned by the same tenant. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
349
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
350
|
+
asynchronous HTTP request, please pass async_req=True
|
|
351
|
+
>>> thread = api.get_device_profile_by_id_using_get_with_http_info(device_profile_id, async_req=True)
|
|
352
|
+
>>> result = thread.get()
|
|
353
|
+
|
|
354
|
+
:param async_req bool
|
|
355
|
+
:param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
356
|
+
:param bool inline_images: Inline images as a data URL (Base64)
|
|
357
|
+
:return: DeviceProfile
|
|
358
|
+
If the method is called asynchronously,
|
|
359
|
+
returns the request thread.
|
|
360
|
+
"""
|
|
361
|
+
|
|
362
|
+
all_params = ['device_profile_id', 'inline_images'] # noqa: E501
|
|
363
|
+
all_params.append('async_req')
|
|
364
|
+
all_params.append('_return_http_data_only')
|
|
365
|
+
all_params.append('_preload_content')
|
|
366
|
+
all_params.append('_request_timeout')
|
|
367
|
+
|
|
368
|
+
params = locals()
|
|
369
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
370
|
+
if key not in all_params:
|
|
371
|
+
raise TypeError(
|
|
372
|
+
"Got an unexpected keyword argument '%s'"
|
|
373
|
+
" to method get_device_profile_by_id_using_get" % key
|
|
374
|
+
)
|
|
375
|
+
params[key] = val
|
|
376
|
+
del params['kwargs']
|
|
377
|
+
# verify the required parameter 'device_profile_id' is set
|
|
378
|
+
if ('device_profile_id' not in params or
|
|
379
|
+
params['device_profile_id'] is None):
|
|
380
|
+
raise ValueError("Missing the required parameter `device_profile_id` when calling `get_device_profile_by_id_using_get`") # noqa: E501
|
|
381
|
+
|
|
382
|
+
collection_formats = {}
|
|
383
|
+
|
|
384
|
+
path_params = {}
|
|
385
|
+
if 'device_profile_id' in params:
|
|
386
|
+
path_params['deviceProfileId'] = params['device_profile_id'] # noqa: E501
|
|
387
|
+
|
|
388
|
+
query_params = []
|
|
389
|
+
if 'inline_images' in params:
|
|
390
|
+
query_params.append(('inlineImages', params['inline_images'])) # noqa: E501
|
|
391
|
+
|
|
392
|
+
header_params = {}
|
|
393
|
+
|
|
394
|
+
form_params = []
|
|
395
|
+
local_var_files = {}
|
|
396
|
+
|
|
397
|
+
body_params = None
|
|
398
|
+
# HTTP header `Accept`
|
|
399
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
400
|
+
['application/json']) # noqa: E501
|
|
401
|
+
|
|
402
|
+
# Authentication setting
|
|
403
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
404
|
+
|
|
405
|
+
return self.api_client.call_api(
|
|
406
|
+
'/api/deviceProfile/{deviceProfileId}{?inlineImages}', 'GET',
|
|
407
|
+
path_params,
|
|
408
|
+
query_params,
|
|
409
|
+
header_params,
|
|
410
|
+
body=body_params,
|
|
411
|
+
post_params=form_params,
|
|
412
|
+
files=local_var_files,
|
|
413
|
+
response_type='DeviceProfile', # noqa: E501
|
|
414
|
+
auth_settings=auth_settings,
|
|
415
|
+
async_req=params.get('async_req'),
|
|
416
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
417
|
+
_preload_content=params.get('_preload_content', True),
|
|
418
|
+
_request_timeout=params.get('_request_timeout'),
|
|
419
|
+
collection_formats=collection_formats)
|
|
420
|
+
|
|
421
|
+
def get_device_profile_info_by_id_using_get(self, device_profile_id, **kwargs): # noqa: E501
|
|
422
|
+
"""Get Device Profile Info (getDeviceProfileInfoById) # noqa: E501
|
|
423
|
+
|
|
424
|
+
Fetch the Device Profile Info object based on the provided Device Profile Id. Device Profile Info is a lightweight object that includes main information about Device Profile excluding the heavyweight configuration object. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
425
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
426
|
+
asynchronous HTTP request, please pass async_req=True
|
|
427
|
+
>>> thread = api.get_device_profile_info_by_id_using_get(device_profile_id, async_req=True)
|
|
428
|
+
>>> result = thread.get()
|
|
429
|
+
|
|
430
|
+
:param async_req bool
|
|
431
|
+
:param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
432
|
+
:return: DeviceProfileInfo
|
|
433
|
+
If the method is called asynchronously,
|
|
434
|
+
returns the request thread.
|
|
435
|
+
"""
|
|
436
|
+
kwargs['_return_http_data_only'] = True
|
|
437
|
+
if kwargs.get('async_req'):
|
|
438
|
+
return self.get_device_profile_info_by_id_using_get_with_http_info(device_profile_id, **kwargs) # noqa: E501
|
|
439
|
+
else:
|
|
440
|
+
(data) = self.get_device_profile_info_by_id_using_get_with_http_info(device_profile_id, **kwargs) # noqa: E501
|
|
441
|
+
return data
|
|
442
|
+
|
|
443
|
+
def get_device_profile_info_by_id_using_get_with_http_info(self, device_profile_id, **kwargs): # noqa: E501
|
|
444
|
+
"""Get Device Profile Info (getDeviceProfileInfoById) # noqa: E501
|
|
445
|
+
|
|
446
|
+
Fetch the Device Profile Info object based on the provided Device Profile Id. Device Profile Info is a lightweight object that includes main information about Device Profile excluding the heavyweight configuration object. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
447
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
448
|
+
asynchronous HTTP request, please pass async_req=True
|
|
449
|
+
>>> thread = api.get_device_profile_info_by_id_using_get_with_http_info(device_profile_id, async_req=True)
|
|
450
|
+
>>> result = thread.get()
|
|
451
|
+
|
|
452
|
+
:param async_req bool
|
|
453
|
+
:param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
454
|
+
:return: DeviceProfileInfo
|
|
455
|
+
If the method is called asynchronously,
|
|
456
|
+
returns the request thread.
|
|
457
|
+
"""
|
|
458
|
+
|
|
459
|
+
all_params = ['device_profile_id'] # noqa: E501
|
|
460
|
+
all_params.append('async_req')
|
|
461
|
+
all_params.append('_return_http_data_only')
|
|
462
|
+
all_params.append('_preload_content')
|
|
463
|
+
all_params.append('_request_timeout')
|
|
464
|
+
|
|
465
|
+
params = locals()
|
|
466
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
467
|
+
if key not in all_params:
|
|
468
|
+
raise TypeError(
|
|
469
|
+
"Got an unexpected keyword argument '%s'"
|
|
470
|
+
" to method get_device_profile_info_by_id_using_get" % key
|
|
471
|
+
)
|
|
472
|
+
params[key] = val
|
|
473
|
+
del params['kwargs']
|
|
474
|
+
# verify the required parameter 'device_profile_id' is set
|
|
475
|
+
if ('device_profile_id' not in params or
|
|
476
|
+
params['device_profile_id'] is None):
|
|
477
|
+
raise ValueError("Missing the required parameter `device_profile_id` when calling `get_device_profile_info_by_id_using_get`") # noqa: E501
|
|
478
|
+
|
|
479
|
+
collection_formats = {}
|
|
480
|
+
|
|
481
|
+
path_params = {}
|
|
482
|
+
if 'device_profile_id' in params:
|
|
483
|
+
path_params['deviceProfileId'] = params['device_profile_id'] # noqa: E501
|
|
484
|
+
|
|
485
|
+
query_params = []
|
|
486
|
+
|
|
487
|
+
header_params = {}
|
|
488
|
+
|
|
489
|
+
form_params = []
|
|
490
|
+
local_var_files = {}
|
|
491
|
+
|
|
492
|
+
body_params = None
|
|
493
|
+
# HTTP header `Accept`
|
|
494
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
495
|
+
['application/json']) # noqa: E501
|
|
496
|
+
|
|
497
|
+
# Authentication setting
|
|
498
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
499
|
+
|
|
500
|
+
return self.api_client.call_api(
|
|
501
|
+
'/api/deviceProfileInfo/{deviceProfileId}', 'GET',
|
|
502
|
+
path_params,
|
|
503
|
+
query_params,
|
|
504
|
+
header_params,
|
|
505
|
+
body=body_params,
|
|
506
|
+
post_params=form_params,
|
|
507
|
+
files=local_var_files,
|
|
508
|
+
response_type='DeviceProfileInfo', # noqa: E501
|
|
509
|
+
auth_settings=auth_settings,
|
|
510
|
+
async_req=params.get('async_req'),
|
|
511
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
512
|
+
_preload_content=params.get('_preload_content', True),
|
|
513
|
+
_request_timeout=params.get('_request_timeout'),
|
|
514
|
+
collection_formats=collection_formats)
|
|
515
|
+
|
|
516
|
+
def get_device_profile_infos_using_get(self, page_size, page, **kwargs): # noqa: E501
|
|
517
|
+
"""Get Device Profiles for transport type (getDeviceProfileInfos) # noqa: E501
|
|
518
|
+
|
|
519
|
+
Returns a page of devices profile info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Device Profile Info is a lightweight object that includes main information about Device Profile excluding the heavyweight configuration object. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
520
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
521
|
+
asynchronous HTTP request, please pass async_req=True
|
|
522
|
+
>>> thread = api.get_device_profile_infos_using_get(page_size, page, async_req=True)
|
|
523
|
+
>>> result = thread.get()
|
|
524
|
+
|
|
525
|
+
:param async_req bool
|
|
526
|
+
:param int page_size: Maximum amount of entities in a one page (required)
|
|
527
|
+
:param int page: Sequence number of page starting from 0 (required)
|
|
528
|
+
:param str text_search: The case insensitive 'substring' filter based on the device profile name.
|
|
529
|
+
:param str sort_property: Property of entity to sort by
|
|
530
|
+
:param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
|
|
531
|
+
:param str transport_type: Type of the transport
|
|
532
|
+
:return: PageDataDeviceProfileInfo
|
|
533
|
+
If the method is called asynchronously,
|
|
534
|
+
returns the request thread.
|
|
535
|
+
"""
|
|
536
|
+
kwargs['_return_http_data_only'] = True
|
|
537
|
+
if kwargs.get('async_req'):
|
|
538
|
+
return self.get_device_profile_infos_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
|
|
539
|
+
else:
|
|
540
|
+
(data) = self.get_device_profile_infos_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
|
|
541
|
+
return data
|
|
542
|
+
|
|
543
|
+
def get_device_profile_infos_using_get_with_http_info(self, page_size, page, **kwargs): # noqa: E501
|
|
544
|
+
"""Get Device Profiles for transport type (getDeviceProfileInfos) # noqa: E501
|
|
545
|
+
|
|
546
|
+
Returns a page of devices profile info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Device Profile Info is a lightweight object that includes main information about Device Profile excluding the heavyweight configuration object. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
547
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
548
|
+
asynchronous HTTP request, please pass async_req=True
|
|
549
|
+
>>> thread = api.get_device_profile_infos_using_get_with_http_info(page_size, page, async_req=True)
|
|
550
|
+
>>> result = thread.get()
|
|
551
|
+
|
|
552
|
+
:param async_req bool
|
|
553
|
+
:param int page_size: Maximum amount of entities in a one page (required)
|
|
554
|
+
:param int page: Sequence number of page starting from 0 (required)
|
|
555
|
+
:param str text_search: The case insensitive 'substring' filter based on the device profile name.
|
|
556
|
+
:param str sort_property: Property of entity to sort by
|
|
557
|
+
:param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
|
|
558
|
+
:param str transport_type: Type of the transport
|
|
559
|
+
:return: PageDataDeviceProfileInfo
|
|
560
|
+
If the method is called asynchronously,
|
|
561
|
+
returns the request thread.
|
|
562
|
+
"""
|
|
563
|
+
|
|
564
|
+
all_params = ['page_size', 'page', 'text_search', 'sort_property', 'sort_order', 'transport_type'] # noqa: E501
|
|
565
|
+
all_params.append('async_req')
|
|
566
|
+
all_params.append('_return_http_data_only')
|
|
567
|
+
all_params.append('_preload_content')
|
|
568
|
+
all_params.append('_request_timeout')
|
|
569
|
+
|
|
570
|
+
params = locals()
|
|
571
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
572
|
+
if key not in all_params:
|
|
573
|
+
raise TypeError(
|
|
574
|
+
"Got an unexpected keyword argument '%s'"
|
|
575
|
+
" to method get_device_profile_infos_using_get" % key
|
|
576
|
+
)
|
|
577
|
+
params[key] = val
|
|
578
|
+
del params['kwargs']
|
|
579
|
+
# verify the required parameter 'page_size' is set
|
|
580
|
+
if ('page_size' not in params or
|
|
581
|
+
params['page_size'] is None):
|
|
582
|
+
raise ValueError("Missing the required parameter `page_size` when calling `get_device_profile_infos_using_get`") # noqa: E501
|
|
583
|
+
# verify the required parameter 'page' is set
|
|
584
|
+
if ('page' not in params or
|
|
585
|
+
params['page'] is None):
|
|
586
|
+
raise ValueError("Missing the required parameter `page` when calling `get_device_profile_infos_using_get`") # noqa: E501
|
|
587
|
+
|
|
588
|
+
collection_formats = {}
|
|
589
|
+
|
|
590
|
+
path_params = {}
|
|
591
|
+
|
|
592
|
+
query_params = []
|
|
593
|
+
if 'page_size' in params:
|
|
594
|
+
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
595
|
+
if 'page' in params:
|
|
596
|
+
query_params.append(('page', params['page'])) # noqa: E501
|
|
597
|
+
if 'text_search' in params:
|
|
598
|
+
query_params.append(('textSearch', params['text_search'])) # noqa: E501
|
|
599
|
+
if 'sort_property' in params:
|
|
600
|
+
query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
|
|
601
|
+
if 'sort_order' in params:
|
|
602
|
+
query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
|
|
603
|
+
if 'transport_type' in params:
|
|
604
|
+
query_params.append(('transportType', params['transport_type'])) # noqa: E501
|
|
605
|
+
|
|
606
|
+
header_params = {}
|
|
607
|
+
|
|
608
|
+
form_params = []
|
|
609
|
+
local_var_files = {}
|
|
610
|
+
|
|
611
|
+
body_params = None
|
|
612
|
+
# HTTP header `Accept`
|
|
613
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
614
|
+
['application/json']) # noqa: E501
|
|
615
|
+
|
|
616
|
+
# Authentication setting
|
|
617
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
618
|
+
|
|
619
|
+
return self.api_client.call_api(
|
|
620
|
+
'/api/deviceProfileInfos{?page,pageSize,sortOrder,sortProperty,textSearch,transportType}', 'GET',
|
|
621
|
+
path_params,
|
|
622
|
+
query_params,
|
|
623
|
+
header_params,
|
|
624
|
+
body=body_params,
|
|
625
|
+
post_params=form_params,
|
|
626
|
+
files=local_var_files,
|
|
627
|
+
response_type='PageDataDeviceProfileInfo', # noqa: E501
|
|
628
|
+
auth_settings=auth_settings,
|
|
629
|
+
async_req=params.get('async_req'),
|
|
630
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
631
|
+
_preload_content=params.get('_preload_content', True),
|
|
632
|
+
_request_timeout=params.get('_request_timeout'),
|
|
633
|
+
collection_formats=collection_formats)
|
|
634
|
+
|
|
635
|
+
def get_device_profile_names_using_get(self, **kwargs): # noqa: E501
|
|
636
|
+
"""Get Device Profile names (getDeviceProfileNames) # noqa: E501
|
|
637
|
+
|
|
638
|
+
Returns a set of unique device profile names owned by the tenant. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
639
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
640
|
+
asynchronous HTTP request, please pass async_req=True
|
|
641
|
+
>>> thread = api.get_device_profile_names_using_get(async_req=True)
|
|
642
|
+
>>> result = thread.get()
|
|
643
|
+
|
|
644
|
+
:param async_req bool
|
|
645
|
+
:param bool active_only: Flag indicating whether to retrieve exclusively the names of device profiles that are referenced by tenant's devices.
|
|
646
|
+
:return: list[EntityInfo]
|
|
647
|
+
If the method is called asynchronously,
|
|
648
|
+
returns the request thread.
|
|
649
|
+
"""
|
|
650
|
+
kwargs['_return_http_data_only'] = True
|
|
651
|
+
if kwargs.get('async_req'):
|
|
652
|
+
return self.get_device_profile_names_using_get_with_http_info(**kwargs) # noqa: E501
|
|
653
|
+
else:
|
|
654
|
+
(data) = self.get_device_profile_names_using_get_with_http_info(**kwargs) # noqa: E501
|
|
655
|
+
return data
|
|
656
|
+
|
|
657
|
+
def get_device_profile_names_using_get_with_http_info(self, **kwargs): # noqa: E501
|
|
658
|
+
"""Get Device Profile names (getDeviceProfileNames) # noqa: E501
|
|
659
|
+
|
|
660
|
+
Returns a set of unique device profile names owned by the tenant. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
661
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
662
|
+
asynchronous HTTP request, please pass async_req=True
|
|
663
|
+
>>> thread = api.get_device_profile_names_using_get_with_http_info(async_req=True)
|
|
664
|
+
>>> result = thread.get()
|
|
665
|
+
|
|
666
|
+
:param async_req bool
|
|
667
|
+
:param bool active_only: Flag indicating whether to retrieve exclusively the names of device profiles that are referenced by tenant's devices.
|
|
668
|
+
:return: list[EntityInfo]
|
|
669
|
+
If the method is called asynchronously,
|
|
670
|
+
returns the request thread.
|
|
671
|
+
"""
|
|
672
|
+
|
|
673
|
+
all_params = ['active_only'] # noqa: E501
|
|
674
|
+
all_params.append('async_req')
|
|
675
|
+
all_params.append('_return_http_data_only')
|
|
676
|
+
all_params.append('_preload_content')
|
|
677
|
+
all_params.append('_request_timeout')
|
|
678
|
+
|
|
679
|
+
params = locals()
|
|
680
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
681
|
+
if key not in all_params:
|
|
682
|
+
raise TypeError(
|
|
683
|
+
"Got an unexpected keyword argument '%s'"
|
|
684
|
+
" to method get_device_profile_names_using_get" % key
|
|
685
|
+
)
|
|
686
|
+
params[key] = val
|
|
687
|
+
del params['kwargs']
|
|
688
|
+
|
|
689
|
+
collection_formats = {}
|
|
690
|
+
|
|
691
|
+
path_params = {}
|
|
692
|
+
|
|
693
|
+
query_params = []
|
|
694
|
+
if 'active_only' in params:
|
|
695
|
+
query_params.append(('activeOnly', params['active_only'])) # noqa: E501
|
|
696
|
+
|
|
697
|
+
header_params = {}
|
|
698
|
+
|
|
699
|
+
form_params = []
|
|
700
|
+
local_var_files = {}
|
|
701
|
+
|
|
702
|
+
body_params = None
|
|
703
|
+
# HTTP header `Accept`
|
|
704
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
705
|
+
['application/json']) # noqa: E501
|
|
706
|
+
|
|
707
|
+
# Authentication setting
|
|
708
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
709
|
+
|
|
710
|
+
return self.api_client.call_api(
|
|
711
|
+
'/api/deviceProfile/names{?activeOnly}', 'GET',
|
|
712
|
+
path_params,
|
|
713
|
+
query_params,
|
|
714
|
+
header_params,
|
|
715
|
+
body=body_params,
|
|
716
|
+
post_params=form_params,
|
|
717
|
+
files=local_var_files,
|
|
718
|
+
response_type='list[EntityInfo]', # noqa: E501
|
|
719
|
+
auth_settings=auth_settings,
|
|
720
|
+
async_req=params.get('async_req'),
|
|
721
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
722
|
+
_preload_content=params.get('_preload_content', True),
|
|
723
|
+
_request_timeout=params.get('_request_timeout'),
|
|
724
|
+
collection_formats=collection_formats)
|
|
725
|
+
|
|
726
|
+
def get_device_profiles_by_ids_using_get(self, device_profile_ids, **kwargs): # noqa: E501
|
|
727
|
+
"""Get Device Profiles By Ids (getDeviceProfilesByIds) # noqa: E501
|
|
728
|
+
|
|
729
|
+
Requested device profiles must be owned by tenant which is performing the request. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
|
|
730
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
731
|
+
asynchronous HTTP request, please pass async_req=True
|
|
732
|
+
>>> thread = api.get_device_profiles_by_ids_using_get(device_profile_ids, async_req=True)
|
|
733
|
+
>>> result = thread.get()
|
|
734
|
+
|
|
735
|
+
:param async_req bool
|
|
736
|
+
:param str device_profile_ids: A list of device profile ids, separated by comma ',' (required)
|
|
737
|
+
:return: list[DeviceProfileInfo]
|
|
738
|
+
If the method is called asynchronously,
|
|
739
|
+
returns the request thread.
|
|
740
|
+
"""
|
|
741
|
+
kwargs['_return_http_data_only'] = True
|
|
742
|
+
if kwargs.get('async_req'):
|
|
743
|
+
return self.get_device_profiles_by_ids_using_get_with_http_info(device_profile_ids, **kwargs) # noqa: E501
|
|
744
|
+
else:
|
|
745
|
+
(data) = self.get_device_profiles_by_ids_using_get_with_http_info(device_profile_ids, **kwargs) # noqa: E501
|
|
746
|
+
return data
|
|
747
|
+
|
|
748
|
+
def get_device_profiles_by_ids_using_get_with_http_info(self, device_profile_ids, **kwargs): # noqa: E501
|
|
749
|
+
"""Get Device Profiles By Ids (getDeviceProfilesByIds) # noqa: E501
|
|
750
|
+
|
|
751
|
+
Requested device profiles must be owned by tenant which is performing the request. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
|
|
752
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
753
|
+
asynchronous HTTP request, please pass async_req=True
|
|
754
|
+
>>> thread = api.get_device_profiles_by_ids_using_get_with_http_info(device_profile_ids, async_req=True)
|
|
755
|
+
>>> result = thread.get()
|
|
756
|
+
|
|
757
|
+
:param async_req bool
|
|
758
|
+
:param str device_profile_ids: A list of device profile ids, separated by comma ',' (required)
|
|
759
|
+
:return: list[DeviceProfileInfo]
|
|
760
|
+
If the method is called asynchronously,
|
|
761
|
+
returns the request thread.
|
|
762
|
+
"""
|
|
763
|
+
|
|
764
|
+
all_params = ['device_profile_ids'] # noqa: E501
|
|
765
|
+
all_params.append('async_req')
|
|
766
|
+
all_params.append('_return_http_data_only')
|
|
767
|
+
all_params.append('_preload_content')
|
|
768
|
+
all_params.append('_request_timeout')
|
|
769
|
+
|
|
770
|
+
params = locals()
|
|
771
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
772
|
+
if key not in all_params:
|
|
773
|
+
raise TypeError(
|
|
774
|
+
"Got an unexpected keyword argument '%s'"
|
|
775
|
+
" to method get_device_profiles_by_ids_using_get" % key
|
|
776
|
+
)
|
|
777
|
+
params[key] = val
|
|
778
|
+
del params['kwargs']
|
|
779
|
+
# verify the required parameter 'device_profile_ids' is set
|
|
780
|
+
if ('device_profile_ids' not in params or
|
|
781
|
+
params['device_profile_ids'] is None):
|
|
782
|
+
raise ValueError("Missing the required parameter `device_profile_ids` when calling `get_device_profiles_by_ids_using_get`") # noqa: E501
|
|
783
|
+
|
|
784
|
+
collection_formats = {}
|
|
785
|
+
|
|
786
|
+
path_params = {}
|
|
787
|
+
|
|
788
|
+
query_params = []
|
|
789
|
+
if 'device_profile_ids' in params:
|
|
790
|
+
query_params.append(('deviceProfileIds', params['device_profile_ids'])) # noqa: E501
|
|
791
|
+
|
|
792
|
+
header_params = {}
|
|
793
|
+
|
|
794
|
+
form_params = []
|
|
795
|
+
local_var_files = {}
|
|
796
|
+
|
|
797
|
+
body_params = None
|
|
798
|
+
# HTTP header `Accept`
|
|
799
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
800
|
+
['application/json']) # noqa: E501
|
|
801
|
+
|
|
802
|
+
# Authentication setting
|
|
803
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
804
|
+
|
|
805
|
+
return self.api_client.call_api(
|
|
806
|
+
'/api/deviceProfileInfos{?deviceProfileIds}', 'GET',
|
|
807
|
+
path_params,
|
|
808
|
+
query_params,
|
|
809
|
+
header_params,
|
|
810
|
+
body=body_params,
|
|
811
|
+
post_params=form_params,
|
|
812
|
+
files=local_var_files,
|
|
813
|
+
response_type='list[DeviceProfileInfo]', # noqa: E501
|
|
814
|
+
auth_settings=auth_settings,
|
|
815
|
+
async_req=params.get('async_req'),
|
|
816
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
817
|
+
_preload_content=params.get('_preload_content', True),
|
|
818
|
+
_request_timeout=params.get('_request_timeout'),
|
|
819
|
+
collection_formats=collection_formats)
|
|
820
|
+
|
|
821
|
+
def get_device_profiles_using_get(self, page_size, page, **kwargs): # noqa: E501
|
|
822
|
+
"""Get Device Profiles (getDeviceProfiles) # noqa: E501
|
|
823
|
+
|
|
824
|
+
Returns a page of devices profile objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
825
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
826
|
+
asynchronous HTTP request, please pass async_req=True
|
|
827
|
+
>>> thread = api.get_device_profiles_using_get(page_size, page, async_req=True)
|
|
828
|
+
>>> result = thread.get()
|
|
829
|
+
|
|
830
|
+
:param async_req bool
|
|
831
|
+
:param int page_size: Maximum amount of entities in a one page (required)
|
|
832
|
+
:param int page: Sequence number of page starting from 0 (required)
|
|
833
|
+
:param str text_search: The case insensitive 'substring' filter based on the device profile name.
|
|
834
|
+
:param str sort_property: Property of entity to sort by
|
|
835
|
+
:param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
|
|
836
|
+
:return: PageDataDeviceProfile
|
|
837
|
+
If the method is called asynchronously,
|
|
838
|
+
returns the request thread.
|
|
839
|
+
"""
|
|
840
|
+
kwargs['_return_http_data_only'] = True
|
|
841
|
+
if kwargs.get('async_req'):
|
|
842
|
+
return self.get_device_profiles_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
|
|
843
|
+
else:
|
|
844
|
+
(data) = self.get_device_profiles_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
|
|
845
|
+
return data
|
|
846
|
+
|
|
847
|
+
def get_device_profiles_using_get_with_http_info(self, page_size, page, **kwargs): # noqa: E501
|
|
848
|
+
"""Get Device Profiles (getDeviceProfiles) # noqa: E501
|
|
849
|
+
|
|
850
|
+
Returns a page of devices profile objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
851
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
852
|
+
asynchronous HTTP request, please pass async_req=True
|
|
853
|
+
>>> thread = api.get_device_profiles_using_get_with_http_info(page_size, page, async_req=True)
|
|
854
|
+
>>> result = thread.get()
|
|
855
|
+
|
|
856
|
+
:param async_req bool
|
|
857
|
+
:param int page_size: Maximum amount of entities in a one page (required)
|
|
858
|
+
:param int page: Sequence number of page starting from 0 (required)
|
|
859
|
+
:param str text_search: The case insensitive 'substring' filter based on the device profile name.
|
|
860
|
+
:param str sort_property: Property of entity to sort by
|
|
861
|
+
:param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
|
|
862
|
+
:return: PageDataDeviceProfile
|
|
863
|
+
If the method is called asynchronously,
|
|
864
|
+
returns the request thread.
|
|
865
|
+
"""
|
|
866
|
+
|
|
867
|
+
all_params = ['page_size', 'page', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
|
|
868
|
+
all_params.append('async_req')
|
|
869
|
+
all_params.append('_return_http_data_only')
|
|
870
|
+
all_params.append('_preload_content')
|
|
871
|
+
all_params.append('_request_timeout')
|
|
872
|
+
|
|
873
|
+
params = locals()
|
|
874
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
875
|
+
if key not in all_params:
|
|
876
|
+
raise TypeError(
|
|
877
|
+
"Got an unexpected keyword argument '%s'"
|
|
878
|
+
" to method get_device_profiles_using_get" % key
|
|
879
|
+
)
|
|
880
|
+
params[key] = val
|
|
881
|
+
del params['kwargs']
|
|
882
|
+
# verify the required parameter 'page_size' is set
|
|
883
|
+
if ('page_size' not in params or
|
|
884
|
+
params['page_size'] is None):
|
|
885
|
+
raise ValueError("Missing the required parameter `page_size` when calling `get_device_profiles_using_get`") # noqa: E501
|
|
886
|
+
# verify the required parameter 'page' is set
|
|
887
|
+
if ('page' not in params or
|
|
888
|
+
params['page'] is None):
|
|
889
|
+
raise ValueError("Missing the required parameter `page` when calling `get_device_profiles_using_get`") # noqa: E501
|
|
890
|
+
|
|
891
|
+
collection_formats = {}
|
|
892
|
+
|
|
893
|
+
path_params = {}
|
|
894
|
+
|
|
895
|
+
query_params = []
|
|
896
|
+
if 'page_size' in params:
|
|
897
|
+
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
898
|
+
if 'page' in params:
|
|
899
|
+
query_params.append(('page', params['page'])) # noqa: E501
|
|
900
|
+
if 'text_search' in params:
|
|
901
|
+
query_params.append(('textSearch', params['text_search'])) # noqa: E501
|
|
902
|
+
if 'sort_property' in params:
|
|
903
|
+
query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
|
|
904
|
+
if 'sort_order' in params:
|
|
905
|
+
query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
|
|
906
|
+
|
|
907
|
+
header_params = {}
|
|
908
|
+
|
|
909
|
+
form_params = []
|
|
910
|
+
local_var_files = {}
|
|
911
|
+
|
|
912
|
+
body_params = None
|
|
913
|
+
# HTTP header `Accept`
|
|
914
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
915
|
+
['application/json']) # noqa: E501
|
|
916
|
+
|
|
917
|
+
# Authentication setting
|
|
918
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
919
|
+
|
|
920
|
+
return self.api_client.call_api(
|
|
921
|
+
'/api/deviceProfiles{?page,pageSize,sortOrder,sortProperty,textSearch}', 'GET',
|
|
922
|
+
path_params,
|
|
923
|
+
query_params,
|
|
924
|
+
header_params,
|
|
925
|
+
body=body_params,
|
|
926
|
+
post_params=form_params,
|
|
927
|
+
files=local_var_files,
|
|
928
|
+
response_type='PageDataDeviceProfile', # noqa: E501
|
|
929
|
+
auth_settings=auth_settings,
|
|
930
|
+
async_req=params.get('async_req'),
|
|
931
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
932
|
+
_preload_content=params.get('_preload_content', True),
|
|
933
|
+
_request_timeout=params.get('_request_timeout'),
|
|
934
|
+
collection_formats=collection_formats)
|
|
935
|
+
|
|
936
|
+
def get_timeseries_keys_using_get(self, **kwargs): # noqa: E501
|
|
937
|
+
"""Get time-series keys (getTimeseriesKeys) # noqa: E501
|
|
938
|
+
|
|
939
|
+
Get a set of unique time-series keys used by devices that belong to specified profile. If profile is not set returns a list of unique keys among all profiles. The call is used for auto-complete in the UI forms. The implementation limits the number of devices that participate in search to 100 as a trade of between accurate results and time-consuming queries. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
940
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
941
|
+
asynchronous HTTP request, please pass async_req=True
|
|
942
|
+
>>> thread = api.get_timeseries_keys_using_get(async_req=True)
|
|
943
|
+
>>> result = thread.get()
|
|
944
|
+
|
|
945
|
+
:param async_req bool
|
|
946
|
+
:param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
|
|
947
|
+
:return: list[str]
|
|
948
|
+
If the method is called asynchronously,
|
|
949
|
+
returns the request thread.
|
|
950
|
+
"""
|
|
951
|
+
kwargs['_return_http_data_only'] = True
|
|
952
|
+
if kwargs.get('async_req'):
|
|
953
|
+
return self.get_timeseries_keys_using_get_with_http_info(**kwargs) # noqa: E501
|
|
954
|
+
else:
|
|
955
|
+
(data) = self.get_timeseries_keys_using_get_with_http_info(**kwargs) # noqa: E501
|
|
956
|
+
return data
|
|
957
|
+
|
|
958
|
+
def get_timeseries_keys_using_get_with_http_info(self, **kwargs): # noqa: E501
|
|
959
|
+
"""Get time-series keys (getTimeseriesKeys) # noqa: E501
|
|
960
|
+
|
|
961
|
+
Get a set of unique time-series keys used by devices that belong to specified profile. If profile is not set returns a list of unique keys among all profiles. The call is used for auto-complete in the UI forms. The implementation limits the number of devices that participate in search to 100 as a trade of between accurate results and time-consuming queries. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
962
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
963
|
+
asynchronous HTTP request, please pass async_req=True
|
|
964
|
+
>>> thread = api.get_timeseries_keys_using_get_with_http_info(async_req=True)
|
|
965
|
+
>>> result = thread.get()
|
|
966
|
+
|
|
967
|
+
:param async_req bool
|
|
968
|
+
:param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
|
|
969
|
+
:return: list[str]
|
|
970
|
+
If the method is called asynchronously,
|
|
971
|
+
returns the request thread.
|
|
972
|
+
"""
|
|
973
|
+
|
|
974
|
+
all_params = ['device_profile_id'] # noqa: E501
|
|
975
|
+
all_params.append('async_req')
|
|
976
|
+
all_params.append('_return_http_data_only')
|
|
977
|
+
all_params.append('_preload_content')
|
|
978
|
+
all_params.append('_request_timeout')
|
|
979
|
+
|
|
980
|
+
params = locals()
|
|
981
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
982
|
+
if key not in all_params:
|
|
983
|
+
raise TypeError(
|
|
984
|
+
"Got an unexpected keyword argument '%s'"
|
|
985
|
+
" to method get_timeseries_keys_using_get" % key
|
|
986
|
+
)
|
|
987
|
+
params[key] = val
|
|
988
|
+
del params['kwargs']
|
|
989
|
+
|
|
990
|
+
collection_formats = {}
|
|
991
|
+
|
|
992
|
+
path_params = {}
|
|
993
|
+
|
|
994
|
+
query_params = []
|
|
995
|
+
if 'device_profile_id' in params:
|
|
996
|
+
query_params.append(('deviceProfileId', params['device_profile_id'])) # noqa: E501
|
|
997
|
+
|
|
998
|
+
header_params = {}
|
|
999
|
+
|
|
1000
|
+
form_params = []
|
|
1001
|
+
local_var_files = {}
|
|
1002
|
+
|
|
1003
|
+
body_params = None
|
|
1004
|
+
# HTTP header `Accept`
|
|
1005
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1006
|
+
['application/json']) # noqa: E501
|
|
1007
|
+
|
|
1008
|
+
# Authentication setting
|
|
1009
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
1010
|
+
|
|
1011
|
+
return self.api_client.call_api(
|
|
1012
|
+
'/api/deviceProfile/devices/keys/timeseries{?deviceProfileId}', 'GET',
|
|
1013
|
+
path_params,
|
|
1014
|
+
query_params,
|
|
1015
|
+
header_params,
|
|
1016
|
+
body=body_params,
|
|
1017
|
+
post_params=form_params,
|
|
1018
|
+
files=local_var_files,
|
|
1019
|
+
response_type='list[str]', # noqa: E501
|
|
1020
|
+
auth_settings=auth_settings,
|
|
1021
|
+
async_req=params.get('async_req'),
|
|
1022
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1023
|
+
_preload_content=params.get('_preload_content', True),
|
|
1024
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1025
|
+
collection_formats=collection_formats)
|
|
1026
|
+
|
|
1027
|
+
def save_device_profile_using_post(self, **kwargs): # noqa: E501
|
|
1028
|
+
"""Create Or Update Device Profile (saveDeviceProfile) # noqa: E501
|
|
1029
|
+
|
|
1030
|
+
Create or update the Device Profile. When creating device profile, platform generates device profile id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created device profile id will be present in the response. Specify existing device profile id to update the device profile. Referencing non-existing device profile Id will cause 'Not Found' error. Device profile name is unique in the scope of tenant. Only one 'default' device profile may exist in scope of tenant. # Device profile data definition Device profile data object contains alarm rules configuration, device provision strategy and transport type configuration for device connectivity. Let's review some examples. First one is the default device profile data configuration and second one - the custom one. ```json { \"alarms\":[ ], \"configuration\":{ \"type\":\"DEFAULT\" }, \"provisionConfiguration\":{ \"type\":\"DISABLED\", \"provisionDeviceSecret\":null }, \"transportConfiguration\":{ \"type\":\"DEFAULT\" } } ``` ```json { \"alarms\":[ { \"id\":\"2492b935-1226-59e9-8615-17d8978a4f93\", \"alarmType\":\"Temperature Alarm\", \"clearRule\":{ \"schedule\":null, \"condition\":{ \"spec\":{ \"type\":\"SIMPLE\" }, \"condition\":[ { \"key\":{ \"key\":\"temperature\", \"type\":\"TIME_SERIES\" }, \"value\":null, \"predicate\":{ \"type\":\"NUMERIC\", \"value\":{ \"userValue\":null, \"defaultValue\":30.0, \"dynamicValue\":null }, \"operation\":\"LESS\" }, \"valueType\":\"NUMERIC\" } ] }, \"dashboardId\":null, \"alarmDetails\":null }, \"propagate\":false, \"createRules\":{ \"MAJOR\":{ \"schedule\":{ \"type\":\"SPECIFIC_TIME\", \"endsOn\":64800000, \"startsOn\":43200000, \"timezone\":\"Europe/Kiev\", \"daysOfWeek\":[ 1, 3, 5 ] }, \"condition\":{ \"spec\":{ \"type\":\"DURATION\", \"unit\":\"MINUTES\", \"predicate\":{ \"userValue\":null, \"defaultValue\":30, \"dynamicValue\":null } }, \"condition\":[ { \"key\":{ \"key\":\"temperature\", \"type\":\"TIME_SERIES\" }, \"value\":null, \"predicate\":{ \"type\":\"COMPLEX\", \"operation\":\"OR\", \"predicates\":[ { \"type\":\"NUMERIC\", \"value\":{ \"userValue\":null, \"defaultValue\":50.0, \"dynamicValue\":null }, \"operation\":\"LESS_OR_EQUAL\" }, { \"type\":\"NUMERIC\", \"value\":{ \"userValue\":null, \"defaultValue\":30.0, \"dynamicValue\":null }, \"operation\":\"GREATER\" } ] }, \"valueType\":\"NUMERIC\" } ] }, \"dashboardId\":null, \"alarmDetails\":null }, \"WARNING\":{ \"schedule\":{ \"type\":\"CUSTOM\", \"items\":[ { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":1 }, { \"endsOn\":64800000, \"enabled\":true, \"startsOn\":43200000, \"dayOfWeek\":2 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":3 }, { \"endsOn\":57600000, \"enabled\":true, \"startsOn\":36000000, \"dayOfWeek\":4 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":5 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":6 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":7 } ], \"timezone\":\"Europe/Kiev\" }, \"condition\":{ \"spec\":{ \"type\":\"REPEATING\", \"predicate\":{ \"userValue\":null, \"defaultValue\":5, \"dynamicValue\":null } }, \"condition\":[ { \"key\":{ \"key\":\"tempConstant\", \"type\":\"CONSTANT\" }, \"value\":30, \"predicate\":{ \"type\":\"NUMERIC\", \"value\":{ \"userValue\":null, \"defaultValue\":0.0, \"dynamicValue\":{ \"inherit\":false, \"sourceType\":\"CURRENT_DEVICE\", \"sourceAttribute\":\"tempThreshold\" } }, \"operation\":\"EQUAL\" }, \"valueType\":\"NUMERIC\" } ] }, \"dashboardId\":null, \"alarmDetails\":null }, \"CRITICAL\":{ \"schedule\":null, \"condition\":{ \"spec\":{ \"type\":\"SIMPLE\" }, \"condition\":[ { \"key\":{ \"key\":\"temperature\", \"type\":\"TIME_SERIES\" }, \"value\":null, \"predicate\":{ \"type\":\"NUMERIC\", \"value\":{ \"userValue\":null, \"defaultValue\":50.0, \"dynamicValue\":null }, \"operation\":\"GREATER\" }, \"valueType\":\"NUMERIC\" } ] }, \"dashboardId\":null, \"alarmDetails\":null } }, \"propagateRelationTypes\":null } ], \"configuration\":{ \"type\":\"DEFAULT\" }, \"provisionConfiguration\":{ \"type\":\"ALLOW_CREATE_NEW_DEVICES\", \"provisionDeviceSecret\":\"vaxb9hzqdbz3oqukvomg\" }, \"transportConfiguration\":{ \"type\":\"MQTT\", \"deviceTelemetryTopic\":\"v1/devices/me/telemetry\", \"deviceAttributesTopic\":\"v1/devices/me/attributes\", \"transportPayloadTypeConfiguration\":{ \"transportPayloadType\":\"PROTOBUF\", \"deviceTelemetryProtoSchema\":\"syntax =\\\"proto3\\\";\\npackage telemetry;\\n\\nmessage SensorDataReading {\\n\\n optional double temperature = 1;\\n optional double humidity = 2;\\n InnerObject innerObject = 3;\\n\\n message InnerObject {\\n optional string key1 = 1;\\n optional bool key2 = 2;\\n optional double key3 = 3;\\n optional int32 key4 = 4;\\n optional string key5 = 5;\\n }\\n}\", \"deviceAttributesProtoSchema\":\"syntax =\\\"proto3\\\";\\npackage attributes;\\n\\nmessage SensorConfiguration {\\n optional string firmwareVersion = 1;\\n optional string serialNumber = 2;\\n}\", \"deviceRpcRequestProtoSchema\":\"syntax =\\\"proto3\\\";\\npackage rpc;\\n\\nmessage RpcRequestMsg {\\n optional string method = 1;\\n optional int32 requestId = 2;\\n optional string params = 3;\\n}\", \"deviceRpcResponseProtoSchema\":\"syntax =\\\"proto3\\\";\\npackage rpc;\\n\\nmessage RpcResponseMsg {\\n optional string payload = 1;\\n}\" } } } ``` Let's review some specific objects examples related to the device profile configuration: # Alarm Schedule Alarm Schedule JSON object represents the time interval during which the alarm rule is active. Note, ```json \"schedule\": null ``` means alarm rule is active all the time. **'daysOfWeek'** field represents Monday as 1, Tuesday as 2 and so on. **'startsOn'** and **'endsOn'** fields represent hours in millis (e.g. 64800000 = 18:00 or 6pm). **'enabled'** flag specifies if item in a custom rule is active for specific day of the week: ## Specific Time Schedule ```json { \"schedule\":{ \"type\":\"SPECIFIC_TIME\", \"endsOn\":64800000, \"startsOn\":43200000, \"timezone\":\"Europe/Kiev\", \"daysOfWeek\":[ 1, 3, 5 ] } } ``` ## Custom Schedule ```json { \"schedule\":{ \"type\":\"CUSTOM\", \"items\":[ { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":1 }, { \"endsOn\":64800000, \"enabled\":true, \"startsOn\":43200000, \"dayOfWeek\":2 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":3 }, { \"endsOn\":57600000, \"enabled\":true, \"startsOn\":36000000, \"dayOfWeek\":4 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":5 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":6 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":7 } ], \"timezone\":\"Europe/Kiev\" } } ``` # Alarm condition type (**'spec'**) Alarm condition type can be either simple, duration, or repeating. For example, 5 times in a row or during 5 minutes. Note, **'userValue'** field is not used and reserved for future usage, **'dynamicValue'** is used for condition appliance by using the value of the **'sourceAttribute'** or else **'defaultValue'** is used (if **'sourceAttribute'** is absent). **'sourceType'** of the **'sourceAttribute'** can be: * 'CURRENT_DEVICE'; * 'CURRENT_CUSTOMER'; * 'CURRENT_TENANT'. **'sourceAttribute'** can be inherited from the owner if **'inherit'** is set to true (for CURRENT_DEVICE and CURRENT_CUSTOMER). ## Repeating alarm condition ```json { \"spec\":{ \"type\":\"REPEATING\", \"predicate\":{ \"userValue\":null, \"defaultValue\":5, \"dynamicValue\":{ \"inherit\":true, \"sourceType\":\"CURRENT_DEVICE\", \"sourceAttribute\":\"tempAttr\" } } } } ``` ## Duration alarm condition ```json { \"spec\":{ \"type\":\"DURATION\", \"unit\":\"MINUTES\", \"predicate\":{ \"userValue\":null, \"defaultValue\":30, \"dynamicValue\":null } } } ``` **'unit'** can be: * 'SECONDS'; * 'MINUTES'; * 'HOURS'; * 'DAYS'. # Key Filters Key filter objects are created under the **'condition'** array. They allow you to define complex logical expressions over entity field, attribute, latest time-series value or constant. The filter is defined using 'key', 'valueType', 'value' (refers to the value of the 'CONSTANT' alarm filter key type) and 'predicate' objects. Let's review each object: ## Alarm Filter Key Filter Key defines either entity field, attribute, telemetry or constant. It is a JSON object that consists the key name and type. The following filter key types are supported: * 'ATTRIBUTE' - used for attributes values; * 'TIME_SERIES' - used for time-series values; * 'ENTITY_FIELD' - used for accessing entity fields like 'name', 'label', etc. The list of available fields depends on the entity type; * 'CONSTANT' - constant value specified. Let's review the example: ```json { \"type\": \"TIME_SERIES\", \"key\": \"temperature\" } ``` ## Value Type and Operations Provides a hint about the data type of the entity field that is defined in the filter key. The value type impacts the list of possible operations that you may use in the corresponding predicate. For example, you may use 'STARTS_WITH' or 'END_WITH', but you can't use 'GREATER_OR_EQUAL' for string values.The following filter value types and corresponding predicate operations are supported: * 'STRING' - used to filter any 'String' or 'JSON' values. Operations: EQUAL, NOT_EQUAL, STARTS_WITH, ENDS_WITH, CONTAINS, NOT_CONTAINS; * 'NUMERIC' - used for 'Long' and 'Double' values. Operations: EQUAL, NOT_EQUAL, GREATER, LESS, GREATER_OR_EQUAL, LESS_OR_EQUAL; * 'BOOLEAN' - used for boolean values. Operations: EQUAL, NOT_EQUAL; * 'DATE_TIME' - similar to numeric, transforms value to milliseconds since epoch. Operations: EQUAL, NOT_EQUAL, GREATER, LESS, GREATER_OR_EQUAL, LESS_OR_EQUAL; ## Filter Predicate Filter Predicate defines the logical expression to evaluate. The list of available operations depends on the filter value type, see above. Platform supports 4 predicate types: 'STRING', 'NUMERIC', 'BOOLEAN' and 'COMPLEX'. The last one allows to combine multiple operations over one filter key. Simple predicate example to check 'value < 100': ```json { \"operation\": \"LESS\", \"value\": { \"userValue\": null, \"defaultValue\": 100, \"dynamicValue\": null }, \"type\": \"NUMERIC\" } ``` Complex predicate example, to check 'value < 10 or value > 20': ```json { \"type\": \"COMPLEX\", \"operation\": \"OR\", \"predicates\": [ { \"operation\": \"LESS\", \"value\": { \"userValue\": null, \"defaultValue\": 10, \"dynamicValue\": null }, \"type\": \"NUMERIC\" }, { \"operation\": \"GREATER\", \"value\": { \"userValue\": null, \"defaultValue\": 20, \"dynamicValue\": null }, \"type\": \"NUMERIC\" } ] } ``` More complex predicate example, to check 'value < 10 or (value > 50 && value < 60)': ```json { \"type\": \"COMPLEX\", \"operation\": \"OR\", \"predicates\": [ { \"operation\": \"LESS\", \"value\": { \"userValue\": null, \"defaultValue\": 10, \"dynamicValue\": null }, \"type\": \"NUMERIC\" }, { \"type\": \"COMPLEX\", \"operation\": \"AND\", \"predicates\": [ { \"operation\": \"GREATER\", \"value\": { \"userValue\": null, \"defaultValue\": 50, \"dynamicValue\": null }, \"type\": \"NUMERIC\" }, { \"operation\": \"LESS\", \"value\": { \"userValue\": null, \"defaultValue\": 60, \"dynamicValue\": null }, \"type\": \"NUMERIC\" } ] } ] } ``` You may also want to replace hardcoded values (for example, temperature > 20) with the more dynamic expression (for example, temperature > value of the tenant attribute with key 'temperatureThreshold'). It is possible to use 'dynamicValue' to define attribute of the tenant, customer or device. See example below: ```json { \"operation\": \"GREATER\", \"value\": { \"userValue\": null, \"defaultValue\": 0, \"dynamicValue\": { \"inherit\": false, \"sourceType\": \"CURRENT_TENANT\", \"sourceAttribute\": \"temperatureThreshold\" } }, \"type\": \"NUMERIC\" } ``` Note that you may use 'CURRENT_DEVICE', 'CURRENT_CUSTOMER' and 'CURRENT_TENANT' as a 'sourceType'. The 'defaultValue' is used when the attribute with such a name is not defined for the chosen source. The 'sourceAttribute' can be inherited from the owner of the specified 'sourceType' if 'inherit' is set to true. # Provision Configuration There are 3 types of device provision configuration for the device profile: * 'DISABLED'; * 'ALLOW_CREATE_NEW_DEVICES'; * 'CHECK_PRE_PROVISIONED_DEVICES'. Please refer to the [docs](https://thingsboard.io/docs/user-guide/device-provisioning/) for more details. # Transport Configuration 5 transport configuration types are available: * 'DEFAULT'; * 'MQTT'; * 'LWM2M'; * 'COAP'; * 'SNMP'. Default type supports basic MQTT, HTTP, CoAP and LwM2M transports. Please refer to the [docs](https://thingsboard.io/docs/user-guide/device-profiles/#transport-configuration) for more details about other types. See another example of COAP transport configuration below: ```json { \"type\":\"COAP\", \"clientSettings\":{ \"edrxCycle\":null, \"powerMode\":\"DRX\", \"psmActivityTimer\":null, \"pagingTransmissionWindow\":null }, \"coapDeviceTypeConfiguration\":{ \"coapDeviceType\":\"DEFAULT\", \"transportPayloadTypeConfiguration\":{ \"transportPayloadType\":\"JSON\" } } } ```Remove 'id', 'tenantId' from the request body example (below) to create new Device Profile entity. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
1031
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1032
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1033
|
+
>>> thread = api.save_device_profile_using_post(async_req=True)
|
|
1034
|
+
>>> result = thread.get()
|
|
1035
|
+
|
|
1036
|
+
:param async_req bool
|
|
1037
|
+
:param DeviceProfile body:
|
|
1038
|
+
:return: DeviceProfile
|
|
1039
|
+
If the method is called asynchronously,
|
|
1040
|
+
returns the request thread.
|
|
1041
|
+
"""
|
|
1042
|
+
kwargs['_return_http_data_only'] = True
|
|
1043
|
+
if kwargs.get('async_req'):
|
|
1044
|
+
return self.save_device_profile_using_post_with_http_info(**kwargs) # noqa: E501
|
|
1045
|
+
else:
|
|
1046
|
+
(data) = self.save_device_profile_using_post_with_http_info(**kwargs) # noqa: E501
|
|
1047
|
+
return data
|
|
1048
|
+
|
|
1049
|
+
def save_device_profile_using_post_with_http_info(self, **kwargs): # noqa: E501
|
|
1050
|
+
"""Create Or Update Device Profile (saveDeviceProfile) # noqa: E501
|
|
1051
|
+
|
|
1052
|
+
Create or update the Device Profile. When creating device profile, platform generates device profile id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created device profile id will be present in the response. Specify existing device profile id to update the device profile. Referencing non-existing device profile Id will cause 'Not Found' error. Device profile name is unique in the scope of tenant. Only one 'default' device profile may exist in scope of tenant. # Device profile data definition Device profile data object contains alarm rules configuration, device provision strategy and transport type configuration for device connectivity. Let's review some examples. First one is the default device profile data configuration and second one - the custom one. ```json { \"alarms\":[ ], \"configuration\":{ \"type\":\"DEFAULT\" }, \"provisionConfiguration\":{ \"type\":\"DISABLED\", \"provisionDeviceSecret\":null }, \"transportConfiguration\":{ \"type\":\"DEFAULT\" } } ``` ```json { \"alarms\":[ { \"id\":\"2492b935-1226-59e9-8615-17d8978a4f93\", \"alarmType\":\"Temperature Alarm\", \"clearRule\":{ \"schedule\":null, \"condition\":{ \"spec\":{ \"type\":\"SIMPLE\" }, \"condition\":[ { \"key\":{ \"key\":\"temperature\", \"type\":\"TIME_SERIES\" }, \"value\":null, \"predicate\":{ \"type\":\"NUMERIC\", \"value\":{ \"userValue\":null, \"defaultValue\":30.0, \"dynamicValue\":null }, \"operation\":\"LESS\" }, \"valueType\":\"NUMERIC\" } ] }, \"dashboardId\":null, \"alarmDetails\":null }, \"propagate\":false, \"createRules\":{ \"MAJOR\":{ \"schedule\":{ \"type\":\"SPECIFIC_TIME\", \"endsOn\":64800000, \"startsOn\":43200000, \"timezone\":\"Europe/Kiev\", \"daysOfWeek\":[ 1, 3, 5 ] }, \"condition\":{ \"spec\":{ \"type\":\"DURATION\", \"unit\":\"MINUTES\", \"predicate\":{ \"userValue\":null, \"defaultValue\":30, \"dynamicValue\":null } }, \"condition\":[ { \"key\":{ \"key\":\"temperature\", \"type\":\"TIME_SERIES\" }, \"value\":null, \"predicate\":{ \"type\":\"COMPLEX\", \"operation\":\"OR\", \"predicates\":[ { \"type\":\"NUMERIC\", \"value\":{ \"userValue\":null, \"defaultValue\":50.0, \"dynamicValue\":null }, \"operation\":\"LESS_OR_EQUAL\" }, { \"type\":\"NUMERIC\", \"value\":{ \"userValue\":null, \"defaultValue\":30.0, \"dynamicValue\":null }, \"operation\":\"GREATER\" } ] }, \"valueType\":\"NUMERIC\" } ] }, \"dashboardId\":null, \"alarmDetails\":null }, \"WARNING\":{ \"schedule\":{ \"type\":\"CUSTOM\", \"items\":[ { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":1 }, { \"endsOn\":64800000, \"enabled\":true, \"startsOn\":43200000, \"dayOfWeek\":2 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":3 }, { \"endsOn\":57600000, \"enabled\":true, \"startsOn\":36000000, \"dayOfWeek\":4 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":5 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":6 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":7 } ], \"timezone\":\"Europe/Kiev\" }, \"condition\":{ \"spec\":{ \"type\":\"REPEATING\", \"predicate\":{ \"userValue\":null, \"defaultValue\":5, \"dynamicValue\":null } }, \"condition\":[ { \"key\":{ \"key\":\"tempConstant\", \"type\":\"CONSTANT\" }, \"value\":30, \"predicate\":{ \"type\":\"NUMERIC\", \"value\":{ \"userValue\":null, \"defaultValue\":0.0, \"dynamicValue\":{ \"inherit\":false, \"sourceType\":\"CURRENT_DEVICE\", \"sourceAttribute\":\"tempThreshold\" } }, \"operation\":\"EQUAL\" }, \"valueType\":\"NUMERIC\" } ] }, \"dashboardId\":null, \"alarmDetails\":null }, \"CRITICAL\":{ \"schedule\":null, \"condition\":{ \"spec\":{ \"type\":\"SIMPLE\" }, \"condition\":[ { \"key\":{ \"key\":\"temperature\", \"type\":\"TIME_SERIES\" }, \"value\":null, \"predicate\":{ \"type\":\"NUMERIC\", \"value\":{ \"userValue\":null, \"defaultValue\":50.0, \"dynamicValue\":null }, \"operation\":\"GREATER\" }, \"valueType\":\"NUMERIC\" } ] }, \"dashboardId\":null, \"alarmDetails\":null } }, \"propagateRelationTypes\":null } ], \"configuration\":{ \"type\":\"DEFAULT\" }, \"provisionConfiguration\":{ \"type\":\"ALLOW_CREATE_NEW_DEVICES\", \"provisionDeviceSecret\":\"vaxb9hzqdbz3oqukvomg\" }, \"transportConfiguration\":{ \"type\":\"MQTT\", \"deviceTelemetryTopic\":\"v1/devices/me/telemetry\", \"deviceAttributesTopic\":\"v1/devices/me/attributes\", \"transportPayloadTypeConfiguration\":{ \"transportPayloadType\":\"PROTOBUF\", \"deviceTelemetryProtoSchema\":\"syntax =\\\"proto3\\\";\\npackage telemetry;\\n\\nmessage SensorDataReading {\\n\\n optional double temperature = 1;\\n optional double humidity = 2;\\n InnerObject innerObject = 3;\\n\\n message InnerObject {\\n optional string key1 = 1;\\n optional bool key2 = 2;\\n optional double key3 = 3;\\n optional int32 key4 = 4;\\n optional string key5 = 5;\\n }\\n}\", \"deviceAttributesProtoSchema\":\"syntax =\\\"proto3\\\";\\npackage attributes;\\n\\nmessage SensorConfiguration {\\n optional string firmwareVersion = 1;\\n optional string serialNumber = 2;\\n}\", \"deviceRpcRequestProtoSchema\":\"syntax =\\\"proto3\\\";\\npackage rpc;\\n\\nmessage RpcRequestMsg {\\n optional string method = 1;\\n optional int32 requestId = 2;\\n optional string params = 3;\\n}\", \"deviceRpcResponseProtoSchema\":\"syntax =\\\"proto3\\\";\\npackage rpc;\\n\\nmessage RpcResponseMsg {\\n optional string payload = 1;\\n}\" } } } ``` Let's review some specific objects examples related to the device profile configuration: # Alarm Schedule Alarm Schedule JSON object represents the time interval during which the alarm rule is active. Note, ```json \"schedule\": null ``` means alarm rule is active all the time. **'daysOfWeek'** field represents Monday as 1, Tuesday as 2 and so on. **'startsOn'** and **'endsOn'** fields represent hours in millis (e.g. 64800000 = 18:00 or 6pm). **'enabled'** flag specifies if item in a custom rule is active for specific day of the week: ## Specific Time Schedule ```json { \"schedule\":{ \"type\":\"SPECIFIC_TIME\", \"endsOn\":64800000, \"startsOn\":43200000, \"timezone\":\"Europe/Kiev\", \"daysOfWeek\":[ 1, 3, 5 ] } } ``` ## Custom Schedule ```json { \"schedule\":{ \"type\":\"CUSTOM\", \"items\":[ { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":1 }, { \"endsOn\":64800000, \"enabled\":true, \"startsOn\":43200000, \"dayOfWeek\":2 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":3 }, { \"endsOn\":57600000, \"enabled\":true, \"startsOn\":36000000, \"dayOfWeek\":4 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":5 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":6 }, { \"endsOn\":0, \"enabled\":false, \"startsOn\":0, \"dayOfWeek\":7 } ], \"timezone\":\"Europe/Kiev\" } } ``` # Alarm condition type (**'spec'**) Alarm condition type can be either simple, duration, or repeating. For example, 5 times in a row or during 5 minutes. Note, **'userValue'** field is not used and reserved for future usage, **'dynamicValue'** is used for condition appliance by using the value of the **'sourceAttribute'** or else **'defaultValue'** is used (if **'sourceAttribute'** is absent). **'sourceType'** of the **'sourceAttribute'** can be: * 'CURRENT_DEVICE'; * 'CURRENT_CUSTOMER'; * 'CURRENT_TENANT'. **'sourceAttribute'** can be inherited from the owner if **'inherit'** is set to true (for CURRENT_DEVICE and CURRENT_CUSTOMER). ## Repeating alarm condition ```json { \"spec\":{ \"type\":\"REPEATING\", \"predicate\":{ \"userValue\":null, \"defaultValue\":5, \"dynamicValue\":{ \"inherit\":true, \"sourceType\":\"CURRENT_DEVICE\", \"sourceAttribute\":\"tempAttr\" } } } } ``` ## Duration alarm condition ```json { \"spec\":{ \"type\":\"DURATION\", \"unit\":\"MINUTES\", \"predicate\":{ \"userValue\":null, \"defaultValue\":30, \"dynamicValue\":null } } } ``` **'unit'** can be: * 'SECONDS'; * 'MINUTES'; * 'HOURS'; * 'DAYS'. # Key Filters Key filter objects are created under the **'condition'** array. They allow you to define complex logical expressions over entity field, attribute, latest time-series value or constant. The filter is defined using 'key', 'valueType', 'value' (refers to the value of the 'CONSTANT' alarm filter key type) and 'predicate' objects. Let's review each object: ## Alarm Filter Key Filter Key defines either entity field, attribute, telemetry or constant. It is a JSON object that consists the key name and type. The following filter key types are supported: * 'ATTRIBUTE' - used for attributes values; * 'TIME_SERIES' - used for time-series values; * 'ENTITY_FIELD' - used for accessing entity fields like 'name', 'label', etc. The list of available fields depends on the entity type; * 'CONSTANT' - constant value specified. Let's review the example: ```json { \"type\": \"TIME_SERIES\", \"key\": \"temperature\" } ``` ## Value Type and Operations Provides a hint about the data type of the entity field that is defined in the filter key. The value type impacts the list of possible operations that you may use in the corresponding predicate. For example, you may use 'STARTS_WITH' or 'END_WITH', but you can't use 'GREATER_OR_EQUAL' for string values.The following filter value types and corresponding predicate operations are supported: * 'STRING' - used to filter any 'String' or 'JSON' values. Operations: EQUAL, NOT_EQUAL, STARTS_WITH, ENDS_WITH, CONTAINS, NOT_CONTAINS; * 'NUMERIC' - used for 'Long' and 'Double' values. Operations: EQUAL, NOT_EQUAL, GREATER, LESS, GREATER_OR_EQUAL, LESS_OR_EQUAL; * 'BOOLEAN' - used for boolean values. Operations: EQUAL, NOT_EQUAL; * 'DATE_TIME' - similar to numeric, transforms value to milliseconds since epoch. Operations: EQUAL, NOT_EQUAL, GREATER, LESS, GREATER_OR_EQUAL, LESS_OR_EQUAL; ## Filter Predicate Filter Predicate defines the logical expression to evaluate. The list of available operations depends on the filter value type, see above. Platform supports 4 predicate types: 'STRING', 'NUMERIC', 'BOOLEAN' and 'COMPLEX'. The last one allows to combine multiple operations over one filter key. Simple predicate example to check 'value < 100': ```json { \"operation\": \"LESS\", \"value\": { \"userValue\": null, \"defaultValue\": 100, \"dynamicValue\": null }, \"type\": \"NUMERIC\" } ``` Complex predicate example, to check 'value < 10 or value > 20': ```json { \"type\": \"COMPLEX\", \"operation\": \"OR\", \"predicates\": [ { \"operation\": \"LESS\", \"value\": { \"userValue\": null, \"defaultValue\": 10, \"dynamicValue\": null }, \"type\": \"NUMERIC\" }, { \"operation\": \"GREATER\", \"value\": { \"userValue\": null, \"defaultValue\": 20, \"dynamicValue\": null }, \"type\": \"NUMERIC\" } ] } ``` More complex predicate example, to check 'value < 10 or (value > 50 && value < 60)': ```json { \"type\": \"COMPLEX\", \"operation\": \"OR\", \"predicates\": [ { \"operation\": \"LESS\", \"value\": { \"userValue\": null, \"defaultValue\": 10, \"dynamicValue\": null }, \"type\": \"NUMERIC\" }, { \"type\": \"COMPLEX\", \"operation\": \"AND\", \"predicates\": [ { \"operation\": \"GREATER\", \"value\": { \"userValue\": null, \"defaultValue\": 50, \"dynamicValue\": null }, \"type\": \"NUMERIC\" }, { \"operation\": \"LESS\", \"value\": { \"userValue\": null, \"defaultValue\": 60, \"dynamicValue\": null }, \"type\": \"NUMERIC\" } ] } ] } ``` You may also want to replace hardcoded values (for example, temperature > 20) with the more dynamic expression (for example, temperature > value of the tenant attribute with key 'temperatureThreshold'). It is possible to use 'dynamicValue' to define attribute of the tenant, customer or device. See example below: ```json { \"operation\": \"GREATER\", \"value\": { \"userValue\": null, \"defaultValue\": 0, \"dynamicValue\": { \"inherit\": false, \"sourceType\": \"CURRENT_TENANT\", \"sourceAttribute\": \"temperatureThreshold\" } }, \"type\": \"NUMERIC\" } ``` Note that you may use 'CURRENT_DEVICE', 'CURRENT_CUSTOMER' and 'CURRENT_TENANT' as a 'sourceType'. The 'defaultValue' is used when the attribute with such a name is not defined for the chosen source. The 'sourceAttribute' can be inherited from the owner of the specified 'sourceType' if 'inherit' is set to true. # Provision Configuration There are 3 types of device provision configuration for the device profile: * 'DISABLED'; * 'ALLOW_CREATE_NEW_DEVICES'; * 'CHECK_PRE_PROVISIONED_DEVICES'. Please refer to the [docs](https://thingsboard.io/docs/user-guide/device-provisioning/) for more details. # Transport Configuration 5 transport configuration types are available: * 'DEFAULT'; * 'MQTT'; * 'LWM2M'; * 'COAP'; * 'SNMP'. Default type supports basic MQTT, HTTP, CoAP and LwM2M transports. Please refer to the [docs](https://thingsboard.io/docs/user-guide/device-profiles/#transport-configuration) for more details about other types. See another example of COAP transport configuration below: ```json { \"type\":\"COAP\", \"clientSettings\":{ \"edrxCycle\":null, \"powerMode\":\"DRX\", \"psmActivityTimer\":null, \"pagingTransmissionWindow\":null }, \"coapDeviceTypeConfiguration\":{ \"coapDeviceType\":\"DEFAULT\", \"transportPayloadTypeConfiguration\":{ \"transportPayloadType\":\"JSON\" } } } ```Remove 'id', 'tenantId' from the request body example (below) to create new Device Profile entity. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
1053
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1054
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1055
|
+
>>> thread = api.save_device_profile_using_post_with_http_info(async_req=True)
|
|
1056
|
+
>>> result = thread.get()
|
|
1057
|
+
|
|
1058
|
+
:param async_req bool
|
|
1059
|
+
:param DeviceProfile body:
|
|
1060
|
+
:return: DeviceProfile
|
|
1061
|
+
If the method is called asynchronously,
|
|
1062
|
+
returns the request thread.
|
|
1063
|
+
"""
|
|
1064
|
+
|
|
1065
|
+
all_params = ['body'] # noqa: E501
|
|
1066
|
+
all_params.append('async_req')
|
|
1067
|
+
all_params.append('_return_http_data_only')
|
|
1068
|
+
all_params.append('_preload_content')
|
|
1069
|
+
all_params.append('_request_timeout')
|
|
1070
|
+
|
|
1071
|
+
params = locals()
|
|
1072
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1073
|
+
if key not in all_params:
|
|
1074
|
+
raise TypeError(
|
|
1075
|
+
"Got an unexpected keyword argument '%s'"
|
|
1076
|
+
" to method save_device_profile_using_post" % key
|
|
1077
|
+
)
|
|
1078
|
+
params[key] = val
|
|
1079
|
+
del params['kwargs']
|
|
1080
|
+
|
|
1081
|
+
collection_formats = {}
|
|
1082
|
+
|
|
1083
|
+
path_params = {}
|
|
1084
|
+
|
|
1085
|
+
query_params = []
|
|
1086
|
+
|
|
1087
|
+
header_params = {}
|
|
1088
|
+
|
|
1089
|
+
form_params = []
|
|
1090
|
+
local_var_files = {}
|
|
1091
|
+
|
|
1092
|
+
body_params = None
|
|
1093
|
+
if 'body' in params:
|
|
1094
|
+
body_params = params['body']
|
|
1095
|
+
# HTTP header `Accept`
|
|
1096
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1097
|
+
['application/json']) # noqa: E501
|
|
1098
|
+
|
|
1099
|
+
# HTTP header `Content-Type`
|
|
1100
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1101
|
+
['application/json']) # noqa: E501
|
|
1102
|
+
|
|
1103
|
+
# Authentication setting
|
|
1104
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
1105
|
+
|
|
1106
|
+
return self.api_client.call_api(
|
|
1107
|
+
'/api/deviceProfile', 'POST',
|
|
1108
|
+
path_params,
|
|
1109
|
+
query_params,
|
|
1110
|
+
header_params,
|
|
1111
|
+
body=body_params,
|
|
1112
|
+
post_params=form_params,
|
|
1113
|
+
files=local_var_files,
|
|
1114
|
+
response_type='DeviceProfile', # noqa: E501
|
|
1115
|
+
auth_settings=auth_settings,
|
|
1116
|
+
async_req=params.get('async_req'),
|
|
1117
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1118
|
+
_preload_content=params.get('_preload_content', True),
|
|
1119
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1120
|
+
collection_formats=collection_formats)
|
|
1121
|
+
|
|
1122
|
+
def set_default_device_profile_using_post(self, device_profile_id, **kwargs): # noqa: E501
|
|
1123
|
+
"""Make Device Profile Default (setDefaultDeviceProfile) # noqa: E501
|
|
1124
|
+
|
|
1125
|
+
Marks device profile as default within a tenant scope. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
1126
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1127
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1128
|
+
>>> thread = api.set_default_device_profile_using_post(device_profile_id, async_req=True)
|
|
1129
|
+
>>> result = thread.get()
|
|
1130
|
+
|
|
1131
|
+
:param async_req bool
|
|
1132
|
+
:param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1133
|
+
:return: DeviceProfile
|
|
1134
|
+
If the method is called asynchronously,
|
|
1135
|
+
returns the request thread.
|
|
1136
|
+
"""
|
|
1137
|
+
kwargs['_return_http_data_only'] = True
|
|
1138
|
+
if kwargs.get('async_req'):
|
|
1139
|
+
return self.set_default_device_profile_using_post_with_http_info(device_profile_id, **kwargs) # noqa: E501
|
|
1140
|
+
else:
|
|
1141
|
+
(data) = self.set_default_device_profile_using_post_with_http_info(device_profile_id, **kwargs) # noqa: E501
|
|
1142
|
+
return data
|
|
1143
|
+
|
|
1144
|
+
def set_default_device_profile_using_post_with_http_info(self, device_profile_id, **kwargs): # noqa: E501
|
|
1145
|
+
"""Make Device Profile Default (setDefaultDeviceProfile) # noqa: E501
|
|
1146
|
+
|
|
1147
|
+
Marks device profile as default within a tenant scope. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
|
|
1148
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1149
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1150
|
+
>>> thread = api.set_default_device_profile_using_post_with_http_info(device_profile_id, async_req=True)
|
|
1151
|
+
>>> result = thread.get()
|
|
1152
|
+
|
|
1153
|
+
:param async_req bool
|
|
1154
|
+
:param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1155
|
+
:return: DeviceProfile
|
|
1156
|
+
If the method is called asynchronously,
|
|
1157
|
+
returns the request thread.
|
|
1158
|
+
"""
|
|
1159
|
+
|
|
1160
|
+
all_params = ['device_profile_id'] # noqa: E501
|
|
1161
|
+
all_params.append('async_req')
|
|
1162
|
+
all_params.append('_return_http_data_only')
|
|
1163
|
+
all_params.append('_preload_content')
|
|
1164
|
+
all_params.append('_request_timeout')
|
|
1165
|
+
|
|
1166
|
+
params = locals()
|
|
1167
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1168
|
+
if key not in all_params:
|
|
1169
|
+
raise TypeError(
|
|
1170
|
+
"Got an unexpected keyword argument '%s'"
|
|
1171
|
+
" to method set_default_device_profile_using_post" % key
|
|
1172
|
+
)
|
|
1173
|
+
params[key] = val
|
|
1174
|
+
del params['kwargs']
|
|
1175
|
+
# verify the required parameter 'device_profile_id' is set
|
|
1176
|
+
if ('device_profile_id' not in params or
|
|
1177
|
+
params['device_profile_id'] is None):
|
|
1178
|
+
raise ValueError("Missing the required parameter `device_profile_id` when calling `set_default_device_profile_using_post`") # noqa: E501
|
|
1179
|
+
|
|
1180
|
+
collection_formats = {}
|
|
1181
|
+
|
|
1182
|
+
path_params = {}
|
|
1183
|
+
if 'device_profile_id' in params:
|
|
1184
|
+
path_params['deviceProfileId'] = params['device_profile_id'] # noqa: E501
|
|
1185
|
+
|
|
1186
|
+
query_params = []
|
|
1187
|
+
|
|
1188
|
+
header_params = {}
|
|
1189
|
+
|
|
1190
|
+
form_params = []
|
|
1191
|
+
local_var_files = {}
|
|
1192
|
+
|
|
1193
|
+
body_params = None
|
|
1194
|
+
# HTTP header `Accept`
|
|
1195
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1196
|
+
['application/json']) # noqa: E501
|
|
1197
|
+
|
|
1198
|
+
# Authentication setting
|
|
1199
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
1200
|
+
|
|
1201
|
+
return self.api_client.call_api(
|
|
1202
|
+
'/api/deviceProfile/{deviceProfileId}/default', 'POST',
|
|
1203
|
+
path_params,
|
|
1204
|
+
query_params,
|
|
1205
|
+
header_params,
|
|
1206
|
+
body=body_params,
|
|
1207
|
+
post_params=form_params,
|
|
1208
|
+
files=local_var_files,
|
|
1209
|
+
response_type='DeviceProfile', # noqa: E501
|
|
1210
|
+
auth_settings=auth_settings,
|
|
1211
|
+
async_req=params.get('async_req'),
|
|
1212
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1213
|
+
_preload_content=params.get('_preload_content', True),
|
|
1214
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1215
|
+
collection_formats=collection_formats)
|